From 8a1ee7d651500f848a3c2f05c7fe3be2b7114a43 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 10 四月 2024 00:47:56 +0800 Subject: [PATCH] 2024-04-10 --- src/templates/modalconfig/settingform/index.jsx | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/templates/modalconfig/settingform/index.jsx b/src/templates/modalconfig/settingform/index.jsx index febd8d8..7baf400 100644 --- a/src/templates/modalconfig/settingform/index.jsx +++ b/src/templates/modalconfig/settingform/index.jsx @@ -347,8 +347,13 @@ )} </Form.Item> </Col> : null} - {appType !== 'mob' ? <Col span={12}> - <Form.Item label="琛ㄥ崟绫诲瀷"> + {appType !== 'mob' && (display === 'drawer' || display === 'modal') ? <Col span={12}> + <Form.Item label={ + <Tooltip placement="topLeft" title="閫夋嫨鏌ョ湅鏃惰〃鍗曞潎涓哄彧璇伙紝浠呯敤浜庢暟鎹睍绀恒��"> + <QuestionCircleOutlined className="mk-form-tip" /> + 琛ㄥ崟绫诲瀷 + </Tooltip> + }> {getFieldDecorator('formType', { initialValue: config.setting.formType || 'edit' })( @@ -359,6 +364,20 @@ )} </Form.Item> </Col> : null} + {display === 'prompt' ? <Col span={12}> + <Form.Item label={ + <Tooltip placement="topLeft" title="鎻愮ず妗嗙殑纭鎻愮ず淇℃伅銆�"> + <QuestionCircleOutlined className="mk-form-tip" /> + 纭鎻愮ず + </Tooltip> + }> + {getFieldDecorator('tipTitle', { + initialValue: config.setting.tipTitle || '' + })( + <Input autoComplete="off" onPressEnter={this.handleSubmit} /> + )} + </Form.Item> + </Col> : null} {!this.props.isSubTab && !appType && this.state.viewType !== 'popview' && display === 'modal' ? <Col span={12}> <Form.Item label="鎸傝浇瀵硅薄"> {getFieldDecorator('container', { -- Gitblit v1.8.0