<!-- 用户列表弹窗 --> <script lang="ts" setup> import type { FormInstance, FormRules } from 'element-plus' const emits = defineEmits(['add']) const dialogFormVisible = ref(false) const initDialog = () => { dialogFormVisible.value = true } defineExpose({ initDialog }) // 点击保存 // 取消 </script> <template> <el-dialog v-model="dialogFormVisible" title="用户列表"> <template #footer> <span class="dialog-footer"> <!-- <el-button type="primary" @click="submitForm(ruleFormRef)">确认</el-button> <el-button @click="resetForm(ruleFormRef)"> 取消 </el-button> --> </span> </template> </el-dialog> </template>