echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] GraphEdgeItemOption 没有导出

Open qq1063823095 opened this issue 3 years ago • 3 comments

Version

4.5.5

Link to Minimal Reproduction

No response

Steps to Reproduce

代码如下: import { GraphEdgeItemOption } from 'echarts'

vscode提示如下: 模块“"echarts"”没有导出的成员“GraphEdgeItemOption”。ts(2305)

Current Behavior

无法使用GraphEdgeItemOption类型,因为它没有导出

Expected Behavior

我希望可以在我代码中使用GraphEdgeItemOption类型作为自己代码中的类型的限定

Environment

- OS:win10
- Browser: Edge
- Framework:

Any additional comments?

No response

qq1063823095 avatar Feb 21 '22 07:02 qq1063823095

@qq1063823095 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] GraphEdgeItemOption is not exported

BODY

Version

4.5.5

Link to Minimal Reproduction

No response

Steps to Reproduce

code show as below: import { GraphEdgeItemOption } from 'echarts'

The vscode prompt is as follows: Module ''echarts'' has no exported member 'GraphEdgeItemOption'. ts(2305)

Current Behavior

Cannot use type GraphEdgeItemOption because it is not exported

Expected Behavior

I want to be able to use the GraphEdgeItemOption type in my code as a type of qualification in my code

Environment

- OS: win10
- Browser: Edge
- Framework:

Any additional comments?

No response

echarts-bot[bot] avatar Feb 21 '22 07:02 echarts-bot[bot]

目前我通过以下代码来实现了我的需求:

var tempGSO = { links: [] } as GraphSeriesOption
type GraphEdgeItemOption = NonNullable<typeof tempGSO.links>[0]

但我认为这不是最有效的办法

qq1063823095 avatar Feb 21 '22 07:02 qq1063823095

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Feb 21 '24 21:02 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Feb 29 '24 21:02 github-actions[bot]