From f9180a3ab8813c3937c7ba30750763cd693d1d37 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 05 十月 2021 12:06:36 +0800 Subject: [PATCH] 2021-10-05 --- src/menu/components/table/edit-table/columns/editColumn/index.jsx | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/menu/components/table/edit-table/columns/editColumn/index.jsx b/src/menu/components/table/edit-table/columns/editColumn/index.jsx index 34d33ea..10a6f8c 100644 --- a/src/menu/components/table/edit-table/columns/editColumn/index.jsx +++ b/src/menu/components/table/edit-table/columns/editColumn/index.jsx @@ -43,6 +43,7 @@ this.setState({ visible: true, + editable: column.editable || 'false', type: column.type, formlist: formlist.map(item => { item.hidden = !_options.includes(item.key) @@ -108,6 +109,8 @@ } } else if (key === 'format' && value === 'percent') { this.props.form.setFieldsValue({postfix: '%'}) + } else if (key === 'editable') { + } } @@ -219,7 +222,7 @@ } ] })( - <Radio.Group> + <Radio.Group onChange={(e) => {this.typeChange(item.key, e.target.value)}}> { item.options.map(option => { return ( -- Gitblit v1.8.0