摘要: 处理html显示,主要是编辑器保存后展示的处理 编码处理-基础 export function decodeHTMLEntities(text) { if (!text) return '' const entities = { ' ': ' ', '&': '&', '<' 阅读全文
posted @ 2025-08-28 10:50 流云君 阅读(11) 评论(0) 推荐(0)
摘要: 1.导出图片 基础导出 const dpr = Math.max(window.devicePixelRatio || 1, 3) // 建议2~3 const captureElement = () => { html2canvas(element, { scale: dpr, useCORS: 阅读全文
posted @ 2025-08-28 10:44 流云君 阅读(11) 评论(0) 推荐(0)
摘要: 条件组合组件--vue3版 参考 手把手教你写一个条件组合组件 此随笔是借鉴以上写的vue版,记录一下 组件 前期准备 1.vue3的全套工具 2.element-plus 3.lodash 数据结构 主要是嵌套结构 关键点 在RelationGroup组件内引用本身,注意key值,不能用i,不然删除操作,会从最后删起 组件结 阅读全文
posted @ 2024-07-25 10:47 流云君 阅读(1673) 评论(0) 推荐(0)
摘要: 前言 关于解决echarts+ws多次数据刷新渲染,内存增长溢出的尝试。 记录一下,便于下次使用有参考 方法 关闭echarts动画 tooltip的动画设置为false。(echarts动画会缓存,通过快照可以看出) tooltip: { axisPointer: { animation: fal 阅读全文
posted @ 2024-01-15 10:01 流云君 阅读(2045) 评论(0) 推荐(3)
摘要: bcrypt 加密 引入 npm i bcrypt -S 代码 加密 const bcrypt = require("bcrypt") const salt = bcrypt.genSaltSync(10); const hash = bcrypt.hashSync(password, salt); 阅读全文
posted @ 2023-05-12 17:08 流云君 阅读(25) 评论(0) 推荐(0)
摘要: 流程 前端js使用公钥进行加密,后端使用私钥进行解密(C#或java语言)。 注意:c#使用xml格式的公钥/私钥 Java,js都是pem格式 格式 xml: <RSAKeyValue><Modulus> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </Modulus> 阅读全文
posted @ 2023-05-12 17:02 流云君 阅读(118) 评论(0) 推荐(0)
摘要: react+antd选择框输入 const onSearch=(fn,value)=>{ if(value){//这个if无比重要 form.setFieldsValue({"Owner":value}); } } <Select allowClear showSearch onSearch={on 阅读全文
posted @ 2023-05-12 16:42 流云君 阅读(13) 评论(0) 推荐(0)
摘要: 写了一个关于echatrs组件,报错dom重复 配置信息从props拿 let chart; useEffect(() => { if (chart) { updateChartView(); }else{ chart = echarts.init(dom.current) updateChartV 阅读全文
posted @ 2023-03-21 17:28 流云君 阅读(340) 评论(0) 推荐(0)
摘要: antd5中文设定 import zhCN from "antd/lib/locale/zh_CN" <ConfigProvider locale={zhCN} theme={{ token: { colorPrimary: "#22a6f2", }, }} > 组件 </ConfigProvide 阅读全文
posted @ 2023-03-13 14:24 流云君 阅读(214) 评论(0) 推荐(0)
摘要: git在线演示 1.新建一个gh-pages分支 2.打包好的dist上传到分支里 3.访问:https://【用户名】.github.io/【项目名】/dist ( 会自动访问dist下的index.html ) 坑 打包上传后访问,显示一片空白。报资源404 解决: webpack配置文件,设置 阅读全文
posted @ 2023-03-09 11:44 流云君 阅读(120) 评论(0) 推荐(0)