Skip to content

Commit

Permalink
fix(pagination): fix pagination disabled exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chengjia committed Apr 3, 2023
1 parent 1cb69d9 commit 961c5eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/varlet-ui/src/pagination/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@
</li>

<li v-if="showSizeChanger" :class="classes(n('size'), [disabled, n('item--disabled')])">
<var-menu v-model:show="menuVisible" :offset-x="-4">
<div :class="classes(n('size--open'), [current <= 1 || disabled, n('size--open--disabled')])" @click="showMenu">
<var-menu :disabled="disabled" v-model:show="menuVisible" :offset-x="-4">
<div
:class="classes(n('size--open'), [current <= 1 || disabled, n('size--open--disabled')])"
@click.stop="showMenu"
>
<span>{{ size }}{{ pack.paginationItem }} / {{ pack.paginationPage }}</span>
<var-icon :class="n('size--open-icon')" var-pagination-cover name="menu-down" />
</div>
Expand Down

0 comments on commit 961c5eb

Please sign in to comment.