props.d.ts 836 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { IBaseProps } from '../_util/base';
  2. interface ItemObj {
  3. label: string;
  4. disablePreview?: boolean;
  5. }
  6. export interface IndexBarProps extends IBaseProps {
  7. /**
  8. * @description 触发的索引样式
  9. */
  10. activeClassName: string;
  11. /**
  12. * @description 默认触发的索引
  13. */
  14. defaultCurrent: string;
  15. /**
  16. * @description 触发的索引
  17. */
  18. current: string;
  19. /**
  20. * @description 索引触发时是否震动
  21. */
  22. vibrate: boolean;
  23. /**
  24. * @description 索引列表
  25. */
  26. items: ItemObj[];
  27. /**
  28. * @description 索引的尺寸
  29. */
  30. size: number;
  31. /**
  32. * @description 触发索引时的回调
  33. */
  34. onChange: (value: ItemObj, index: number) => void;
  35. }
  36. export declare const IndexBarDefaultProps: Partial<IndexBarProps>;
  37. export {};