From fe21d23b147ed5cec22b4f76a88840b05495d4ad Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 18 六月 2022 22:33:59 +0800 Subject: [PATCH] 2022-06-18 --- src/templates/modalconfig/settingform/index.jsx | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/templates/modalconfig/settingform/index.jsx b/src/templates/modalconfig/settingform/index.jsx index 2d6cc85..b29bbd6 100644 --- a/src/templates/modalconfig/settingform/index.jsx +++ b/src/templates/modalconfig/settingform/index.jsx @@ -44,6 +44,8 @@ let _display = display if (appType === 'mob' && display === 'modal') { _display = 'drawer' + } else if (appType !== 'mob' && display === 'dialog') { + _display = 'modal' } this.setState({ @@ -122,7 +124,7 @@ <Radio value="drawer">鎶藉眽</Radio> <Radio value="prompt">鏄惁妗�</Radio> <Radio value="exec">鐩存帴鎵ц</Radio> - {/* <Radio value="dialog" disabled={dialogInput !== true}>瀵硅瘽妗�</Radio> */} + {appType !== 'mob' ? null : <Radio value="dialog">寮圭獥</Radio>} </Radio.Group> )} </Form.Item> @@ -139,7 +141,7 @@ })(<InputNumber min={10} max={2000} precision={0} onPressEnter={this.handleSubmit}/>)} </Form.Item> </Col> : null} - {display === 'drawer' || display === 'modal' ? <Col span={12}> + {['dialog', 'drawer', 'modal'].includes(display) ? <Col span={12}> <Form.Item label="鍒濆鐒︾偣"> {getFieldDecorator('focus', { initialValue: config.setting.focus || '' @@ -158,7 +160,7 @@ )} </Form.Item> </Col> : null} - {display === 'drawer' || display === 'modal' ? <Col span={12}> + {['drawer', 'modal'].includes(display) ? <Col span={12}> <Form.Item label={ <Tooltip placement="topLeft" title="鎵ц澶辫触鏃堕渶瑕佽仛鐒︾殑琛ㄥ崟銆�"> <QuestionCircleOutlined className="mk-form-tip" /> @@ -228,7 +230,7 @@ </Radio.Group>)} </Form.Item> </Col> : null} - {display === 'drawer' || display === 'modal' ? <Col span={12}> + {['drawer', 'modal'].includes(display) ? <Col span={12}> <Form.Item label="瀹屾垚鍚�"> {getFieldDecorator('finish', { initialValue: config.setting.finish || 'close' @@ -240,7 +242,7 @@ )} </Form.Item> </Col> : null} - {display === 'drawer' || display === 'modal' ? <Col span={12}> + {['dialog', 'drawer', 'modal'].includes(display) ? <Col span={12}> <Form.Item label={ <Tooltip placement="topLeft" title="闇�瑕侀�氳繃鏁版嵁婧愭煡璇㈢殑閫夐」锛屾槸鍚︿娇鐢ㄧ紦瀛樸��"> <QuestionCircleOutlined className="mk-form-tip" /> @@ -307,7 +309,7 @@ )} </Form.Item> </Col> : null} - {display === 'drawer' || display === 'modal' ? <Col span={12}> + {['dialog', 'drawer', 'modal'].includes(display) ? <Col span={12}> <Form.Item label="鐐瑰嚮钂欏眰"> {getFieldDecorator('clickouter', { initialValue: config.setting.clickouter || 'unclose' -- Gitblit v1.8.0