From 873bb61290fadf81f3ebbe0bab04bb1b0cc82013 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期二, 04 一月 2022 17:24:31 +0800 Subject: [PATCH] Update:保戶個人帳號設定 增加成功提醒popup --- PAMapp/components/Ui/UiField.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/PAMapp/components/Ui/UiField.vue b/PAMapp/components/Ui/UiField.vue index 7e8a8c9..44e9ff4 100644 --- a/PAMapp/components/Ui/UiField.vue +++ b/PAMapp/components/Ui/UiField.vue @@ -13,21 +13,33 @@ <script lang="ts"> import { Vue, Component, Prop } from 'vue-property-decorator'; -import { isMobileDevice } from '~/shared/device'; + +import UtilsService from '~/shared/services/utils.service'; @Component export default class UiField extends Vue { - @Prop() span!: number; - @Prop() icon!: string; - @Prop() label!: string; - @Prop() content!: string; - @Prop() displayDevice!: 'MOBILE' | 'DESKTOP' | 'ALL'; + @Prop() + span!: number; + + @Prop() + icon!: string; + + @Prop() + label!: string; + + @Prop() + content!: string; + + @Prop() + displayDevice!: 'MOBILE' | 'DESKTOP' | 'ALL'; currentDevice: 'MOBILE' | 'DESKTOP' = 'MOBILE'; + ////////////////////////////////////////////////////////////////// + mounted(): void { - this.currentDevice = isMobileDevice() ? 'MOBILE' : 'DESKTOP'; + this.currentDevice = UtilsService.isMobileDevice() ? 'MOBILE' : 'DESKTOP'; } get fieldSpan(): number { -- Gitblit v1.8.0