view-ui-plus
Version:
A high quality UI components Library with Vue.js 3
52 lines (41 loc) • 939 B
TypeScript
import type { DefineComponent } from 'vue';
export declare const Alert: DefineComponent<{
/**
* 警告提示样式,可选值为`info`、`success`、`warning`、`error`
*/
type?: 'info' | 'success' | 'warning' | 'error';
/**
* 是否可关闭
*/
closable?: boolean;
/**
* 是否显示图标
*/
'show-icon'?: boolean;
/**
* 是否应用动画,动画时长可能会引起占位的闪烁
*/
fade?: boolean;
/**
* 关闭时触发
*/
onOnClose?: (event?: any) => any;
'v-slots'?: {
/**
* 警告提示内容
*/
default?: () => any;
/**
* 警告提示辅助性文字介绍
*/
desc?: () => any;
/**
* 自定义图标内容
*/
icon?: () => any;
/**
* 自定义关闭内容
*/
close?: () => any;
};
}>