From 31f6ff0ebbf3d374e6e0acdeda72bccdd86de2d5 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期四, 10 二月 2022 14:16:15 +0800 Subject: [PATCH] update#134662: [ 顧問管理流程 ] 編輯顧問個人資料 : 所在地區,無產生選擇器 --- 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