摘要: ​ Vue-Codemirror 安装与使用指南 项目地址:https://gitcode.com/gh_mirrors/vu/vue-codemirror 1、安装(两个都需要安装) npm i vue-codemirror@4.x --save npm i codemirror@5.x --sa 阅读全文
posted @ 2025-03-06 14:57 Qing`ing 阅读(808) 评论(0) 推荐(0)
摘要: 例如↓数组中每条数据的url字段相似 arr = [ { id:0, dir:'/edit/aaaa/bbbb/cccc/dddd/20231123', title:'第一条数据' }, { id:1, dir:'/edit/aaaa/bbbb/cccc/dddd/20241011', title: 阅读全文
posted @ 2024-11-29 18:35 Qing`ing 阅读(30) 评论(0) 推荐(0)
摘要: ​ removeFun(description) { description = description.replace(/<\/?[^>]*>/g, ''); // 去除HTML tag 如果后端返回的数据或者处理的数据不带标签 不用写这一步 ————以上都是去除 后端返回的 "<span cla 阅读全文
posted @ 2024-10-10 15:05 Qing`ing 阅读(13) 评论(0) 推荐(0)
摘要: antd中的 Checkbox.Group 属性中的 defaultValue为数组 当改变某个状态需要改变这个数组 发现失效 解决办法: Checkbox.Group添加 key值 为defaultValue指定的数组 当key值发生变化组件会重新渲染,从而使更新后的defaultValue属性生 阅读全文
posted @ 2024-10-10 15:04 Qing`ing 阅读(152) 评论(0) 推荐(0)
摘要: 1、 HMAC-SHA256的base64加密 首先 npm install crypto-js --save 项目中使用 1 2 3 4 5 import CryptoJS from 'crypto-js'; const hash = CryptoJS.HmacSHA256(zhuan, 'sec 阅读全文
posted @ 2024-10-10 15:02 Qing`ing 阅读(710) 评论(0) 推荐(0)
摘要: ​ 前言 当出现相同的参数 根据另一个特定参数来改变数据 改变原因 如下图 出现相同的名字但是版本号不同 下拉框数据是 版本号 改变版本号时候改变这一条数据 所以 一个大数组中分为每个对象 每个对象两个参数 第一个参数: 是选中的版本号 第二个参数是相同名字的数据组成一个对象 key是版本号 对应他 阅读全文
posted @ 2024-10-10 15:01 Qing`ing 阅读(80) 评论(0) 推荐(0)
摘要: 安装: npm install reactflow (我的版本是npm install reactflow@11.11.4) reactflow 官网 https://reactflow.dev/ 内置组件 <Background/>插件实现了一些基本的可定制背景模式。 <MiniMap/>插件在屏 阅读全文
posted @ 2024-07-24 17:54 Qing`ing 阅读(711) 评论(0) 推荐(0)
摘要: 在终端运行 sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} 以后输入自己要安的即可! 阅读全文
posted @ 2024-05-29 16:18 Qing`ing 阅读(76) 评论(0) 推荐(0)
摘要: myChart.setOption(option); myChart.getZr().on('click', params => { // 规定代码块↓↓ const pointInPixel = [params.offsetX, params.offsetY]; if (myChart.conta 阅读全文
posted @ 2024-04-23 18:27 Qing`ing 阅读(1219) 评论(0) 推荐(0)
摘要: tooltip: { trigger: 'axis', padding: [5, 10], axisPointer: { type: '' }, } 阅读全文
posted @ 2024-04-18 15:12 Qing`ing 阅读(296) 评论(0) 推荐(0)