From b636a3f64219455ee680bd626c65282c636cfcef Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 07 七月 2021 19:06:13 +0800
Subject: [PATCH] 2021-07-07

---
 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