Skip to content

Commit

Permalink
Refactor #3965 - Update style name
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 19, 2023
1 parent 202c208 commit 58e97dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/lib/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export default {
return this.getPTValue(obj, 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;
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;
},
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 self = ObjectUtils.getItemValue(this.getOption(this.$options.css && this.$options.css.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 });
return [base, self];
Expand Down
2 changes: 1 addition & 1 deletion components/lib/calendar/BaseCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export default {
default: null
}
},
style: {
css: {
inlineStyles,
classes
},
Expand Down
2 changes: 1 addition & 1 deletion components/lib/fieldset/BaseFieldset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
default: null
}
},
style: {
css: {
classes
},
watch: {
Expand Down
2 changes: 1 addition & 1 deletion components/lib/panel/BasePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default {
default: null
}
},
style: {
css: {
classes
},
watch: {
Expand Down

0 comments on commit 58e97dc

Please sign in to comment.