update the master branch to the latest

This commit is contained in:
梁灏 2019-08-27 09:42:40 +08:00
parent 67d534df27
commit 23a0ba9831
611 changed files with 122648 additions and 0 deletions

118
types/tree.d.ts vendored Normal file
View file

@ -0,0 +1,118 @@
// Type definitions for iview 3.3.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode, CreateElement } from "vue";
export declare class Tree extends Vue {
/**
* tree
*/
data?: TreeChild[];
/**
*
* @default false
*/
multiple?: boolean;
/**
*
* @default false
*/
"show-checkbox"?: boolean;
/**
*
* @default
*/
"empty-text"?: string;
/**
*
*/
"load-data"?: () => void;
/**
*
* @param h Render函数
*/
render?: (h?: CreateElement) => void;
/**
*
* @default children
*/
"children-key"?: string;
/**
*
* @default false
*/
"check-strictly"?: boolean;
/**
* show-checkbox select check
* @default false
*/
"check-directly"?: boolean;
/**
*
* @default
*/
$emit(eventName: "on-select-change", value: TreeChild[]): this;
/**
*
* @default
*/
$emit(eventName: "on-check-change", value: TreeChild[]): this;
/**
*
* @default
*/
$emit(eventName: "on-toggle-expand", value: TreeChild): this;
/**
*
*/
getCheckedNodes(): any[];
/**
*
*/
getSelectedNodes(): any[];
/**
*
*/
getCheckedAndIndeterminateNodes(): any[];
}
export declare class TreeChild extends Vue {
/**
*
*/
title?: string;
/**
*
* @default false
*/
expand?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
* checkbox
* @default false
*/
disableCheckbox?: boolean;
/**
*
* @default false
*/
selected?: boolean;
/**
* ()
* @default false
*/
checked?: boolean;
/**
*
*/
children?: TreeChild[];
/**
*
*/
render(): void;
}