<el-dialog v-model="dialogFormVisible" :before-close="closeDialog" title="打印"> </el-dialog>
// 弹窗控制标记 const dialogFormVisible = ref(false) // 打开弹窗 const openDialog = () => { dialogFormVisible.value = true } // 关闭弹窗 const closeDialog = () => { dialogFormVisible.value = false } // 弹窗确定 const enterDialog = async () => { //触发事件 }
标签:vue,const,dialogFormVisible,value,dialog,弹窗 From: https://www.cnblogs.com/cmooc/p/16903501.html