合伙人运营小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. export declare type Classes = Array<string>;
  2. export interface Styles {
  3. [css: string]: string | number;
  4. }
  5. export declare type ImageEvent = any;
  6. export declare type PlainObject = {
  7. [key: string]: any;
  8. };
  9. export declare type OptionData = {
  10. label?: string;
  11. value?: string | number;
  12. } & PlainObject;
  13. export declare type TreeOptionData<T = string | number> = {
  14. children?: Array<TreeOptionData<T>> | boolean;
  15. label?: string;
  16. text?: string;
  17. value?: T;
  18. content?: string;
  19. } & PlainObject;
  20. export declare type SizeEnum = 'small' | 'medium' | 'large';
  21. export declare type HorizontalAlignEnum = 'left' | 'center' | 'right';
  22. export declare type VerticalAlignEnum = 'top' | 'middle' | 'bottom';
  23. export declare type LayoutEnum = 'vertical' | 'horizontal';
  24. export declare type ClassName = {
  25. [className: string]: any;
  26. } | ClassName[] | string;
  27. export declare type CSSSelector = string;
  28. export interface KeysType {
  29. value?: string;
  30. label?: string;
  31. disabled?: string;
  32. }
  33. export interface TreeKeysType extends KeysType {
  34. children?: string;
  35. }
  36. export interface HTMLElementAttributes {
  37. [attribute: string]: string;
  38. }
  39. export interface TScroll {
  40. bufferSize?: number;
  41. isFixedRowHeight?: boolean;
  42. rowHeight?: number;
  43. threshold?: number;
  44. type: 'lazy' | 'virtual';
  45. }
  46. export declare type InfinityScroll = TScroll;
  47. export interface ScrollToElementParams {
  48. index?: number;
  49. top?: number;
  50. time?: number;
  51. behavior?: 'auto' | 'smooth';
  52. }
  53. export interface ComponentScrollToElementParams extends ScrollToElementParams {
  54. key?: string | number;
  55. }