Skip to content

Commit 91dbc39

Browse files
committed
fix: collapse animation not work, close #4856
1 parent dc42751 commit 91dbc39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/_util/requestAnimationTimeout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const raf = getRequestAnimationFrame();
55

66
export const cancelAnimationTimeout = frame => caf(frame.id);
77

8-
export const requestAnimationTimeout = (callback, delay) => {
8+
export const requestAnimationTimeout = (callback, delay = 0) => {
99
const start = Date.now();
1010
function timeout() {
1111
if (Date.now() - start >= delay) {

components/collapse/CollapsePanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default defineComponent({
7979
></PanelContent>
8080
);
8181
const transitionProps = {
82-
appear: true,
82+
appear: false,
8383
css: false,
8484
...openAnimation,
8585
};

0 commit comments

Comments
 (0)