index.d.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import type { GetDefaultToken } from '../../theme/internal';
  2. export interface ComponentToken {
  3. /**
  4. * @desc 开关高度
  5. * @descEN Height of Switch
  6. */
  7. trackHeight: number | string;
  8. /**
  9. * @desc 小号开关高度
  10. * @descEN Height of small Switch
  11. */
  12. trackHeightSM: number | string;
  13. /**
  14. * @desc 开关最小宽度
  15. * @descEN Minimum width of Switch
  16. */
  17. trackMinWidth: number | string;
  18. /**
  19. * @desc 小号开关最小宽度
  20. * @descEN Minimum width of small Switch
  21. */
  22. trackMinWidthSM: number | string;
  23. /**
  24. * @desc 开关内边距
  25. * @descEN Padding of Switch
  26. */
  27. trackPadding: number;
  28. /**
  29. * @desc 开关把手背景色
  30. * @descEN Background color of Switch handle
  31. */
  32. handleBg: string;
  33. /**
  34. * @desc 开关把手阴影
  35. * @descEN Shadow of Switch handle
  36. */
  37. handleShadow: string;
  38. /**
  39. * @desc 开关把手大小
  40. * @descEN Size of Switch handle
  41. */
  42. handleSize: number;
  43. /**
  44. * @desc 小号开关把手大小
  45. * @descEN Size of small Switch handle
  46. */
  47. handleSizeSM: number;
  48. /**
  49. * @desc 内容区域最小边距
  50. * @descEN Minimum margin of content area
  51. */
  52. innerMinMargin: number;
  53. /**
  54. * @desc 内容区域最大边距
  55. * @descEN Maximum margin of content area
  56. */
  57. innerMaxMargin: number;
  58. /**
  59. * @desc 小号开关内容区域最小边距
  60. * @descEN Minimum margin of content area of small Switch
  61. */
  62. innerMinMarginSM: number;
  63. /**
  64. * @desc 小号开关内容区域最大边距
  65. * @descEN Maximum margin of content area of small Switch
  66. */
  67. innerMaxMarginSM: number;
  68. }
  69. export declare const prepareComponentToken: GetDefaultToken<'Switch'>;
  70. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  71. export default _default;