V1.0.0
Skip to content

WPopover 组件

悬浮框组件,基于 WinDesignNext Popover 封装。children[0](或 child)为触发器(reference 插槽),title / content 支持 path 绑定。

基础用法

API

属性类型默认值说明
componentstringWPopover组件类型(必填)
child / children[0]string-触发器组件 ID
titlestring | DataBindingValue-弹出框标题
contentstring | DataBindingValue-弹出框正文
visible / modelValueboolean | DataBindingValue-显示状态
triggerstringhover触发方式
placementstringbottom出现位置
widthnumber | string150弹出框宽度
actionAction-显示/隐藏事件

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"]
}