vue3 双向绑定 dialog
父组件:
<ViewPopupForm v-model="isView"/>
如果不行就
<ViewPopupForm :isView="isView"/>
子组件:


const emit = defineEmits(['update:modelValue'])
const props = defineProps({
isView: Boolean,//接收父组件ParentComponent传过来的数组
});
<ViewPopupForm v-model="isView"/>
如果不行就
<ViewPopupForm :isView="isView"/>


const emit = defineEmits(['update:modelValue'])
const props = defineProps({
isView: Boolean,//接收父组件ParentComponent传过来的数组
});