index.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import type { GetDefaultToken } from '../../theme/internal';
  2. export interface ComponentToken {
  3. /**
  4. * @desc 头像尺寸
  5. * @descEN Size of Avatar
  6. */
  7. containerSize: number;
  8. /**
  9. * @desc 大号头像尺寸
  10. * @descEN Size of large Avatar
  11. */
  12. containerSizeLG: number;
  13. /**
  14. * @desc 小号头像尺寸
  15. * @descEN Size of small Avatar
  16. */
  17. containerSizeSM: number;
  18. /**
  19. * @desc 头像文字大小
  20. * @descEN Font size of Avatar
  21. */
  22. textFontSize: number;
  23. /**
  24. * @desc 大号头像文字大小
  25. * @descEN Font size of large Avatar
  26. */
  27. textFontSizeLG: number;
  28. /**
  29. * @desc 小号头像文字大小
  30. * @descEN Font size of small Avatar
  31. */
  32. textFontSizeSM: number;
  33. /**
  34. * @desc 头像图标大小
  35. * @descEN Font size of Avatar icon
  36. */
  37. iconFontSize: number;
  38. /**
  39. * @desc 大号头像图标大小
  40. * @descEN Font size of large Avatar icon
  41. */
  42. iconFontSizeLG: number;
  43. /**
  44. * @desc 小号头像图标大小
  45. * @descEN Font size of small Avatar icon
  46. */
  47. iconFontSizeSM: number;
  48. /**
  49. * @desc 头像组间距
  50. * @descEN Spacing between avatars in a group
  51. */
  52. groupSpace: number;
  53. /**
  54. * @desc 头像组重叠宽度
  55. * @descEN Overlapping of avatars in a group
  56. */
  57. groupOverlapping: number;
  58. /**
  59. * @desc 头像组边框颜色
  60. * @descEN Border color of avatars in a group
  61. */
  62. groupBorderColor: string;
  63. }
  64. export declare const prepareComponentToken: GetDefaultToken<'Avatar'>;
  65. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  66. export default _default;