popup.vue 864 B

123456789101112131415161718
  1. <template>
  2. <uni-shadow-root class="vant-popup-popup"><view v-if="inited" :class="'custom-class '+(classes)+' '+(utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop, safeTabBar: safeAreaTabBar }]))" :style="computed.popupStyle({ zIndex, currentDuration, display, customStyle })" @transitionend="onTransitionEnd">
  3. <slot></slot>
  4. <van-icon v-if="closeable" :name="closeIcon" :class="'close-icon-class van-popup__close-icon van-popup__close-icon--'+(closeIconPosition)" @click.native="onClickCloseIcon"></van-icon>
  5. </view></uni-shadow-root>
  6. </template>
  7. <wxs src="../wxs/utils.wxs" module="utils"></wxs><wxs src="./index.wxs" module="computed"></wxs>
  8. <script>
  9. global['__wxRoute'] = 'vant/popup/popup'
  10. Component({})
  11. export default global['__wxComponents']['vant/popup/popup']
  12. </script>
  13. <style platform="mp-weixin">
  14. </style>