quick format

This commit is contained in:
jmosrael@gmail.com
2024-05-05 16:12:25 -07:00
parent aab717da4d
commit 645695d487
2 changed files with 22 additions and 12 deletions

View File

@@ -26,7 +26,12 @@
</tr>
</tbody>
</v-table>
<v-pagination :length="pageCount" @prev="previousPage()" @next="nextPage()" @update:modelValue="setPage($event)"></v-pagination>
<v-pagination
:length="pageCount"
@prev="previousPage()"
@next="nextPage()"
@update:modelValue="setPage($event)"
></v-pagination>
<button @click="previousPage()">pp</button>
<button @click="nextPage()">np</button>
</template>
@@ -69,8 +74,8 @@ function nextPage() {
loadData()
}
function setPage(targetPage:number) {
this.page=targetPage - 1
function setPage(targetPage: number) {
this.page = targetPage - 1
loadData()
}

View File

@@ -19,7 +19,12 @@
</tr>
</tbody>
</v-table>
<v-pagination :length="pageCount" @prev="previousPage()" @next="nextPage()" @update:modelValue="setPage($event)"></v-pagination>
<v-pagination
:length="pageCount"
@prev="previousPage()"
@next="nextPage()"
@update:modelValue="setPage($event)"
></v-pagination>
</template>
<style></style>
@@ -53,8 +58,8 @@ async function previousPage() {
loadData()
}
function setPage(targetPage:number) {
this.page=targetPage - 1
function setPage(targetPage: number) {
this.page = targetPage - 1
loadData()
}