mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
add autoHeight option
This commit is contained in:
1 parent
f890f83a61
commit
6cb75858bb
16 files changed
+85
-3
No files matched your search
@@ -55,6 +55,7 @@ export default function miniMix(art, player) {
|
||||
},
|
||||
set(value) {
|
||||
if (value) {
|
||||
player.autoHeight = false;
|
||||
player.autoSize = false;
|
||||
cacheStyle = $player.style.cssText;
|
||||
addClass($player, 'art-mini');
|
||||
@@ -87,6 +88,7 @@ export default function miniMix(art, player) {
|
||||
setStyle($player, 'left', null);
|
||||
player.aspectRatio = false;
|
||||
player.playbackRate = false;
|
||||
player.autoHeight = option.autoHeight;
|
||||
player.autoSize = option.autoSize;
|
||||
art.emit('mini');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user