From b4e3f033de13167a9346cc8e976e04bc4d368d1d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 24 五月 2022 12:33:38 +0800
Subject: [PATCH] 2022-05-24

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

diff --git a/src/menu/stylecontroller/styleInput/index.jsx b/src/menu/stylecontroller/styleInput/index.jsx
index 6d9dee9..8eea049 100644
--- a/src/menu/stylecontroller/styleInput/index.jsx
+++ b/src/menu/stylecontroller/styleInput/index.jsx
@@ -106,7 +106,7 @@
     const { unit } = this.state
     let val = e.target.value
 
-    if (/\d+\.$|^-$/.test(val)) {
+    if (/\d+\.$|^-$|^-0$/.test(val)) {
       this.setState({
         value: val
       })

--
Gitblit v1.8.0