mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
Fix some notice
This commit is contained in:
1 parent
1de2d2aaed
commit
c9040e5eec
5 files changed
+36
-9
No files matched your search
@@ -1,7 +1,10 @@
|
||||
import { addClass, removeClass, hasClass, def } from '../utils';
|
||||
|
||||
export default function fullscreenWebMix(art) {
|
||||
const { $player } = art.template;
|
||||
const {
|
||||
notice,
|
||||
template: { $player },
|
||||
} = art;
|
||||
|
||||
def(art, 'fullscreenWeb', {
|
||||
get() {
|
||||
@@ -14,12 +17,14 @@ export default function fullscreenWebMix(art) {
|
||||
art.autoSize = false;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreenWeb', true);
|
||||
notice.show = '';
|
||||
} else {
|
||||
removeClass($player, 'art-fullscreen-web');
|
||||
art.aspectRatioReset = true;
|
||||
art.autoSize = art.option.autoSize;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreenWeb');
|
||||
notice.show = '';
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user