ドメインページのページネーションパラメータを調整しました。

This commit is contained in:
Mouriya
2024-08-19 21:23:49 +09:00
parent fe311a2be4
commit 9eb87fe3f3

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="q-pa-md"> <div class="q-pa-md">
<q-table title="Treats" :rows="rows" :columns="columns" row-key="id" :filter="filter" :loading="loading"> <q-table title="Treats" :rows="rows" :columns="columns" row-key="id" :filter="filter" :loading="loading" :pagination="pagination">
<template v-slot:top> <template v-slot:top>
<q-btn color="primary" :disable="loading" label="新規" @click="addRow" /> <q-btn color="primary" :disable="loading" label="新規" @click="addRow" />
@@ -130,7 +130,7 @@ const columns = [
{ name: 'actions', label: '操作', field: 'actions' } { name: 'actions', label: '操作', field: 'actions' }
]; ];
const pagination = ref({ sortBy: 'id', descending: true, rowsPerPage: 20 });
const loading = ref(false); const loading = ref(false);
const filter = ref(''); const filter = ref('');
const rows = ref([]); const rows = ref([]);