doc(alert)

This commit is contained in:
07akioni 2020-01-29 20:01:53 +08:00
parent e1308a73c6
commit ede7455c3d

View File

@ -1,7 +1,31 @@
# Alert
According to my experience, the most frequent usage of it may be requesting for disabling AdBlocks.
## Demos
```demo
basic
closable
icon
no-icon
```
```
## Props
|Name|Type|Default|Description|
|-|-|-|-|
|title|`string`|`null`||
|show-icon|`string`|`true`||
|type|`'default' \| 'info' \| 'success' \| 'warning' \| 'error'`|`default`||
|closable|`boolean`|`false`||
|on-close|`(next: function) => any`|`next => next()`|Call next to make alert close, nor it won't close|
|on-after-close|`function`|`null`||
## Slots
|Name|Parameters|Description|
|-|-|-|
|header|`()`||
|default|`()`||
|icon|`()`||
## Events
|Name|Parameters|Description|
|-|-|-|
|close|`()`||
|after-close|`()`||