1
0
Fork 0
mirror of https://github.com/primefaces/primevue.git synced 2025-05-11 09:52:35 +00:00
primevue-mirror/components/lib/inputtext/InputText.vue
2023-05-29 12:19:55 +03:00

23 lines
573 B
Vue
Executable file

<template>
<input :class="cx('root')" :value="modelValue" @input="onInput" v-bind="ptm('root')" data-pc-name="inputtext" />
</template>
<script>
import BaseInputText from './BaseInputText.vue';
export default {
name: 'InputText',
extends: BaseInputText,
emits: ['update:modelValue'],
methods: {
onInput(event) {
this.$emit('update:modelValue', event.target.value);
}
},
computed: {
filled() {
return this.modelValue != null && this.modelValue.toString().length > 0;
}
}
};
</script>