project init & fix ui
This commit is contained in:
30
miniprogram_npm/tdesign-miniprogram/popup/popup.wxml
Normal file
30
miniprogram_npm/tdesign-miniprogram/popup/popup.wxml
Normal file
@@ -0,0 +1,30 @@
|
||||
<wxs src="./popup.wxs" module="utils" />
|
||||
<wxs src="../common/utils.wxs" module="_" />
|
||||
|
||||
<view
|
||||
wx:if="{{realVisible}}"
|
||||
style="{{ utils.getPopupStyles(zIndex, customStyle) }}"
|
||||
class="{{_.cls(classPrefix, [placement])}} {{transitionClass}} {{prefix}}-class"
|
||||
bind:transitionend="onTransitionEnd"
|
||||
aria-role="dialog"
|
||||
aria-modal="{{ true }}"
|
||||
>
|
||||
<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="close-btn" class="{{classPrefix}}-slot" />
|
||||
</view>
|
||||
<slot name="content" />
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<t-overlay
|
||||
id="popup-overlay"
|
||||
wx:if="{{showOverlay}}"
|
||||
visible="{{visible}}"
|
||||
z-index="{{overlayProps.zIndex || 11000}}"
|
||||
prevent-scroll-through="{{preventScrollThrough || overlayProps.preventScrollThrough}}"
|
||||
bind:tap="handleOverlayClick"
|
||||
custom-style="{{overlayProps.customStyle || ''}}"
|
||||
/>
|
||||
Reference in New Issue
Block a user