antvis / antvis/F2

itemMarkerStyle defaultitemMarkerStyle 覆盖了props传入的

Open
#1,816 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://github.com/antvis/F2/blob/43a485ef7dde25c62eac008d21705752c355818f/packages/f2/src/components/tooltip/tooltipView.tsx#L272](https://github.com/antvis/F2/blob/43a485ef7dde25c62eac008d21705752c355818f/packages/f2/src/components/tooltip/tooltipView.tsx#L272)

### Steps to reproduce
https://github.com/antvis/F2/blob/43a485ef7dde25c62eac008d21705752c355818f/packages/f2/src/components/tooltip/tooltipView.tsx#L272

| Environment | Info |
|---|---|
| f2 | 5.0.28 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start at packages/f2/src/components/tooltip/tooltipView.tsx around line 272, linked in the issue. Compare the itemMarkerStyle default with the value supplied through props and reproduce the reported override using the referenced source. Done means the props-provided style is no longer unexpectedly overridden by the default.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.