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/normal-form/index.jsx | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/src/menu/components/form/normal-form/index.jsx b/src/menu/components/form/normal-form/index.jsx index 997483f..7635452 100644 --- a/src/menu/components/form/normal-form/index.jsx +++ b/src/menu/components/form/normal-form/index.jsx @@ -193,7 +193,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 @@ -553,6 +567,9 @@ } if (item.uuid === res.uuid) { + if (item.style) { + res.style = item.style + } return res } else { return item -- Gitblit v1.8.0