0.1.37 • Published 5 years ago
@sula/table v0.1.37
哪些属性是响应式的
- columns.filter
- columns.sorter
- pagination
- rowSelection.selectedRowKeys
tableCore schema
const tableSchema = {
dataSource: [{name: 'salad'}], // 静态dataSource,一般不会使用
title: [ // 默认在右侧
{
type: 'link',
text: 'Invite John Brown', // 不写text直接用data[key]展示
link: '/task/${to}', // https://cc/bb
componentProps: {
style: {marginRight: 16},
},
className: 'sd-m-r-xs',
action: {
confirm: '是否要跳转?',
}
},
{...}
], // 或者 {left: [{...}], right: [{...}]}
remoteDataSource: {
// 待sula-plugin-fetch确定
}
}
tableCore实例API
componentDidMount() {
lodash.assign(this.tableCore, {
pagging,
setProps,
getProps,
getControls,
setControls,
forceUpdate,
})
}
paging
强制table进行一次分页动作
- 格式:(pagination, filters, sorter) => void
setProps
- 格式:(key: 支持类似字符串路径, value) => void
- 使用:setProps('column0.title', 'Name');
getProps
- 格式:(key) => any
🌲controls
controls为tableCore受控管理的antd table props
setControls
- 格式:(key: 支持类似字符串路径, value) => void
- 使用:setControls('selectedRowKeys', 'abc');
getControls
- 格式:(key) => any
forceUpdate
强制tableCore内部执行一次render
- 格式:(callback: Function) => void
0.1.37
5 years ago
0.1.36
5 years ago
0.1.35
5 years ago
0.1.34
5 years ago
0.1.33
5 years ago
0.1.31
5 years ago
0.1.32
5 years ago
0.1.30
5 years ago
0.1.29
5 years ago
0.1.27
5 years ago
0.1.28
5 years ago
0.1.26
5 years ago
0.1.25
5 years ago
0.1.24
5 years ago
0.1.23
5 years ago
0.1.23-0
5 years ago
0.1.22
5 years ago
0.1.21
5 years ago
0.1.20
5 years ago
0.1.19
5 years ago
0.1.18
5 years ago
0.1.18-0
5 years ago
0.1.17
5 years ago
0.1.16
5 years ago
0.1.16-0
5 years ago
0.1.15
5 years ago
0.1.14
6 years ago
0.1.13
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0-alpha.1
6 years ago
0.1.0-alpha.0
6 years ago
0.1.0
6 years ago