1234567891011121314151617181920 |
- <t-popup visible="{{visible}}" placement="bottom" bind:visible-change="onPopupChange">
- <view slot="content" class="{{classPrefix}} t-class">
- <view class="{{classPrefix}}__toolbar" wx:if="{{header}}">
- <view class="{{classPrefix}}__cancel t-class-cancel" wx:if="{{cancelBtn}}" bindtap="onCancel">{{cancelBtn}}</view>
- <view class="{{classPrefix}}__title t-class-title">{{title}}</view>
- <view class="{{classPrefix}}__confirm t-class-confirm" wx:if="{{confirmBtn}}" bindtap="onConfirm"
- >{{confirmBtn}}</view
- >
- </view>
- <!-- 扩展插槽 -->
- <slot name="header"></slot>
- <view class="{{classPrefix}}__main">
- <slot></slot>
- <view class="{{classPrefix}}__mask"></view>
- <view class="{{classPrefix}}__indicator"></view>
- </view>
- <!-- 扩展插槽 -->
- <slot name="footer"></slot>
- </view>
- </t-popup>
|