会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
笔记
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
10
11
12
13
14
15
16
17
18
下一页
2023年2月24日
Vue3 + Vue Router 4.x 添加transition报错
摘要: 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)
2023年2月23日
Vue3 + echarts 统一封装
摘要: 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)
markdown文本表情记录
摘要: 人物 |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)
2023年2月20日
vue3 + echarts5 使用问题汇总
摘要: 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)
2023年2月16日
echarts 让y轴只显示0和最大刻度值
摘要: 效果 实现方法 1. 将interval属性设置为一个很大的数值 yAxis: [{ type: "value", interval: 100000000 }], 暂时只想到一种方法,后续补充。
阅读全文
posted @ 2023-02-16 17:23 Li_pk
阅读(1313)
评论(0)
推荐(0)
2023年2月9日
element ui奇葩自定义样式及功能需求记录
摘要: ## 1、表单el-checkbox中添加全选 > 在正常的el-checkbox-group前增加全选并且不影响表单验证。 
评论(0)
推荐(0)
2023年2月7日
对象解构、嵌套解构
摘要: 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)
2023年1月16日
vue3 + vite 动态引入图片
摘要: 在vite中不能使用require引入图片资源,所以使用vite提供的方法引入 详见链接 -> vite静态资源处理 import.meta.url 是一个 ESM 的原生功能,会暴露当前模块的 URL。将它与原生的 URL 构造器 组合使用,在一个 JavaScript 模块中,通过相对路径我们就
阅读全文
posted @ 2023-01-16 11:10 Li_pk
阅读(717)
评论(0)
推荐(0)
2023年1月5日
el-table 固定列错位问题
摘要: 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)
2023年1月3日
Vue3 流程图组件库 Vue Flow 简单使用
摘要: 官网 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)
上一页
1
···
10
11
12
13
14
15
16
17
18
下一页
公告