index.wxml 757 B

123456789101112131415161718192021222324
  1. <!-- slide-view/slide-view.wxml -->
  2. <movable-area class="container" style="width: {{width}}rpx; height: {{height}}rpx;">
  3. <movable-view
  4. direction="horizontal"
  5. class="movable-content"
  6. out-of-bounds="{{out}}"
  7. damping="20"
  8. disabled="{{disabled}}"
  9. x="{{x}}"
  10. style="width: {{width + slideWidth}}rpx; height: {{height}}rpx;"
  11. inertia
  12. bindtouchend="onTouchEnd"
  13. bindtouchstart="onTouchStart"
  14. bindchange="onChange"
  15. >
  16. <view class="left" style="width: {{width}}rpx; height: {{height}}rpx;">
  17. <slot name="left"></slot>
  18. </view>
  19. <view class="right" bindtap="onRightTap" style="width: {{slideWidth}}rpx; height: {{height}}rpx;">
  20. <slot name="right"></slot>
  21. </view>
  22. </movable-view>
  23. </movable-area>