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: Replace BackTop with rc-motion #27840

Merged
merged 1 commit into from
Nov 17, 2020
Merged

refactor: Replace BackTop with rc-motion #27840

merged 1 commit into from
Nov 17, 2020

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Nov 17, 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 BackTop to use rc-motion instead of rc-animate.
🇨🇳 Chinese 重构 BackTop 以用 rc-animate 代替 rc-motion

☑️ 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 17, 2020

@codesandbox-ci
Copy link

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 65b1c2f:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Nov 17, 2020

Codecov Report

Merging #27840 (65b1c2f) into master (1a8bb04) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master    #27840   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          389       389           
  Lines         7374      7373    -1     
  Branches      2043      2042    -1     
=========================================
- Hits          7374      7373    -1     
Impacted Files Coverage Δ
components/_util/reactNode.ts 100.00% <100.00%> (ø)
components/back-top/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 1a8bb04...65b1c2f. Read the comment docs.

@github-actions
Copy link
Contributor

Size Change: +76 B (0%)

Total Size: 789 kB

Filename Size Change
./dist/antd-with-locales.min.js 312 kB +37 B (0%)
./dist/antd.min.js 276 kB +39 B (0%)
ℹ️ View Unchanged
Filename Size Change
./dist/antd.compact.min.css 66.4 kB 0 B
./dist/antd.dark.min.css 67.8 kB 0 B
./dist/antd.min.css 66.5 kB 0 B

compressed-size-action

@zombieJ zombieJ merged commit b8861dc into master Nov 17, 2020
@zombieJ zombieJ deleted the rc-motion branch November 17, 2020 15:03
{({ className: motionClassName }) => {
const childNode = children || defaultElement;
return (
<div>
Copy link
Member

Choose a reason for hiding this comment

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

这一层 div 是必须的么?

Copy link
Member Author

Choose a reason for hiding this comment

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

原本的 rc-animate 配置了 component="div",这边迁移先做保留。

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.

3 participants