From a3716f72066d25d745f4d5103ff23a553c3e102b Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期四, 17 二月 2022 11:41:19 +0800 Subject: [PATCH] Merge branch 'sit' into uat --- PAMapp/components/singleSelectBtn.vue | 25 +++++++++++-------------- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git a/PAMapp/components/singleSelectBtn.vue b/PAMapp/components/singleSelectBtn.vue index 99bc644..b7a4a55 100644 --- a/PAMapp/components/singleSelectBtn.vue +++ b/PAMapp/components/singleSelectBtn.vue @@ -20,25 +20,22 @@ <script lang="ts"> import { Component, Prop, PropSync, Vue } from "nuxt-property-decorator"; + import { OptionBtnDto } from "~/shared/models/optionBtnDto.model"; import * as _ from 'lodash'; + @Component export default class SingleSelectBtn extends Vue { - @PropSync('singleSelected', { default: '' }) syncSingleSelected!: string | number; - @Prop({ type:Array , default:()=>[] }) options!:OptionBtnDto[]; - // 銝餉�圾瘙箸����甈∟��嚗暺������ - patchValue(value: string): void { + @PropSync('singleSelected', { default: '' }) + syncSingleSelected!: string | number; + + @Prop({ type:Array , default:()=>[] }) + options!:OptionBtnDto[]; + + ////////////////////////////////////////////////////////////////////// + patchValue(value: string | number): void { + // 銝餉�圾瘙箸����甈∟��嚗暺������ this.syncSingleSelected = _.isEqual(this.syncSingleSelected, value) ? "" : value; } } - export interface OptionBtnDto { - title: string, - subTitle?: string, - label: string | number, - } </script> - -<style lang="scss" - scoped> - -</style> -- Gitblit v1.8.0