压缩字符

This commit is contained in:
Harvey committed 2019-11-28 10:56:53 +08:00
1 parent 7ff61b4660
commit 0cf455ced3
27 files changed
+171 -239

No files matched your search

+15 -17
View File
@@ -14,23 +14,21 @@ import pip from './pip.svg';
export default class Icons {
constructor(art) {
const icons = Object.assign(
{
loading,
state,
play,
pause,
volume,
volumeClose,
subtitle,
screenshot,
setting,
fullscreen,
fullscreenWeb,
pip,
},
art.option.icons,
);
const icons = {
loading,
state,
play,
pause,
volume,
volumeClose,
subtitle,
screenshot,
setting,
fullscreen,
fullscreenWeb,
pip,
...art.option.icons,
};
Object.keys(icons).forEach(key => {
const icon = document.createElement('i');