UNPKG

hongluan-ui

Version:
49 lines (48 loc) 1.19 kB
import type { MessageIconType } from 'hongluan-ui/es/constants'; import type { ExtractPropTypes, PropType } from 'vue'; export declare type AlertEffect = 'light' | 'dark'; export declare const alertProps: { /** * @description alert title. */ title: { type: StringConstructor; default: string; }; description: { type: StringConstructor; default: string; }; /** * @description alert type. */ type: { type: PropType<MessageIconType>; default: string; }; /** * @description whether alert can be dismissed. */ closable: { type: BooleanConstructor; default: boolean; }; closeText: { type: StringConstructor; default: string; }; /** * @description whether show icon */ showIcon: BooleanConstructor; dashed: BooleanConstructor; effect: { type: PropType<AlertEffect>; default: string; }; }; export declare const alertEmits: { close: (evt: MouseEvent) => boolean; }; export declare type AlertProps = ExtractPropTypes<typeof alertProps>; export declare type AlertEmits = typeof alertEmits;