| | |
| | | |
| | | const NormalForm = asyncIconComponent(() => import('@/components/normalform')) |
| | | const CardCellComponent = asyncComponent(() => import('../cardcellcomponent')) |
| | | const CardMenus = asyncComponent(() => import('./menus-wrap')) |
| | | const CopyComponent = asyncIconComponent(() => import('@/menu/components/share/copycomponent')) |
| | | const PasteController = asyncIconComponent(() => import('@/components/paste')) |
| | | |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | return getSettingForm(card.setting, cards.subtype === 'propcard', buttons) |
| | | return getSettingForm(card.setting, cards.subtype, buttons, card.$cardType, cards.columns) |
| | | } |
| | | |
| | | updateSetting = (res) => { |
| | |
| | | } |
| | | } |
| | | |
| | | updateMenus = (res) => { |
| | | const { card } = this.state |
| | | |
| | | this.setState({ |
| | | card: {...card, menus: res} |
| | | }) |
| | | |
| | | this.props.updateElement({...card, menus: res}) |
| | | } |
| | | |
| | | render() { |
| | | const { cards, offset } = this.props |
| | | const { card, elements, side } = this.state |
| | |
| | | <NormalForm title="卡片设置" width={800} update={this.updateSetting} getForms={this.getSettingForms}> |
| | | <Icon type="edit" className="edit" title="编辑"/> |
| | | </NormalForm> |
| | | {cards.subtype === 'datacard' && card.$cardType !== 'extendCard' && card.setting.click === 'menus' ? |
| | | <CardMenus card={card} updateMenus={this.updateMenus}/> : null} |
| | | <CopyComponent type="cardcell" card={card}/> |
| | | <PasteController options={['action', 'customCardElement']} updateConfig={this.paste} /> |
| | | <Icon className="style" title="调整样式" onClick={this.changeStyle} type="font-colors" /> |