mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3965 - For InputText
This commit is contained in:
parent
db62871f12
commit
c855d1035c
4 changed files with 148 additions and 6 deletions
|
@ -1,17 +1,14 @@
|
|||
<template>
|
||||
<input :class="['p-inputtext p-component', { 'p-filled': filled }]" :value="modelValue" @input="onInput" v-bind="ptm('root')" />
|
||||
<input :class="cx('root')" :value="modelValue" @input="onInput" v-bind="ptm('root')" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
import BaseInputText from './BaseInputText.vue';
|
||||
|
||||
export default {
|
||||
name: 'InputText',
|
||||
extends: BaseComponent,
|
||||
extends: BaseInputText,
|
||||
emits: ['update:modelValue'],
|
||||
props: {
|
||||
modelValue: null
|
||||
},
|
||||
methods: {
|
||||
onInput(event) {
|
||||
this.$emit('update:modelValue', event.target.value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue