From c8d6116f34cac94ba696034d70b42c0078cdab87 Mon Sep 17 00:00:00 2001 From: 劉鈞霖 <benson@gmail.com> Date: 星期四, 09 十二月 2021 15:31:43 +0800 Subject: [PATCH] [ Update ] : #Todo: 132092 && #Todo: 132135 safari and chrome 籃框問題修正 , #Todo:132137 顧問所在地區 input 增加 readonly 不需打開鍵盤 --- PAMapp/components/Ui/UiPagination.vue | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PAMapp/components/Ui/UiPagination.vue b/PAMapp/components/Ui/UiPagination.vue index 5ab226b..40f2709 100644 --- a/PAMapp/components/Ui/UiPagination.vue +++ b/PAMapp/components/Ui/UiPagination.vue @@ -12,20 +12,20 @@ <script lang="ts"> import { Vue, Component, Prop, Emit, Watch } from 'nuxt-property-decorator'; -import { Consultants } from '~/assets/ts/models/consultant.model'; +import { Consultant } from '~/assets/ts/models/consultant.model'; @Component export default class UiPagination extends Vue { - @Prop() totalList!: Consultants[]; + @Prop() totalList!: Consultant[]; @Prop({default: 5}) pageSize!: number; currentPage = 1; - pageList: Consultants[] = []; + pageList: Consultant[] = []; mounted() { this.handleCurrentChange(this.currentPage); } - @Emit('changePage') chagnePage(): Consultants[] { + @Emit('changePage') changePage(): Consultant[] { return this.pageList } @@ -37,14 +37,14 @@ if (this.totalList) { this.pageList = this.totalList.slice(this.pageSize * currentPage - this.pageSize, this.pageSize * currentPage) - this.chagnePage(); + this.changePage(); } } - @Watch('totalList') watchtotalList(newValue: Consultants[]) { + @Watch('totalList') watchTotalList(newValue: Consultant[]) { if (newValue) { this.handleCurrentChange(this.currentPage); } } } -</script> \ No newline at end of file +</script> -- Gitblit v1.8.0