From 5891206952e2ff63e87aed2f47df5324b019d32e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 25 十月 2022 00:39:38 +0800 Subject: [PATCH] 2022-10-25 --- src/menu/components/table/edit-table/columns/index.jsx | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/menu/components/table/edit-table/columns/index.jsx b/src/menu/components/table/edit-table/columns/index.jsx index ccb4fbd..dbb0c1a 100644 --- a/src/menu/components/table/edit-table/columns/index.jsx +++ b/src/menu/components/table/edit-table/columns/index.jsx @@ -262,14 +262,12 @@ let _columns = fromJS(this.state.columns).toJS() let type = item.subType - if (item.subType === 'link' || item.subType === 'colspan' || item.subType === 'picture') { + if (!['text', 'number', 'textarea', 'custom', 'action', 'formula', 'index'].includes(item.subType)) { type = 'text' } let col = { focus: true, uuid: Utils.getuuid(), label: 'label', field: '', type: type, elements: [] } - if (col.type === 'colspan') { - col.subcols = [] - } else if (col.type === 'action') { + if (col.type === 'action') { col.label = '鎿嶄綔' } else if (col.type === 'index') { col.label = '搴忓彿' -- Gitblit v1.8.0