index.wxml 928 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <view class="wux-class {{ classes.wrap }}">
  2. <view class="{{ classes.bd }}" style="{{ bodyStyle }}">
  3. <canvas
  4. type="2d"
  5. id="{{ prefixCls }}"
  6. style="width: 100%; height: 100%;"
  7. catchtouchstart="onTouchStart"
  8. catchtouchmove="onTouchMove"
  9. catchtouchend="onTouchEnd"
  10. >
  11. </canvas>
  12. </view>
  13. <view class="{{ classes.ft }}">
  14. <block wx:if="{{ hasFooter }}">
  15. <wux-button
  16. wux-class="{{ classes.button }}"
  17. size="small"
  18. type="light"
  19. bindtap="clear"
  20. wx:if="{{ cancelText }}"
  21. >
  22. {{ cancelText }}
  23. </wux-button>
  24. <wux-button
  25. wux-class="{{ classes.button }}"
  26. size="small"
  27. type="balanced"
  28. bindtap="submit"
  29. wx:if="{{ confirmText }}"
  30. >
  31. {{ confirmText }}
  32. </wux-button>
  33. </block>
  34. <block wx:else>
  35. <slot name="footer"></slot>
  36. </block>
  37. </view>
  38. </view>