Popconfirm
气泡确认框,用于二次确认操作。点击元素弹出气泡确认框,支持异步确认、自定义按钮、多种弹出位置。
基于 BrPopover 封装,继承其定位、动画、暗黑主题、无障碍能力。
Component Features
- ✅ Async Confirm: Supports async confirmation with loading state during processing.
- 🎨 Custom Buttons: Supports custom button text, type, and color for confirm/cancel.
- 📐 12 Positions: Supports 12 placement positions.
- 🖼️ Icon Types: Built-in warning / info / success / error icon types with custom icon support.
- 🌗 Dark Theme: Inherits from BrPopover with automatic dark mode adaptation.
- ♿️ Accessibility: Based on BrPopover for complete accessibility support.
Basic Usage
点击按钮弹出确认框。
Async Confirm
支持异步确认,点击确认后显示加载状态。
Custom Button
自定义按钮文字、类型和颜色。
Placement
支持 12 个弹出方位。
Icon Type
内置 warning / info / success / error 四种图标类型,也支持自定义图标。