From 29856c6a3a932c50dbd8cbec1e4f86f262a8a819 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 4 Jul 2023 03:24:37 +0100 Subject: [PATCH] Refactor --- components/lib/basecomponent/BaseComponent.vue | 4 ++-- components/lib/inputtext/InputText.vue | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 870c331cc..04ce6c56b 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -446,10 +446,10 @@ export default { */ }, ptm(key = '', params = {}) { - return this._getPTValue(this.pt, key, { props: this.$props, state: this.$data, ...params }); + return this._getPTValue(this.pt, key, { instance: this, props: this.$props, state: this.$data, ...params }); }, ptmo(obj = {}, key = '', params = {}) { - return this._getPTValue(obj, key, params, false); + return this._getPTValue(obj, key, { instance: this, ...params }, false); }, cx(key = '', params = {}) { return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params }) : undefined; diff --git a/components/lib/inputtext/InputText.vue b/components/lib/inputtext/InputText.vue index 2de632961..33eea8556 100755 --- a/components/lib/inputtext/InputText.vue +++ b/components/lib/inputtext/InputText.vue @@ -1,5 +1,5 @@