From e02d6534d2dba4b8adcbb80e37cc77bf8bddd26c Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 09 三月 2022 16:50:48 +0800 Subject: [PATCH] update#136137: [諮詢度表現] 顧問詳細資訊API 前端調整串接 --- PAMapp/components/Ui/UiField.vue | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/PAMapp/components/Ui/UiField.vue b/PAMapp/components/Ui/UiField.vue index b7d1192..8845d85 100644 --- a/PAMapp/components/Ui/UiField.vue +++ b/PAMapp/components/Ui/UiField.vue @@ -3,7 +3,7 @@ v-if="fieldDisplayDevice === 'ALL' || fieldDisplayDevice === currentDevice"> <div class="pam-field__label"> - <div class="pam-field__title"><i :class="fieldIcon"></i>{{ fieldLabel }}</div> + <div class="pam-field__title" :style="{ 'font-size': fieldLabelSize }"><i :class="fieldIcon"></i>{{ fieldLabel }}</div> </div> <p class="pam-field__content"> <slot></slot> @@ -32,6 +32,9 @@ content!: string; @Prop() + labelSize?: number; + + @Prop() displayDevice!: 'MOBILE' | 'DESKTOP' | 'ALL'; currentDevice: 'MOBILE' | 'DESKTOP' = 'MOBILE'; @@ -58,29 +61,34 @@ return this.displayDevice || 'ALL'; } + get fieldLabelSize(): string { + return (this.labelSize || 16) + 'px'; + } + } </script> - <style lang="scss" scoped> .pam-field { - display: flex; + display : flex; flex-direction: column; .pam-field__label { - display: flex; align-items: center; + display : flex; .pam-icon { font-size: 12px; } .pam-field__title { - font-size: 16px; - font-weight: bold; - display: flex; align-items: center; + display : flex; + font-weight: bold; } } .pam-field__content { - padding-top: 10px; + display : flex; + // padding-top: 10px; + white-space: pre-line; + line-height: 1.5; } } </style> -- Gitblit v1.8.0