From 40436544f55558d2c8d1c14c68cce79546c60dff Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 15 一月 2021 16:59:41 +0800 Subject: [PATCH] 2021-01-15 --- src/mob/controller/index.jsx | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mob/controller/index.jsx b/src/mob/controller/index.jsx index a10efeb..603c459 100644 --- a/src/mob/controller/index.jsx +++ b/src/mob/controller/index.jsx @@ -258,7 +258,7 @@ } render () { - const { card, fontColor, backgroundColor, backgroundImage, bgimages, marginTop, marginTopVal, marginBottom, marginBottomVal } = this.state + const { card, backgroundImage, bgimages, marginTop, marginTopVal, marginBottom, marginBottomVal } = this.state const formItemLayout = { labelCol: { xs: { span: 24 }, @@ -315,8 +315,7 @@ label={<Icon title="瀛椾綋棰滆壊" type="font-colors" />} labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} } > - <ColorSketch color={card.color || '#000000'} changeColor={this.changeFontColor} /> - <Input value={fontColor} onChange={this.changeFontColorInput} /> + <ColorSketch value={card.color || '#000000'} onChange={this.changeFontColor} /> </Form.Item> </Col> <Col span={24}> @@ -367,8 +366,7 @@ label={<Icon title="鑳屾櫙棰滆壊" type="bg-colors" />} labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} } > - <ColorSketch color={card.backgroundColor || '#ffffff'} changeColor={this.changeBackgroundColor} /> - <Input value={backgroundColor} onChange={this.changeBackgroundColorInput} /> + <ColorSketch value={card.backgroundColor || '#ffffff'} onChange={this.changeBackgroundColor} /> </Form.Item> </Col> <Col span={24}> @@ -377,7 +375,7 @@ label={<Icon title="鑳屾櫙鍥剧墖" type="picture" />} labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} } > - <FileUpload value={bgimages} maxFile={2} fileType="text" onChange={this.imgChange}/> + <FileUpload accept=".jpg,.png,.gif,.svg" value={bgimages} maxFile={2} fileType="text" onChange={this.imgChange}/> <Input placeholder="" value={backgroundImage} autoComplete="off" onBlur={this.submitBackgroundImage} onPressEnter={this.submitBackgroundImage} onChange={this.changeBackgroundImageInput} /> </Form.Item> </Col> -- Gitblit v1.8.0