fix: collapse animation not work, close #4856
parent
dc4275129b
commit
91dbc39bad
|
@ -5,7 +5,7 @@ const raf = getRequestAnimationFrame();
|
||||||
|
|
||||||
export const cancelAnimationTimeout = frame => caf(frame.id);
|
export const cancelAnimationTimeout = frame => caf(frame.id);
|
||||||
|
|
||||||
export const requestAnimationTimeout = (callback, delay) => {
|
export const requestAnimationTimeout = (callback, delay = 0) => {
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
function timeout() {
|
function timeout() {
|
||||||
if (Date.now() - start >= delay) {
|
if (Date.now() - start >= delay) {
|
||||||
|
|
|
@ -79,7 +79,7 @@ export default defineComponent({
|
||||||
></PanelContent>
|
></PanelContent>
|
||||||
);
|
);
|
||||||
const transitionProps = {
|
const transitionProps = {
|
||||||
appear: true,
|
appear: false,
|
||||||
css: false,
|
css: false,
|
||||||
...openAnimation,
|
...openAnimation,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue