vue-amazing-ui
Version:
An Amazing Vue3 UI Components Library, Using TypeScript.
78 lines (77 loc) • 2.36 kB
TypeScript
import { CSSProperties, VNode } from 'vue';
export interface Item {
key?: string | number;
tab?: string;
icon?: VNode;
content?: string;
disabled?: boolean;
}
export interface Props {
items?: Item[];
prefix?: string;
suffix?: string;
animated?: boolean;
centered?: boolean;
size?: 'small' | 'middle' | 'large';
type?: 'line' | 'card';
tabGutter?: number;
tabStyle?: CSSProperties;
tabPosition?: 'top' | 'right' | 'bottom' | 'left';
contentStyle?: CSSProperties;
activeKey?: string | number;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
prefix?(_: {}): any;
tab?(_: {
item: Item;
tab: string | undefined;
key: string | number;
}): any;
suffix?(_: {}): any;
content?(_: {
item: Item;
content: string | undefined;
key: string | number;
}): any;
};
refs: {
wrapRef: HTMLDivElement;
navRef: HTMLDivElement;
tabsRef: HTMLDivElement[];
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
change: (...args: any[]) => void;
"update:activeKey": (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:activeKey"?: ((...args: any[]) => any) | undefined;
}>, {
size: "small" | "middle" | "large";
type: "line" | "card";
contentStyle: CSSProperties;
animated: boolean;
items: Item[];
activeKey: string | number;
prefix: string;
suffix: string;
centered: boolean;
tabGutter: number;
tabStyle: CSSProperties;
tabPosition: "top" | "right" | "bottom" | "left";
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
wrapRef: HTMLDivElement;
navRef: HTMLDivElement;
tabsRef: HTMLDivElement[];
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};