Skip to content

Commit

Permalink
Refactor #3965 - BaseComponent update
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed May 23, 2023
1 parent e1aadec commit 811fe1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/lib/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export default {
cx(key = '', params = {}) {
return !this.isUnstyled ? ObjectUtils.getItemValue(this.getOption(this.$options.css && this.$options.css.classes, key), { instance: this, props: this.$props, state: this.$data, ...params }) : undefined;
},
cxo(obj = {}, key = '', params = {}) {
return !this.isUnstyled ? ObjectUtils.getItemValue(this.getOption(obj.css && obj.css.classes, key), { instance: obj, props: obj && obj.props, state: obj && obj.data, ...params }) : undefined;
},
sx(key = '', when = true, params = {}) {
if (when) {
const self = ObjectUtils.getItemValue(this.getOption(this.$options.css && this.$options.css.inlineStyles, key), { instance: this, props: this.$props, state: this.$data, ...params });
Expand Down

0 comments on commit 811fe1c

Please sign in to comment.