ecomfe / vue-echarts

Vue.js component for Apache ECharts™.
https://vue-echarts.dev
MIT License
9.43k stars 1.48k forks source link

import code generator 如何使用 #744

Closed lihaozzx closed 8 months ago

lihaozzx commented 8 months ago

请确认

您是如何将 Vue-ECharts 引入项目的?

通过 ES 模块 import

版本信息

https://vue-echarts.dev/#codegen

问题详情

options = {}

var options = {}

export const options = {}

export default {options = {}}

都报错


/* Invalid ECharts option */

// Cannot read properties of undefined (reading 'options')

问题复现

zws-code commented 8 months ago

确定一样的问题. 怎么换姿势都不对

Justineo commented 8 months ago

直接贴 option 的值(没有 option = 这种)。

刚才看了下之前更新了一下依赖似乎把这个功能搞挂了,我需要看一下。

Justineo commented 8 months ago

Fixed and added example code.