index.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import type { GetDefaultToken } from '../../theme/internal';
  2. export interface ComponentToken {
  3. /**
  4. * @desc 选项文本颜色
  5. * @descEN Text color of item
  6. */
  7. itemColor: string;
  8. /**
  9. * @desc 选项悬浮态文本颜色
  10. * @descEN Text color of item when hover
  11. */
  12. itemHoverColor: string;
  13. /**
  14. * @desc 选项悬浮态背景颜色
  15. * @descEN Background color of item when hover
  16. */
  17. itemHoverBg: string;
  18. /**
  19. * @desc 选项激活态背景颜色
  20. * @descEN Background color of item when active
  21. */
  22. itemActiveBg: string;
  23. /**
  24. * @desc 选项选中时背景颜色
  25. * @descEN Background color of item when selected
  26. */
  27. itemSelectedBg: string;
  28. /**
  29. * @desc 选项选中时文字颜色
  30. * @descEN Text color of item when selected
  31. */
  32. itemSelectedColor: string;
  33. /**
  34. * @desc Segmented 控件容器的 padding
  35. * @descEN Padding of Segmented container
  36. */
  37. trackPadding: string | number;
  38. /**
  39. * @desc Segmented 控件容器背景色
  40. * @descEN Background of Segmented container
  41. */
  42. trackBg: string;
  43. }
  44. export declare const prepareComponentToken: GetDefaultToken<'Segmented'>;
  45. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  46. export default _default;