Display: Allow to disable BaseSelect component - refs BT#21621

pull/5604/head
Angel Fernando Quiroz Campos 1 year ago
parent 7ef05d7e0c
commit b56b3a9e11
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 11
      assets/vue/components/basecomponents/BaseSelect.vue

@ -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"])

Loading…
Cancel
Save