mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
doc(alert)
This commit is contained in:
parent
e1308a73c6
commit
ede7455c3d
@ -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|`()`||
|
Loading…
Reference in New Issue
Block a user