Преглед изворни кода

fix: 弹窗组件拖拽后全屏位置异常

dullathanol пре 2 месеци
родитељ
комит
02372f12ba
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      packages/@core/ui-kit/popup-ui/src/modal/modal.vue

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

@@ -246,7 +246,8 @@ function handleClosed() {
           {
             'border border-border': bordered,
             'shadow-3xl': !bordered,
-            'top-0 left-0 size-full max-h-full translate-0!': shouldFullscreen,
+            'top-0 left-0 size-full max-h-full transform-[translate(0,0)]!':
+              shouldFullscreen,
             'top-1/2': centered && !shouldFullscreen,
             'duration-300': !dragging,
             hidden: isClosed,