From 0ce4b3a22984488febef5566e0aac51fd543cce7 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 20 Feb 2024 14:57:52 +0000 Subject: [PATCH] Update BaseComponent.vue --- components/lib/basecomponent/BaseComponent.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 94340d8e4..c5cf1fcdd 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -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 : '';