Merge pull request #5330 from zhuyst/2.0
fix(table.d.ts): Add missing declare
This commit is contained in:
commit
b6885d1726
1 changed files with 15 additions and 0 deletions
15
types/table.d.ts
vendored
15
types/table.d.ts
vendored
|
@ -106,6 +106,11 @@ export declare interface Table extends Vue {
|
||||||
* selection:已选项数据
|
* selection:已选项数据
|
||||||
*/
|
*/
|
||||||
$emit(eventName: "on-select-all", selection: object[]): this;
|
$emit(eventName: "on-select-all", selection: object[]): this;
|
||||||
|
/**
|
||||||
|
* 在多选模式下有效,点击取消全选时触发
|
||||||
|
* selection:已选项数据
|
||||||
|
*/
|
||||||
|
$emit(eventName: "on-select-all-cancel", selection: object[]): this;
|
||||||
/**
|
/**
|
||||||
* 在多选模式下有效,只要选中项发生变化时就会触发
|
* 在多选模式下有效,只要选中项发生变化时就会触发
|
||||||
* selection:已选项数据
|
* selection:已选项数据
|
||||||
|
@ -250,6 +255,16 @@ export declare interface TableColumn {
|
||||||
h?: CreateElement,
|
h?: CreateElement,
|
||||||
params?: TableColumnRenderHeadParams
|
params?: TableColumnRenderHeadParams
|
||||||
) => VNode;
|
) => VNode;
|
||||||
|
/**
|
||||||
|
* type 为 index 时可用,自定义序号
|
||||||
|
* @param row 当前行数据
|
||||||
|
*/
|
||||||
|
indexMethod?: (row?: object) => string | number;
|
||||||
|
/**
|
||||||
|
* 自定义渲染列,使用 slot-scope 写法
|
||||||
|
* 声明 slot 后,就可以在 Table 的 slot 中使用 slot-scope
|
||||||
|
*/
|
||||||
|
slot?: string;
|
||||||
/**
|
/**
|
||||||
* 对应列是否可以排序,如果设置为 custom,则代表用户希望远程排序,
|
* 对应列是否可以排序,如果设置为 custom,则代表用户希望远程排序,
|
||||||
* 需要监听 Table 的 on- sort - change 事件,默认false
|
* 需要监听 Table 的 on- sort - change 事件,默认false
|
||||||
|
|
Loading…
Add table
Reference in a new issue