1.2.1 • Published 6 years ago

yt-table v1.2.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

l am a table component;

Image text

usage

npm install yt-table --save

//or 

yarn add yt-table

code

<Table
    // old had abandon
    // rowKey={record => record.id}
    getRowKey={record => record.id}
    dataSource={dataSource}
    columns={columns}
    onCellChange={this.handleCellChange}
/>

examples

git clone https://github.com/yt1520406335/yt-table.git

cd examples/test/

yarn install
// or
npm install

// l use 'parcel' as Packaging tools

parcel index.html

open http://localhost:1234

feature

you can use tab to switch focus

column set type 'input',

fatherTitle

{
    title: 'sex',
    key: 'sex',
    type: 'select',
    fatherTitle: {
        title: 'base info',
    },
    canFocus: true,
},
{
    title: 'height',
    key: 'height',
    type: 'input',
    fatherTitle: {
        title: 'base info',
    },
    canFocus: true,
},

dragheader

you can use set draggable={true} or just draggable for drag and drop to table cell size

Reference resources

issue

tab切换到下一个输入框
作为组件 在document监听事件 感觉不太好啊

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago