@vuepress/plugin-medium-zoom
Advanced tools
Comparing version 1.0.0-alpha.20 to 1.0.0-alpha.21
21
mixin.js
@@ -7,7 +7,22 @@ /* global SELECTOR */ | ||
export default { | ||
data: () => ({ zoom: null }), | ||
mounted () { | ||
setTimeout(() => { | ||
zoom(SELECTOR) | ||
}, 1000) | ||
this.updateZoom() | ||
}, | ||
updated () { | ||
this.updateZoom() | ||
}, | ||
methods: { | ||
updateZoom () { | ||
setTimeout(() => { | ||
if (this.zoom) { | ||
this.zoom.detach() | ||
} | ||
this.zoom = zoom(SELECTOR) | ||
}, 1000) | ||
} | ||
} | ||
} |
{ | ||
"name": "@vuepress/plugin-medium-zoom", | ||
"version": "1.0.0-alpha.20", | ||
"version": "1.0.0-alpha.21", | ||
"description": "medium-zoom plugin for vuepress", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1432
35