@hbtv/dnd-table
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@hbtv/dnd-table

使用方法

import { DndTable } from './';

const columns = [
    { title:'ID', dataIndex:'id' },
    { title:'标签', dataIndex:'label' },
    { title:'键名', dataIndex:'value' },
];

const dataSource = [
    { id:'1', label:'标题', 'value':'title' },
    { id:'2', label:'描述', 'value':'description' },
    { id:'3', label:'内容', 'value':'content' },
];

<DndTable rowKey="id" columns={columns} dataSource={dataSource} />

MIT

/@hbtv/dnd-table/

    Package Sidebar

    Install

    npm i @hbtv/dnd-table

    Weekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    21.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • gegang
    • zix2002
    • yugong
    • dokey
    • gogoing
    • xuezhidp
    • aa719032411