@egova/components
Version:
components
28 lines (27 loc) • 725 B
TypeScript
/**
* tree-selector 下拉树
* 传入的参数有:
* @value 当前选择的树节点id,可使用v-model双向绑定
* @data 下拉树所需的数据
* {
* title!: String,
* id!: String,
* children?: []
* }
* @placeholder 提示信息
*
* TODO: 后续支持多选操作
*/
import { Component } from "@egova/flagwind-web";
import "./index.scss";
export default class TreeSelect extends Component {
protected visible: boolean;
disabled: boolean;
data: Array<any>;
value: string;
placeholder: string;
get current(): any;
set current(current: any);
getTitleById(arr: Array<any>, id: string): string;
onSelect(arr: Array<any>, node: any): void;
}