antvis/G2

如何封装组件api? #5574

duud666 posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

f2 版本 4.0.48

What problem does this feature solve?

背景上层封装使用,可抽离公共。比如tooltip,封装使用。类似如下

What does the proposed API look like?

const MyTooltip = (props) =>{

return <Tooltip {...props}/> }

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


F2 的 issue 可以去 F2 仓库提:https://github.com/antvis/F2

posted by pearmini over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests