Skip to content

Commit

Permalink
Opt: pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Nov 16, 2023
1 parent 4ee9b91 commit 2aad914
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Hot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ onMounted(() => {
:total="totalItems"
@size-change="getRoomList(false)"
@current-change="getRoomList(false)"
class="flex-wrap"
/>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/RoomList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ onMounted(() => {
:total="totalItems"
@size-change="getRoomList(false)"
@current-change="getRoomList(false)"
class="flex-wrap"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Cinema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ const playerOption = computed(() => {
</div>
<el-pagination
v-else
class="max-sm:mb-4"
class="max-sm:mb-4 flex-wrap"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:pager-count="5"
Expand Down
2 changes: 1 addition & 1 deletion src/views/SearchPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const getRoomList = async (showMsg = false) => {
v-model:page-size="pageSize"
:pager-count="5"
layout="total, sizes, prev, pager, next, jumper"
class="flex flex-wrap"
class="flex-wrap"
:total="totalItems"
@size-change="getRoomList(false)"
@current-change="getRoomList(false)"
Expand Down

0 comments on commit 2aad914

Please sign in to comment.