随笔分类 - vue
摘要:处理html显示,主要是编辑器保存后展示的处理 编码处理-基础 export function decodeHTMLEntities(text) { if (!text) return '' const entities = { ' ': ' ', '&': '&', '<'
阅读全文
摘要:1.导出图片 基础导出 const dpr = Math.max(window.devicePixelRatio || 1, 3) // 建议2~3 const captureElement = () => { html2canvas(element, { scale: dpr, useCORS:
阅读全文
摘要:
参考 手把手教你写一个条件组合组件 此随笔是借鉴以上写的vue版,记录一下 组件 前期准备 1.vue3的全套工具 2.element-plus 3.lodash 数据结构 主要是嵌套结构 关键点 在RelationGroup组件内引用本身,注意key值,不能用i,不然删除操作,会从最后删起 组件结
阅读全文
参考 手把手教你写一个条件组合组件 此随笔是借鉴以上写的vue版,记录一下 组件 前期准备 1.vue3的全套工具 2.element-plus 3.lodash 数据结构 主要是嵌套结构 关键点 在RelationGroup组件内引用本身,注意key值,不能用i,不然删除操作,会从最后删起 组件结
阅读全文
摘要:前言 关于解决echarts+ws多次数据刷新渲染,内存增长溢出的尝试。 记录一下,便于下次使用有参考 方法 关闭echarts动画 tooltip的动画设置为false。(echarts动画会缓存,通过快照可以看出) tooltip: { axisPointer: { animation: fal
阅读全文
摘要:1.按钮 <el-button @mousedown="down" @touchstart="down" @mousemove="move" @touchmove="move" @mouseup="end" @touchend="end" @touchcancel="end" > </el-butt
阅读全文
摘要:
主要技术 MediaRecorder 录音 webrtc 获取麦克风 URL.createObjectURL 转换为url(实际生产中,通过后端转换blob为mp3网址) 实现elementui+vue 1.html <div class="chat-record"> <audio ref="cha
阅读全文
主要技术 MediaRecorder 录音 webrtc 获取麦克风 URL.createObjectURL 转换为url(实际生产中,通过后端转换blob为mp3网址) 实现elementui+vue 1.html <div class="chat-record"> <audio ref="cha
阅读全文

浙公网安备 33010602011771号