| 1 | <template> |
| 2 | <ConfigSection title="Load Balancer" collapsible :readonly="readonly" :has-value="!!form.loadBalancerGroup"> |
| 3 | <div class="field-row two-col"> |
| 4 | <ConfigField label="Group" type="text" v-model="form.loadBalancerGroup" placeholder="Group name" :readonly="readonly" /> |
| 5 | <ConfigField label="Group Key" type="text" v-model="form.loadBalancerGroupKey" :readonly="readonly" /> |
| 6 | </div> |
| 7 | </ConfigSection> |
| 8 | </template> |
| 9 | |
| 10 | <script setup lang="ts"> |
| 11 | import { computed } from 'vue' |
| 12 | import type { ProxyFormData } from '../../types' |
| 13 | import ConfigSection from '../ConfigSection.vue' |
| 14 | import ConfigField from '../ConfigField.vue' |
| 15 | |
| 16 | const props = withDefaults(defineProps<{ |
| 17 | modelValue: ProxyFormData |
| 18 | readonly?: boolean |
| 19 | }>(), { readonly: false }) |
| 20 | |
| 21 | const emit = defineEmits<{ 'update:modelValue': [value: ProxyFormData] }>() |
| 22 | |
| 23 | const form = computed({ |
| 24 | get: () => props.modelValue, |
| 25 | set: (val) => emit('update:modelValue', val), |
| 26 | }) |
| 27 | </script> |
| 28 | |
| 29 | <style scoped lang="scss"> |
| 30 | @use '@/assets/css/form-layout'; |
| 31 | </style> |