index.axml 722 B

123456789101112131415161718192021222324
  1. <import-sjs
  2. from="./index.sjs"
  3. name="sjs" />
  4. <view
  5. class="ant-page-infinite {{ className || '' }}"
  6. style="{{ style || '' }}">
  7. <scroll-view
  8. scroll-x="{{ true }}"
  9. class="ant-page-infinite-content"
  10. id="ant-pageInfinite{{ $id ? '-' + $id : '' }}"
  11. onScroll="{{ supportSjs ? sjs.changeScollDistance : 'onScroll' }}">
  12. <slot />
  13. </scroll-view>
  14. <view class="ant-page-infinite-wrap">
  15. <view
  16. class="ant-page-infinite-area"
  17. style="{{ fillColor ? 'background-color:' + fillColor : '' }}">
  18. <view
  19. class="ant-page-infinite-move"
  20. style="{{ frontColor ? 'background-color:' + frontColor : '' }}; transform: translateX({{ pageDeg }}%);" />
  21. </view>
  22. </view>
  23. </view>