import { SFCWithInstall } from '@chenms-zj/utils/with-install'; import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue'; import { TreeOption, typeKey } from './src/tree'; declare const Tree: SFCWithInstall; readonly default: () => never[]; }; readonly defaultExpandedKeys: { readonly type: PropType< typeKey[]>; }; readonly keyField: { readonly type: StringConstructor; readonly default: "key"; }; readonly labelField: { readonly type: StringConstructor; readonly default: "label"; }; readonly childrenField: { readonly type: StringConstructor; readonly default: "children"; }; readonly onLoad: { readonly type: PropType<(node: TreeOption) => Promise< TreeOption[]>>; }; readonly selectedKeys: { readonly type: PropType< typeKey[]>; }; readonly selectable: { readonly type: BooleanConstructor; readonly default: true; }; readonly multiple: { readonly type: BooleanConstructor; readonly default: false; }; readonly defaultCheckedKeys: { readonly type: PropType< typeKey[]>; readonly default: () => never[]; }; readonly showCheckbox: { readonly type: BooleanConstructor; readonly default: false; }; }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:selectedKeys": (keys: typeKey[]) => void; }, string, PublicProps, Readonly< ExtractPropTypes<{ readonly data: { readonly type: PropType< TreeOption[]>; readonly default: () => never[]; }; readonly defaultExpandedKeys: { readonly type: PropType< typeKey[]>; }; readonly keyField: { readonly type: StringConstructor; readonly default: "key"; }; readonly labelField: { readonly type: StringConstructor; readonly default: "label"; }; readonly childrenField: { readonly type: StringConstructor; readonly default: "children"; }; readonly onLoad: { readonly type: PropType<(node: TreeOption) => Promise< TreeOption[]>>; }; readonly selectedKeys: { readonly type: PropType< typeKey[]>; }; readonly selectable: { readonly type: BooleanConstructor; readonly default: true; }; readonly multiple: { readonly type: BooleanConstructor; readonly default: false; }; readonly defaultCheckedKeys: { readonly type: PropType< typeKey[]>; readonly default: () => never[]; }; readonly showCheckbox: { readonly type: BooleanConstructor; readonly default: false; }; }>> & Readonly<{ "onUpdate:selectedKeys"?: ((keys: typeKey[]) => any) | undefined; }>, { readonly data: TreeOption[]; readonly showCheckbox: boolean; readonly keyField: string; readonly labelField: string; readonly childrenField: string; readonly selectable: boolean; readonly multiple: boolean; readonly defaultCheckedKeys: typeKey[]; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>>; export default Tree; export * from './src/tree'; declare module "vue" { interface GlobalComponents { "cms-tree": typeof Tree; } }