king
2022-06-28 0472ec32cadb4f9bca6dbab82ac33a42e76f37ed
src/menu/components/card/cardsimplecomponent/node-wrap/menus/index.jsx
@@ -27,7 +27,7 @@
        editable: true,
        unique: true,
        required: false,
        width: '35%'
        width: '25%'
      },
      {
        title: '颜色',
@@ -35,7 +35,8 @@
        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: '图标',
@@ -43,9 +44,19 @@
        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
      },
    ]
  }
@@ -77,6 +88,7 @@
    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>
    )