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

feat: Grid support row vertical gutter #18979

Merged
merged 2 commits into from Sep 24, 2019
Merged

feat: Grid support row vertical gutter #18979

merged 2 commits into from Sep 24, 2019

Conversation

sosohime
Copy link
Contributor

@sosohime sosohime commented Sep 24, 2019

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#16728

💡 Background and solution

Row添加垂直间距支持

📝 Changelog

Language Changelog
🇺🇸 English Row support vertical gutter
🇨🇳 Chinese Row support vertical gutter

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

View rendered components/grid/demo/gutter.md
View rendered components/grid/demo/playground.md
View rendered components/grid/index.en-US.md
View rendered components/grid/index.zh-CN.md

Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

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

Could you please add tests to make sure this change works as expected?

@netlify
Copy link

netlify bot commented Sep 24, 2019

Deploy preview for ant-design ready!

Built with commit 00f6b3a

https://deploy-preview-18979--ant-design.netlify.com

@codecov
Copy link

codecov bot commented Sep 24, 2019

Codecov Report

Merging #18979 into feature will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           feature   #18979      +/-   ##
===========================================
+ Coverage    96.95%   96.95%   +<.01%     
===========================================
  Files          281      281              
  Lines         7577     7593      +16     
  Branches      2116     2128      +12     
===========================================
+ Hits          7346     7362      +16     
  Misses         229      229              
  Partials         2        2
Impacted Files Coverage Δ
components/grid/RowContext.tsx 100% <ø> (ø) ⬆️
components/grid/col.tsx 100% <100%> (ø) ⬆️
components/grid/row.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5efb30...00f6b3a. Read the comment docs.

for (let i = 0; i < responsiveArray.length; i++) {
const breakpoint: Breakpoint = responsiveArray[i];
if (this.state.screens[breakpoint] && g[breakpoint] !== undefined) {
gutter[index] = g[breakpoint] as number;
Copy link
Member

Choose a reason for hiding this comment

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

少了 break,导致了 #19307

在这里修复 92b05e5

Copy link
Member

Choose a reason for hiding this comment

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

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.

None yet

3 participants