摘要:
前言 这里是只将pdf文件的前两页进行了转换; 内容 import fitz # pip install pymupdf import os def pdf2img(pdf_path, zoom_x, zoom_y): doc = fitz.open(pdf_path) for page in do 阅读全文
摘要:
前言 如题,设置pip使用国内镜像源; 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学: https://pypi.mirrors.ustc.edu.cn/si 阅读全文
摘要:
前言 一个老项目需求需要给echarts图表增加点击事件,点击图表的时候跳转到对应的页面; echarts: 4.9.0 步骤 实现 this.chart.on('click', () => { this.$router.push({ path: '/source/sourceList' }) }) 阅读全文
摘要:
前言 npm: webpack-bundle-analyzer github:webpack-bundle-analyzer 内容 安装 npm i -D webpack-bundle-analyzer 配置 主要涉及两个文件webpack.config.js和package.json webpac 阅读全文
摘要:
前言 一个用于vscode的todo插件,可自定义标签和颜色 Todo Tree: https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree Github: https://github.com/Gruntfu 阅读全文
摘要:
前言 因为之前的封装都是直接作为根节点封装的,使用this.$el,非根组件的时候使用this.$refs.xx指定即可 内容 简写 <div ref="container" :id="id" style="height: 165px; width: 100%"></div> this.chart 阅读全文
摘要:
前言 通过CSS伪类来定义正方形的四个角边框 #内容 <template> <ul class="smart-energy flex" v-if="pageflag"> <li> <div class="smart-energy-item"> <div class="electricity">100 阅读全文
摘要:
前言 如题,调整vscode的终端位置。 内容 阅读全文
摘要:
前言 项目里使用的echarts版本是4.9.0,这里就用该版本做演示; 配置项: echarts option codesandbox示例: Echarts数据转换 内容 鉴于echarts折线图和柱状图可以直接通过toolbox转换,所以我们只需要在toolbox中增加一个和饼图进行转换的方法即 阅读全文
摘要:
前言 mingw-w64:https://sourceforge.net/projects/mingw-w64/files/mingw-w64/ 内容 安装mingw-w64 下载地址 x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z: x86_64-8.1 阅读全文