Merge pull request #5054 from yangdan8/2.0_添加3.2.0增加的api

添加3.2.0增加的api
This commit is contained in:
Aresn 2018-12-21 10:08:12 +08:00 committed by GitHub
commit 0f5c1b3640
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
types/tree.d.ts vendored
View file

@ -38,14 +38,19 @@ export declare interface Tree extends Vue {
* @default children * @default children
*/ */
"children-key"?: string; "children-key"?: string;
/**
*
* @default false
*/
"check-strictly"?: boolean;
/** /**
* *
* @default * @default
*/ */
$emit(eventName: "on-select-change", value: TreeChild[]): this; $emit(eventName: "on-select-change", value: TreeChild[]): this;
/** /**
* *
* @default * @default
*/ */
$emit(eventName: "on-check-change", value: TreeChild[]): this; $emit(eventName: "on-check-change", value: TreeChild[]): this;
/** /**
@ -56,11 +61,15 @@ export declare interface Tree extends Vue {
/** /**
* *
*/ */
getCheckedNodes(): void; getCheckedNodes(): any[];
/** /**
* *
*/ */
getSelectedNodes(): void; getSelectedNodes(): any[];
/**
*
*/
getCheckedAndIndeterminateNodes(): any[];
} }
export declare interface TreeChild extends Vue { export declare interface TreeChild extends Vue {