-
zhangwei
2025-03-14 6e961fafc0f921d575772a3c89f2c5cad28c270d
src/uni_modules/uview-plus/components/u-modal/u-modal.vue
@@ -9,6 +9,8 @@
         overflow: 'hidden',
         marginTop: `-${addUnit(negativeTop)}`
      }"
      :closeable='closeable'
      @close='closepoup'
      :closeOnClickOverlay="closeOnClickOverlay"
      :safeAreaInsetBottom="false"
      :duration="400"
@@ -137,7 +139,7 @@
            if (n && this.loading) this.loading = false
         }
      },
      emits: ["confirm", "cancel", "close", "update:show"],
      emits: ["confirm", "cancel", "close", "update:show",'closemodal'],
      methods: {
         addUnit,
         // 点击确定按钮
@@ -155,6 +157,10 @@
            this.$emit('update:show', false)
            this.$emit('cancel')
         },
         //
         closepoup(){
            this.$emit('closemodal')
         },
         // 点击遮罩
         // 从原理上来说,modal的遮罩点击,并不是真的点击到了遮罩
         // 因为modal依赖于popup的中部弹窗类型,中部弹窗比较特殊,虽有然遮罩,但是为了让弹窗内容能flex居中