| | |
| | | { 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 }, |
| | |
| | | let options = fromJS(this.state.options).toJS() |
| | | |
| | | if (appType === 'mob') { |
| | | options[1].children = options[1].children.filter(item => ['pop', 'prompt', 'exec', 'innerpage', 'funcbutton'].includes(item.value)) |
| | | options[1].children = options[1].children.filter(item => ['pop', 'prompt', 'exec', 'excelOut', 'innerpage', 'funcbutton'].includes(item.value)) |
| | | options[2].children = options[2].children.filter(item => { |
| | | if (item.subType === 'select') { |
| | | item.text = '选择器' |
| | |
| | | |
| | | 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}/>)} |