From 459bef2d2f76a9212a6546039105109b5a37fca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Wed, 9 Oct 2019 20:44:17 +0800 Subject: [PATCH] refacor[screenfull]: 4.2.0=>5.0.0 --- src/components/Screenfull/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index 260c90de..ea128b21 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -22,7 +22,7 @@ export default { }, methods: { click() { - if (!screenfull.enabled) { + if (!screenfull.isEnabled) { this.$message({ message: 'you browser can not work', type: 'warning' @@ -35,12 +35,12 @@ export default { this.isFullscreen = screenfull.isFullscreen }, init() { - if (screenfull.enabled) { + if (screenfull.isEnabled) { screenfull.on('change', this.change) } }, destroy() { - if (screenfull.enabled) { + if (screenfull.isEnabled) { screenfull.off('change', this.change) } }