优化svg

This commit is contained in:
Harvey Zack committed 2018-11-21 11:19:46 +08:00
1 parent 6d0f3cad14
commit 5c037ad08f
25 files changed
+102 -128

No files matched your search

@@ -1,4 +1,4 @@
import { setStyle, inverseClass } from '../utils';
import { setStyle } from '../utils';
export default function aspectRatioMix(art, player) {
const { refs: { $video, $player }, i18n, notice } = art;
+6 -6
View File
@@ -11,12 +11,6 @@ export default function eventInit(art, player) {
player.toggle();
});
config.video.events.forEach(eventName => {
proxy($video, eventName, event => {
art.emit(`video:${event.type}`, event);
});
});
art.on('video:loadstart', () => {
art.loading.show();
});
@@ -95,4 +89,10 @@ export default function eventInit(art, player) {
});
}
});
config.video.events.forEach(eventName => {
proxy($video, eventName, event => {
art.emit(`video:${event.type}`, event);
});
});
}
+1 -1
View File
@@ -23,8 +23,8 @@ import flipMix from './flipMix';
export default class Player {
constructor(art) {
mountUrlMix(art, this);
attrInit(art, this);
eventInit(art, this);
attrInit(art, this);
playMix(art, this);
pauseMin(art, this);
toggleMix(art, this);