mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
min -> mini
This commit is contained in:
1 parent
1ba121c54f
commit
9a86ce4f73
12 files changed
+68
-68
No files matched your search
@@ -3,7 +3,7 @@ import { debounce, isInViewport } from '../utils';
|
||||
export default function viewInit(art, events) {
|
||||
const {
|
||||
player,
|
||||
option: { autoMin },
|
||||
option: { autoMini },
|
||||
template: { $container },
|
||||
} = art;
|
||||
|
||||
@@ -16,8 +16,8 @@ export default function viewInit(art, events) {
|
||||
});
|
||||
|
||||
art.on('view', (state) => {
|
||||
if (autoMin) {
|
||||
player.min = !state;
|
||||
if (autoMini) {
|
||||
player.mini = !state;
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user