<scroll-view scroll-x class="scroll" scroll-left="{{scrollLeft}}" scroll-with-animation="true">
  <view class="personCol {{index == current?'current':''}}" wx:for="{{list}}" wx:key="*this" bindtap="childChange" data-index="{{index}}" wx:if="{{!share}}">
    <image class="header" src="{{item.avatar?item.avatar:'https://img.bbztx.com/miniProgram/challengeFamily/loginLogo.png'}}" mode="aspectFill"></image>
    <view class="name">{{item.name}}</view>
  </view>
  <view class="personCol current" wx:if="{{share}}">
    <image class="header" src="{{avatar?item.avatar:'https://img.bbztx.com/miniProgram/challengeFamily/loginLogo.png'}}" mode="aspectFill"></image>
    <view class="name">{{name}}</view>
  </view>
</scroll-view>
<slot></slot>