Skip to content

文字气泡


image

介绍

鼠标悬停、聚焦或点击在某个组件时,弹出的文字提示。

API

Props

参数名描述类型默认值
status默认状态 ,组件的状态'default'|'hide''default'
content气泡内容 ,气泡内显示的文字string-
controlMode控制模式 , 不可控模式通过鼠标移入移出控制气泡显隐;可控模式通过「文字气泡是否可见」属性值控制气泡显隐。'unControl'|'control''unControl'
popupVisible文字气泡是否可见 , 控制文字气泡是否可见booleanfalse
position弹出位置 ,控制文字气泡的显示位置'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb' | 'top'
size尺寸 , 控制文字气泡的显示大小'normal'|'mini''default'
backgroundColor弹出框背景色 ,控制文字气泡的背景色string-
baseStyle自定义样式 , 表格整体自定义样式string-
customClass类名绑定 , 绑定类的名称string-
boxStyle盒模型 , margin,border,padding设置BoxStyle-
uniqueKey唯一标识 , 组件的唯一标识string-
loop循环 , 循环渲染设置Loop-

Events

事件名描述参数
onPopupVisibleChange文字气泡显示状态更改时触发ctx
params:{ visible:boolean }
loop:LoopParams

Type

js

// 盒模型
type BoxStyle = {
  "marigin": [string|string|string|string],
  "border": [string|string|string|string],
  "padding": [string|string|string|string],
}

// 循环
type Loop = {
  "data": any[],
  "paramName": string,
  "indexName": string,
  "key": string
}

// 循环变量数据参数
type LoopParams = {
  "indexName":string,
  "paramName":string,
  "ref":ComputedRefImpl, // 全部的循环变量数据
  "row":number,
  "rowIndex":number
}[]