fix: Tree with quick loadData frozen the virtual scroll (#23581)

* update version

* add deadline

* clean up
This commit is contained in:
二货机器人 2020-04-25 11:13:14 +08:00 committed by GitHub
parent d50cc55d87
commit efbb2849dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -9,6 +9,7 @@ interface Motion {
motionEnter?: boolean;
motionLeave?: boolean;
motionLeaveImmediately?: boolean; // Trigger leave motion immediately
motionDeadline?: number;
removeOnLeave?: boolean;
leavedClassName?: string;
onAppearStart?: MotionFunc;
@ -35,6 +36,7 @@ const collapseMotion: Motion = {
onEnterActive: getRealHeight,
onLeaveStart: getCurrentHeight,
onLeaveActive: getCollapsedHeight,
motionDeadline: 500,
};
export default collapseMotion;

View File

@ -107,7 +107,7 @@
"omit.js": "^1.0.2",
"prop-types": "^15.7.2",
"raf": "^3.4.1",
"rc-animate": "~2.10.2",
"rc-animate": "~2.11.0",
"rc-cascader": "~1.0.0",
"rc-checkbox": "~2.2.0",
"rc-collapse": "~1.11.3",

View File

@ -6,8 +6,6 @@ const cheerio = require('cheerio');
const glob = require('glob');
const uniq = require('lodash/uniq');
const { createServer } = require('http-server');
const zhCN = require('../site/theme/zh-CN');
const enUS = require('../site/theme/en-US');
const components = uniq(
glob