mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor
This commit is contained in:
parent
3442acade4
commit
29856c6a3a
2 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue