@jiaozhiye/qm-design-vue
Version:
A Component Library for Vue3.0
55 lines (54 loc) • 2.78 kB
TypeScript
declare const Tabs: import("../_utils/types").SFCWithInstall<import("vue").DefineComponent<{
type: "" | "card" | "border-card";
editable: boolean;
stretch: boolean;
tabPosition: "top" | "bottom" | "left" | "right";
lazyLoad: boolean;
closable: boolean;
addable: boolean;
beforeLeave: (newName: import("element-plus").TabPaneName, oldName: import("element-plus").TabPaneName) => boolean | void | Promise<boolean | void>;
size?: import("../_utils/types").ComponentSize | undefined;
authConfig?: {
fieldList?: import("../_utils/types").IAuth[] | undefined;
} | undefined;
class?: string | import("../_utils/types").Arrayable<Record<string, boolean>> | undefined;
modelValue?: string | number | undefined;
tabBarExtraContent?: string | import("../_utils/types").JSXElement | undefined;
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:modelValue": (value: string | number) => boolean;
tabClick: (ctx: any, ev: MouseEvent) => boolean;
tabChange: (name: string) => boolean;
edit: (name: string, action: "add" | "remove") => boolean;
}, string, import("vue").PublicProps, Readonly<{
type: "" | "card" | "border-card";
editable: boolean;
stretch: boolean;
tabPosition: "top" | "bottom" | "left" | "right";
lazyLoad: boolean;
closable: boolean;
addable: boolean;
beforeLeave: (newName: import("element-plus").TabPaneName, oldName: import("element-plus").TabPaneName) => boolean | void | Promise<boolean | void>;
size?: import("../_utils/types").ComponentSize | undefined;
authConfig?: {
fieldList?: import("../_utils/types").IAuth[] | undefined;
} | undefined;
class?: string | import("../_utils/types").Arrayable<Record<string, boolean>> | undefined;
modelValue?: string | number | undefined;
tabBarExtraContent?: string | import("../_utils/types").JSXElement | undefined;
}> & Readonly<{
onTabClick?: ((ctx: any, ev: MouseEvent) => any) | undefined;
onEdit?: ((name: string, action: "add" | "remove") => any) | undefined;
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
onTabChange?: ((name: string) => any) | undefined;
}>, {
type: "" | "card" | "border-card";
editable: boolean;
stretch: boolean;
tabPosition: "top" | "bottom" | "left" | "right";
lazyLoad: boolean;
closable: boolean;
addable: boolean;
beforeLeave: (newName: import("element-plus").TabPaneName, oldName: import("element-plus").TabPaneName) => boolean | void | Promise<boolean | void>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Tabs;
export type { TabsProps, TabPaneProps } from './src/props';