bhaveshpatel200 / vue3-datatable

vue3-datatable is a powerful component for creating dynamic and customizable data tables. It supports large amounts of data, sorting, pagination, and filtering and highly customizable
MIT License
100 stars 11 forks source link

Total rows not working #7

Closed HuaMiaoyi closed 10 months ago

HuaMiaoyi commented 10 months ago

totalRows is invalid when isServerMode is true,my items length is 10 total_rows is 11 but the page displays only 1 page of 10 data <vue3-datatable :rows="items" :columns="cols" :loading="loading" :isServerMode="true" :totalRows="total_rows" :hasCheckbox="true" :sortable="true" sortColumn="createTime" sortDirection="desc" :search="search" :page="data.page" :pageSize="data.limit" @pageChange="changeServer" noDataContent="没有符合条件的数据" skin="whitespace-nowrap table-hover" @pageSizeChange="changePageSize" paginationInfo="显示 {0} 至 {1} 共 {2} 条数据" </vue3-datatable>

bhaveshpatel200 commented 10 months ago

Hi @HuaMiaoyi,

Please make sure you are using latest version of this package because this features release in latest version.

You can check all our demos which will working fine with totalRows with isServerMode . You can check source code of all the demos. https://vue3-datatable-document.vercel.app/basic

HuaMiaoyi commented 10 months ago

hi Thank you for your reply. I took a look at the version of the project. It is indeed because my version is too low. my current version is 1.0.1 the minimum version required for server paging is 1.1.0