mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
1.2 KiB
1.2 KiB
信息 Message
(一般是)从浏览器顶部降下来的神谕。
演示
basic
icon
timing
modify-content
manually-close
about-theme
API
$NMessage Methods
名称 | 类型 | 说明 |
---|---|---|
info | (content: string, option?: MessageOption) => MessageEnvironment |
|
success | (content: string, option?: MessageOption) => MessageEnvironment |
|
warning | (content: string, option?: MessageOption) => MessageEnvironment |
|
error | (content: string, option?: MessageOption) => MessageEnvironment |
|
loading | (content: string, option?: MessageOption) => MessageEnvironment |
MessageOption Type
名称 | 类型 | 说明 |
---|---|---|
content | string | function |
Can be a render function |
icon | string | function |
Can be a render function |
onHide | function |
|
onAfterHide | function |
MessageEnvironment API
MessageEnvironment Properties
名称 | 类型 | 说明 |
---|---|---|
content | string | function |
Can be a render function |
icon | string | function |
Can be a render function |
type | 'info' | 'success' | 'warning' | 'error' | 'loading' |
|
onHide | function |
|
onAfterHide | function |
MessageEnvironment Methods
名称 | 类型 | 说明 |
---|---|---|
hide | () |