From f90c94f20b5f11d3b3ce0164d619c0112d5158c9 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期四, 20 一月 2022 18:23:56 +0800 Subject: [PATCH] update: TODO#133100 顧問端:header增加顧問頭像圖示 --- 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