dandanyajin
今天更新博客了吗?
posts - 81,comments - 1,views - 75998
03 2022 档案
require is not defined
摘要:项目中空状态要求用不同图片,想着封装一下 传图片地址时报错 props:{ imgSrc:{ typeof:String, default:()=>require('@/assets/image/noContent.png') } }, vite的锅,改为下面这种就好了 props:{ imgSrc 阅读全文
posted @ 2022-03-29 16:56 dandanyajin 阅读(615) 评论(0) 推荐(0) 编辑
echarts 下钻 返回设成按钮的样式
摘要:graphic: [ { type: 'group', right: 0, top: 0, children: [ { type: 'rect', z: 100, left: 'center', top: 'middle', shape: { width: 50, height: 25 }, sty 阅读全文
posted @ 2022-03-24 09:28 dandanyajin 阅读(341) 评论(0) 推荐(0) 编辑
阻止冒泡 阻止默认事件
摘要:if ( event && event.stopPropagation ) { event.stopPropagation(); }else { window.event.cancelBubble = true; } if ( event && event.preventDefault ) { ev 阅读全文
posted @ 2022-03-22 14:36 dandanyajin 阅读(40) 评论(0) 推荐(0) 编辑
echarts 点击事件 点击一次触发多次
摘要:在写echarts下钻功能,发现点击事件有时触发一次有时触发多次 解决办法 myChart.off('click').on('click', function (event) {} 或者 myChart.off('click'); myChart.on('click', function (even 阅读全文
posted @ 2022-03-22 14:34 dandanyajin 阅读(657) 评论(0) 推荐(0) 编辑
echarts 没有数据时,无数据展示
摘要:{ title: { text: '暂无数据', x: 'center', y: 'center', textStyle: { color: '#ccc', fontWeight: 'normal', fill: '#9d9d9d', fontWeight: 'bold', text: '暂无数据' 阅读全文
posted @ 2022-03-18 11:34 dandanyajin 阅读(1380) 评论(0) 推荐(0) 编辑
递归 出现的一些问题
摘要:在使用递归时,出现了一些问题。 正常走完循环赋值正确后,会莫名其妙回到for这行代码,xdata,ydata会再次变为null,直接走到return recursion(drilldownList,name){ var xdata = null var ydata = null for(var i 阅读全文
posted @ 2022-03-16 14:02 dandanyajin 阅读(68) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示