摘要:
基于 vue-cli4+vant 搭建 H5 通用架子(支持微信公众号) 已经上传vue3.0+ts分支 如果有优化建议和bug请提issue 代码仓库 功能介绍 支持 px 自动转 vw(rem暂时废弃) 并且忽略 node_modules 下三方包 常用目录别名设置 支持 scss 全局样式、变 阅读全文
posted @ 2021-10-15 17:04
或许丶
阅读(557)
评论(1)
推荐(0)
摘要:
安装 npm install @turf/helpers @turf/line-intersect 代码 /** * 几何工具库 * @author maybe * @license https://gitee.com/null_639_5368 */ import * as turf from " 阅读全文
posted @ 2021-10-15 16:56
或许丶
阅读(220)
评论(1)
推荐(0)
摘要:
// main.js /** * 驼峰命名转横杠命名 * @param {*} str * @returns {*} 返回xxx-xxx */ function kebabCase (str) { const hyphenateRE = /([^-])([A-Z])/g; return str .r 阅读全文
posted @ 2021-10-15 16:55
或许丶
阅读(124)
评论(0)
推荐(0)
摘要:
码云仓库(开源插件) 缩放或者放大地图就会报错,报错信息如下: 官方解决方法:升级2.x版本,但是2.x版本卡的跟PPT一样,暂时不能使用 经测试得出解决方案: // 高德地图1.x版本在vue3的巨坑,不能声明成vue响应式对象 let map= null; const initMap = asy 阅读全文
posted @ 2021-10-15 16:54
或许丶
阅读(612)
评论(0)
推荐(0)
摘要:
m-chat 介绍 基于vue2.x 聊天(IM)UI组件(3.x以后支持) 演示 Demo 安装 npm install @maybecode/m-chat 全局安装 import Vue from 'vue' import MChat from '@maybecode/m-chat' Vue.u 阅读全文
posted @ 2021-10-15 16:42
或许丶
阅读(2129)
评论(0)
推荐(1)
摘要:
简介 EventEmitter3是一个高性能的事件发射器。它针对各种代码路径进行了微优化,使其成为Node.js和浏览器可用的最快的EventEmitter之一。 其中运用的设计模式就是发布-订阅者模式。在日常开发中运用场景有代替v-model实现自定义组件双向绑定、非父子组件之间的通讯等等。 安装 阅读全文
posted @ 2021-10-15 14:55
或许丶
阅读(705)
评论(0)
推荐(0)
摘要:
首次加入博客园 阅读全文
posted @ 2021-10-15 13:52
或许丶
阅读(17)
评论(0)
推荐(0)
摘要:
// vue3.0+ts this.$axios中报错, 按照vue2.*中扩展合并'vue/types/vue' 模块失效 Property '$axios' does not exist on type 'ComponentPublicInstance<{}, {}, {}, {}, {}, R 阅读全文
posted @ 2021-10-15 12:32
或许丶
阅读(2152)
评论(0)
推荐(0)

浙公网安备 33010602011771号