mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Update BaseComponent.vue
This commit is contained in:
parent
f641de401d
commit
0ce4b3a229
1 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,7 @@ export default {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler(newValue, oldValue) {
|
handler(newValue, oldValue) {
|
||||||
if (newValue && newValue !== oldValue) {
|
if (newValue && newValue !== oldValue) {
|
||||||
const { variables } = newValue;
|
const { colorScheme, ...vRest } = newValue;
|
||||||
const { colorScheme, ...vRest } = variables || {};
|
|
||||||
const { dark, ...csRest } = colorScheme || {};
|
const { dark, ...csRest } = colorScheme || {};
|
||||||
const vRest_css = ObjectUtils.isNotEmpty(vRest) ? toVariables({ [this.$style.name]: vRest }).css : '';
|
const vRest_css = ObjectUtils.isNotEmpty(vRest) ? toVariables({ [this.$style.name]: vRest }).css : '';
|
||||||
const csRest_css = ObjectUtils.isNotEmpty(csRest) ? toVariables({ [this.$style.name]: csRest }).css : '';
|
const csRest_css = ObjectUtils.isNotEmpty(csRest) ? toVariables({ [this.$style.name]: csRest }).css : '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue