-
zhangwei
2025-03-05 16213c0f85aa3ac8317797bf4a05fd12940e16d3
src/uni_modules/uview-plus/components/u-popup/u-popup.vue
@@ -17,10 +17,12 @@
         @afterEnter="afterEnter"
         @click="clickHandler"
      >
         <!-- @click.stop不能去除,去除会导致居中模式下点击内容区域触发关闭弹窗 -->
         <view
            class="u-popup__content"
            :style="[contentStyle]"
            @tap.stop="noop"
            @click.stop="noop"
            @touchmove.stop.prevent="noop"
         >
            <u-status-bar v-if="safeAreaInsetTop"></u-status-bar>
            <slot></slot>
@@ -49,7 +51,7 @@
   import { props } from './props';
   import { mpMixin } from '../../libs/mixin/mpMixin';
   import { mixin } from '../../libs/mixin/mixin';
   import { addUnit, addStyle, deepMerge, sleep, sys } from '../../libs/function/index';
   import { addUnit, addStyle, deepMerge, sleep, getWindowInfo } from '../../libs/function/index';
   /**
    * popup 弹窗
    * @description 弹出层容器,用于展示弹窗、信息提示等内容,支持上、下、左、右和中部弹出。组件只提供容器,内部内容由用户自定义
@@ -72,7 +74,7 @@
    * @property {Object}         customStyle         组件的样式,对象形式
    * @event {Function} open 弹出层打开
    * @event {Function} close 弹出层收起
    * @example <u-popup v-model="show"><text>出淤泥而不染,濯清涟而不妖</text></u-popup>
    * @example <u-popup v-model:show="show"><text>出淤泥而不染,濯清涟而不妖</text></u-popup>
    */
   export default {
      name: 'u-popup',
@@ -137,7 +139,7 @@
            // 不使用css方案,是因为nvue不支持css的iPhoneX安全区查询属性
            const {
               safeAreaInsets
            } = sys()
            } = getWindowInfo()
            if (this.mode !== 'center') {
               style.flex = 1
            }