ant-design-vue-pro
ant-design-vue-pro copied to clipboard
s-table显示总的数据条数
Question (问题描述)
How to use component s-table paging
s-table显示数据总条数
Describe the solution you'd like (你期待的是什么?)
A clear and concise description of what you want to happen.
s-table显示数据总条数,:showTotal不起作用
Additional context(附加信息)
Add any other context or screenshots about the feature request here.
:pagination="{ showTotal: total => `Total ${total} items` }"
我的也一样,我使用 TableList.vue中添加上分页配置
<s-table ref="table" size="default" rowKey="key" :columns="columns" :data="loadData" :alert="options.alert" :rowSelection="options.rowSelection" :pagination="{total: 1000,pageSize: 20,showTotal: total =>Total ${total} items}" >
结果分页并没有改变

@apple006 @onlonely You should edit '@/components/Table/index.js' to support these functions, the project hasn't realized these functions yet.
@linqiaowei 没错,我也遇到这个问题了,只能修改 '@/components/Table/index.js'的源码解决