Commit 0f5c1b3640339cb56e40f5bc46875b7a74b67cfd
Committed by
GitHub
Merge pull request #5054 from yangdan8/2.0_添加3.2.0增加的api
添加3.2.0增加的api
Showing
1 changed file
with
13 additions
and
4 deletions
Show diff stats
types/tree.d.ts
... | ... | @@ -39,13 +39,18 @@ export declare interface Tree extends Vue { |
39 | 39 | */ |
40 | 40 | "children-key"?: string; |
41 | 41 | /** |
42 | + * 在显示复选框的情况下,是否严格的遵循父子不互相关联的做法 | |
43 | + * @default false | |
44 | + */ | |
45 | + "check-strictly"?: boolean; | |
46 | + /** | |
42 | 47 | * 点击树节点时触发 |
43 | - * @default 当前已选中的节点数组 | |
48 | + * @default 当前已勾选节点的数组、当前项 | |
44 | 49 | */ |
45 | 50 | $emit(eventName: "on-select-change", value: TreeChild[]): this; |
46 | 51 | /** |
47 | 52 | * 点击复选框时触发 |
48 | - * @default 当前已勾选节点的数组 | |
53 | + * @default 当前已勾选节点的数组、当前项 | |
49 | 54 | */ |
50 | 55 | $emit(eventName: "on-check-change", value: TreeChild[]): this; |
51 | 56 | /** |
... | ... | @@ -56,11 +61,15 @@ export declare interface Tree extends Vue { |
56 | 61 | /** |
57 | 62 | * 获取被勾选的节点 |
58 | 63 | */ |
59 | - getCheckedNodes(): void; | |
64 | + getCheckedNodes(): any[]; | |
60 | 65 | /** |
61 | 66 | * 获取被选中的节点 |
62 | 67 | */ |
63 | - getSelectedNodes(): void; | |
68 | + getSelectedNodes(): any[]; | |
69 | + /** | |
70 | + * 获取选中及半选节点 | |
71 | + */ | |
72 | + getCheckedAndIndeterminateNodes(): any[]; | |
64 | 73 | } |
65 | 74 | |
66 | 75 | export declare interface TreeChild extends Vue { | ... | ... |