From d2b49f718fb3d7c067bbf1d4b35c8feffca7745e Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期五, 17 十二月 2021 14:27:32 +0800 Subject: [PATCH] update: TODO#132518 新增首頁輪播Banner做為輪播測試 --- 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