apache / apache/echarts

[Bug] 饼图labelLayout-draggable更新问题

Open
#20,631 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=pie-simple

### Steps to Reproduce

ApacheCharts.setOption({
series: {
type: pie,
labelLayout: () => {
return {
draggable: isLabelDrag.value,
};
},
},
});

### Current Behavior

随便找一个饼图代码,用setOption更新labelLayout-labelLayout:true,然后用同样的方法设置为false,此时去拖拽标签,还可以拖拽并且引导线不动

### Expected Behavior

设置为false之后,应该不能被拖拽,鼠标悬浮图标应该为手指而不是拖拽符号

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.