ant-design
ant-design copied to clipboard
feat: useValueBreakpoint hook #29642 #7309
🤔 This is a ...
- [x] New feature
- [ ] Bug fix
- [ ] Site / documentation update
- [ ] Demo update
- [ ] Component style update
- [ ] TypeScript definition update
- [ ] Bundle size optimization
- [ ] Performance optimization
- [ ] Enhancement feature
- [ ] Internationalization
- [ ] Refactoring
- [ ] Code style optimization
- [ ] Test Case
- [ ] Branch merge
- [ ] Other (about what?)
🔗 Related issue link
#29642 #7309
💡 Background and solution
Flexibility responsive and readable code over useBreakpoint
📝 Changelog
| Language | Changelog |
|---|---|
| 🇺🇸 English | useValueBreakpoint hook |
| 🇨🇳 Chinese | useValueBreakpoint hook |
☑️ Self Check before Merge
⚠️ Please check all items below before review. ⚠️
- [x] Doc is updated/provided
- [x] Demo is updated/provided
- [x] TypeScript definition is updated/provided
- [x] Changelog is provided
Codecov Report
Merging #29643 (1ac798d) into feature (f45f735) will increase coverage by
1.18%. The diff coverage is100.00%.
@@ Coverage Diff @@
## feature #29643 +/- ##
============================================
+ Coverage 98.81% 100.00% +1.18%
============================================
Files 363 395 +32
Lines 7280 7530 +250
Branches 1967 2112 +145
============================================
+ Hits 7194 7530 +336
+ Misses 86 0 -86
| Impacted Files | Coverage Δ | |
|---|---|---|
| components/_util/easings.ts | 100.00% <ø> (ø) |
|
| components/_util/raf.ts | 100.00% <ø> (ø) |
|
| components/_util/scrollTo.ts | 100.00% <ø> (ø) |
|
| components/_util/type.ts | 100.00% <ø> (ø) |
|
| components/calendar/generateCalendar.tsx | 100.00% <ø> (+1.33%) |
:arrow_up: |
| components/calendar/index.tsx | 100.00% <ø> (ø) |
|
| components/card/Grid.tsx | 100.00% <ø> (ø) |
|
| components/card/index.tsx | 100.00% <ø> (ø) |
|
| components/_util/getScroll.tsx | 100.00% <100.00%> (ø) |
|
| components/_util/hooks/useForceUpdate.ts | 100.00% <100.00%> (ø) |
|
| ... and 229 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update e40fd9f...32206a9. Read the comment docs.
冲突了
Closing for no response.
