<view class="box">
  <view>共{{total}}条</view>
  <t-button
    size="small"
    disabled="{{curr_page == 1}}"
    bindtap="pageChange"
    data-page="prev"
    icon="chevron-left"
    style="padding-left: 8px;padding-right: 8px"
  />
  <block wx:for="{{pages}}" wx:key="index">
    <t-button
      size="small"
      theme="{{curr_page == item ? 'primary': ''}}"
      variant="{{curr_page == item ? 'outline': ''}}"
      bindtap="pageChange"
      data-page="{{item}}"
    >{{item}}
    </t-button>
  </block>
  <t-button
    size="small"
    disabled="{{curr_page == totalPage}}"
    bindtap="pageChange"
    data-page="next"
    icon="chevron-right"
    style="padding-left: 8px;padding-right: 8px"
  />
  <t-button size="small" bindtap="pageSelect" style="padding-left: 8px;padding-right: 8px">跳转
  </t-button>
  <t-picker
    title="选择页码"
    visible="{{open}}"
    value="{{[curr_page]}}"
    cancelBtn="取消"
    confirmBtn="确认"
    bind:confirm="onConfirm"
  >
    <t-picker-item options="{{pickerPages}}" />
  </t-picker>
</view>

