对于el-dialog组件的显示状态为什么用两次watch。直接修改不是更简洁?
const dialogVisible = ref(false)
@click="dialogVisible = ! dialogVisible"
如有向父组件传参需求 直接传不就可以了?
let emits = defineEmits([‘update:visible’])
let fnOutData = () => {
emits(‘update:visible’, dialogVisible.value)
}