| | |
| | | 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> |
| | |
| | | content!: string; |
| | | |
| | | @Prop() |
| | | labelSize?: number; |
| | | |
| | | @Prop() |
| | | displayDevice!: 'MOBILE' | 'DESKTOP' | 'ALL'; |
| | | |
| | | currentDevice: 'MOBILE' | 'DESKTOP' = 'MOBILE'; |
| | |
| | | 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 { |
| | | display : flex; |
| | | padding-top: 10px; |
| | | } |
| | | } |