|
|
|
@ -1,8 +1,9 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<div class="p-float-label"> |
|
|
|
<FloatLabel> |
|
|
|
<Dropdown |
|
|
|
<Dropdown |
|
|
|
:id="id" |
|
|
|
:id="id" |
|
|
|
|
|
|
|
:disabled="disabled" |
|
|
|
:model-value="modelValue" |
|
|
|
:model-value="modelValue" |
|
|
|
:options="realOptions" |
|
|
|
:options="realOptions" |
|
|
|
:option-label="optionLabel" |
|
|
|
:option-label="optionLabel" |
|
|
|
@ -21,13 +22,14 @@ |
|
|
|
:class="{ 'p-error': isInvalid }" |
|
|
|
:class="{ 'p-error': isInvalid }" |
|
|
|
:for="id" |
|
|
|
:for="id" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</FloatLabel> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script setup> |
|
|
|
<script setup> |
|
|
|
import { useI18n } from "vue-i18n" |
|
|
|
import { useI18n } from "vue-i18n" |
|
|
|
import { computed } from "vue" |
|
|
|
import { computed } from "vue" |
|
|
|
|
|
|
|
import FloatLabel from "primevue/floatlabel" |
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() |
|
|
|
const { t } = useI18n() |
|
|
|
|
|
|
|
|
|
|
|
@ -75,6 +77,11 @@ const props = defineProps({ |
|
|
|
type: Boolean, |
|
|
|
type: Boolean, |
|
|
|
default: false, |
|
|
|
default: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
disabled: { |
|
|
|
|
|
|
|
default: false, |
|
|
|
|
|
|
|
required: false, |
|
|
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(["update:modelValue"]) |
|
|
|
const emit = defineEmits(["update:modelValue"]) |
|
|
|
|