简化事件

This commit is contained in:
Harvey committed 2020-05-22 13:23:28 +08:00
1 parent 938b90f3a7
commit 4718cd186b
36 files changed
+223 -250

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ export default function resizeMix(art, player) {
setStyle($player, 'width', '100%');
setStyle($player, 'height', `${percentage}%`);
}
art.emit('autoSizeChange', {
art.emit('autoSize', {
width: player.width,
height: player.height,
});
@@ -31,7 +31,7 @@ export default function resizeMix(art, player) {
removeClass($container, 'art-auto-size');
setStyle($player, 'width', null);
setStyle($player, 'height', null);
art.emit('autoSizeRemove');
art.emit('autoSize');
}
},
});