<SurveyOfficerDialog ref="surveyOfficerRef" v-model:is-show="isShowSurvye" />
SurveyOfficerDialog
// 计算属性处理弹窗状态 drawer框状态
const drawerVisible = computed<boolean>({
get() {
console.log(props.isShow, "计算属性get");
return props.isShow;
},
set(val: boolean) {
console.log(props.isShow, val, "计算属性set");
emit("update:isShow", val);
}
});
vue2 计算属性写弹窗