KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
resize-antd-table
★ 9
Open GitHub ↗
基于antd table实现的简单的列拖拽功能
Download README (.md)
Explore Similar Repositories
react-nonogram
:
React Nonogram
v2rayN
:
v2ray core windows gui for Newbie
react-raise
:
A cli kit for creating react applications
retrofit-converter-msgpack
:
Retrofit Converter for MessagePack / msgpack.org[Retrofit converter (Java)]
jetsetter
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
resize-antd-table
?
Download (.md)
## resize-antd-table 基于antd table实现的简单的列拖拽功能 ## 安装 npm install -S resize-antd-table ## 引入 import Table from 'resize-antd-table'; ## 使用 ``` const columns = [ { dataIndex: 'col1', key: 'col1', title: 'col1', width: 50 }, { dataIndex: 'col2', key: 'col2', title: 'col2' }, { dataIndex: 'col3', key: 'col3', title: 'col3' }, { dataIndex: 'col4', key: 'col4', title: 'col4' }, { dataIndex: 'col5', key: 'col5', title: 'col5' } ]; const dataSource = [ { key: 1, col1: 1, col2: 2, col3: 3, col4: 4, col5: 5 }, { key: 2, col1: 1, col2: 2, col3: 3, col4: 4, col5: 5 } ]; <Table columns={columns} dataSource={dataSource} /> ``` 因为底层是基于antd的使用,只是添加了列调节的功能,因此api使用完成同antd https://ant.design/components/table-cn/