update the master branch to the latest
This commit is contained in:
parent
67d534df27
commit
23a0ba9831
611 changed files with 122648 additions and 0 deletions
48
types/alert.d.ts
vendored
Normal file
48
types/alert.d.ts
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
// 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[];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue