mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Update InputText.vue
This commit is contained in:
parent
8ffcdf2e33
commit
6f0002e1a6
1 changed files with 8 additions and 8 deletions
|
@ -10,14 +10,6 @@ export default {
|
||||||
extends: BaseInputText,
|
extends: BaseInputText,
|
||||||
emits: ['update:modelValue'],
|
emits: ['update:modelValue'],
|
||||||
methods: {
|
methods: {
|
||||||
onInput(event) {
|
|
||||||
this.$emit('update:modelValue', event.target.value);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
filled() {
|
|
||||||
return this.modelValue != null && this.modelValue.toString().length > 0;
|
|
||||||
},
|
|
||||||
getPTOptions(key) {
|
getPTOptions(key) {
|
||||||
return this.ptm(key, {
|
return this.ptm(key, {
|
||||||
context: {
|
context: {
|
||||||
|
@ -25,6 +17,14 @@ export default {
|
||||||
disabled: this.$attrs.disabled || this.$attrs.disabled === ''
|
disabled: this.$attrs.disabled || this.$attrs.disabled === ''
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
onInput(event) {
|
||||||
|
this.$emit('update:modelValue', event.target.value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
filled() {
|
||||||
|
return this.modelValue != null && this.modelValue.toString().length > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue