project init
This commit is contained in:
25
components/popup/popup.wxml
Normal file
25
components/popup/popup.wxml
Normal file
@@ -0,0 +1,25 @@
|
||||
<view
|
||||
wx:if="{{realVisible}}"
|
||||
style="{{customStyle + ';z-index:' + zIndex + ';'}}"
|
||||
class="{{className}} {{transitionClass}} {{prefix}}-class"
|
||||
bind:transitionend="onTransitionEnd"
|
||||
>
|
||||
<view class="{{classPrefix}}__content {{prefix}}-class-content">
|
||||
<view class="{{classPrefix}}__close" bind:tap="handleClose">
|
||||
<t-icon name="close" wx:if="{{closeBtn}}" size="64rpx" />
|
||||
<slot name="closeBtn" class="{{classPrefix}}-slot" />
|
||||
</view>
|
||||
<slot name="content" />
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<t-overlay
|
||||
id="popup-overlay"
|
||||
wx:if="{{showOverlay}}"
|
||||
visible="{{visible}}"
|
||||
z-index="{{overlayProps.zIndex}}"
|
||||
prevent-scroll-through="{{preventScrollThrough || overlayProps.preventScrollThrough}}"
|
||||
bind:tap="handleOverlayClick"
|
||||
custom-style="{{overlayProps.customStyle || ''}}"
|
||||
/>
|
||||
Reference in New Issue
Block a user