Styles imported. Components added

This commit is contained in:
Bahadir Sofuoglu 2022-09-06 15:03:37 +03:00
parent 3cb3910561
commit 8264983db4
452 changed files with 55902 additions and 0 deletions

View 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>