From 34e7681fd12b1c4e4994d3bea1a553870e10bc50 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 11 三月 2023 17:58:54 +0800
Subject: [PATCH] 2023-03-11

---
 src/tabviews/zshare/topSearch/index.jsx |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx
index 85fbb90..8f1b7d4 100644
--- a/src/tabviews/zshare/topSearch/index.jsx
+++ b/src/tabviews/zshare/topSearch/index.jsx
@@ -77,6 +77,7 @@
         _setting.labelwidth = config.wrap.searchLwidth !== undefined ? config.wrap.searchLwidth : 33.3
         _setting.labelCol = {style: {width: _setting.labelwidth + '%'}}
         _setting.wrapperCol = {style: {width: (100 - _setting.labelwidth) + '%'}}
+        _setting.borderRadius = config.wrap.borderRadius
       }
       _setting.style = null
       
@@ -552,6 +553,11 @@
     })
 
     if (setting.show || setting.showAdv) {
+      let style = {}
+      if (setting.borderRadius) {
+        style.borderRadius = setting.borderRadius
+      }
+
       fields.push(
         <Col span={setting.ratio} style={{ whiteSpace: 'nowrap' }} className="mk-search-col search-button" key="actions">
           <Form.Item
@@ -560,10 +566,10 @@
             labelCol={setting.labelCol}
             wrapperCol={setting.wrapperCol}
           >
-            {setting.show ? <Button type="primary" onClick={this.handleSubmit}>
+            {setting.show ? <Button style={style} type="primary" onClick={this.handleSubmit}>
               鎼滅储
             </Button> : null}
-            {setting.show ? <Button style={{ marginLeft: 8 }} onClick={this.handleReset}>
+            {setting.show ? <Button style={{ marginLeft: 8, ...style }} onClick={this.handleReset}>
               閲嶇疆
             </Button> : null}
             {setting.showAdv ? <Button className={visible ? 'visible' : ''} type="link" onClick={this.handleAdvance}>

--
Gitblit v1.8.0