From 870b6e10f9428e769530b94df3034e567a516429 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 21 六月 2022 00:53:58 +0800 Subject: [PATCH] 2022-06-21 --- src/tabviews/zshare/mutilform/index.jsx | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index e6dc625..2469c8d 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -25,6 +25,7 @@ const MKTextArea = asyncComponent(() => import('./mkTextArea')) const MKFileUpload = asyncComponent(() => import('../fileupload')) const MKColor = asyncComponent(() => import('./mkColor')) +const MkFormula = asyncComponent(() => import('./mkFormula')) const MKEditor = asyncComponent(() => import('@/components/editor')) class MainSearch extends Component { @@ -84,7 +85,7 @@ delete item.style.marginRight } - if (item.type === 'split') return true + if (item.type === 'split' || item.type === 'formula') return true if (item.type === 'hint') { if (item.field && data && data[item.field]) { item.message = data[item.field] @@ -807,6 +808,14 @@ </Form.Item> </Col> ) + } else if (item.type === 'formula') { + fields.push( + <Col span={item.span || 24} key={index}> + <Form.Item className="hint" colon={false} label={<span className="mk-form-label" style={item.style}>{item.label}</span>} labelCol={item.labelCol} wrapperCol={item.wrapperCol}> + <MkFormula config={item} data={this.record}></MkFormula> + </Form.Item> + </Col> + ) } else { let content = null let className = '' -- Gitblit v1.8.0