0.1.10 • Published 2 years ago
y-pro-table v0.1.10
@weier/w-pro-table
- 结合vue3 hooks语法(支持vue2 + composition-api)
// 安装
npm i @weier/w-pro-table -S
基础用法
简单说明(可选)
requireCode("~packages/w-pro-table/examples/easy.tsx")
与 Table 结合使用(项目中建议封装为组件)
requireCode("~packages/w-pro-table/examples/table.tsx")
api
{
placement: {
type: String,
default: 'bottom'
},
popoverWidth: {
type: Number as PropType<number>,
default: 600,
},
columns: {
type: Array as PropType<ColumnItem[]>,
default: (() => []),
},
/**
* 列表key
*/
columnKey: {
type: String,
default: 'prop',
},
/**
* 获取初始选中值
*/
getInitialConfig: {
type: Function as PropType<() => (ColumnItemInView[] | Promise<ColumnItemInView[]>)>
},
/**
* 选中列表更新回调
*/
afterCheckedChange: {
type: Function as PropType<(checkedValue: ColumnItemInView[], currentCheckedKey: string, currentCheckedValue: boolean) => void>
},
whenUpdateColumns: Function,
}
TODO
- fetchKey
其他备注(可选)
作者,联系方式,备注等