加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.d.ts 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
xfy520 提交于 2021-08-29 19:58 . 添加开发文件
declare module 'vue3-menus' {
type elementIconType = import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
type antdvIconType = import("vue").FunctionalComponent;
type menusItemType<I = string | elementIconType | antdvIconType> = {
label: string;
icon?: I | {
node: I,
option?: {
[key: string]: unknown
}
};
disabled?: boolean;
divided?: boolean;
click?: (...arg: unknown[]) => unknown;
children?: Array<menusItemType>;
tip?: string;
}
type baseType<I = string | elementIconType | antdvIconType> = {
menus: Array<menusItemType<I>>;
menusStyle?: {
[key: string]: unknown
};
menusItemClass?: string;
minWidth?: number | string;
maxWidth?: number | string;
zIndex?: number | string;
}
export type menusType<I = string | elementIconType | antdvIconType> = {
event: MouseEvent;
} & baseType<I> | {
position: {
x: number,
y: number
};
} & baseType<I> | {
event?: MouseEvent;
position?: {
x: number,
y: number
};
} & baseType<I>
export const Vue3Menus: import("vue").DefineComponent<menusType & {
open: boolean
}>;
export const menusEvent: (event: MouseEvent, menus: menusType) => import("vue").ComponentPublicInstance;
export const directive: import("vue").Directive;
const install: (app: import("vue").App, options: {
name: string
}) => any;
export default install;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化