Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文档中说支持事件,但没有看到具体如何使用事件 #1884

Open
thep0y opened this issue Nov 14, 2023 · 1 comment
Open

文档中说支持事件,但没有看到具体如何使用事件 #1884

thep0y opened this issue Nov 14, 2023 · 1 comment

Comments

@thep0y
Copy link

thep0y commented Nov 14, 2023

这样传入点击事件,点击时却不触发:

      <Legend event={{
        onTouchStart: (e) => console.log(e),
      }}
      />
      // 或
      <Legend onTouchStart={(e) => console.log(e)} />
@tangying1027
Copy link
Contributor

目前只支持 图表标签shape上 声明事件
<rect
onPan={()=>{
console.log('testttt')
}}/>

legend组件上只开放了 onClick 事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants