vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
25 lines (24 loc) • 572 B
TypeScript
/**
* Props
*/
export interface Props {
content?: string;
placement?: Placement;
delay?: number;
always?: boolean;
className?: string;
trigger?: 'hover' | 'click';
disabled?: boolean;
shadow?: boolean;
theme?: 'light' | 'dark';
}
/**
* 位置类型
*/
export type Placement = 'top-left' | 'top' | 'top-right' | 'left' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right' | 'right-top' | 'left-top' | 'left-bottom' | 'right-bottom';
/**
* 组件事件类型
*/
export type Emit = {
(event: 'change', value: boolean): void;
};