Browse Source
fix: Tree with quick `loadData` frozen the virtual scroll (#23581)
* update version
* add deadline
* clean up
pull/23586/head
二货机器人
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
components/_util/motion.tsx
-
package.json
-
scripts/check-site.js
|
|
@ -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; |
|
|
|
|
|
@ -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", |
|
|
|
|
|
@ -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 |
|
|
|