This commit is contained in:
mertsincan 2023-07-04 03:24:37 +01:00
parent 3442acade4
commit 29856c6a3a
2 changed files with 10 additions and 3 deletions

View file

@ -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
}
};
}
}
};