From b81b27ce3e7e9e7cda18bb6a621c34e84e7e2311 Mon Sep 17 00:00:00 2001 From: 劉鈞霖 <benson@gmail.com> Date: 星期一, 27 十二月 2021 12:27:55 +0800 Subject: [PATCH] [ Ref ] : refactor page : quickFilter , recommendConsultant , userReviews , userReviewsRecord and some related component --- PAMapp/components/singleSelectBtn.vue | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/PAMapp/components/singleSelectBtn.vue b/PAMapp/components/singleSelectBtn.vue index 99bc644..7de7b0c 100644 --- a/PAMapp/components/singleSelectBtn.vue +++ b/PAMapp/components/singleSelectBtn.vue @@ -23,11 +23,15 @@ import * as _ from 'lodash'; @Component export default class SingleSelectBtn extends Vue { - @PropSync('singleSelected', { default: '' }) syncSingleSelected!: string | number; - @Prop({ type:Array , default:()=>[] }) options!:OptionBtnDto[]; + @PropSync('singleSelected', { default: '' }) + syncSingleSelected!: string | number; - // 銝餉�圾瘙箸����甈∟��嚗暺������ - patchValue(value: string): void { + @Prop({ type:Array , default:()=>[] }) + options!:OptionBtnDto[]; + + ////////////////////////////////////////////////////////////////////// + patchValue(value: string | number): void { + // 銝餉�圾瘙箸����甈∟��嚗暺������ this.syncSingleSelected = _.isEqual(this.syncSingleSelected, value) ? "" : value; } } @@ -37,8 +41,3 @@ label: string | number, } </script> - -<style lang="scss" - scoped> - -</style> -- Gitblit v1.8.0