| | |
| | | { subType: 'text', text: '文本', type: 'col', $init: true }, |
| | | { subType: 'number', text: '数字', type: 'col', $init: true }, |
| | | { subType: 'picture', text: '图片', type: 'col', $init: true }, |
| | | { subType: 'video', text: '视频', type: 'col', $init: true }, |
| | | { subType: 'link', text: '链接', type: 'col', $init: true }, |
| | | { subType: 'textarea', text: '多行文本', type: 'col', $init: true }, |
| | | { subType: 'custom', text: '自定义列', type: 'col', $init: true }, |
| | |
| | | |
| | | return ( |
| | | <div className="mk-source-box"> |
| | | <div className="tip">注:当拖动类型不受支持时会被重置。</div> |
| | | <div className="tip">注:当元素类型不受支持时会被重置。</div> |
| | | {options.map((item, index) => (<div className="mk-class" span={item.span} key={index}> |
| | | <div className="title">{item.title}</div> |
| | | {item.children.map(cell => <SourceWrap key={cell.value || cell.subType} item={cell}/>)} |