Fix some notice

This commit is contained in:
zhw2590582 committed 2022-02-11 20:40:25 +08:00
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 = '';
}
},
});