气泡卡片 Popover
对应 Arco Popover,使用浅色面板、标题与正文层级。 属性用法见 Element Plus 文档。
点击卡片
点击按钮打开带标题的卡片,width 控制面板宽度。
悬停卡片
trigger="hover" 悬停显示,自适应宽度保留正常交互。
与 Arco 的差异
- 默认宽度保留 Element Plus 的 150px,可按内容传
width="auto"。
对应 Arco Popover,使用浅色面板、标题与正文层级。 属性用法见 Element Plus 文档。
点击按钮打开带标题的卡片,width 控制面板宽度。
<template>
<el-popover trigger="click" title="Project details" content="A shared library for consistent interfaces." :width="260">
<template #reference><el-button>Show details</el-button></template>
</el-popover>
</template>trigger="hover" 悬停显示,自适应宽度保留正常交互。
<template>
<el-popover trigger="hover" title="Status" content="All systems operational." width="auto">
<template #reference><el-button>Hover for status</el-button></template>
</el-popover>
</template>width="auto"。