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

Tabs 组件 renderPanel 属性支持回调入参类型定义 #39

Closed
mumiao opened this issue Feb 24, 2021 · 0 comments · Fixed by #58
Closed

Tabs 组件 renderPanel 属性支持回调入参类型定义 #39

mumiao opened this issue Feb 24, 2021 · 0 comments · Fixed by #58
Assignees
Labels
enhancement New feature or request related tab
Projects
Milestone

Comments

@mumiao
Copy link
Collaborator

mumiao commented Feb 24, 2021

Resolved #38

Description

image
持renderFunc 回调入参自定义类型, 避免重复声明render 函数

The interface of ITab:

 interface ITab<T, P> { 
   renderPanel: (item? P) => ReactNode,
   resetProps:  ...
}
@mumiao mumiao self-assigned this Feb 24, 2021
@mumiao mumiao added the enhancement New feature or request label Feb 24, 2021
@mumiao mumiao added this to the 0.9.0-alpha.1 milestone Feb 24, 2021
@mumiao mumiao added this to To do in Kanban via automation Feb 24, 2021
@mumiao mumiao moved this from To do to In progress in Kanban Feb 24, 2021
mumiao added a commit that referenced this issue Feb 25, 2021
mumiao added a commit that referenced this issue Feb 26, 2021
mumiao added a commit that referenced this issue Feb 26, 2021
mumiao added a commit that referenced this issue Feb 26, 2021
Kanban automation moved this from In progress to Done Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment