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/views/mobdesign/menuform/index.jsx | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/views/mobdesign/menuform/index.jsx b/src/views/mobdesign/menuform/index.jsx index f053755..fbd2a07 100644 --- a/src/views/mobdesign/menuform/index.jsx +++ b/src/views/mobdesign/menuform/index.jsx @@ -6,6 +6,7 @@ import './index.scss' const { TextArea } = Input +const ColorSketch = asyncComponent(() => import('@/mob/colorsketch')) const SourceComponent = asyncComponent(() => import('@/menu/components/share/sourcecomponent')) class CustomMenuForm extends Component { @@ -30,6 +31,10 @@ this.props.updateConfig({...config, advertUrl: value}) } else if (key === 'advertTime') { this.props.updateConfig({...config, advertTime: value}) + } else if (key === 'pullRefresh') { + this.props.updateConfig({...config, pullRefresh: value}) + } else if (key === 'statusBarbgColor') { + this.props.updateConfig({...config, statusBarbgColor: value}) } } @@ -189,6 +194,28 @@ )} </Form.Item> </Col> + <Col span={24}> + <Form.Item label="涓嬫媺鍒锋柊"> + {getFieldDecorator('pullRefresh', { + initialValue: config.pullRefresh || 'false' + })( + <Radio.Group onChange={(e) => {this.selectChange('pullRefresh', e.target.value)}}> + <Radio value="false">鍏抽棴</Radio> + <Radio value="true">寮�鍚�</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> + <Col span={24}> + <Form.Item className="status-bar" label={ + <Tooltip placement="topLeft" title="鍦ㄦ槑绉戜簯APP涓紝鐘舵�佹爮鐨勮儗鏅壊銆�"> + <Icon type="question-circle" /> + 鐘舵�佹爮 + </Tooltip> + }> + <ColorSketch value={config.statusBarbgColor || '#ffffff'} onChange={(val) => {this.selectChange('statusBarbgColor', val)}} /> + </Form.Item> + </Col> {config.advertUrl ? <Col span={24}> <Form.Item label="鍋滅暀(s)"> {getFieldDecorator('advertTime', { -- Gitblit v1.8.0