<van-search value="{{ content.where.condition }}" bind:search='searchInput' bind:clear='searchClear' shape="round" background="var(--bgColor)" placeholder="搜索文件" />
<van-tabs class="tabs" color='var(--assist)' bind:change='tabsChange' title-active-color='var(--assist)' sticky>
    <van-tab title="列表" />
    <van-tab title="收藏夹" />
    <view slot='nav-right' class="switch">
        <My_switch bindchange='changeSwitch' sort="{{sort}}" />
    </view>
</van-tabs>

<Yl_ListBox id="ListBox" bind:getlist='getList'>
    <view class="unread">总共{{total}}个</view>
    <My_files list="{{list}}" checkedId='{{fileSelected.attachmentid}}' bindchangeId='changeId' />
    <Yl_Empty wx:if="{{list.length==0}}" />
</Yl_ListBox>

<van-action-sheet show="{{ show }}" bind:click-overlay='closeShow'>
    <view class="sheet-header">
        <image src="{{fileSelected.cover}}" />
        <view class="line-1">{{fileSelected.document}}</view>
    </view>
    <navigator url='#' class="option" bindtap="changeCollect">
        <block wx:if="{{fileSelected.isCollect==0}}">
            <van-icon class="icon star-o" name="star-o" />收藏
        </block>
        <block wx:else>
            <van-icon class="icon star" name="star" />取消收藏
        </block>
    </navigator>
    <navigator wx:if="{{fileSelected.postfix!='folder'}}" bindtap="dowmLoad" url='#' class="option">
        <text class="iconfont icon-a-tonggaoshujuxiazailiang icon" />复制下载地址
    </navigator>
    <view wx:if="{{padBot}}" style="height: 115rpx;" />
</van-action-sheet>