保誠-保戶業務員媒合平台
Mila
2022-01-22 09dd262523d5b552e8c334ec43b3e09bb0d40f51
PAMapp/components/singleSelectBtn.vue
@@ -20,9 +20,12 @@
<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;
@@ -34,10 +37,5 @@
      // 主要解決按鈕點擊兩次能回到,未點選的狀態
      this.syncSingleSelected = _.isEqual(this.syncSingleSelected, value) ? "" : value;
    }
  }
  export interface OptionBtnDto {
    title: string,
    subTitle?: string,
    label: string | number,
  }
</script>