保誠-保戶業務員媒合平台
HelenHuang
2021-12-30 bcc6976e871d6aa664e301684b7a8871b2d727b7
PAMapp/components/Ui/UiField.vue
@@ -13,9 +13,10 @@
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
import { isMobileDevice } from '~/shared/device';
@Component
export default class UiCarousel extends Vue {
export default class UiField extends Vue {
  @Prop() span!: number;
  @Prop() icon!: string;
@@ -24,6 +25,10 @@
  @Prop() displayDevice!: 'MOBILE' | 'DESKTOP' | 'ALL';
  currentDevice: 'MOBILE' | 'DESKTOP' = 'MOBILE';
  mounted(): void {
    this.currentDevice = isMobileDevice() ? 'MOBILE' : 'DESKTOP';
  }
  get fieldSpan(): number {
    return this.span || 24;
@@ -64,6 +69,7 @@
  }
  .pam-field__content {
    padding-top: 10px;
    display: flex;
  }
}
</style>