04 2022 档案
摘要:效果图: html: <ChartDom :chart-option="option" :chart-style="chartStyle" /> js: option: { tooltip: { trigger: 'axis', // show: false, formatter() { // le
阅读全文
摘要:npm i svg-sprite-loader vue.config.js:黑体字部分 const path = require('path') function resolve(dir) { return path.join(__dirname, '.', dir) } module.export
阅读全文
摘要:chartStyle: { type: Object, default: () => ({ width: '100%', height: `calc(100vh - 400px)`, }), required: true, }
阅读全文
摘要:参考:https://github.com/apache/echarts/issues/13943 <div id="card" ref="chartDom" :style="chartStyle"></div> import { shallowRef } from 'vue'; import *
阅读全文