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

---
 src/menu/components/share/actioncomponent/actionform/index.jsx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx
index 674fafa..a51330d 100644
--- a/src/menu/components/share/actioncomponent/actionform/index.jsx
+++ b/src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -523,12 +523,13 @@
               })(
                 <Select
                   showSearch
+                  allowClear
                   filterOption={(input, option) => option.props.children[2].toLowerCase().indexOf(input.toLowerCase()) >= 0}
                   onChange={(value) => {this.optionChange(item.key, value)}}
                   getPopupContainer={() => document.getElementById('winter')}
                 >
                   {item.options.map((option, index) =>
-                    <Select.Option id={index} key={index} value={option.value || option.field}>
+                    <Select.Option id={index} key={option.value || option.field} value={option.value || option.field}>
                       {item.key === 'icon' && option.value ? <Icon type={option.value} /> : ''} {option.text || option.label}
                     </Select.Option>
                   )}

--
Gitblit v1.8.0