import type { EmitFn } from 'element-ultra/utils'; import type { ExtractPropTypes } from 'vue'; import type { TreeNode } from 'element-ultra/components/tree'; export declare const treeSelectProps: { readonly modelValue: { readonly type: PropType; }; readonly multiple: { readonly type: BooleanConstructor; readonly default: false; }; readonly size: { readonly type: PropType<"default" | "small" | "large">; }; /** 占位文本 */ readonly placeholder: { readonly type: StringConstructor; readonly default: "请选择"; }; /** 是否禁用 */ readonly disabled: { readonly type: BooleanConstructor; readonly default: undefined; }; readonly tagHit: { readonly type: BooleanConstructor; readonly default: false; }; /** 选择的值的字段 */ readonly valueKey: { readonly type: StringConstructor; readonly default: "value"; }; /** 选择的文本的字段 */ readonly labelKey: { readonly type: StringConstructor; readonly default: "label"; }; /** 选项中表示子元素的字段 */ readonly childrenKey: { readonly type: StringConstructor; readonly default: "children"; }; /** 多选数量限制 */ readonly multipleLimit: { readonly type: NumberConstructor; }; /** 数据选项 */ readonly data: { readonly type: PropType; readonly default: () => never[]; }; /** 是否严格选择 */ readonly checkStrictly: { readonly type: BooleanConstructor; readonly default: false; }; /** 树的缩进 */ readonly treeIndent: { readonly type: NumberConstructor; readonly default: 16; }; /** 树的图标 */ readonly treeIcon: { readonly type: StringConstructor; }; /** 选项为空时显示的文本 */ readonly emptyText: { readonly type: StringConstructor; }; /** 高亮选中的节点 */ readonly highlightCurrent: { readonly type: BooleanConstructor; readonly default: true; }; /** 可选择配置 */ readonly selectable: { readonly type: PropType<(node: TreeNode) => boolean>; }; /** 回显的文本, 即选项中没有与modelValue匹配的数据时所显示的文本 */ readonly text: { readonly type: StringConstructor; }; /** 回落的文本的字段, 即选项中没有与modelValue匹配的数据时所显示的文本 */ readonly textField: { readonly type: StringConstructor; }; readonly label: { type: StringConstructor; }; readonly field: { type: StringConstructor; }; readonly tips: { type: StringConstructor; }; readonly span: { type: PropType; }; readonly required: { type: BooleanConstructor; }; }; export declare const treeSelectEmits: { 'update:modelValue': (value: string | number | (string | number)[], label: string | string[], item: Record | undefined | Record[]) => boolean; 'update:text': (text: string | string[]) => boolean; }; export type TreeSelectProps = ExtractPropTypes; export type TreeSelectEmits = EmitFn;