From a06655e10f4242c350a3450c6c21e77f33302e2e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 27 十一月 2020 22:09:04 +0800
Subject: [PATCH] 2020-11-27

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

diff --git a/src/menu/stylecontroller/styleInput/index.jsx b/src/menu/stylecontroller/styleInput/index.jsx
index a7d3df9..7426b2d 100644
--- a/src/menu/stylecontroller/styleInput/index.jsx
+++ b/src/menu/stylecontroller/styleInput/index.jsx
@@ -139,9 +139,11 @@
     return (
       <div className="style-input-box">
         <Input value={value} addonAfter={
+          options.length > 1 ?
           <Select value={unit} onChange={this.changeUnit}>
             {options.map(item => <Option key={item} value={item}>{item}</Option>)}
-          </Select>
+          </Select> :
+          <div className="single-unit">{unit}</div>
         } onChange={this.changeValue}/>
       </div>
     )

--
Gitblit v1.8.0