import React from 'react'; import type BaseTransitionProps from '../transitions/BaseTransitionProps'; import type { TransitionTimeout } from '../transitions/getDuration'; /** * 压缩元素的过渡效果。 * * FastCollapse组件适合用于弹窗的动效。如果需要压缩的是布局中的元素,则需要使用Collapse组件。 * * 实现思路参考: https://developers.google.com/web/updates/2017/03/performant-expand-and-collapse */ declare const Collapse: React.ForwardRefExoticComponent & { /** * 压缩后的高度。默认为`0`。单位为`px`。 */ collapsedHeight?: number | undefined; /** * 压缩后的宽度。默认为`0`。单位为`px`。 */ collapsedWidth?: number | undefined; /** * 指定动画时长。如果指定为`auto`,则会根据实际高度来计算时长。 */ timeout?: TransitionTimeout; /** * 收缩方向,`both`表示垂直和水平方向同时收缩 */ direction?: "both" | "horizontal" | "vertical" | undefined; } & React.RefAttributes>; export default Collapse;