0.1.4 • Published 2 years ago

w-pro-table v0.1.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@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

其他备注(可选)

作者,联系方式,备注等