From a7ddedc4c5d6cda66a83623d9d318437a19d8338 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 25 九月 2021 19:01:48 +0800
Subject: [PATCH] 2021-09-25

---
 src/templates/sharecomponent/fieldscomponent/index.jsx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/fieldscomponent/index.jsx b/src/templates/sharecomponent/fieldscomponent/index.jsx
index 8f2a184..137071c 100644
--- a/src/templates/sharecomponent/fieldscomponent/index.jsx
+++ b/src/templates/sharecomponent/fieldscomponent/index.jsx
@@ -110,9 +110,11 @@
           if (cell.selected && cell.type === item.type) { // 鏁版嵁鏈慨鏀�
             items.push(item)
           } else if (cell.selected) { // 鏁版嵁绫诲瀷淇敼
+            item.initval = ''
             if (cell.type === 'select') {
               item.match = '='
             } else if (cell.type === 'daterange') {
+              item.initval = '[30, 0]'
               item.match = 'between'
             } else {
               cell.type = 'text'
@@ -120,7 +122,6 @@
             }
             
             item.type = cell.type
-            item.initval = ''
             items.push(item)
           }
           columnsMap.delete(item.field.toLowerCase())

--
Gitblit v1.8.0