sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
33 lines (32 loc) • 780 B
TypeScript
import { type StyleValue } from 'vue';
export interface MenuOption {
text?: string;
disabled?: boolean;
icon?: string;
iconFamily?: string;
[prop: PropertyKey]: any;
}
export interface MenuProps {
rootStyle?: StyleValue;
rootClass?: string;
options?: MenuOption[];
direction?: 'vertical' | 'horizontal';
theme?: 'dark' | 'light';
}
export declare const defaultMenuProps: {
options: () => never[];
};
export interface MenuEmits {
(e: 'select', option: MenuOption): void;
}
export interface MenuItemProps {
text?: string;
disabled?: boolean;
icon?: string;
iconFamily?: string;
withIcon?: boolean;
direction?: 'vertical' | 'horizontal';
}
export interface MenuItemEmits {
(e: 'click', event: any): void;
}