From 6ed64ed071c75901ed8848131bfefa51c5c27fce Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 24 九月 2020 23:51:51 +0800
Subject: [PATCH] 2020-09-24

---
 src/menu/bgcontroller/index.jsx |   19 +------------------
 1 files changed, 1 insertions(+), 18 deletions(-)

diff --git a/src/menu/bgcontroller/index.jsx b/src/menu/bgcontroller/index.jsx
index c3d6591..8c92d37 100644
--- a/src/menu/bgcontroller/index.jsx
+++ b/src/menu/bgcontroller/index.jsx
@@ -60,22 +60,6 @@
   }
 
   /**
-   * @description 淇敼瀛椾綋棰滆壊 锛屾墜鍔ㄨ緭鍏�
-   */
-  changeBackgroundColorInput = (e) => {
-    let val = e.target.value
-    this.setState({
-      backgroundColor: val
-    })
-
-    let config = fromJS(this.props.config).toJS()
-    config.style.backgroundColor = val
-
-    this.props.updateConfig(config)
-    // if (/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$|^[rR][gG][Bb][Aa]?[(]([\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?),){2}[\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?),?[\s]*(0\.\d{1,2}|1|0)?[)]{1}$/.test(val)) {}
-  }
-
-  /**
    * @description 鎵嬪姩淇敼璺緞
    */
   changeImage = (e) => {
@@ -129,8 +113,7 @@
       <div className="menu-background-controller">
         <Form {...formItemLayout}>
           <Form.Item className="color-control" colon={false} label="棰滆壊">
-            <ColorSketch color={backgroundColor} changeColor={this.changeBackgroundColor} />
-            <Input value={backgroundColor} onChange={this.changeBackgroundColorInput} />
+            <ColorSketch value={backgroundColor} onChange={this.changeBackgroundColor} />
           </Form.Item>
           <Form.Item colon={false} label="鍥剧墖">
             <FileUpload value={bgimages} maxFile={2} fileType="text" onChange={this.imgChange}/>

--
Gitblit v1.8.0