Skip to content

Commit 0b002fb

Browse files
committed
perf: udpate transfer animation
1 parent 34bfc91 commit 0b002fb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

antdv-demo

components/transfer/renderListBody.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { defineComponent, TransitionGroup } from 'vue';
22
import raf from '../_util/raf';
33
import ListItem from './ListItem';
44
import PropTypes, { withUndefined } from '../_util/vue-types';
5-
import getTransitionProps from '../_util/getTransitionProps';
65
import { findDOMNode } from '../_util/props-util';
7-
function noop() {}
6+
import getTransitionGroupProps from 'components/_util/getTransitionGroupProps';
87
const ListBody = defineComponent({
98
name: 'ListBody',
109
inheritAttrs: false,
@@ -98,12 +97,11 @@ const ListBody = defineComponent({
9897
/>
9998
);
10099
});
101-
const transitionProps = getTransitionProps(
100+
const transitionProps = getTransitionGroupProps(
102101
mounted ? `${prefixCls}-content-item-highlight` : '',
103102
{
104103
tag: 'ul',
105104
onScroll: this.handleScroll,
106-
onLeave: noop,
107105
},
108106
);
109107
return (

0 commit comments

Comments
 (0)