摘要: 1、构建echart公用组件 <template> <div :class="className" :style="{ width, height }"></div> </template> <script> import echarts from "echarts"; require("echar 阅读全文
posted @ 2023-10-23 20:09 深巷漫步 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1、校验对象中的对象属性, 需要特殊处理下: <template v-if="form.dataType 0"> <el-form-item label="芯片类型" prop="configExtend.schemeVersion"> <el-select v-model="form.config 阅读全文
posted @ 2023-04-25 19:57 深巷漫步 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 1、安装: npm install -g pnpm2、pnpm -v 之后就报一下错误 3、原因:出现改问题是没有配置pnpm的环境变量 4、解决方法: 一、找到pnpm的存储路径,如: 二、复制以下路径,将其添加到环境变量中即可 5、使用以下命令,查验是否安装成功(打开cmd) 一、 set PA 阅读全文
posted @ 2023-02-09 11:03 深巷漫步 阅读(6686) 评论(0) 推荐(1) 编辑
摘要: 1、使用a标签,需加上download (下载文件的名称)属性才行。 区别: 一: 在 Android上可以下载。 二: 在Ios 上是直接打开文件。2、使用浏览器自带的下载文件的功能,将文件转为二进制的数据流,代码如下: axios({ url, method: "get", resposeTyp 阅读全文
posted @ 2023-05-26 14:36 深巷漫步 阅读(1302) 评论(0) 推荐(0) 编辑
摘要: 1、nuxt 在启动之后, 默认是通过localhost:3000 访问的 , 若想通过本机IP访问,则需要配置:在package.json中加入一下代码 "config": { "nuxt": { "host": "0.0.0.0", "port": "8090" // 可以自己配置 } } 2、 阅读全文
posted @ 2023-04-26 16:13 深巷漫步 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1、https://www.screentogif.com/ 动态图 阅读全文
posted @ 2023-04-03 09:54 深巷漫步 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、获取所有图片路径 function fn(str){ var data = []; str.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) { data.push(capture); }); conso 阅读全文
posted @ 2023-03-24 17:08 深巷漫步 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1、解决方法: 一、直接在命令窗口创建 (Win + R),输入cmd 二、使用winpty 命令 + .cmd,如:winpty npm.cmd create vite@latest 阅读全文
posted @ 2023-02-14 10:02 深巷漫步 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1、不管使用的是px,还是百分比,均可通过css3中提供的scale方法,来达到适配多端。 // 屏幕适配 mixin 函数 // * 默认缩放值 const scale = { width: '1', height: '1', } // * 设计稿尺寸(px) const baseWidth = 阅读全文
posted @ 2023-01-04 19:47 深巷漫步 阅读(1123) 评论(0) 推荐(0) 编辑
摘要: 使用 git bash 创建vue项目时候,无法使用上下键盘按键选择创建模板, 处理:1.当前界面,按CTR + C终止创建命令;2.使用 alias vue='winpty vue.cmd',更新命令环境;3.再次使用 vue create demo创建项目;4.即可使用键盘上下键选择。 重点: 阅读全文
posted @ 2022-09-14 19:53 深巷漫步 阅读(526) 评论(0) 推荐(0) 编辑
/* 看板娘 */