随笔分类 -  vue

摘要:1 // 子组件 childComponent 2 <template> 3 <div>{{ icon }}</div> 4 <div @click="chooseIcon(item)"></div> 5 </template> 6 <script> 7 import {defineComponen 阅读全文
posted @ 2021-09-25 11:45 tcanhe 阅读(151) 评论(0) 推荐(0)
摘要:问题代码,查看根目录main.js中引入axios的代码,是否如下所示: Vue.use(axios) 正确写法: Vue.prototype.axios = axios转载:https://www.cnblogs.com/tudou1179006580/p/11224552.html 阅读全文
posted @ 2020-12-03 09:48 tcanhe 阅读(1051) 评论(0) 推荐(0)
摘要:ant design vue组件中没有关于滚动条的设置 这篇文章介绍了怎么设置滚动条https://www.cnblogs.com/home-/p/12195761.html 插件官网:https://vuescrolljs.yvescoding.org/zh/demo/ 内容如下 安装模块: np 阅读全文
posted @ 2020-11-10 15:11 tcanhe 阅读(14522) 评论(0) 推荐(1)
摘要:<template> <a-config-provider :locale="locale"> </a-config-provider> </template> <script> import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN' 阅读全文
posted @ 2020-11-10 09:49 tcanhe 阅读(2895) 评论(0) 推荐(0)
摘要:全国行政区划GeoJON 支持省市县维度 http://datav.aliyun.com/tools/atlas/#&lat=30.332329214580188&lng=106.72278672066881&zoom=3.5 HighCharts 全球行政区划数据集 https://img.hch 阅读全文
posted @ 2020-11-02 14:34 tcanhe 阅读(621) 评论(0) 推荐(0)
摘要:在vue 中 使用 g2 好多帖子说在 main.js 文件中 直接用下列语句引用 1 import G2 from '@antv/g2' 2 Vue.use(G2) 会出现下列错误: 解决办法: 1 import * as G2 from '@antv/g2' 新问题: 但在新页面还是需要再引用一 阅读全文
posted @ 2020-11-02 10:50 tcanhe 阅读(2145) 评论(0) 推荐(0)
摘要:因为本人实在是菜 baidu了一下午 发现大家解决办法大同小异 而且尝试之后几乎没有作用 后来无意中去搜了prettier官网 官网中给了一下解决办法 目前我还不知道在vscode中直接安装prettier插件更改setting.json文件 没有效果的原因, 望大佬指点~ 是不是还要在每个项目建配 阅读全文
posted @ 2020-10-30 16:18 tcanhe 阅读(1445) 评论(0) 推荐(0)