vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
75 lines (74 loc) • 2.32 kB
TypeScript
import { PropType } from 'vue';
import { TreeNodeProps } from './symbol';
declare function handleToggleCheck(able?: boolean): void;
declare function toggleExpanded(able?: boolean): Promise<void>;
declare function handleToggleSelect(able?: boolean): Promise<void>;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {
data: any;
node: TreeNodeProps;
depth: number;
focused: boolean;
lineCount: number;
lineIndexes: number[];
toggleCheck: typeof handleToggleCheck;
toggleExpand: typeof toggleExpanded;
toggleSelect: typeof handleToggleSelect;
}): any;
arrow?(_: {
data: any;
node: TreeNodeProps;
depth: number;
focused: boolean;
}): any;
prefix?(_: {
data: any;
node: TreeNodeProps;
depth: number;
focused: boolean;
}): any;
label?(_: {
data: any;
node: TreeNodeProps;
depth: number;
focused: boolean;
}): any;
suffix?(_: {
data: any;
node: TreeNodeProps;
depth: number;
focused: boolean;
}): any;
};
refs: {
wrapper: HTMLLIElement;
arrowEl: HTMLSpanElement;
};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
node: {
type: PropType<TreeNodeProps>;
default: () => {};
};
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
node: {
type: PropType<TreeNodeProps>;
default: () => {};
};
}>> & Readonly<{}>, {
node: TreeNodeProps;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
wrapper: HTMLLIElement;
arrowEl: HTMLSpanElement;
}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};