气泡确认框 Popconfirm
基本用法
自定义图标和图标颜色
自定义按钮的类型、大小、文本内容
API
Popconfirm Props
| 参数名 | 说明 | 类型 | 可选值 | 默认值 | 是否必填 |
|---|---|---|---|---|---|
| theme | 主题 | string | light/dark | light | |
| title | 标题 | string | |||
| content | 气泡确认框的内容 | string | |||
| confirmBtnText | 确定按钮的文字 | string | 确定 | ||
| confirmBtnType | 确定按钮的类型 | string | primary/success/danger/default/warning/info/text | primary | |
| confirmBtnSize | 确定按钮的大小 | string | small/medium/large | small | |
| confirmBtnLoading | 确定按钮的 loading 状态 | boolean | false | ||
| cancelBtnSize | 取消按钮的大小 | string | small/medium/large | medium | |
| cancelBtnText | 取消按钮的文字 | string | 取消 | ||
| cancelBtnType | 取消按钮的类型 | string | primary/success/danger/default/warning/info/text | text | |
| cancelBtnLoading | 取消按钮的 loading 状态 | boolean | false | ||
| icon | 图标类名 | string | Attention | ||
| iconColor | 图标颜色 | string | rgba(237, 170, 83, 1) | ||
| showIcon | 是否显示图标 | boolean | true |
Popconfirm Events
| 事件名 | 说明 | 回调参数 |
|---|---|---|
| confirm | 点击确定按钮时触发 | |
| cancel | 点击取消按钮时触发 |
Popconfirm Slots
| 插槽名 | 说明 | 子标签 |
|---|---|---|
| default | 触发器 | |
| content | 气泡确认框的内容 |
