From 137fb8ea6af2789b3238b22bac31d80bced41dfe Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 28 七月 2021 11:39:39 +0800 Subject: [PATCH] 2021-07-28 --- src/menu/components/carousel/data-card/wrapsetting/settingform/index.jsx | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/menu/components/carousel/data-card/wrapsetting/settingform/index.jsx b/src/menu/components/carousel/data-card/wrapsetting/settingform/index.jsx index 0007143..21fec41 100644 --- a/src/menu/components/carousel/data-card/wrapsetting/settingform/index.jsx +++ b/src/menu/components/carousel/data-card/wrapsetting/settingform/index.jsx @@ -13,6 +13,7 @@ } state = { + appType: sessionStorage.getItem('appType'), roleList: [] } @@ -55,7 +56,7 @@ render() { const { wrap, config } = this.props const { getFieldDecorator } = this.props.form - const { roleList } = this.state + const { roleList, appType } = this.state const formItemLayout = { labelCol: { @@ -161,7 +162,19 @@ )} </Form.Item> </Col> - <Col span={12}> + {appType === 'mob' ? <Col span={12}> + <Form.Item label="鍨傜洿鏄剧ず"> + {getFieldDecorator('vertical', { + initialValue: wrap.vertical || 'false' + })( + <Radio.Group> + <Radio value="true">鏄�</Radio> + <Radio value="false">鍚�</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> : null} + {appType !== 'mob' ? <Col span={12}> <Form.Item label="鎸囩ず鐐逛綅缃�"> {getFieldDecorator('dotPosition', { initialValue: wrap.dotPosition || 'bottom' @@ -174,8 +187,8 @@ </Radio.Group> )} </Form.Item> - </Col> - <Col span={12}> + </Col> : null} + {appType !== 'mob' ? <Col span={12}> <Form.Item label="鍔ㄧ敾鏁堟灉"> {getFieldDecorator('effect', { initialValue: wrap.effect || 'scrollx' @@ -186,7 +199,7 @@ </Radio.Group> )} </Form.Item> - </Col> + </Col> : null} <Col span={12}> <Form.Item label="榛戝悕鍗�"> {getFieldDecorator('blacklist', { -- Gitblit v1.8.0