ant-design-vue-pro icon indicating copy to clipboard operation
ant-design-vue-pro copied to clipboard

s-table显示总的数据条数

Open apple006 opened this issue 5 years ago • 4 comments

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.

apple006 avatar Dec 26 '19 08:12 apple006

:pagination="{ showTotal: total => `Total ${total} items` }"

sendya avatar Dec 27 '19 05:12 sendya

我的也一样,我使用 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}" > 结果分页并没有改变

1

onlonely avatar Jan 02 '20 08:01 onlonely

@apple006 @onlonely You should edit '@/components/Table/index.js' to support these functions, the project hasn't realized these functions yet.

linqiaowei avatar Jan 20 '20 09:01 linqiaowei

@linqiaowei 没错,我也遇到这个问题了,只能修改 '@/components/Table/index.js'的源码解决

jkddw avatar Jun 16 '22 07:06 jkddw