| | |
| | | } |
| | | |
| | | this.callback = callback |
| | | let card = fromJS(style).toJS() |
| | | let borposition = 'outer' |
| | | |
| | | if (!card.borderWidth) { |
| | | if (card.borderLeftWidth) { |
| | | borposition = 'left' |
| | | } else if (card.borderRightWidth) { |
| | | borposition = 'right' |
| | | } else if (card.borderTopWidth) { |
| | | borposition = 'top' |
| | | } else if (card.borderBottomWidth) { |
| | | borposition = 'bottom' |
| | | } |
| | | } |
| | | |
| | | this.setState({ |
| | | visible: true, |
| | | fonts: fonts, |
| | | card: fromJS(style).toJS(), |
| | | card: card, |
| | | options: options, |
| | | borposition: 'outer', |
| | | borposition: borposition, |
| | | backgroundImage |
| | | }) |
| | | window.GLOB.styling = true |
| | |
| | | label={<BorderOutlined title="边框位置"/>} |
| | | labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} } |
| | | > |
| | | <Radio.Group className="border-position" defaultValue={'outer'} onChange={(e) => this.setState({borposition: e.target.value})}> |
| | | <Radio.Group className="border-position" defaultValue={borposition} onChange={(e) => this.setState({borposition: e.target.value})}> |
| | | <Radio value="outer"><BorderOuterOutlined title="外边框"/></Radio> |
| | | <Radio value="left"><BorderLeftOutlined title="左边框"/></Radio> |
| | | <Radio value="right"><BorderRightOutlined title="右边框"/></Radio> |