mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Styles imported. Components added
This commit is contained in:
parent
3cb3910561
commit
8264983db4
452 changed files with 55902 additions and 0 deletions
23
components/inputtext/InputText.vue
Executable file
23
components/inputtext/InputText.vue
Executable file
|
@ -0,0 +1,23 @@
|
|||
<template>
|
||||
<input :class="['p-inputtext p-component', {'p-filled': filled}]" :value="modelValue" @input="onInput"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'InputText',
|
||||
emits: ['update:modelValue'],
|
||||
props: {
|
||||
modelValue: null
|
||||
},
|
||||
methods: {
|
||||
onInput(event) {
|
||||
this.$emit('update:modelValue', event.target.value);
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
filled() {
|
||||
return (this.modelValue != null && this.modelValue.toString().length > 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue