-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
enhance(NavBar): back support ReactNode #5715
enhance(NavBar): back support ReactNode #5715
Conversation
Codecov ReportBase: 89.39% // Head: 90.02% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5715 +/- ##
==========================================
+ Coverage 89.39% 90.02% +0.63%
==========================================
Files 296 297 +1
Lines 6318 6339 +21
Branches 1548 1554 +6
==========================================
+ Hits 5648 5707 +59
+ Misses 620 584 -36
+ Partials 50 48 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5715.surge.sh |
src/components/nav-bar/nav-bar.tsx
Outdated
@@ -7,7 +7,7 @@ import { mergeProps } from '../../utils/with-default-props' | |||
const classPrefix = `adm-nav-bar` | |||
|
|||
export type NavBarProps = { | |||
back?: string | null | |||
back?: ReactNode | null |
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.
back?: ReactNode | null | |
back?: ReactNode |
null 也在 ReactNode 里的
close #5714