Skip to content

Commit

Permalink
feat: del pageSelectOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisic committed Nov 23, 2023
1 parent 6922f1b commit 3410542
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

<div class="mb-6 text-center">
<a-pagination v-if="pagination.total" size="small" @showSizeChange="pagination.onShowSizeChange"
:pageSizeOptions="pagination.pageSizeOptions" @change="pagination.onChange" v-model:current="pagination.current"
@change="pagination.onChange" v-model:current="pagination.current"
:total="pagination.total" v-model:pageSize="pagination.pageSize" />
<div v-else>
<img src="@/assets/icons/noData--dark.svg" alt="" class="w-[128px] hidden dark:inline-block" />
Expand Down Expand Up @@ -261,7 +261,7 @@ const pagination = reactive({
hideOnSinglePage: false, // 只有一页时是否隐藏分页器
showQuickJumper: false, // 是否可以快速跳转至某页
showSizeChanger: false, // 是否可以改变 pageSize
pageSizeOptions: ['3'],
// pageSizeOptions: ['3'],
onShowSizeChange: (current: number, pagesize: number) => {
// 改变 pageSize时的回调
pagination.current = current;
Expand Down

0 comments on commit 3410542

Please sign in to comment.