From 6bbef91c402eaa58b8a4d8f11c466a39802ca0ca Mon Sep 17 00:00:00 2001 From: 劉鈞霖 <benson@gmail.com> Date: 星期二, 28 十二月 2021 14:50:13 +0800 Subject: [PATCH] [ Ref ] : 重構 共用資料夾 相關元件 --- PAMapp/components/Ui/UiField.vue | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/PAMapp/components/Ui/UiField.vue b/PAMapp/components/Ui/UiField.vue index 1401592..b7d1192 100644 --- a/PAMapp/components/Ui/UiField.vue +++ b/PAMapp/components/Ui/UiField.vue @@ -19,14 +19,25 @@ @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 = UtilsService.isMobileDevice() ? 'MOBILE' : 'DESKTOP'; } -- Gitblit v1.8.0