From a8e94242166881639cecf3809e45ca527233ebd7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 23 三月 2021 16:42:20 +0800 Subject: [PATCH] 2021-03-23 --- src/menu/components/share/actioncomponent/actionform/index.jsx | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx index e96aa4e..f7494bf 100644 --- a/src/menu/components/share/actioncomponent/actionform/index.jsx +++ b/src/menu/components/share/actioncomponent/actionform/index.jsx @@ -19,7 +19,7 @@ funcbutton: ['label', 'OpenType', 'funcType', 'show', 'icon', 'class', 'width'] } -class MainSearch extends Component { +class ActionForm extends Component { static propTpyes = { dict: PropTypes.object, // 瀛楀吀椤� type: PropTypes.any, // type涓�"card"鏃讹紝鍙彲閫夊崟琛屾垨涓嶉�夎 @@ -474,6 +474,14 @@ </Form.Item> </Col> ) + } else if (item.type === 'tip') { + fields.push( + <Col span={12} key={index}> + <Form.Item label={item.label}> + {item} + </Form.Item> + </Col> + ) } else if (item.type === 'number') { fields.push( <Col span={12} key={index}> @@ -678,4 +686,4 @@ } } -export default Form.create()(MainSearch) \ No newline at end of file +export default Form.create()(ActionForm) \ No newline at end of file -- Gitblit v1.8.0