perf: udpate transfer animation

This commit is contained in:
tangjinzhou 2020-10-20 21:32:06 +08:00
parent 34bfc91b5d
commit 0b002fb9cb
2 changed files with 3 additions and 5 deletions

@ -1 +1 @@
Subproject commit e705545e455dd81aef96dc293c84f303cff67b21
Subproject commit b35f6ab6b59169fa7c0413263f75c185bd62b97c

View File

@ -2,9 +2,8 @@ import { defineComponent, TransitionGroup } from 'vue';
import raf from '../_util/raf';
import ListItem from './ListItem';
import PropTypes, { withUndefined } from '../_util/vue-types';
import getTransitionProps from '../_util/getTransitionProps';
import { findDOMNode } from '../_util/props-util';
function noop() {}
import getTransitionGroupProps from 'components/_util/getTransitionGroupProps';
const ListBody = defineComponent({
name: 'ListBody',
inheritAttrs: false,
@ -98,12 +97,11 @@ const ListBody = defineComponent({
/>
);
});
const transitionProps = getTransitionProps(
const transitionProps = getTransitionGroupProps(
mounted ? `${prefixCls}-content-item-highlight` : '',
{
tag: 'ul',
onScroll: this.handleScroll,
onLeave: noop,
},
);
return (