Skip to content

Commit

Permalink
Refactor #3965 - Update method name
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 19, 2023
1 parent 717e0d7 commit 202c208
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 68 deletions.
4 changes: 2 additions & 2 deletions components/lib/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ export default {
ptmo(obj = {}, key = '', params = {}) {
return this.getPTValue(obj, key, params);
},
css(key = '', params = {}) {
cx(key = '', params = {}) {
return !this.isUnstyled ? ObjectUtils.getItemValue(this.getOption(this.$options.style && this.$options.style.classes, key), { instance: this, props: this.$props, state: this.$data, ...params }) : undefined;
},
style(key = '', when = true, params = {}) {
sx(key = '', when = true, params = {}) {
if (when) {
const self = ObjectUtils.getItemValue(this.getOption(this.$options.style && this.$options.style.inlineStyles, key), { instance: this, props: this.$props, state: this.$data, ...params });
const base = ObjectUtils.getItemValue(this.getOption(inlineStyles, key), { instance: this, props: this.$props, state: this.$data, ...params });
Expand Down
Loading

0 comments on commit 202c208

Please sign in to comment.