Skip to content

Commit 459bef2

Browse files
committed
refacor[screenfull]: 4.2.0=>5.0.0
1 parent 8504f69 commit 459bef2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Screenfull/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
},
2323
methods: {
2424
click() {
25-
if (!screenfull.enabled) {
25+
if (!screenfull.isEnabled) {
2626
this.$message({
2727
message: 'you browser can not work',
2828
type: 'warning'
@@ -35,12 +35,12 @@ export default {
3535
this.isFullscreen = screenfull.isFullscreen
3636
},
3737
init() {
38-
if (screenfull.enabled) {
38+
if (screenfull.isEnabled) {
3939
screenfull.on('change', this.change)
4040
}
4141
},
4242
destroy() {
43-
if (screenfull.enabled) {
43+
if (screenfull.isEnabled) {
4444
screenfull.off('change', this.change)
4545
}
4646
}

0 commit comments

Comments
 (0)