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