图表组件
组件引用
项目中需要安装组件包@bdsoft/chart
pnpm install @bdsoft/chart页面中使用,
import {shallowRef} from 'vue'
import { comChartLine } from '@bdsoft/chart';
const _options = shallowRef(null);
-- template
<comChartLine :options="_options"></comChartLine>注意:
_options配置的声明需要是shallowRef,否则会容易出现内存溢出的情况。
_options的相关配置参考具体组件示例,一般会包含options和 datas 两个主要对象
靶点平台