Browse Source

fix(popup): 修复popup在Taro转H5下的渲染问题

suzigang 3 years ago
parent
commit
1823958818
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/packages/__VUE/popup/index.taro.vue
  2. 1 1
      src/sites/mobile-taro/vue/package.json

+ 1 - 1
src/packages/__VUE/popup/index.taro.vue

@@ -13,7 +13,7 @@
     />
     <Transition :name="transitionName" @after-enter="onOpened" @after-leave="onClosed">
       <view v-show="visible" :class="classes" :style="popStyle" @click="onClick">
-        <slot v-if="showSlot"></slot>
+        <div v-show="showSlot"><slot></slot></div>
         <view
           v-if="closed"
           @click="onClickCloseIcon"

+ 1 - 1
src/sites/mobile-taro/vue/package.json

@@ -36,7 +36,7 @@
   "author": "",
   "dependencies": {
     "@babel/runtime": "^7.7.7",
-    "@nutui/nutui-taro": "^3.0.2",
+    "@nutui/nutui-taro": "^3.1.18",
     "@tarojs/components": "^3.4.0",
     "@tarojs/mini-runner": "^3.4.0",
     "@tarojs/runtime": "^3.4.0",