RuoYi-Vue-Plus/mini-app/weapp/vant/popup/index.wxml
2021-01-12 18:04:14 +08:00

13 lines
860 B
Plaintext

<!---------- wxs start ----------->
<wxs module="utils" src="../wxs/utils.wxs"></wxs>
<wxs module="computed" src="./index.wxs"></wxs>
<!---------- wxs end ----------->
<van-overlay wx:if="{{ overlay }}" show="{{ show }}" z-index="{{ zIndex }}" custom-style="{{ overlayStyle }}" duration="{{ duration }}" bind:click="onClickOverlay"></van-overlay>
<view wx:if="{{ inited }}" class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop }]) }}" style="{{ computed.popupClass({ zIndex, currentDuration, display, customStyle }) }}" bind:transitionend="onTransitionEnd">
<slot></slot>
<van-icon wx:if="{{ closeable }}" name="{{ closeIcon }}" class="close-icon-class van-popup__close-icon van-popup__close-icon--{{ closeIconPosition }}" bind:tap="onClickCloseIcon"></van-icon>
</view>