mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
4.2.1
This commit is contained in:
1 parent
57c9cbc26a
commit
f2081067d9
51 files changed
+148
-148
No files matched your search
@@ -11,7 +11,8 @@ export default function aspectRatioMix(art) {
|
||||
get() {
|
||||
return $player.dataset.aspectRatio || '';
|
||||
},
|
||||
set(ratio = 'default') {
|
||||
set(ratio) {
|
||||
if (!ratio) ratio = 'default';
|
||||
const ratioList = ['default', '4:3', '16:9'];
|
||||
errorHandle(ratioList.includes(ratio), `'aspectRatio' only accept ${ratioList.toString()} as parameters`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user