摘要:
mouseout:鼠标移出事件 contextmenu :弹出右键菜单 mouseover:鼠标移入事件 contextmenu :弹出右键菜单。 mousedown:当用户按下了鼠标还未弹起时触发。 mouseup:当用户释放鼠标按钮时触发。 mouseout:当鼠标移出某个元素上移动时触发。 m 阅读全文
posted @ 2022-07-14 16:23
DL·Coder
阅读(468)
评论(0)
推荐(0)
摘要:
屏幕放大、缩小,自适应 this.myChart 是获取存放图标的盒子元素 mounted() { window.addEventListener("resize", () => { this.myChart.resize(); }); }, beforeDestroy() { window.rem 阅读全文
posted @ 2022-07-14 15:59
DL·Coder
阅读(576)
评论(0)
推荐(0)
摘要:
放大缩小代码 使用getZr()注册和取消mousewheel事件 字体大小设置放在 textStyle 里面 this.myChart.getZr().off("mousewheel") this.myChart.getZr().on("mousewheel", (param) => { let 阅读全文
posted @ 2022-07-14 15:57
DL·Coder
阅读(1480)
评论(0)
推荐(0)
摘要:
原因:初始化没有获取到元素 方法:初始化的时候,使用$nextTick延后执行 mounted() { this.init(); }, methods: { init() { this.$nextTick(() => { this.initPic(); }); }, initPic() { cons 阅读全文
posted @ 2022-07-14 14:36
DL·Coder
阅读(6273)
评论(0)
推荐(0)

浙公网安备 33010602011771号