摘要: 1. 报错信息 2. 报错原因 检查页面代码发现动效出错页面为多根节点,修改后动效正常 <template> <div> <div>xxx</div> </div> </template> 3. 动效添加 <router-view v-slot="{ Component }"> <transitio 阅读全文
posted @ 2023-02-24 15:23 Li_pk 阅读(144) 评论(0) 推荐(0)
摘要: 1. 新建 echartsLib.js 文件,统一导入需要的组件 import * as echarts from "echarts/core"; import { SVGRenderer, CanvasRenderer } from "echarts/renderers"; import { Ba 阅读全文
posted @ 2023-02-23 18:12 Li_pk 阅读(1274) 评论(0) 推荐(1)
摘要: 人物 |syntax|preview|syntax|preview|syntax|preview| |: :|: :|: :|: :|: :|: :| |:bowtie:|:bowtie:|:smile:|:smile:|:laughing:|:laughing:| |:blush:|:blush: 阅读全文
posted @ 2023-02-23 17:47 Li_pk 阅读(90) 评论(0) 推荐(0)
摘要: 1. Cannot read properties of undefined (reading 'type') 原因:定义图表变量时使用reactive定义响应式变量。 const chartList = reactive({ chart1: null }); 解决:改为非响应式变量。 // 方法一 阅读全文
posted @ 2023-02-20 14:49 Li_pk 阅读(86) 评论(0) 推荐(0)
摘要: 效果 实现方法 1. 将interval属性设置为一个很大的数值 yAxis: [{ type: "value", interval: 100000000 }], 暂时只想到一种方法,后续补充。 阅读全文
posted @ 2023-02-16 17:23 Li_pk 阅读(1313) 评论(0) 推荐(0)
摘要: ## 1、表单el-checkbox中添加全选 > 在正常的el-checkbox-group前增加全选并且不影响表单验证。 ![image](https://img2023.cnblogs.com/blog/1857566/202302/1857566-20230227112115163-3139 阅读全文
posted @ 2023-02-09 10:23 Li_pk 阅读(236) 评论(0) 推荐(0)
摘要: 1. 使用对象结构并且重命名 // 使用对象解构 let person = { name: 'Matt', age: 27 }; let { name: personName, age: personAge } = person; console.log(personName); // Matt c 阅读全文
posted @ 2023-02-07 09:22 Li_pk 阅读(95) 评论(0) 推荐(0)
摘要: 在vite中不能使用require引入图片资源,所以使用vite提供的方法引入 详见链接 -> vite静态资源处理 import.meta.url 是一个 ESM 的原生功能,会暴露当前模块的 URL。将它与原生的 URL 构造器 组合使用,在一个 JavaScript 模块中,通过相对路径我们就 阅读全文
posted @ 2023-01-16 11:10 Li_pk 阅读(717) 评论(0) 推荐(0)
摘要: 1. 问题描述:el-table使用固定列时,使用keep-alive后页面切换导致该列错位。 2. 解决方法:使用el-table的doLayout方法对表格进行重新布局 activated() { this.$nextTick(() => { this.$refs.myTable.doLayou 阅读全文
posted @ 2023-01-05 15:49 Li_pk 阅读(1362) 评论(0) 推荐(0)
摘要: 官网 Vue Flow 官网 Vue Flow GitHub 安装 npm i --save @vue-flow/core yarn add @vue-flow/core pnpm i @vue-flow/core 使用 <template> <VueFlow v-model="elements" 阅读全文
posted @ 2023-01-03 17:13 Li_pk 阅读(15723) 评论(0) 推荐(0)