primevue-mirror/src/components/inputtext/InputText.vue

19 lines
377 B
Vue
Raw Normal View History

2018-12-07 11:02:58 +00:00
<template>
<input class="p-inputtext p-component" v-on="listeners" :value="value" />
</template>
<script>
export default {
props: {
value: null
},
computed: {
listeners() {
return {
...this.$listeners,
input: event => this.$emit('input', event.target.value)
};
}
}
}
</script>