index.wxml 720 B

12345678910111213141516171819202122
  1. <i-modal bindtap="close" class="dialog" scrollUp="{{false}}" visible="{{visible}}">
  2. <view class="dialog-content">
  3. <view class="text i-class" wx:if="{{text}}">{{text}}</view>
  4. <view wx:el>
  5. <slot></slot>
  6. </view>
  7. <view class="button-group">
  8. <block wx:if="{{showCancel}}">
  9. <i-button catchtap="cancel" iClass="left-btn">
  10. <view>取消</view>
  11. </i-button>
  12. <view class="split-line"></view>
  13. <i-button catchtap="confirm" iClass="right-btn">
  14. <view>{{confirmText}}</view>
  15. </i-button>
  16. </block>
  17. <block wx:else>
  18. <view catchtap="confirm" class="r-btn i-btn">{{confirmText}}</view>
  19. </block>
  20. </view>
  21. </view>
  22. </i-modal>