Update BaseComponent.vue

pull/5507/head
mertsincan 2024-02-20 14:57:52 +00:00
parent f641de401d
commit 0ce4b3a229
1 changed files with 1 additions and 2 deletions

View File

@ -40,8 +40,7 @@ export default {
immediate: true,
handler(newValue, oldValue) {
if (newValue && newValue !== oldValue) {
const { variables } = newValue;
const { colorScheme, ...vRest } = variables || {};
const { colorScheme, ...vRest } = newValue;
const { dark, ...csRest } = colorScheme || {};
const vRest_css = ObjectUtils.isNotEmpty(vRest) ? toVariables({ [this.$style.name]: vRest }).css : '';
const csRest_css = ObjectUtils.isNotEmpty(csRest) ? toVariables({ [this.$style.name]: csRest }).css : '';