From 60dee3dc4dc6869231d6adb0c94c47e36114ca91 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 21 四月 2022 09:11:34 +0800 Subject: [PATCH] 2022-04-21 --- src/menu/components/form/tab-form/index.jsx | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/menu/components/form/tab-form/index.jsx b/src/menu/components/form/tab-form/index.jsx index 1493f64..6117825 100644 --- a/src/menu/components/form/tab-form/index.jsx +++ b/src/menu/components/form/tab-form/index.jsx @@ -205,7 +205,21 @@ } getStyle = (comIds, style) => { - const { card } = this.state + const { card, group } = this.state + + if (comIds[0] === 'form') { + let Index = group.fields.findIndex(n => n.uuid === comIds[1]) + + if (Index === -1) return + + let _group = fromJS(group).toJS() + + _group.fields[Index].style = style + + this.updateGroup(_group) + + return + } if (comIds.length !== 1 || comIds[0] !== card.uuid) return @@ -560,6 +574,9 @@ } if (item.uuid === res.uuid) { + if (item.style) { + res.style = item.style + } return res } else { return item @@ -729,7 +746,8 @@ <Modal title={this.state.dict['model.edit']} visible={this.state.visible} - width={850} + width={950} + maskClosable={false} onCancel={this.editModalCancel} onOk={this.handleSubmit} confirmLoading={this.state.sqlVerifing} -- Gitblit v1.8.0