fix: Align motion match (#26628)

* fix: Align motion match

* bump rc-motion

* lock rc-trigger version

* update snapshot
This commit is contained in:
二货机器人 2020-09-08 11:34:29 +08:00 committed by GitHub
parent 8ab8862907
commit c58135fd46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 7 deletions

View File

@ -241,6 +241,7 @@ exports[`Cascader can be selected 3`] = `
<div>
<div
class="ant-cascader-menus ant-cascader-menus-hidden"
style="pointer-events:none"
>
<div>
<ul
@ -669,6 +670,7 @@ exports[`Cascader popup correctly when panel is hidden 1`] = `
<div>
<div
class="ant-cascader-menus ant-cascader-menus-empty ant-cascader-menus-hidden"
style="pointer-events:none"
>
<div />
</div>

View File

@ -398,7 +398,7 @@ exports[`List.pagination should change page size work 2`] = `
<div>
<div
class="ant-select-dropdown"
style="min-width: 0; opacity: 0; pointer-events: none;"
style="pointer-events: none; min-width: 0; opacity: 0;"
>
<div>
<div

View File

@ -115,6 +115,7 @@ exports[`Slider should show correct placement tooltip when set tooltipPlacement
<div>
<div
class="ant-tooltip ant-slider-tooltip ant-tooltip-hidden"
style="pointer-events:none"
>
<div
class="ant-tooltip-content"
@ -168,6 +169,7 @@ exports[`Slider should show tooltip when hovering slider handler 2`] = `
<div>
<div
class="ant-tooltip ant-slider-tooltip ant-tooltip-hidden"
style="pointer-events:none"
>
<div
class="ant-tooltip-content"

View File

@ -5,6 +5,10 @@
transform: scale(0); // need this by yiminghe
opacity: 0;
animation-timing-function: @ease-out-circ;
&-prepare {
transform: none;
}
}
.@{className}-leave {
animation-timing-function: @ease-in-out-circ;

View File

@ -36,6 +36,7 @@ exports[`Table.filter renders custom content correctly 1`] = `
<div>
<div
class="ant-dropdown ant-dropdown-hidden"
style="pointer-events: none;"
>
<div
class="ant-table-filter-dropdown"
@ -543,6 +544,7 @@ exports[`Table.filter renders menu correctly 1`] = `
<div>
<div
class="ant-dropdown ant-dropdown-hidden"
style="pointer-events: none;"
>
<div
class="ant-table-filter-dropdown"
@ -647,6 +649,7 @@ exports[`Table.filter renders radio filter correctly 1`] = `
<div>
<div
class="ant-dropdown ant-dropdown-hidden"
style="pointer-events: none;"
>
<div
class="ant-table-filter-dropdown"

View File

@ -929,6 +929,7 @@ exports[`Table.rowSelection render with default selection correctly 1`] = `
<div>
<div
class="ant-dropdown ant-dropdown-hidden"
style="pointer-events:none"
>
<ul
class="ant-dropdown-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"

View File

@ -18,14 +18,13 @@ describe('Upload', () => {
afterEach(() => teardown());
// Mock for rc-util raf
window.requestAnimationFrame = (callback) => {
window.requestAnimationFrame = callback => {
window.setTimeout(callback, 16);
};
window.cancelAnimationFrame = (id) => {
window.cancelAnimationFrame = id => {
window.clearTimeout(id);
};
// https://github.com/react-component/upload/issues/36
it('should get refs inside Upload in componentDidMount', () => {
let ref;

View File

@ -129,7 +129,7 @@
"rc-input-number": "~6.0.0",
"rc-mentions": "~1.4.0",
"rc-menu": "~8.5.2",
"rc-motion": "^1.1.1",
"rc-motion": "^2.0.0",
"rc-notification": "~4.4.0",
"rc-pagination": "~3.0.3",
"rc-picker": "~2.0.6",
@ -143,10 +143,10 @@
"rc-table": "~7.9.2",
"rc-tabs": "~11.6.0",
"rc-textarea": "~0.3.0",
"rc-tooltip": "~4.2.0",
"rc-tooltip": "~5.0.0",
"rc-tree": "~3.9.0",
"rc-tree-select": "~4.1.1",
"rc-trigger": "~4.4.0",
"rc-trigger": "~5.0.3",
"rc-upload": "~3.3.1",
"rc-util": "^5.1.0",
"scroll-into-view-if-needed": "^2.2.25",