<s-table
          ref="table"
          :pagination="pagination"    //data中配置pagination
          :columns="columns"
          :pageSize="40"    //设置默认显示条数
          :data="loadData"
          :alert="true"
          :rowKey="(record) => record.id"
          :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
        >
</s-table
data () {
      return {
        pagination: {
          pageSizeOptions: ['40', '50', '60', '70']
        }
     }
}

ant design之s-table--改变默认分页器

 

 附上s-table官方文档:https://github.com/vueComponent/ant-design-vue-pro/tree/master/src/components/Table

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2021-07-23
  • 2021-11-21
  • 2021-12-04
  • 2022-12-23
  • 2021-09-17
  • 2021-12-04
相关资源
相似解决方案