props.d.ts 795 B

12345678910111213141516171819202122232425262728293031323334
  1. import { IBaseProps } from '../_util/base';
  2. /**
  3. * @description 手风琴
  4. */
  5. export interface ICollapseProps extends IBaseProps {
  6. /**
  7. * @description 是否是手风琴模式,仅一个内容被展开
  8. */
  9. /**
  10. * @description 选中
  11. */
  12. current?: number[];
  13. /**
  14. * @description 选中初始值
  15. */
  16. defaultCurrent?: number[];
  17. /**
  18. * @description accordion模式
  19. */
  20. accordion?: boolean;
  21. /**
  22. * @description 列表
  23. */
  24. items?: {
  25. title?: string;
  26. content?: string;
  27. disabled?: boolean;
  28. }[];
  29. /**
  30. * @description collapse 切换时的回调
  31. */
  32. onChange?: (current: number[] | undefined, e: Record<string, any>) => void;
  33. }
  34. export declare const CollapseDefaultProps: ICollapseProps;