| | |
| | | editable: true, |
| | | unique: true, |
| | | required: false, |
| | | width: '35%' |
| | | width: '25%' |
| | | }, |
| | | { |
| | | title: '颜色', |
| | |
| | | inputType: 'color', |
| | | editable: true, |
| | | required: true, |
| | | width: '35%' |
| | | width: '25%', |
| | | render: (text, record) => <span style={{display: 'inline-block', width: '40px', height: '25px', background: text}}></span> |
| | | }, |
| | | { |
| | | title: '图标', |
| | |
| | | inputType: 'icon', |
| | | editable: true, |
| | | required: false, |
| | | width: '35%', |
| | | width: '25%', |
| | | render: (text, record) => record.icon ? <MkIcon type={record.icon}/> : '' |
| | | } |
| | | }, |
| | | { |
| | | title: '连接线', |
| | | dataIndex: 'linecolor', |
| | | inputType: 'color', |
| | | editable: true, |
| | | required: false, |
| | | allowClear: true, |
| | | width: '25%', |
| | | render: (text, record) => text ? <span style={{display: 'inline-block', width: '40px', height: '25px', background: text}}></span> : null |
| | | }, |
| | | ] |
| | | } |
| | | |
| | |
| | | return ( |
| | | <div style={{minHeight: '250px'}}> |
| | | <ColumnForm menus={menus} columnChange={this.columnChange}/> |
| | | <p style={{position: 'absolute', fontSize: '12px', transform: 'translate(0px, -20px)'}}>连接线在横向时间轴中有效</p> |
| | | <EditTable actions={['edit', 'move', 'copy', 'del']} type={'timenodes'} data={menus} columns={columns} onChange={this.changeColumns}/> |
| | | </div> |
| | | ) |