@click="isFullScreen?exitScreen():fullScreen()"
fullScreen() {
var el = document.documentElement;
var rfs =
el.requestFullScreen ||
el.webkitRequestFullScreen ||
el.mozRequestFullScreen ||
el.msRequestFullscreen;
if (typeof rfs != "undefined" && rfs && this.isFullScreen === false) {
rfs.call(el);
this.isFullScreen = true;
}
return;
},
exitScreen() {
var cfs =
document.exitFullscreen ||
document.mozCancelFullScreen ||
document.webkitCancelFullScreen ||
document.msExitFullscreen;
if (typeof cfs != "undefined" && cfs && this.isFullScreen === true) {
cfs.call(document);
this.isFullScreen = false;
}
}
···