[Feature Request] 希望 useDialog 的实现
Author: Not-haveCreated Jul 15, 2024Updated Sep 22, 2026
Labelsinactive
Existing Component
No
Component Name
el-dialog
Description
推荐实现 https://element-plus.org/zh-CN/component/dialog.html 的 useDialog 的实现,使用 useDialog 方法来调用弹出框,而不是一直都是
<el-dialog v-model="dialogTableVisible" title="Shipping address" width="800">
<el-table :data="gridData">
<el-table-column property="date" label="Date" width="150" />
<el-table-column property="name" label="Name" width="200" />
<el-table-column property="address" label="Address" />
</el-table>
</el-dialog>直接写 DOM,隔壁 Ant Design Vue 已经实现,我也实现了一版 https://github.com/Not-have/micro-tools/tree/main/packages-vue/vue-components-el-extra
Source: element-plus/element-plus