From 0225695d43c773d16f4d0743ad205590eed58cec Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 08 十一月 2021 21:17:53 +0800 Subject: [PATCH] 2021-11-08 --- src/templates/modalconfig/settingform/index.jsx | 39 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/templates/modalconfig/settingform/index.jsx b/src/templates/modalconfig/settingform/index.jsx index 7ca2a4b..9eea507 100644 --- a/src/templates/modalconfig/settingform/index.jsx +++ b/src/templates/modalconfig/settingform/index.jsx @@ -24,7 +24,7 @@ let fields = [] config.fields.forEach(f => { - if (f.field && ['select', 'link', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { + if (f.field && ['select', 'link', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { fields.push(f) } }) @@ -180,7 +180,7 @@ )} </Form.Item> </Col> - <Col span={12}> + {appType !== 'mob' ? <Col span={12}> <Form.Item label="鐐瑰嚮绌虹櫧澶�"> {getFieldDecorator('clickouter', { initialValue: config.setting.clickouter || 'unclose' @@ -188,6 +188,23 @@ <Radio.Group> <Radio value="close">鍏抽棴</Radio> <Radio value="unclose">涓嶅叧闂�</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> : null} + <Col span={12}> + <Form.Item label={ + <Tooltip placement="topLeft" title="闇�瑕侀�氳繃鏁版嵁婧愭煡璇㈢殑閫夐」锛屾槸鍚︿娇鐢ㄧ紦瀛樸��"> + <Icon type="question-circle" /> + 閫夐」鏌ヨ + </Tooltip> + }> + {getFieldDecorator('cache', { + initialValue: config.setting.cache || 'true' + })( + <Radio.Group> + <Radio value="true">缂撳瓨</Radio> + <Radio value="false">瀹炴椂</Radio> </Radio.Group> )} </Form.Item> @@ -266,6 +283,24 @@ )} </Form.Item> </Col> : null} + {appType === 'mob' ? <Col span={12}> + <Form.Item label="鎸夐挳鍚嶇О"> + {getFieldDecorator('btnName', { + initialValue: config.setting.btnName || '纭畾' + })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit} />)} + </Form.Item> + </Col> : null} + {appType === 'mob' ? <Col span={12}> + <Form.Item label="鎸夐挳浣嶇疆"> + {getFieldDecorator('btnPosition', { + initialValue: config.setting.btnPosition || 'bottom' + })( + <Radio.Group style={{whiteSpace: 'nowrap'}}> + <Radio value="bottom">涓嬩晶</Radio> + <Radio value="top">涓婁晶</Radio> + </Radio.Group>)} + </Form.Item> + </Col> : null} </Row> </Form> ) -- Gitblit v1.8.0