add cssPropertyMix

This commit is contained in:
Harvey Zack committed 2023-04-17 22:39:18 +08:00
1 parent f013f8604e
commit 49e1ed15b8
12 files changed
+72 -49

No files matched your search

+8
View File
@@ -135,6 +135,14 @@ export default class Template {
if (isMobile) {
addClass(this.$player, 'art-mobile');
}
if (option.theme) {
option.cssVar['--art-theme'] = option.theme;
}
for (const key in option.cssVar) {
this.$player.style.setProperty(key, option.cssVar[key]);
}
}
mobile() {