| | |
| | | editable: true, |
| | | unique: true, |
| | | required: false, |
| | | width: '25%' |
| | | width: '20%' |
| | | }, |
| | | { |
| | | title: '颜色', |
| | |
| | | inputType: 'color', |
| | | editable: true, |
| | | required: true, |
| | | width: '25%', |
| | | width: '20%', |
| | | render: (text, record) => <span style={{display: 'inline-block', width: '40px', height: '25px', background: text}}></span> |
| | | }, |
| | | { |
| | |
| | | inputType: 'icon', |
| | | editable: true, |
| | | required: false, |
| | | width: '25%', |
| | | render: (text, record) => record.icon ? <MkIcon type={record.icon}/> : '' |
| | | width: '20%', |
| | | render: (text, record) => record.icon ? <MkIcon style={{fontSize: '24px'}} type={record.icon}/> : '' |
| | | }, |
| | | { |
| | | title: '连接线', |
| | |
| | | editable: true, |
| | | required: false, |
| | | allowClear: true, |
| | | width: '25%', |
| | | width: '20%', |
| | | render: (text, record) => text ? <span style={{display: 'inline-block', width: '40px', height: '25px', background: text}}></span> : null |
| | | }, |
| | | { |
| | | title: '备注', |
| | | dataIndex: 'remark', |
| | | inputType: 'input', |
| | | editable: true, |
| | | unique: false, |
| | | required: false, |
| | | width: '20%' |
| | | } |
| | | ] |
| | | } |
| | | |