From 02b9e988b456c4e7d7f077c613fcc1092d93803f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 29 九月 2021 19:02:43 +0800 Subject: [PATCH] 2021-09-29 --- src/menu/components/table/normal-table/columns/editColumn/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/menu/components/table/normal-table/columns/editColumn/index.jsx b/src/menu/components/table/normal-table/columns/editColumn/index.jsx index d5450d3..0c633a5 100644 --- a/src/menu/components/table/normal-table/columns/editColumn/index.jsx +++ b/src/menu/components/table/normal-table/columns/editColumn/index.jsx @@ -20,7 +20,7 @@ index: ['label', 'type', 'Align', 'Width'] } -class MainSearch extends Component { +class NormalTableColumn extends Component { static propTpyes = { dict: PropTypes.object, // 瀛楀吀椤� visible: PropTypes.bool, @@ -65,7 +65,7 @@ try { let _form = document.getElementById('label') _form && _form.select() - } catch { + } catch (e) { console.warn('琛ㄥ崟focus澶辫触锛�') } } @@ -101,7 +101,7 @@ } values.type = 'number' values.decimal = decimal - } else if (/nvarchar/ig.test(option.props.datatype)) { + } else { values.type = 'text' } @@ -385,4 +385,4 @@ } } -export default Form.create()(MainSearch) \ No newline at end of file +export default Form.create()(NormalTableColumn) \ No newline at end of file -- Gitblit v1.8.0