|
|
|
@ -5,7 +5,6 @@ |
|
|
|
|
:id="id" |
|
|
|
|
:model-value="modelValue" |
|
|
|
|
:class="{ 'p-invalid': isInvalid }" |
|
|
|
|
class="border-primary-gradient hover:border-primary focus:ring-primary" |
|
|
|
|
:aria-label="label" |
|
|
|
|
type="text" |
|
|
|
|
@update:model-value="$emit('update:modelValue', $event)" |
|
|
|
@ -18,13 +17,17 @@ |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<slot name="errors"> |
|
|
|
|
<small v-if="isInvalid" v-t="errorText" class="p-error" /> |
|
|
|
|
<small |
|
|
|
|
v-if="isInvalid" |
|
|
|
|
v-t="errorText" |
|
|
|
|
class="p-error" |
|
|
|
|
/> |
|
|
|
|
</slot> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup> |
|
|
|
|
import InputText from "primevue/inputtext"; |
|
|
|
|
import InputText from "primevue/inputtext" |
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
|
id: { |
|
|
|
@ -51,7 +54,7 @@ const props = defineProps({ |
|
|
|
|
required: false, |
|
|
|
|
default: false, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
defineEmits(["update:modelValue"]) |
|
|
|
|
</script> |
|
|
|
|