1.2.8 • Published 5 years ago
b-app-table v1.2.8
基于 antd table 的二次封装
#Example
yarn start
#Used
import AppTable from "b-app-table"
...
<AppTable
ref={ref => (this.tableRef = ref)}
page={1}
rowKey="id"
columns={this.columns}
options={this.state.filterOptions}
tableOptions={this.state.tableOptions}
request={this.getList}
/>
指定一个 col 的 sorter,设置其 type 为'sort', options 设置排序参数,此排序为后端排序.
options 是 table 查询条件,对象.
tableOptions 是 table 状态,包括 page,size,sort 等,对象.
getList 是请求 dataSource 的接口函数,接收一个当前查询条件为参数,返回为:
{
list:[],//table data
total:100
}
#Publish
yarn publish
1.2.8
5 years ago
1.2.7
5 years ago
1.2.6
5 years ago
1.2.5
5 years ago
1.2.4
5 years ago
1.2.3
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago