import React, { FC } from 'react'; import './index.scss'; export interface CollapseLayoutProps { className?: string; style?: React.CSSProperties; /** * 收起出现的位置 * 默认 left */ type?: 'left' | 'right' | 'top' | 'bottom'; /** * 普通展示数据 */ defaultContent?: React.ReactNode; /** * 显示隐藏的数据 */ displayContent?: React.ReactNode; /** * 展开还是收起 */ open?: boolean; /** * 允许缩放的长度 * */ zoomLength?: number; /** * 单位 * 默认px */ unit?: string; /** * 展开按钮显示文字 */ showLabel?: string; /** * 收起按钮展示文字 */ hideLabel?: string; /** * 间距 * 默认20 */ spacing?: number; /** * 最小拖拽值 * 单位是px * */ minDragLength?: number; /** 点击回调 bol 显示/展开 */ onClickBtn?: (bol?: boolean, duration?: number) => void; /** 拖拽结束事件 */ onDragEnd?: () => void; } /** * @author zhanzl * @date 2022/08/09 */ declare const CollapseLayout: FC; export default CollapseLayout;