12345678910111213141516171819202122232425262728293031323334 |
- import { IBaseProps } from '../_util/base';
- /**
- * @description 手风琴
- */
- export interface ICollapseProps extends IBaseProps {
- /**
- * @description 是否是手风琴模式,仅一个内容被展开
- */
- /**
- * @description 选中
- */
- current?: number[];
- /**
- * @description 选中初始值
- */
- defaultCurrent?: number[];
- /**
- * @description accordion模式
- */
- accordion?: boolean;
- /**
- * @description 列表
- */
- items?: {
- title?: string;
- content?: string;
- disabled?: boolean;
- }[];
- /**
- * @description collapse 切换时的回调
- */
- onChange?: (current: number[] | undefined, e: Record<string, any>) => void;
- }
- export declare const CollapseDefaultProps: ICollapseProps;
|