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

refactor(checkbox): rewrite with hook #27739

Merged
merged 3 commits into from
Nov 20, 2020
Merged

refactor(checkbox): rewrite with hook #27739

merged 3 commits into from
Nov 20, 2020

Conversation

hengkx
Copy link
Member

@hengkx hengkx commented Nov 13, 2020

[中文版模板 / Chinese template]

🤔 This is a ...

  • 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

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Refactor Checkbox with React hooks.
🇨🇳 Chinese 使用 React hooks 重构 Checkbox。

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • 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

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Nov 13, 2020

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 13, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0c7d3c9:

Sandbox Source
antd reproduction template Configuration

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2020

Size Change: -19.8 kB (2%)

Total Size: 788 kB

Filename Size Change
./dist/antd-with-locales.min.js 312 kB -9.87 kB (3%)
./dist/antd.compact.min.css 66.5 kB +14 B (0%)
./dist/antd.dark.min.css 67.8 kB +8 B (0%)
./dist/antd.min.css 66.5 kB +12 B (0%)
./dist/antd.min.js 276 kB -9.96 kB (3%)

compressed-size-action

@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #27739 (0c7d3c9) into master (1f93580) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master    #27739   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          389       389           
  Lines         7331      7323    -8     
  Branches      2034      2079   +45     
=========================================
- Hits          7331      7323    -8     
Impacted Files Coverage Δ
components/checkbox/Group.tsx 100.00% <ø> (ø)
components/checkbox/Checkbox.tsx 100.00% <100.00%> (ø)
components/checkbox/index.tsx 100.00% <100.00%> (ø)

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 1f93580...0c7d3c9. Read the comment docs.

@hengkx hengkx requested review from AshoneA, zombieJ and afc163 November 16, 2020 11:21
components/checkbox/Group.tsx Outdated Show resolved Hide resolved
@@ -1280,7 +1280,6 @@ exports[`Transfer should support render value and label in item 1`] = `
>
<Checkbox
checked={false}
indeterminate={false}
Copy link
Member

Choose a reason for hiding this comment

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

我看 indeterminate 默认是 false,这个 snap 删除了是预期的吗?

Copy link
Member Author

Choose a reason for hiding this comment

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

image
属性加了

@hengkx
Copy link
Member Author

hengkx commented Nov 19, 2020

/rebase

@afc163
Copy link
Member

afc163 commented Nov 20, 2020

记得更新一下 https://github.com/ant-design/ant-design/projects/6 ,方面跟踪进度。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

4 participants