摘要: 安装: npm install reactflow (我的版本是npm install reactflow@11.11.4) reactflow 官网 https://reactflow.dev/ 内置组件 <Background/>插件实现了一些基本的可定制背景模式。 <MiniMap/>插件在屏 阅读全文
posted @ 2024-07-24 17:54 Qing`ing 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 在终端运行 sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} 以后输入自己要安的即可! 阅读全文
posted @ 2024-05-29 16:18 Qing`ing 阅读(8) 评论(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 阅读(452) 评论(0) 推荐(0) 编辑
摘要: tooltip: { trigger: 'axis', padding: [5, 10], axisPointer: { type: '' }, } 阅读全文
posted @ 2024-04-18 15:12 Qing`ing 阅读(97) 评论(0) 推荐(0) 编辑
摘要: :cell-style=“{ textAlign:‘center’}” //内容居中 :header-cell-style=“{ textAlign:‘center’}”//表头居中 <el-table :cell-style=“{ textAlign:‘center’}” :header-cell 阅读全文
posted @ 2024-04-11 17:38 Qing`ing 阅读(172) 评论(0) 推荐(0) 编辑
摘要: :header-cell-style="{backgroundColor:'#F6F8F9', color: '#333',textAlign:'center'}" 要求1、折线为渐变色 2、折线区域渐变色 3、x 轴 y轴不展示 4、折线图背景为网格 5、鼠标划上样式修改 const option 阅读全文
posted @ 2024-04-11 17:35 Qing`ing 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 每次切换 echarts 时要清除上一次的 echarts的图像 // 清除上次折线图数据 const charts = this.$refs.chart1; const myChart = echarts.init(charts); myChart.clear(); 阅读全文
posted @ 2023-10-25 15:46 Qing`ing 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 当后端返回的数据格式为 const datas = [ { fast: '0', publish: '2222' }, { fast: '2', publish: '1111' }, { fast: '23', publish: '113122111' }, { fast: '123', publi 阅读全文
posted @ 2023-10-25 15:44 Qing`ing 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 前景 后端返回的 echarts 展示数据格式,既要展示echarts 又要展示table表格,echarts 的数据格式为下面 { xData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], yData1:[10, 52, 200, 334, 阅读全文
posted @ 2023-08-04 10:58 Qing`ing 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 1、问题现象: echarts第一次获取的数据展示后 第二次再次获取会覆盖不了 展示的依然是上次的数据 解决办法: chart.clear() 2、问题现象: echarts 的占位 没有数据的话是只展示 x 轴和 y 轴 解决办法: 利用title的副标题subtext,默认为“暂无数据”,当数据 阅读全文
posted @ 2023-08-04 10:40 Qing`ing 阅读(239) 评论(0) 推荐(0) 编辑