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

enhance(NavBar): back support ReactNode #5715

Merged
merged 2 commits into from
Oct 10, 2022

Conversation

damonyoungcc
Copy link
Collaborator

close #5714

@codecov
Copy link

codecov bot commented Oct 9, 2022

Codecov Report

Base: 89.39% // Head: 90.02% // Increases project coverage by +0.63% 🎉

Coverage data is based on head (1387eda) compared to base (37f45e0).
Patch has no changes to coverable lines.

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     
Impacted Files Coverage Δ
src/components/nav-bar/nav-bar.tsx 50.00% <ø> (ø)
src/components/stepper/stepper.tsx 100.00% <0.00%> (ø)
src/locales/ja-JP.ts 100.00% <0.00%> (ø)
src/components/ellipsis/ellipsis.tsx 99.13% <0.00%> (+0.03%) ⬆️
src/components/slider/slider.tsx 98.09% <0.00%> (+0.11%) ⬆️
src/components/swiper/swiper.tsx 89.50% <0.00%> (+0.33%) ⬆️
src/components/popover/popover.tsx 91.54% <0.00%> (+2.81%) ⬆️
src/components/image-uploader/image-uploader.tsx 92.72% <0.00%> (+6.36%) ⬆️
src/components/divider/divider.tsx 100.00% <0.00%> (+36.36%) ⬆️
src/components/footer/footer.tsx 100.00% <0.00%> (+75.75%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2022

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5715.surge.sh

miracles1919
miracles1919 previously approved these changes Oct 9, 2022
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
back?: ReactNode | null
back?: ReactNode

null 也在 ReactNode 里的

@afc163 afc163 merged commit 235b525 into ant-design:master Oct 10, 2022
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

Successfully merging this pull request may close these issues.

NavBar组件back参数期望修改成ReactNode
3 participants