From c5e5a7580632bc39a9e0c78d548f22a8be5f2019 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 18 十月 2023 18:04:51 +0800 Subject: [PATCH] 2023-10-18 --- src/menu/components/share/normalform/index.jsx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/menu/components/share/normalform/index.jsx b/src/menu/components/share/normalform/index.jsx index f08205e..56c3f9a 100644 --- a/src/menu/components/share/normalform/index.jsx +++ b/src/menu/components/share/normalform/index.jsx @@ -8,10 +8,10 @@ import './index.scss' const MKTable = asyncComponent(() => import('@/components/normalform/modalform/mkTable')) +const StyleInput = asyncComponent(() => import('@/components/normalform/modalform/styleInput')) class SettingForm extends Component { static propTpyes = { - dict: PropTypes.object, // 瀛楀吀椤� formlist: PropTypes.array, // 琛ㄥ崟 inputSubmit: PropTypes.func // 鍥炶溅浜嬩欢 } @@ -81,6 +81,8 @@ content = (<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit}/>) } else if (item.type === 'number') { content = (<InputNumber min={item.min} max={item.max} precision={item.decimal} onPressEnter={this.handleSubmit}/>) + } else if (item.type === 'styleInput') { + content = (<StyleInput config={item}/>) } else if (item.type === 'select') { content = (<Select mode={item.multi ? 'multiple' : ''}> {item.options.map((option, index) => -- Gitblit v1.8.0