- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 markdown-it link引用空格处理
markdown-it link引用空格处理md文档的命名存在空格,实际上在link时,将空格改成 %20即可:[text link](fileNamePrefix fileNamePostfix) error[text link](fileNamePrefix%20fileNamePostfix) ok但由于md文档编写者不同意,这样做,那没辙 😦只能去修改markdown解析部分了。实现因为是使用的vuepress做markdown解析,所以在.vuepress/config.js,添加
2022-04-11 19:17:34
3672
原创 Echarts 设置legend与数据不同颜色
Echarts 设置legend与数据不同颜色以柱状图为例options: { legend: { data: [ { name:'bar1',itemStyle: {color: '#000000'} }, { name:'bar2',itemStyle: {color: '#fc5531'} } ] },},series: [ { name: 'bar1', type: 'bar', data: da
2022-03-23 11:56:51
7470
2
原创 innerHtml click事件
Vue innerHtml click事件vue项目中使用G6作为展示拓扑图的库在使用tooltip时,想在tooltip中添加点击事件,由于tooltip返回内容使用的是innerHtml,所以methods中的方法不能直接引用解决方法如下:标签中使用click事件,使用模板函数传参//事件getContent: e => { const outDiv = document.createElement('div') outDiv.style.width = 'fit-cont
2021-07-26 10:26:16
2114
原创 BootStrap Table使用--删除指定行
BootStrap Table使用--删除指定行BootStrap Table删除行方法1方法2BootStrap Table删除行方法1在formatter方法中的标签中直接定义方法这个方法是可行的,不过当row的值中存在单引号和双引号时,方法会出问题。方法2这个方法能够避免方法一的缺点,就是需要在formatter方法中指定点击对象的class。...
2020-02-10 22:30:25
3006
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人