AmAddressFormField.vue
5 days ago
AmAttachmentFormField.vue
5 days ago
AmCheckboxFormField.vue
5 days ago
AmContentFormField.vue
5 days ago
AmDatePickerFormField.vue
5 days ago
AmInputFormField.vue
5 days ago
AmPhoneFormField.vue
5 days ago
AmRadioFormField.vue
5 days ago
AmSelectFormField.vue
5 days ago
AmSocialButton.vue
5 days ago
AmContentFormField.vue
67 lines
| 1 | <template> |
| 2 | <el-form-item ref="formFieldRef" class="am-ff__item am-ff__item-content"> |
| 3 | <div |
| 4 | class="am-ff__item-content__inner" |
| 5 | v-html="`<span class='am-icon-circle-info'></span> ${props.label}`" |
| 6 | /> |
| 7 | </el-form-item> |
| 8 | </template> |
| 9 | |
| 10 | <script setup> |
| 11 | // * Import from Vue |
| 12 | import { ref } from 'vue' |
| 13 | |
| 14 | // * Form Item Props |
| 15 | let props = defineProps({ |
| 16 | label: { |
| 17 | type: String, |
| 18 | }, |
| 19 | }) |
| 20 | |
| 21 | // * Form Item Reference |
| 22 | let formFieldRef = ref(null) |
| 23 | |
| 24 | defineExpose({ |
| 25 | formFieldRef, |
| 26 | }) |
| 27 | </script> |
| 28 | |
| 29 | <script> |
| 30 | export default { |
| 31 | name: 'ContentFormField', |
| 32 | } |
| 33 | </script> |
| 34 | |
| 35 | <style lang="scss"> |
| 36 | @mixin contentFormItem { |
| 37 | // am - amelia |
| 38 | // ff - form field |
| 39 | .am-ff__item { |
| 40 | &-content { |
| 41 | border: 1px solid var(--am-c-inp-border); |
| 42 | border-radius: 6px; |
| 43 | background-color: transparent; |
| 44 | padding: 8px 12px; |
| 45 | |
| 46 | .am-icon-circle-info { |
| 47 | display: inline-block; |
| 48 | font-size: 22px; |
| 49 | position: relative; |
| 50 | width: 16px; |
| 51 | height: 16px; |
| 52 | |
| 53 | &:before { |
| 54 | position: absolute; |
| 55 | top: -2px; |
| 56 | left: -3px; |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | .amelia-v2-booking #amelia-container { |
| 64 | @include contentFormItem; |
| 65 | } |
| 66 | </style> |
| 67 |