From f45b2ad61211cf2821cdaab07676c7906c96410a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 05 七月 2023 18:23:56 +0800
Subject: [PATCH] 2023-07-05

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

diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx
index bdaf619..a92e5cb 100644
--- a/src/tabviews/zshare/topSearch/index.jsx
+++ b/src/tabviews/zshare/topSearch/index.jsx
@@ -66,6 +66,7 @@
       _setting.labelCol = {style: {width: _setting.labelwidth + '%'}}
       _setting.wrapperCol = {style: {width: (100 - _setting.labelwidth) + '%'}}
       _setting.borderRadius = config.wrap.borderRadius
+      _setting.resetContrl = config.wrap.resetContrl || 'init'
     }
     
     if (config.type === 'search') {
@@ -699,11 +700,17 @@
    * @description 鎼滅储鏉′欢閲嶇疆
    */
   handleReset = () => {
+    const { setting } = this.state
+
     let record = {}
     let advanceValues = []
     let searchlist = this.state.searchlist.map(item => {
       item.initval = item.oriInitval
 
+      if (setting.resetContrl === 'clear' && ['text', 'date', 'datemonth', 'dateweek', 'daterange'].includes(item.type)) {
+        item.initval = ''
+      }
+
       if (item.type === 'group') {
         record[item.datefield] = item.initval
         record[item.field] = item.initType

--
Gitblit v1.8.0