mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor
This commit is contained in:
parent
3442acade4
commit
29856c6a3a
2 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<input :class="cx('root')" :value="modelValue" @input="onInput" v-bind="ptm('root')" data-pc-name="inputtext" />
|
||||
<input :class="cx('root')" :value="modelValue" @input="onInput" v-bind="ptm('root', ptmParams)" data-pc-name="inputtext" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -17,6 +17,13 @@ export default {
|
|||
computed: {
|
||||
filled() {
|
||||
return this.modelValue != null && this.modelValue.toString().length > 0;
|
||||
},
|
||||
ptmParams() {
|
||||
return {
|
||||
context: {
|
||||
filled: this.filled
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue