Explorar o código

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
ming4762 hai 1 mes
pai
achega
5b75e5e917
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      packages/@core/ui-kit/popup-ui/src/modal/modal.vue

+ 1 - 3
packages/@core/ui-kit/popup-ui/src/modal/modal.vue

@@ -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,