ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.64k stars 2.4k forks source link

style: arrow functions optimization #6395

Closed 1587315093 closed 1 year ago

1587315093 commented 1 year ago

两个组件的箭头函数代码简化了下

codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (88557ef) 92.36% compared to head (c6a2dce) 92.36%. Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6395 +/- ## ========================================== - Coverage 92.36% 92.36% -0.01% ========================================== Files 307 307 Lines 6617 6615 -2 Branches 1636 1635 -1 ========================================== - Hits 6112 6110 -2 Misses 470 470 Partials 35 35 ``` | [Files](https://app.codecov.io/gh/ant-design/ant-design-mobile/pull/6395?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design) | Coverage Δ | | |---|---|---| | [src/components/action-sheet/action-sheet.tsx](https://app.codecov.io/gh/ant-design/ant-design-mobile/pull/6395?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL2NvbXBvbmVudHMvYWN0aW9uLXNoZWV0L2FjdGlvbi1zaGVldC50c3g=) | `100.00% <ø> (ø)` | | | [src/components/auto-center/auto-center.tsx](https://app.codecov.io/gh/ant-design/ant-design-mobile/pull/6395?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL2NvbXBvbmVudHMvYXV0by1jZW50ZXIvYXV0by1jZW50ZXIudHN4) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 year ago

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