Преглед на файлове

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 преди 1 месец
родител
ревизия
5b75e5e917
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  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,