You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
785 B
16 lines
785 B
10 months ago
|
<template>
|
||
|
<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"
|
||
|
>
|
||
|
<slot />
|
||
|
<van-icon v-if="closeable" :name="closeIcon" :class="'close-icon-class van-popup__close-icon van-popup__close-icon--' + closeIconPosition" @tap.native="onClickCloseIcon" />
|
||
|
</view>
|
||
|
</template>
|
||
|
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
|
||
|
<script module="computed" lang="wxs" src="@/miniprogram_npm/@vant/weapp/popup/index.wxs"></script>
|
||
|
|
||
|
<style></style>
|