perf: perf the control logic of VbenModal full screen and header (#6566)

* resolve the issue of header=false and full screen button display but not operable
This commit is contained in:
ming4762
2025-07-25 21:45:45 +08:00
committed by GitHub
parent fad0b49841
commit 5b75e5e917

View File

@@ -98,9 +98,7 @@ const {
zIndex,
} = usePriorityValues(props, state);
const shouldFullscreen = computed(
() => (fullscreen.value && header.value) || isMobile.value,
);
const shouldFullscreen = computed(() => fullscreen.value || isMobile.value);
const shouldDraggable = computed(
() => draggable.value && !shouldFullscreen.value && header.value,