mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
fix test error
This commit is contained in:
1 parent
004a764b28
commit
fbf1039681
19 files changed
+109
-63
No files matched your search
@@ -11,7 +11,8 @@ export default function aspectRatioMix(art) {
|
||||
get() {
|
||||
return $player.dataset.aspectRatio || 'default';
|
||||
},
|
||||
set(ratio = 'default') {
|
||||
set(ratio) {
|
||||
if (!ratio) ratio = 'default';
|
||||
if (ratio === 'default') {
|
||||
setStyle($video, 'width', null);
|
||||
setStyle($video, 'height', null);
|
||||
|
||||
Reference in new issue
Block a user