| | |
| | | let _card = { |
| | | uuid: card.uuid, |
| | | type: card.type, |
| | | format: 'object', // 组件属性 - 数据格式 |
| | | format: 'array', // 组件属性 - 数据格式 |
| | | pageable: false, // 组件属性 - 是否可分页 |
| | | switchable: false, // 组件属性 - 数据是否可切换 |
| | | width: card.width || 24, |
| | |
| | | } else { |
| | | let _card = fromJS(card).toJS() |
| | | |
| | | _card.format = 'array' |
| | | if (_card.wrap.firstTr === 'light') { |
| | | _card.wrap.tbStyle = 'th-light' |
| | | delete _card.wrap.firstTr |
| | |
| | | card.name = card.wrap.name |
| | | |
| | | card.errors = [] |
| | | card.$tables = [] |
| | | |
| | | if (card.wrap.datatype !== 'static') { |
| | | if (card.wrap.datatype === 'dynamic') { |
| | | card.$c_ds = true |
| | | card.errors = checkComponent(card) |
| | | |
| | |
| | | const { card } = this.state |
| | | |
| | | if (res.tbStyle) { |
| | | if (res.tbStyle.includes('no-border') && (res.tbStyle.includes('bold-border') || res.tbStyle.includes('deep-border'))) { |
| | | res.tbStyle = res.tbStyle.filter(item => item !== 'no-border') |
| | | } |
| | | |
| | | if (res.splitLine === 'true') { |
| | | res.tbStyle.push('deep-split') |
| | | } |
| | | |
| | | res.tbStyle = res.tbStyle.join(' ') |
| | | } |
| | | |
| | | delete res.splitLine |
| | | |
| | | let _card = {...card, wrap: res} |
| | | |
| | |
| | | <NormalHeader hideSearch="true" config={card} updateComponent={this.updateComponent}/> |
| | | <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ |
| | | <div className="mk-popover-control"> |
| | | <NormalForm title="富文本设置" width={850} update={this.updateWrap} getForms={this.getWrapForms}> |
| | | <NormalForm title="富文本设置" width={900} update={this.updateWrap} getForms={this.getWrapForms}> |
| | | <EditOutlined style={{color: '#1890ff'}} title="编辑"/> |
| | | </NormalForm> |
| | | <CopyComponent type="editor" card={card}/> |
| | |
| | | } trigger="hover"> |
| | | <ToolOutlined /> |
| | | </Popover> |
| | | <BraftContent |
| | | value={card.wrap.datatype !== 'static' ? '<p class="empty-content">富文本</p>' : card.html} |
| | | encryption="false" |
| | | /> |
| | | <BraftContent value={card.wrap.datatype !== 'static' ? '<p class="empty-content">富文本</p>' : card.html}/> |
| | | <div className="component-name"> |
| | | <div className="center"> |
| | | <div className="title">{card.name}</div> |