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/tabs/tablabelform/index.jsx | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/menu/components/tabs/tablabelform/index.jsx b/src/menu/components/tabs/tablabelform/index.jsx index 784a9f9..335976a 100644 --- a/src/menu/components/tabs/tablabelform/index.jsx +++ b/src/menu/components/tabs/tablabelform/index.jsx @@ -1,18 +1,18 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Row, Col, Input, Icon, Select } from 'antd' +import { Form, Row, Col, Input, Icon, Select, Radio } from 'antd' -// import { formRule } from '@/utils/option.js' import './index.scss' class SettingForm extends Component { static propTpyes = { - dict: PropTypes.object, // 瀛楀吀椤� - tab: PropTypes.object, // 鏁版嵁婧愰厤缃� - inputSubmit: PropTypes.func // 鍥炶溅浜嬩欢 + dict: PropTypes.object, + setting: PropTypes.object, + tab: PropTypes.object, + inputSubmit: PropTypes.func } - state = {roleList: []} + state = {roleList: [], appType: sessionStorage.getItem('appType')} UNSAFE_componentWillMount () { let roleList = sessionStorage.getItem('sysRoles') @@ -51,9 +51,9 @@ } render() { - const { tab } = this.props + const { tab, setting } = this.props const { getFieldDecorator } = this.props.form - const { roleList } = this.state + const { roleList, appType } = this.state const formItemLayout = { labelCol: { @@ -97,6 +97,18 @@ )} </Form.Item> </Col> + {appType === 'mob' && setting.position === 'top' && setting.display === 'inline-block' ? <Col span={24}> + <Form.Item label="鎼滅储"> + {getFieldDecorator('hasSearch', { + initialValue: tab.hasSearch || 'false' + })( + <Radio.Group> + <Radio value="false">鏃�</Radio> + <Radio value="icon">鏈�</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> : null} <Col span={24}> <Form.Item label="榛戝悕鍗�"> {getFieldDecorator('blacklist', { -- Gitblit v1.8.0