index.wxml 1.1 KB

1234567891011121314151617
  1. <!--components/w-dialog/index.wxml-->
  2. <van-popup round lock-scroll="{{true}}" overlay="{{ overlay }}" z-index="{{102}}" show="{{show}}" close-on-click-overlay="{{ closeOnClickOverlay }}" bind:click-overlay="onClickOverlay">
  3. <view class="dialog-section">
  4. <view class="dialog-title {{ theme === 'default' ? 'default' : '' }}" wx:if="{{ title }}">{{ title }}</view>
  5. <view class="dialog-content {{ messageAlign }}">{{ message }}</view>
  6. <view class="dialog-btn-group" wx:if="{{ theme === 'default' }}">
  7. <view class="btn" bind:tap="onDialogClose" wx:if="{{ showCancelButton }}">{{ cancelButtonText }}</view>
  8. <view class="btn del-btn" bind:tap="onDialogConfirm" wx:if="{{ showConfirmButton }}">{{ confirmButtonText }}</view>
  9. </view>
  10. <view class="dialog-btn-group--theme" wx:if="{{ theme === 'round-button' }}">
  11. <view class="btn" bind:tap="onDialogClose" wx:if="{{ showCancelButton }}">{{ cancelButtonText }}</view>
  12. <view class="btn del-btn" bind:tap="onDialogConfirm" wx:if="{{ showConfirmButton }}">{{ confirmButtonText }}</view>
  13. </view>
  14. </view>
  15. </van-popup>