Commit 5b75e5e9 by ming4762 Committed by GitHub

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
1 parent fad0b498
...@@ -98,9 +98,7 @@ const { ...@@ -98,9 +98,7 @@ const {
zIndex, zIndex,
} = usePriorityValues(props, state); } = usePriorityValues(props, state);
const shouldFullscreen = computed( const shouldFullscreen = computed(() => fullscreen.value || isMobile.value);
() => (fullscreen.value && header.value) || isMobile.value,
);
const shouldDraggable = computed( const shouldDraggable = computed(
() => draggable.value && !shouldFullscreen.value && header.value, () => draggable.value && !shouldFullscreen.value && header.value,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!