@jiaozhiye/qm-design-vue
Version:
A Component Library for Vue3.0
92 lines (91 loc) • 4.29 kB
TypeScript
declare const SearchTree: import("../_utils/types").SFCWithInstall<import("vue").DefineComponent<{
disabled: boolean;
draggable: boolean;
multiple: boolean;
autoFocus: boolean;
filterable: boolean;
checkStrictly: boolean;
asyncLoad: boolean;
checkStrategy: "SHOW_ALL" | "SHOW_PARENT" | "SHOW_CHILD";
defaultExpandAll: boolean;
defaultExpandedKeys: import("./src/props").NodeKey[];
defaultSelectedKeys: import("./src/props").NodeKey[];
showSearchBar: boolean;
showCollapse: boolean;
size?: import("../_utils/types").ComponentSize | undefined;
placeholder?: string | undefined;
class?: string | import("../_utils/types").Arrayable<Record<string, boolean>> | undefined;
style?: import("../_utils/types").StyleValue | undefined;
modelValue?: import("./src/props").NodeKey[] | undefined;
dataSource?: import("../table/src/table/types").IRecord<any>[] | undefined;
fetch?: import("../table/src/table/types").IFetch | undefined;
fieldsDefine?: {
textKey?: string | undefined;
valueKey?: string | undefined;
children?: string | undefined;
} | undefined;
titleRender?: ((row: import("../table/src/table/types").IRecord<any>, node: any) => import("../_utils/types").JSXElement) | undefined;
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:modelValue": (val: import("./src/props").NodeKey[]) => boolean;
selectChange: (record: import("../table/src/table/types").IRecord<any>) => boolean;
checkChange: (records: import("../table/src/table/types").IRecord<any>[]) => boolean;
dropChange: (...rest: any[]) => boolean;
dragStart: (...rest: any[]) => boolean;
expand: (expandKeys: import("./src/props").NodeKey[], option: {
expanded: boolean;
node: any;
}) => boolean;
}, string, import("vue").PublicProps, Readonly<{
disabled: boolean;
draggable: boolean;
multiple: boolean;
autoFocus: boolean;
filterable: boolean;
checkStrictly: boolean;
asyncLoad: boolean;
checkStrategy: "SHOW_ALL" | "SHOW_PARENT" | "SHOW_CHILD";
defaultExpandAll: boolean;
defaultExpandedKeys: import("./src/props").NodeKey[];
defaultSelectedKeys: import("./src/props").NodeKey[];
showSearchBar: boolean;
showCollapse: boolean;
size?: import("../_utils/types").ComponentSize | undefined;
placeholder?: string | undefined;
class?: string | import("../_utils/types").Arrayable<Record<string, boolean>> | undefined;
style?: import("../_utils/types").StyleValue | undefined;
modelValue?: import("./src/props").NodeKey[] | undefined;
dataSource?: import("../table/src/table/types").IRecord<any>[] | undefined;
fetch?: import("../table/src/table/types").IFetch | undefined;
fieldsDefine?: {
textKey?: string | undefined;
valueKey?: string | undefined;
children?: string | undefined;
} | undefined;
titleRender?: ((row: import("../table/src/table/types").IRecord<any>, node: any) => import("../_utils/types").JSXElement) | undefined;
}> & Readonly<{
onExpand?: ((expandKeys: import("./src/props").NodeKey[], option: {
expanded: boolean;
node: any;
}) => any) | undefined;
"onUpdate:modelValue"?: ((val: import("./src/props").NodeKey[]) => any) | undefined;
onSelectChange?: ((record: import("../table/src/table/types").IRecord<any>) => any) | undefined;
onCheckChange?: ((records: import("../table/src/table/types").IRecord<any>[]) => any) | undefined;
onDropChange?: ((...args: any[]) => any) | undefined;
onDragStart?: ((...args: any[]) => any) | undefined;
}>, {
disabled: boolean;
draggable: boolean;
multiple: boolean;
autoFocus: boolean;
filterable: boolean;
checkStrictly: boolean;
asyncLoad: boolean;
checkStrategy: "SHOW_ALL" | "SHOW_PARENT" | "SHOW_CHILD";
defaultExpandAll: boolean;
defaultExpandedKeys: import("./src/props").NodeKey[];
defaultSelectedKeys: import("./src/props").NodeKey[];
showSearchBar: boolean;
showCollapse: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default SearchTree;
export type { SearchTreeProps } from './src/props';