Fixed #4929 - Add parent param to all pt method options

This commit is contained in:
mertsincan 2023-12-05 11:06:32 +00:00
parent 1a4bba8107
commit eb00b8ee23
104 changed files with 399 additions and 158 deletions

View file

@ -1,5 +1,5 @@
<template>
<span :class="cx('root')" v-bind="getPTOptions('root')" data-pc-name="inputnumber">
<span :class="cx('root')" v-bind="ptm('root')" data-pc-name="inputnumber">
<INInputText
ref="input"
:id="inputId"
@ -27,7 +27,7 @@
:unstyled="unstyled"
data-pc-section="input"
/>
<span v-if="showButtons && buttonLayout === 'stacked'" :class="cx('buttonGroup')" v-bind="getPTOptions('buttonGroup')">
<span v-if="showButtons && buttonLayout === 'stacked'" :class="cx('buttonGroup')" v-bind="ptm('buttonGroup')">
<INButton
:class="[cx('incrementButton'), incrementButtonClass]"
v-on="upButtonListeners"
@ -173,14 +173,6 @@ export default {
this.constructParser();
},
methods: {
getPTOptions(key) {
return this.ptm(key, {
parent: {
props: this.$parent?.$props,
state: this.$parent?.$data
}
});
},
getOptions() {
return {
localeMatcher: this.localeMatcher,