摘要:
window.open(‘baidu.com’) 总是会发现跳转的是 localhost:xxxx/baidu.com,显然不是我们要的效果,在url前面+‘//’ 就可以了使用window.open(’//’+‘baidu.com’) 2022.07.14更新用上述方法后发现出现了另一种情况,如果 阅读全文
摘要:
使用 v-charts 时,绑定了一个点击事件: <ve-pie :data="chartData" :settings="chartSettings" :events="events" :data-empty="dataEmpty"></ve-pie> data中为: data() { let s 阅读全文
摘要:
一、问题 引入v-charts一直报错Can't resolve 'echarts/lib/...... 二、原因及解决方法 原因: 因为该库的作者很久未更新了(更新至2021.4.6),跟不上echats的速度,所以echarts5版本后的一些参数是没有的解决: 降级echarts 运行 npm 阅读全文
摘要:
https://github.com/ElemeFE/v-charts 阅读全文
摘要:
function filter (data, id) { var newData = data.filter(x => x.id !== id) newData.forEach(x => x.children && (x.children = filter(x.children, id))) ret 阅读全文
摘要:
问题: 原因: 在全局注册组件时采用遍历组件池的方法,此时,每个组件都应该具备name属性,否则会出现如标题的错: Uncaught TypeError: Cannot read property 'toLowerCase' of undefined 解决: 在组件中加入name属性,标注组件名称 阅读全文
摘要:
vscode 安装之后,打开设置(文件 > 首选项 > 设置): vscode设置搜索“wrap tabs”,打钩即可: 阅读全文
摘要:
对于VUE的初学者来讲,肯定会感觉prop的写法很麻烦,很讨厌!你肯定想如果prop也可以实现双向绑定那怎是一个爽字了得!不过现实是残酷的,如果子组件可以任意修改父组件的内容,那势必会带来数据的混乱,从而造成维护的困扰!毕竟父组件也是有尊严的! 官方推荐使用一种update:my-prop-name 阅读全文
摘要:
https://blog.csdn.net/csucsgoat/article/details/117847018 阅读全文
摘要:
代码结构: 在 main.js 中添加如下代码: import { cvxeTable, myheader, maintree, btnAndSearch, cvxeMulForms } from '@/components/performance'; let components=[ cvxeTa 阅读全文