保誠-保戶業務員媒合平台
Mila
2021-11-30 84efab848d77c44a7b46e06a12cbfee64e13e9c5
PAMapp/components/Ui/UiField.vue
@@ -13,9 +13,10 @@
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
import { isMobileDevice } from '~/assets/ts/device';
@Component
export default class UiCarousel extends Vue {
export default class UiField extends Vue {
  @Prop() span!: number;
  @Prop() icon!: string;
@@ -25,6 +26,10 @@
  currentDevice: 'MOBILE' | 'DESKTOP' = 'MOBILE';
  mounted(): void {
    this.currentDevice = isMobileDevice() ? 'MOBILE' : 'DESKTOP';
  }
  get fieldSpan(): number {
    return this.span || 24;
  }