<bsl-request
  api="{{api}}"
  data="{{data}}"
  refreshId="{{refreshId + loaderRefreshId}}"
  method="{{method}}"
  disabled="{{disabled}}"
  cache="{{cache}}"
  useRetry="{{true}}"
  transformResponse="{{transformResponse}}"
  bind:complete="bindComplete"
  bind:empty="bindEmpty"
  bind:fail="bindFail"
  bind:timeout="bindTimeout"
  bind:finally="bindFinally"
>
  <view class="wrap-cls" slot="any">
    <slot name="complete" wx:if="{{!isSourceDataEmpty}}" />
    <slot name="loading" wx:if="{{state === 'loading' && isSourceDataEmpty}}" />
    <slot name="empty" wx:if="{{state === 'empty'}}" />
    <slot name="fail" wx:if="{{state === 'fail'}}" />
    <slot name="timeout" wx:if="{{state === 'timeout' && isSourceDataEmpty}}" />
    <view class="root loader-cls {{state === '' ? '' : 'content' }}" hidden="{{isSourceDataEmpty}}">
      <view hidden="{{true}}">用于占位触发intersectionObserver</view>
      <mp-loading wx:if="{{state === 'loading'}}" duration="{{900}}" type="dot-gray" show="{{true}}" animated="{{true}}" />
      <view wx:if="{{state === 'over'}}" class="over-cls">{{overText || '已经加载到底了'}}</view>
      <view wx:if="{{state === 'fail'}}" class="fail-cls" bind:tap="bindRetry">加载失败，点击重新加载</view>
    </view>
  </view>
</bsl-request>

