上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页
摘要: 最近项目中需要做一个电子签名的控件,踩坑不少。现记录一下。 一、控件效果 这是一个之前的项目中的手写签名的一个控件,现在要改成vue版本的。 大概功能就是点击页面中的标题文字“手写签批”,有一个弹框,里面可以手写签名,底部是功能操作,包括撤销、清屏、橡皮擦功能、调节笔刷的粗细、保存等。 二、插件选择 阅读全文
posted @ 2022-08-02 16:32 smil、梵音 阅读(13272) 评论(0) 推荐(2) 编辑
摘要: window.open(‘baidu.com’) 总是会发现跳转的是 localhost:xxxx/baidu.com,显然不是我们要的效果,在url前面+‘//’ 就可以了使用window.open(’//’+‘baidu.com’) 2022.07.14更新用上述方法后发现出现了另一种情况,如果 阅读全文
posted @ 2022-07-13 14:54 smil、梵音 阅读(1183) 评论(0) 推荐(1) 编辑
摘要: 使用 v-charts 时,绑定了一个点击事件: <ve-pie :data="chartData" :settings="chartSettings" :events="events" :data-empty="dataEmpty"></ve-pie> data中为: data() { let s 阅读全文
posted @ 2022-07-12 11:21 smil、梵音 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 一、问题 引入v-charts一直报错Can't resolve 'echarts/lib/...... 二、原因及解决方法 原因: 因为该库的作者很久未更新了(更新至2021.4.6),跟不上echats的速度,所以echarts5版本后的一些参数是没有的解决: 降级echarts 运行 npm 阅读全文
posted @ 2022-07-06 17:03 smil、梵音 阅读(618) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ElemeFE/v-charts 阅读全文
posted @ 2022-07-06 12:45 smil、梵音 阅读(60) 评论(0) 推荐(0) 编辑
摘要: function filter (data, id) { var newData = data.filter(x => x.id !== id) newData.forEach(x => x.children && (x.children = filter(x.children, id))) ret 阅读全文
posted @ 2022-07-01 15:17 smil、梵音 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 问题: 原因: 在全局注册组件时采用遍历组件池的方法,此时,每个组件都应该具备name属性,否则会出现如标题的错: Uncaught TypeError: Cannot read property 'toLowerCase' of undefined 解决: 在组件中加入name属性,标注组件名称 阅读全文
posted @ 2022-06-30 09:18 smil、梵音 阅读(277) 评论(0) 推荐(0) 编辑
摘要: vscode 安装之后,打开设置(文件 > 首选项 > 设置): vscode设置搜索“wrap tabs”,打钩即可: 阅读全文
posted @ 2022-06-28 17:29 smil、梵音 阅读(1054) 评论(0) 推荐(2) 编辑
摘要: 对于VUE的初学者来讲,肯定会感觉prop的写法很麻烦,很讨厌!你肯定想如果prop也可以实现双向绑定那怎是一个爽字了得!不过现实是残酷的,如果子组件可以任意修改父组件的内容,那势必会带来数据的混乱,从而造成维护的困扰!毕竟父组件也是有尊严的! 官方推荐使用一种update:my-prop-name 阅读全文
posted @ 2022-06-27 14:50 smil、梵音 阅读(53) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/csucsgoat/article/details/117847018 阅读全文
posted @ 2022-06-27 14:32 smil、梵音 阅读(276) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页