WPopover 组件
悬浮框组件,基于 WinDesignNext Popover 封装。children[0](或 child)为触发器(reference 插槽),title / content 支持 path 绑定。
基础用法
API
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
component | string | WPopover | 组件类型(必填) |
child / children[0] | string | - | 触发器组件 ID |
title | string | DataBindingValue | - | 弹出框标题 |
content | string | DataBindingValue | - | 弹出框正文 |
visible / modelValue | boolean | DataBindingValue | - | 显示状态 |
trigger | string | hover | 触发方式 |
placement | string | bottom | 出现位置 |
width | number | string | 150 | 弹出框宽度 |
action | Action | - | 显示/隐藏事件 |
path 支持说明
| 属性 | path 支持 | 说明 |
|---|---|---|
title | ✅ | 动态标题 |
content | ✅ | 动态正文 |
visible / modelValue | ✅ | 显示状态双向绑定 |
title / content 数据绑定
json
{
"id": "popover_patient",
"component": "WPopover",
"trigger": "click",
"title": { "path": "/popoverTitle" },
"content": { "path": "/popoverContent" },
"children": ["link_patient"]
}