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

Loading…
Cancel
Save