import { Vue } from 'vue-property-decorator'; /** * 包装 echarts,支持折线图、柱状图、饼图 * @see https://echarts.apache.org/zh/index.html */ export default class extends Vue { /** * echars 配置项 */ private option; private onOptionChange; mounted(): void; beforeDestroy(): void; private chart; private init; /** * 改变图表尺寸 * @param {Object} opts * @param {number | string} width 可显式指定实例宽度,单位为像素。如果传入值为 null/undefined/'auto',则表示自动取 dom(实例容器)的宽度。 * @param {number | string} height 可显式指定实例高度,单位为像素。如果传入值为 null/undefined/'auto',则表示自动取 dom(实例容器)的高度。 * @param {boolean} silent 是否禁止抛出事件。默认为 false。 * @public */ resize(opts?: { width?: number | 'auto'; height?: number | 'auto'; silent?: boolean; }): void; }