mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51: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);
|
||||
|
||||
@@ -11,7 +11,8 @@ export default function flipMix(art) {
|
||||
get() {
|
||||
return $player.dataset.flip || 'normal';
|
||||
},
|
||||
set(flip = 'normal') {
|
||||
set(flip) {
|
||||
if (!flip) flip = 'normal';
|
||||
if (flip === 'normal') {
|
||||
delete $player.dataset.flip;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user