mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
添加事件文档
This commit is contained in:
1 parent
339ec6a163
commit
de20a350e6
9 files changed
+152
-14
No files matched your search
@@ -25,7 +25,10 @@ export default function resizeMix(art, player) {
|
||||
setStyle($player, 'width', '100%');
|
||||
setStyle($player, 'height', `${percentage}%`);
|
||||
}
|
||||
art.emit('autoSizeChange');
|
||||
art.emit('autoSizeChange', {
|
||||
width: player.width,
|
||||
height: player.height,
|
||||
});
|
||||
} else {
|
||||
removeClass($container, 'artplayer-auto-size');
|
||||
setStyle($player, 'width', null);
|
||||
|
||||
Reference in new issue
Block a user