From 0a0372f158b7a4c786c67be6a6e3c84ff7608904 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 07 一月 2021 10:35:10 +0800
Subject: [PATCH] 2021-01-07

---
 src/menu/stylecombcontroller/index.jsx |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/menu/stylecombcontroller/index.jsx b/src/menu/stylecombcontroller/index.jsx
index eaa7e89..e8d6781 100644
--- a/src/menu/stylecombcontroller/index.jsx
+++ b/src/menu/stylecombcontroller/index.jsx
@@ -48,7 +48,8 @@
 
   closeStyle = () => {
     this.setState({
-      visible: false
+      visible: false,
+      options: []
     })
   }
 
@@ -303,7 +304,7 @@
                     label={<Icon title="瀛椾綋棰滆壊" type="font-colors" />}
                     labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} }
                   >
-                    <ColorSketch value={''} onChange={this.changeFontColor} />
+                    <ColorSketch onChange={this.changeFontColor} />
                   </Form.Item>
                 </Col>
                 <Col span={24}>
@@ -354,7 +355,7 @@
                     label={<Icon title="鑳屾櫙棰滆壊" type="bg-colors" />}
                     labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} }
                   >
-                    <ColorSketch value={''} onChange={this.changeBackgroundColor} />
+                    <ColorSketch onChange={this.changeBackgroundColor} />
                   </Form.Item>
                 </Col>
               </Panel> : null}
@@ -431,11 +432,11 @@
                     label={<Icon title="杈规棰滆壊" type="bg-colors" />}
                     labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} }
                   >
-                    {borposition === 'outer' ? <ColorSketch defaultValue={'transparent'} onChange={this.changeBorderColor} /> : null}
-                    {borposition === 'left' ? <ColorSketch defaultValue={'transparent'} onChange={this.changeBorderColor} /> : null}
-                    {borposition === 'right' ? <ColorSketch defaultValue={'transparent'} onChange={this.changeBorderColor} /> : null}
-                    {borposition === 'top' ? <ColorSketch defaultValue={'transparent'} onChange={this.changeBorderColor} /> : null}
-                    {borposition === 'bottom' ? <ColorSketch defaultValue={'transparent'} onChange={this.changeBorderColor} /> : null}
+                    {borposition === 'outer' ? <ColorSketch onChange={this.changeBorderColor} /> : null}
+                    {borposition === 'left' ? <ColorSketch onChange={this.changeBorderColor} /> : null}
+                    {borposition === 'right' ? <ColorSketch onChange={this.changeBorderColor} /> : null}
+                    {borposition === 'top' ? <ColorSketch onChange={this.changeBorderColor} /> : null}
+                    {borposition === 'bottom' ? <ColorSketch onChange={this.changeBorderColor} /> : null}
                   </Form.Item>
                 </Col>
                 <Col span={24}>
@@ -455,7 +456,7 @@
                     label={<Icon title="闃村奖棰滆壊" type="bg-colors" />}
                     labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} }
                   >
-                    <ColorSketch value={'transparent'} onChange={this.changeShadowColor} />
+                    <ColorSketch onChange={this.changeShadowColor} />
                   </Form.Item>
                 </Col>
               </Panel> : null}

--
Gitblit v1.8.0