From 95ccc1acc6d8ede1c839493e7aecc9c97fd34c8c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 24 九月 2021 15:55:39 +0800
Subject: [PATCH] 2021-09-24

---
 src/tabviews/zshare/topSearch/index.jsx |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx
index 90209bf..defee38 100644
--- a/src/tabviews/zshare/topSearch/index.jsx
+++ b/src/tabviews/zshare/topSearch/index.jsx
@@ -433,6 +433,7 @@
     const { getFieldDecorator } = this.props.form
     const { dict, showButton, showAdvanced, float, visible } = this.state
     const fields = []
+    let lastRadio = 6
 
     this.state.searchlist.forEach((item, index) => {
       if (item.hidden || item.advanced) return
@@ -446,6 +447,7 @@
 
       let content = null
       let field = item.field
+      lastRadio = item.ratio || 6
 
       if (item.type === 'text') {
         if (item.inputType === 'search') {
@@ -480,7 +482,7 @@
 
     if (showButton) {
       let action = (
-        <Col span={6} style={{ whiteSpace: 'nowrap' }} className="search-button" key="actions">
+        <Col span={lastRadio < 6 ? 6 : lastRadio} style={{ whiteSpace: 'nowrap' }} className="search-button" key="actions">
           <Form.Item label={' '} colon={false} style={{ minHeight: '40px' }}>
             <Button type="primary" onClick={this.handleSubmit}>
               {dict['main.search']}

--
Gitblit v1.8.0