From 944730f2794b87aa053f53084f0d082d4af6fd41 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 29 十月 2020 19:03:30 +0800
Subject: [PATCH] 2020-10-29

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

diff --git a/src/menu/stylecontroller/index.jsx b/src/menu/stylecontroller/index.jsx
index c0e8205..43cce2d 100644
--- a/src/menu/stylecontroller/index.jsx
+++ b/src/menu/stylecontroller/index.jsx
@@ -391,7 +391,7 @@
                   </Form.Item>
                 </Col>
               </Panel> : null}
-              {options.includes('background') ? <Panel header="鑳屾櫙" key="background">
+              {options.includes('background') || options.includes('backgroundColor') ? <Panel header="鑳屾櫙" key="background">
                 <Col span={24}>
                   <Form.Item
                     colon={false}
@@ -401,7 +401,7 @@
                     <ColorSketch value={card.backgroundColor || '#ffffff'} onChange={this.changeBackgroundColor} />
                   </Form.Item>
                 </Col>
-                <Col span={24}>
+                {!options.includes('backgroundColor') ? <Col span={24}>
                   <Form.Item
                     colon={false}
                     label={<Icon title="鑳屾櫙鍥剧墖" type="picture" />}
@@ -410,7 +410,7 @@
                     <FileUpload value={bgimages} maxFile={2} fileType="text" onChange={this.imgChange}/>
                     <Input placeholder="" value={backgroundImage} autoComplete="off" onChange={this.changeBackgroundImageInput} />
                   </Form.Item>
-                </Col>
+                </Col> : null}
               </Panel> : null}
               {options.includes('border') ? <Panel header="杈规" key="border">
                 <Col span={24}>

--
Gitblit v1.8.0