Info (提示框)
带颜色、图标、标题与描述的内联提示框。
基础用法
Heads up
A primary info callout.
Success
Your changes were saved.
Error
Something went wrong.
Basic.vue
颜色
Default
默认中性提示。
Primary
主要信息提示。
Secondary
次要信息提示。
Success
操作成功完成。
Warning
需要注意的内容。
Danger
发生了错误。
Info
一条普通的说明。
Colors.vue
变体
Solid
实心填充背景。
Flat
柔和的浅色底(默认)。
Bordered
描边边框样式。
Variants.vue
标题与描述
TitleDescription.vue
自定义图标
提示
使用 icon 属性传入已注册的图标名称。
下载就绪
点击即可下载文件。
警告
此操作不可撤销。
失败
请求未能完成。
CustomIcon.vue
属性
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| className | string | "" | |
| color | KunUIColor | "default" | |
| description | string | "" | |
| icon | string | "" | |
| rounded | KunUIRounded | undefined | |
| title | string | "" | |
| variant | KunUIVariant | "flat" |