-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
feat: support optionRender #470
feat: support optionRender #470
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #470 +/- ##
=======================================
Coverage 99.66% 99.66%
=======================================
Files 23 23
Lines 603 604 +1
Branches 173 174 +1
=======================================
+ Hits 601 602 +1
Misses 2 2 ☔ View full report in Codecov by Sentry. |
src/Cascader.tsx
Outdated
@@ -74,6 +74,7 @@ interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionTyp | |||
id?: string; | |||
prefixCls?: string; | |||
fieldNames?: FieldNames; | |||
optionRender?: (oriOption: { option?: OptionType }) => React.ReactNode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个已经叫 oriOption
了,那传入参数就不需要再包一层 object 了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
以后加 index、level 呢?留着口子行吗
No description provided.