<el-popover ref="PopoverRef" placement="right" :width="400" trigger="click">
<template #reference>
<el-button style="margin-right: 16px">Click to activate</el-button>
</template>
<el-table :data="gridData">
<el-table-column width="150" property="date" label="date" />
<el-table-column width="100" property="name" label="name" />
<el-table-column width="300" property="address" label="address" />
</el-table>
</el-popover>
let PopoverRef = ref(null)
PopoverRef.value.hide();
ElementPlus通过事件隐藏el-popover组件
最新推荐文章于 2025-04-18 10:34:50 发布