index.wxml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <!-- popup.wxml -->
  2. <l-popup
  3. show="{{show}}"
  4. animation="show"
  5. contentAlign="center"
  6. locked="{{true}}"
  7. bind:lintap="onDialogTap"
  8. l-bg-class="l-bg-class"
  9. z-index="{{zIndex}}"
  10. >
  11. <view class="dialog-container l-class" style="margin-bottom:{{distance}}px">
  12. <view class="dialog-title l-title-class" style="color:{{titleColor}}" wx:if="{{showTitle}}">{{title}}</view>
  13. <view class="dialog-content l-content-class" style="color:{{contentColor}}">
  14. <slot />
  15. {{content}}
  16. </view>
  17. <view class="dialog-btn-group">
  18. <view
  19. class="dialog-btn-cancel l-cancel-class"
  20. style="color: {{cancelColor}}"
  21. catchtap="onCancelTap"
  22. hover-class="{{isHover?'group-hover':''}}"
  23. wx:if="{{type=='confirm'}}"
  24. >{{cancelText}}</view>
  25. <view
  26. class="dialog-btn-confirm l-confirm-class"
  27. style="color: {{confirmColor}}"
  28. hover-class="{{isHover?'group-hover':''}}"
  29. catchtap="onConfirmTap"
  30. >{{confirmText}}</view>
  31. </view>
  32. </view>
  33. </l-popup>