ปรับ ==> rows-per-page-options="[10, 25, 50, 100]"

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-27 11:52:45 +07:00
parent 326f5f8e6a
commit 618f863519
4 changed files with 5 additions and 7 deletions

View file

@ -11,6 +11,7 @@
:pagination-label="paginationLabel"
v-model:pagination="pagination"
:grid="!$q.screen.gt.xs"
:rows-per-page-options="[10, 25, 50, 100]"
>
<template v-slot:pagination="scope">
งหมด {{ attrs.rows.length }} รายการ

View file

@ -144,7 +144,7 @@ onMounted(() => {
:rows="store.row"
dense
:visible-columns="store.visibleColumns"
:rows-per-page-options="[1, 25, 50, 100]"
:rows-per-page-options="[10, 25, 50, 100]"
@update:pagination="updatePagination"
>
<template v-slot:header="props">

View file

@ -51,7 +51,7 @@ async function redirectViewDetail(id: string) {
:paging="true"
dense
class="custom-table2"
:rows-per-page-options="[1, 25, 50, 100]"
:rows-per-page-options="[10, 25, 50, 100]"
:visible-columns="visibleColumns"
v-model:pagination="pagination"
@update:pagination="props.updatePagination"
@ -85,10 +85,7 @@ async function redirectViewDetail(id: string) {
<div class="q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3">
<q-card bordered flat @click="redirectViewDetail(props.row.id)">
<q-list>
<q-item
v-for="col in props.cols"
:key="col.name"
>
<q-item v-for="col in props.cols" :key="col.name">
<q-item-section>
<q-item-label caption>{{ col.label }}</q-item-label>

View file

@ -381,7 +381,7 @@ onMounted(async () => {
row-key="id"
:paging="true"
:visible-columns="visibleColumns"
:rows-per-page-options="[1, 25, 50, 100]"
:rows-per-page-options="[10, 25, 50, 100]"
@update:pagination="updatePagination"
>
<template v-slot:header="props">