From d1657e9835a6b3350dee76956deae3029cfe4b11 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 20 四月 2021 15:54:06 +0800
Subject: [PATCH] 2021-04-20

---
 src/mob/components/navbar/normal-navbar/wrapsetting/settingform/index.jsx |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/mob/components/navbar/normal-navbar/wrapsetting/settingform/index.jsx b/src/mob/components/navbar/normal-navbar/wrapsetting/settingform/index.jsx
index 25d3f54..debd0d8 100644
--- a/src/mob/components/navbar/normal-navbar/wrapsetting/settingform/index.jsx
+++ b/src/mob/components/navbar/normal-navbar/wrapsetting/settingform/index.jsx
@@ -1,13 +1,12 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Form, Row, Col, Input, InputNumber } from 'antd'
+import { Form, Row, Col, Input, InputNumber, Tooltip, Icon, Radio } from 'antd'
 
 import './index.scss'
 
 class SettingForm extends Component {
   static propTpyes = {
     dict: PropTypes.object,      // 瀛楀吀椤�
-    config: PropTypes.object,    // 鍗$墖琛屼俊鎭�
     wrap: PropTypes.object,      // 鏁版嵁婧愰厤缃�
     inputSubmit: PropTypes.func  // 鍥炶溅浜嬩欢
   }
@@ -80,6 +79,23 @@
               </Form.Item>
             </Col>
             <Col span={12}>
+              <Form.Item label={
+                <Tooltip placement="topLeft" title="閫夋嫨闈欐�佸�硷紝鏃犻渶閰嶇疆鏁版嵁婧愩��">
+                  <Icon type="question-circle" />
+                  鏁版嵁鏉ユ簮
+                </Tooltip>
+              }>
+                {getFieldDecorator('datatype', {
+                  initialValue: wrap.datatype || 'static'
+                })(
+                  <Radio.Group>
+                    <Radio value="dynamic">鍔ㄦ��</Radio>
+                    <Radio value="static">闈欐��</Radio>
+                  </Radio.Group>
+                )}
+              </Form.Item>
+            </Col>
+            <Col span={12}>
               <Form.Item label="楂樺害">
                 {getFieldDecorator('height', {
                   initialValue: wrap.height || 50,
@@ -89,7 +105,7 @@
                       message: this.props.dict['form.required.input'] + '楂樺害!'
                     }
                   ]
-                })(<InputNumber min={50} max={200} precision={0} onPressEnter={this.handleSubmit} />)}
+                })(<InputNumber min={30} max={200} precision={0} onPressEnter={this.handleSubmit} />)}
               </Form.Item>
             </Col>
           </Row>

--
Gitblit v1.8.0