Refactor #3965 - Update style name

pull/3997/head
mertsincan 2023-05-19 12:19:50 +01:00
parent 202c208e7a
commit 58e97dc979
4 changed files with 5 additions and 5 deletions

View File

@ -52,11 +52,11 @@ export default {
return this.getPTValue(obj, key, params); return this.getPTValue(obj, key, params);
}, },
cx(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 = {}) { sx(key = '', when = true, params = {}) {
if (when) { 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 }); const base = ObjectUtils.getItemValue(this.getOption(inlineStyles, key), { instance: this, props: this.$props, state: this.$data, ...params });
return [base, self]; return [base, self];

View File

@ -443,7 +443,7 @@ export default {
default: null default: null
} }
}, },
style: { css: {
inlineStyles, inlineStyles,
classes classes
}, },

View File

@ -52,7 +52,7 @@ export default {
default: null default: null
} }
}, },
style: { css: {
classes classes
}, },
watch: { watch: {

View File

@ -54,7 +54,7 @@ export default {
default: null default: null
} }
}, },
style: { css: {
classes classes
}, },
watch: { watch: {