From 88756147643a1d4ffb840797b96ea44462b0551d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 12 七月 2022 17:19:26 +0800 Subject: [PATCH] 2022-07-12 --- src/menu/components/form/tab-form/index.jsx | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/menu/components/form/tab-form/index.jsx b/src/menu/components/form/tab-form/index.jsx index f937c07..b8d88ec 100644 --- a/src/menu/components/form/tab-form/index.jsx +++ b/src/menu/components/form/tab-form/index.jsx @@ -12,7 +12,7 @@ import { resetStyle } from '@/utils/utils-custom.js' import MKEmitter from '@/utils/events.js' import Utils from '@/utils/utils.js' -import getWrapForm from '../normal-form/options' +import getWrapForm from '../step-form/options' import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' import './index.scss' @@ -31,7 +31,7 @@ const { confirm } = Modal -class PropCardEditComponent extends Component { +class TabFormComponent extends Component { static propTpyes = { card: PropTypes.object, deletecomponent: PropTypes.func, @@ -666,6 +666,9 @@ } pasteForm = (res) => { + if (res.subtype === 'simpleform') { + res = res.subcards[0] + } if (res.subButton) { let card = fromJS(this.state.card).toJS() @@ -785,7 +788,7 @@ <EditOutlined style={{color: '#1890ff'}} title="缂栬緫"/> </NormalForm> <CopyComponent type="tabform" card={card}/> - <PasteComponent config={card} options={['form', 'formgroup']} updateConfig={this.pasteForm} /> + <PasteComponent config={card} options={['form', 'formgroup', 'simpleform']} updateConfig={this.pasteForm} /> <FontColorsOutlined className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle}/> <UserComponent config={card}/> <DeleteOutlined className="close" title="鍒犻櫎缁勪欢" onClick={() => this.props.deletecomponent(card.uuid)} /> @@ -870,4 +873,4 @@ } } -export default PropCardEditComponent \ No newline at end of file +export default TabFormComponent \ No newline at end of file -- Gitblit v1.8.0