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

+2 -6
View File
@@ -7,9 +7,9 @@ export default function attrInit(art) {
template: { $video, $poster },
} = art;
Object.keys(option.moreVideoAttr).forEach((key) => {
for (const key in option.moreVideoAttr) {
art.attr(key, option.moreVideoAttr[key]);
});
}
if (option.muted) {
art.muted = option.muted;
@@ -37,9 +37,5 @@ export default function attrInit(art) {
$video['webkit-playsinline'] = true;
}
if (option.theme) {
art.theme = option.theme;
}
art.url = option.url;
}