iview/types/alert.d.ts

48 lines
No EOL
952 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Type definitions for iview 3.3.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare class Alert extends Vue {
/**
* 警告提示样式可选值为info、success、warning、error
* @default info
*/
type?: 'info' | 'success' | 'warning' | 'error';
/**
* 是否可关闭
* @default false
*/
closable?: boolean;
/**
* 是否显示图标
* @default false
*/
'show-icon'?: boolean;
/**
* 关闭时触发
*/
$emit(eventName: 'on-close', event: HTMLElement): this;
/**
* slot插槽对象
*/
$slots: {
/**
* 警告提示内容
*/
'': VNode[];
/**
* 警告提示辅助性文字介绍
*/
desc: VNode[];
/**
* 自定义图标内容
*/
icon: VNode[];
/**
* 自定义关闭内容
*/
close: VNode[];
};
}