@@ -0,0 +1,10 @@
+export default {
+ install(Vue) {
+ Vue.prototype.EchartfontSize = (res) => {
+ const clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
+ if (!clientWidth) return
+ const fontSize = (clientWidth / 1920)
+ return res * fontSize
+ }
+}