From 6257816acce548a113081578140058cd99e83160 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 05 十月 2020 10:01:16 +0800
Subject: [PATCH] 2020-10-05

---
 src/menu/stylecontroller/styleInput/index.jsx |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/menu/stylecontroller/styleInput/index.jsx b/src/menu/stylecontroller/styleInput/index.jsx
index d2b2523..3bf883c 100644
--- a/src/menu/stylecontroller/styleInput/index.jsx
+++ b/src/menu/stylecontroller/styleInput/index.jsx
@@ -35,6 +35,10 @@
       _options = options
     }
 
+    if (val === 'auto') {
+      val = ''
+    }
+
     let _val = parseInt(val)
 
     if (isNaN(_val)) {
@@ -106,7 +110,7 @@
             <Menu.Item key={option} style={{width: width}} onClick={() => this.submitValue(`${parseVal}${option}`)}>{parseVal} {option}</Menu.Item>
           ))}
         </Menu> : null
-      } trigger="click">
+      } trigger="hover">
         <div ref={dom => { this.input = dom }} style={{lineHeight: '32px'}}>
           <Input value={value} onChange={this.changeValue}/>
         </div>

--
Gitblit v1.8.0