first commit
This commit is contained in:
19
miniprogram/components/bottom-modal/bottom-modal.wxml
Normal file
19
miniprogram/components/bottom-modal/bottom-modal.wxml
Normal file
@@ -0,0 +1,19 @@
|
||||
<view wx:if="{{visible}}" class="modal-overlay bottom-modal" bindtap="onHideModal">
|
||||
<view
|
||||
class="modal-container {{animationClass}} {{modalContentClass}}"
|
||||
style="height: {{containerHeight}}; transform: translateY({{initialTranslate}});"
|
||||
bindtouchstart="onTouchStart"
|
||||
bindtouchmove="onTouchMove"
|
||||
bindtouchend="onTouchEnd"
|
||||
catchtap="preventTouchMove"
|
||||
>
|
||||
<!-- 拖动指示器 -->
|
||||
<view class="modal-handle"></view>
|
||||
|
||||
<!-- 内容区域(使用slot让父组件可以自定义内容) -->
|
||||
<slot></slot>
|
||||
|
||||
<!-- 关闭按钮 -->
|
||||
<view class="modal-close" bindtap="onHideModal">×</view>
|
||||
</view>
|
||||
</view>
|
Reference in New Issue
Block a user