index.d.ts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. import type { FullToken, GetDefaultToken } from '../../theme/internal';
  2. export interface ComponentToken {
  3. /**
  4. * @desc 表头背景
  5. * @descEN Background of table header
  6. */
  7. headerBg: string;
  8. /**
  9. * @desc 表头文字颜色
  10. * @descEN Color of table header text
  11. */
  12. headerColor: string;
  13. /**
  14. * @desc 表头排序激活态背景色
  15. * @descEN Background color of table header when sorted
  16. */
  17. headerSortActiveBg: string;
  18. /**
  19. * @desc 表头排序激活态悬浮背景色
  20. * @descEN Background color of table header when sorted and hovered
  21. */
  22. headerSortHoverBg: string;
  23. /**
  24. * @desc 表格排序列背景色
  25. * @descEN Background color of table sorted column
  26. */
  27. bodySortBg: string;
  28. /**
  29. * @desc 表格行悬浮背景色
  30. * @descEN Background color of table hovered row
  31. */
  32. rowHoverBg: string;
  33. /**
  34. * @desc 表格行选中背景色
  35. * @descEN Background color of table selected row
  36. */
  37. rowSelectedBg: string;
  38. /**
  39. * @desc 表格行选中悬浮背景色
  40. * @descEN Background color of table selected row when hovered
  41. */
  42. rowSelectedHoverBg: string;
  43. /**
  44. * @desc 表格行展开背景色
  45. * @descEN Background color of table expanded row
  46. */
  47. rowExpandedBg: string;
  48. /**
  49. * @desc 单元格纵向内间距
  50. * @descEN Vertical padding of table cell
  51. */
  52. cellPaddingBlock: number;
  53. /**
  54. * @desc 单元格横向内间距(默认大尺寸)
  55. * @descEN Horizontal padding of table cell (large size by default)
  56. */
  57. cellPaddingInline: number;
  58. /**
  59. * @desc 单元格纵向内间距(中等尺寸)
  60. * @descEN Vertical padding of table cell (middle size)
  61. */
  62. cellPaddingBlockMD: number;
  63. /**
  64. * @desc 单元格横向内间距(中等尺寸)
  65. * @descEN Horizontal padding of table cell (middle size)
  66. */
  67. cellPaddingInlineMD: number;
  68. /**
  69. * @desc 单元格纵向内间距(小尺寸)
  70. * @descEN Vertical padding of table cell (small size)
  71. */
  72. cellPaddingBlockSM: number;
  73. /**
  74. * @desc 单元格横向内间距(小尺寸)
  75. * @descEN Horizontal padding of table cell (small size)
  76. */
  77. cellPaddingInlineSM: number;
  78. /**
  79. * @desc 表格边框/分割线颜色
  80. * @descEN Border color of table
  81. */
  82. borderColor: string;
  83. /**
  84. * @desc 表头圆角
  85. * @descEN Border radius of table header
  86. */
  87. headerBorderRadius: number;
  88. /**
  89. * @desc 表格底部背景色
  90. * @descEN Background of footer
  91. */
  92. footerBg: string;
  93. /**
  94. * @desc 表格底部文字颜色
  95. * @descEN Color of footer text
  96. */
  97. footerColor: string;
  98. /**
  99. * @desc 单元格文字大小(默认大尺寸)
  100. * @descEN Font size of table cell (large size by default)
  101. */
  102. cellFontSize: number;
  103. /**
  104. * @desc 单元格文字大小(中等尺寸)
  105. * @descEN Font size of table cell (middle size)
  106. */
  107. cellFontSizeMD: number;
  108. /**
  109. * @desc 单元格文字大小(小尺寸)
  110. * @descEN Font size of table cell (small size)
  111. */
  112. cellFontSizeSM: number;
  113. /**
  114. * @desc 表头分割线颜色
  115. * @descEN Split border color of table header
  116. */
  117. headerSplitColor: string;
  118. /**
  119. * @desc 固定表头排序激活态背景色
  120. * @descEN Background color of fixed table header when sorted
  121. */
  122. fixedHeaderSortActiveBg: string;
  123. /**
  124. * @desc 表头过滤按钮悬浮背景色
  125. * @descEN Background color of table header filter button when hovered
  126. */
  127. headerFilterHoverBg: string;
  128. /**
  129. * @desc 过滤下拉菜单选项背景
  130. * @descEN Background of filter dropdown menu item
  131. */
  132. filterDropdownMenuBg: string;
  133. /**
  134. * @desc 过滤下拉菜单颜色
  135. * @descEN Color of filter dropdown
  136. */
  137. filterDropdownBg: string;
  138. /**
  139. * @desc 展开按钮背景色
  140. * @descEN Background of expand button
  141. */
  142. expandIconBg: string;
  143. /**
  144. * @desc 选择列宽度
  145. * @descEN Width of selection column
  146. */
  147. selectionColumnWidth: number | string;
  148. /**
  149. * @desc Sticky 模式下滚动条背景色
  150. * @descEN Background of sticky scrollbar
  151. */
  152. stickyScrollBarBg: string;
  153. /**
  154. * @desc Sticky 模式下滚动条圆角
  155. * @descEN Border radius of sticky scrollbar
  156. */
  157. stickyScrollBarBorderRadius: number;
  158. }
  159. export interface TableToken extends FullToken<'Table'> {
  160. tableFontSize: number;
  161. tableBg: string;
  162. tableRadius: number;
  163. tablePaddingHorizontal: number;
  164. tablePaddingVertical: number;
  165. tablePaddingHorizontalMiddle: number;
  166. tablePaddingVerticalMiddle: number;
  167. tablePaddingHorizontalSmall: number;
  168. tablePaddingVerticalSmall: number;
  169. tableBorderColor: string;
  170. tableHeaderTextColor: string;
  171. tableHeaderBg: string;
  172. tableFooterTextColor: string;
  173. tableFooterBg: string;
  174. tableHeaderCellSplitColor: string;
  175. tableHeaderSortBg: string;
  176. tableHeaderSortHoverBg: string;
  177. tableBodySortBg: string;
  178. tableFixedHeaderSortActiveBg: string;
  179. tableHeaderFilterActiveBg: string;
  180. tableFilterDropdownBg: string;
  181. tableFilterDropdownHeight: number | string;
  182. tableRowHoverBg: string;
  183. tableSelectedRowBg: string;
  184. tableSelectedRowHoverBg: string;
  185. tableFontSizeMiddle: number;
  186. tableFontSizeSmall: number;
  187. tableSelectionColumnWidth: number | string;
  188. tableExpandIconBg: string;
  189. tableExpandColumnWidth: number | string;
  190. tableExpandedRowBg: string;
  191. tableFilterDropdownWidth: number;
  192. tableFilterDropdownSearchWidth: number;
  193. zIndexTableFixed: number;
  194. zIndexTableSticky: number | string;
  195. tableScrollThumbSize: number;
  196. tableScrollThumbBg: string;
  197. tableScrollThumbBgHover: string;
  198. tableScrollBg: string;
  199. }
  200. export declare const prepareComponentToken: GetDefaultToken<'Table'>;
  201. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  202. export default _default;