index.axml 514 B

123456789101112
  1. <view class='sticky-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./index.sjs' name='computed'>
  3. </import-sjs>
  4. <import-sjs from='../wxs/utils.sjs' name='utils'>
  5. </import-sjs>
  6. <view class='{{customClass}} van-sticky' style='{{ computed.containerStyle({ fixed, height, zIndex }) }}'>
  7. <view class="{{ utils.bem('sticky-wrap', { fixed }) }}" style='{{ computed.wrapStyle({ fixed, offsetTop, transform, zIndex }) }}'>
  8. <slot>
  9. </slot>
  10. </view>
  11. </view>
  12. </view>