@timus-networks/theme 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +9 -2
  3. package/dist/runtime/components/development/example.alert.vue +2 -0
  4. package/dist/runtime/components/development/example.button.vue.d.ts +302 -0
  5. package/dist/runtime/components/development/example.dialog.vue +4 -5
  6. package/dist/runtime/components/development/example.message.vue +1 -1
  7. package/dist/runtime/components/development/example.popover.vue +3 -3
  8. package/dist/runtime/components/development/example.table.vue +1 -1
  9. package/dist/runtime/components/production/timus-breadcrumb.vue.d.ts +0 -302
  10. package/dist/runtime/public/scss/_buttons.scss +159 -0
  11. package/dist/runtime/public/scss/_colors.scss +188 -0
  12. package/dist/runtime/public/scss/_containers.scss +7 -0
  13. package/dist/runtime/public/scss/_fonts.scss +85 -0
  14. package/dist/runtime/public/scss/_icons.scss +124 -0
  15. package/dist/runtime/public/scss/_inputs.scss +62 -0
  16. package/dist/runtime/public/scss/_layers.scss +9 -0
  17. package/dist/runtime/public/scss/_logo.scss +53 -0
  18. package/dist/runtime/public/scss/_selectbox.scss +4 -0
  19. package/dist/runtime/public/scss/_variables.scss +16 -0
  20. package/dist/runtime/public/scss/element-plus/affix.css +78 -78
  21. package/dist/runtime/public/scss/element-plus/affix.scss +7 -0
  22. package/dist/runtime/public/scss/element-plus/alert.css +78 -78
  23. package/dist/runtime/public/scss/element-plus/alert.scss +168 -0
  24. package/dist/runtime/public/scss/element-plus/anchor-link.css +78 -78
  25. package/dist/runtime/public/scss/element-plus/anchor-link.scss +41 -0
  26. package/dist/runtime/public/scss/element-plus/anchor.css +78 -78
  27. package/dist/runtime/public/scss/element-plus/anchor.scss +93 -0
  28. package/dist/runtime/public/scss/element-plus/aside.css +78 -78
  29. package/dist/runtime/public/scss/element-plus/aside.scss +8 -0
  30. package/dist/runtime/public/scss/element-plus/autocomplete.css +78 -78
  31. package/dist/runtime/public/scss/element-plus/autocomplete.scss +85 -0
  32. package/dist/runtime/public/scss/element-plus/avatar.css +82 -78
  33. package/dist/runtime/public/scss/element-plus/avatar.scss +56 -0
  34. package/dist/runtime/public/scss/element-plus/backtop.css +78 -78
  35. package/dist/runtime/public/scss/element-plus/backtop.scss +29 -0
  36. package/dist/runtime/public/scss/element-plus/badge.css +78 -78
  37. package/dist/runtime/public/scss/element-plus/badge.scss +54 -0
  38. package/dist/runtime/public/scss/element-plus/base.css +78 -78
  39. package/dist/runtime/public/scss/element-plus/base.scss +3 -0
  40. package/dist/runtime/public/scss/element-plus/breadcrumb-item.scss +0 -0
  41. package/dist/runtime/public/scss/element-plus/breadcrumb.css +78 -78
  42. package/dist/runtime/public/scss/element-plus/breadcrumb.scss +75 -0
  43. package/dist/runtime/public/scss/element-plus/button-group.css +78 -78
  44. package/dist/runtime/public/scss/element-plus/button-group.scss +111 -0
  45. package/dist/runtime/public/scss/element-plus/button.css +78 -83
  46. package/dist/runtime/public/scss/element-plus/button.scss +352 -0
  47. package/dist/runtime/public/scss/element-plus/calendar.css +78 -78
  48. package/dist/runtime/public/scss/element-plus/calendar.scss +80 -0
  49. package/dist/runtime/public/scss/element-plus/card.css +78 -78
  50. package/dist/runtime/public/scss/element-plus/card.scss +54 -0
  51. package/dist/runtime/public/scss/element-plus/carousel-item.css +78 -78
  52. package/dist/runtime/public/scss/element-plus/carousel-item.scss +58 -0
  53. package/dist/runtime/public/scss/element-plus/carousel.css +78 -78
  54. package/dist/runtime/public/scss/element-plus/carousel.scss +183 -0
  55. package/dist/runtime/public/scss/element-plus/cascader-panel.css +78 -78
  56. package/dist/runtime/public/scss/element-plus/cascader-panel.scss +138 -0
  57. package/dist/runtime/public/scss/element-plus/cascader.css +78 -78
  58. package/dist/runtime/public/scss/element-plus/cascader.scss +218 -0
  59. package/dist/runtime/public/scss/element-plus/check-tag.css +78 -78
  60. package/dist/runtime/public/scss/element-plus/check-tag.scss +38 -0
  61. package/dist/runtime/public/scss/element-plus/checkbox-button.css +78 -83
  62. package/dist/runtime/public/scss/element-plus/checkbox-button.scss +141 -0
  63. package/dist/runtime/public/scss/element-plus/checkbox-group.css +78 -78
  64. package/dist/runtime/public/scss/element-plus/checkbox-group.scss +8 -0
  65. package/dist/runtime/public/scss/element-plus/checkbox.css +78 -78
  66. package/dist/runtime/public/scss/element-plus/checkbox.scss +294 -0
  67. package/dist/runtime/public/scss/element-plus/col.css +78 -78
  68. package/dist/runtime/public/scss/element-plus/col.scss +48 -0
  69. package/dist/runtime/public/scss/element-plus/collapse-item.scss +0 -0
  70. package/dist/runtime/public/scss/element-plus/collapse-transition.scss +0 -0
  71. package/dist/runtime/public/scss/element-plus/collapse.css +78 -78
  72. package/dist/runtime/public/scss/element-plus/collapse.scss +70 -0
  73. package/dist/runtime/public/scss/element-plus/color/index.scss +17 -0
  74. package/dist/runtime/public/scss/element-plus/color-picker.css +78 -78
  75. package/dist/runtime/public/scss/element-plus/color-picker.scss +365 -0
  76. package/dist/runtime/public/scss/element-plus/common/popup.css +78 -78
  77. package/dist/runtime/public/scss/element-plus/common/popup.scss +47 -0
  78. package/dist/runtime/public/scss/element-plus/common/transition.css +78 -78
  79. package/dist/runtime/public/scss/element-plus/common/transition.scss +124 -0
  80. package/dist/runtime/public/scss/element-plus/common/var.css +78 -78
  81. package/dist/runtime/public/scss/element-plus/common/var.scss +1646 -0
  82. package/dist/runtime/public/scss/element-plus/config-provider.scss +0 -0
  83. package/dist/runtime/public/scss/element-plus/container.css +78 -78
  84. package/dist/runtime/public/scss/element-plus/container.scss +14 -0
  85. package/dist/runtime/public/scss/element-plus/dark/css-vars.css +78 -78
  86. package/dist/runtime/public/scss/element-plus/dark/css-vars.scss +39 -0
  87. package/dist/runtime/public/scss/element-plus/dark/var.css +78 -78
  88. package/dist/runtime/public/scss/element-plus/dark/var.scss +221 -0
  89. package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +78 -78
  90. package/dist/runtime/public/scss/element-plus/date-picker/date-picker.scss +109 -0
  91. package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +78 -78
  92. package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.scss +117 -0
  93. package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +78 -78
  94. package/dist/runtime/public/scss/element-plus/date-picker/date-table.scss +158 -0
  95. package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +78 -78
  96. package/dist/runtime/public/scss/element-plus/date-picker/month-table.scss +112 -0
  97. package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +78 -78
  98. package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.scss +168 -0
  99. package/dist/runtime/public/scss/element-plus/date-picker/picker.css +78 -78
  100. package/dist/runtime/public/scss/element-plus/date-picker/picker.scss +192 -0
  101. package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +78 -78
  102. package/dist/runtime/public/scss/element-plus/date-picker/time-picker.scss +98 -0
  103. package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +78 -78
  104. package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.scss +40 -0
  105. package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +78 -78
  106. package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.scss +110 -0
  107. package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +78 -78
  108. package/dist/runtime/public/scss/element-plus/date-picker/year-table.scss +108 -0
  109. package/dist/runtime/public/scss/element-plus/date-picker.css +78 -78
  110. package/dist/runtime/public/scss/element-plus/date-picker.scss +9 -0
  111. package/dist/runtime/public/scss/element-plus/descriptions-item.css +78 -78
  112. package/dist/runtime/public/scss/element-plus/descriptions-item.scss +69 -0
  113. package/dist/runtime/public/scss/element-plus/descriptions.css +78 -78
  114. package/dist/runtime/public/scss/element-plus/descriptions.scss +166 -0
  115. package/dist/runtime/public/scss/element-plus/dialog.css +81 -81
  116. package/dist/runtime/public/scss/element-plus/dialog.scss +190 -0
  117. package/dist/runtime/public/scss/element-plus/display.css +78 -78
  118. package/dist/runtime/public/scss/element-plus/display.scss +12 -0
  119. package/dist/runtime/public/scss/element-plus/divider.css +78 -78
  120. package/dist/runtime/public/scss/element-plus/divider.scss +48 -0
  121. package/dist/runtime/public/scss/element-plus/drawer.css +78 -78
  122. package/dist/runtime/public/scss/element-plus/drawer.scss +155 -0
  123. package/dist/runtime/public/scss/element-plus/dropdown-item.scss +0 -0
  124. package/dist/runtime/public/scss/element-plus/dropdown-menu.scss +0 -0
  125. package/dist/runtime/public/scss/element-plus/dropdown.css +78 -78
  126. package/dist/runtime/public/scss/element-plus/dropdown.scss +212 -0
  127. package/dist/runtime/public/scss/element-plus/empty.css +78 -78
  128. package/dist/runtime/public/scss/element-plus/empty.scss +49 -0
  129. package/dist/runtime/public/scss/element-plus/footer.css +78 -78
  130. package/dist/runtime/public/scss/element-plus/footer.scss +12 -0
  131. package/dist/runtime/public/scss/element-plus/form-item.scss +0 -0
  132. package/dist/runtime/public/scss/element-plus/form.css +78 -78
  133. package/dist/runtime/public/scss/element-plus/form.scss +296 -0
  134. package/dist/runtime/public/scss/element-plus/header.css +78 -78
  135. package/dist/runtime/public/scss/element-plus/header.scss +12 -0
  136. package/dist/runtime/public/scss/element-plus/icon.css +78 -78
  137. package/dist/runtime/public/scss/element-plus/icon.scss +45 -0
  138. package/dist/runtime/public/scss/element-plus/image-viewer.css +78 -78
  139. package/dist/runtime/public/scss/element-plus/image-viewer.scss +139 -0
  140. package/dist/runtime/public/scss/element-plus/image.css +78 -78
  141. package/dist/runtime/public/scss/element-plus/image.scss +49 -0
  142. package/dist/runtime/public/scss/element-plus/index.css +185 -164
  143. package/dist/runtime/public/scss/element-plus/index.scss +110 -0
  144. package/dist/runtime/public/scss/element-plus/infinite-scroll.scss +0 -0
  145. package/dist/runtime/public/scss/element-plus/input-number.css +78 -78
  146. package/dist/runtime/public/scss/element-plus/input-number.scss +184 -0
  147. package/dist/runtime/public/scss/element-plus/input.css +78 -78
  148. package/dist/runtime/public/scss/element-plus/input.scss +530 -0
  149. package/dist/runtime/public/scss/element-plus/link.css +106 -120
  150. package/dist/runtime/public/scss/element-plus/link.scss +89 -0
  151. package/dist/runtime/public/scss/element-plus/loading.css +78 -78
  152. package/dist/runtime/public/scss/element-plus/loading.scss +102 -0
  153. package/dist/runtime/public/scss/element-plus/main.css +78 -78
  154. package/dist/runtime/public/scss/element-plus/main.scss +14 -0
  155. package/dist/runtime/public/scss/element-plus/mention.css +78 -78
  156. package/dist/runtime/public/scss/element-plus/mention.scss +84 -0
  157. package/dist/runtime/public/scss/element-plus/menu-item-group.scss +0 -0
  158. package/dist/runtime/public/scss/element-plus/menu-item.scss +0 -0
  159. package/dist/runtime/public/scss/element-plus/menu.css +78 -78
  160. package/dist/runtime/public/scss/element-plus/menu.scss +332 -0
  161. package/dist/runtime/public/scss/element-plus/message-box.css +105 -86
  162. package/dist/runtime/public/scss/element-plus/message-box.scss +229 -0
  163. package/dist/runtime/public/scss/element-plus/message.css +81 -81
  164. package/dist/runtime/public/scss/element-plus/message.scss +159 -0
  165. package/dist/runtime/public/scss/element-plus/mixins/_button.scss +181 -0
  166. package/dist/runtime/public/scss/element-plus/mixins/_col.scss +33 -0
  167. package/dist/runtime/public/scss/element-plus/mixins/_var.scss +58 -0
  168. package/dist/runtime/public/scss/element-plus/mixins/config.scss +5 -0
  169. package/dist/runtime/public/scss/element-plus/mixins/function.scss +84 -0
  170. package/dist/runtime/public/scss/element-plus/mixins/mixins.css +78 -78
  171. package/dist/runtime/public/scss/element-plus/mixins/mixins.scss +227 -0
  172. package/dist/runtime/public/scss/element-plus/mixins/utils.scss +39 -0
  173. package/dist/runtime/public/scss/element-plus/notification.css +80 -80
  174. package/dist/runtime/public/scss/element-plus/notification.scss +104 -0
  175. package/dist/runtime/public/scss/element-plus/option-group.css +78 -78
  176. package/dist/runtime/public/scss/element-plus/option-group.scss +38 -0
  177. package/dist/runtime/public/scss/element-plus/option.css +78 -78
  178. package/dist/runtime/public/scss/element-plus/option.scss +75 -0
  179. package/dist/runtime/public/scss/element-plus/overlay.css +79 -79
  180. package/dist/runtime/public/scss/element-plus/overlay.scss +20 -0
  181. package/dist/runtime/public/scss/element-plus/page-header.css +78 -78
  182. package/dist/runtime/public/scss/element-plus/page-header.scss +60 -0
  183. package/dist/runtime/public/scss/element-plus/pagination.css +78 -78
  184. package/dist/runtime/public/scss/element-plus/pagination.scss +249 -0
  185. package/dist/runtime/public/scss/element-plus/popconfirm.css +78 -78
  186. package/dist/runtime/public/scss/element-plus/popconfirm.scss +16 -0
  187. package/dist/runtime/public/scss/element-plus/popover.css +99 -79
  188. package/dist/runtime/public/scss/element-plus/popover.scss +75 -0
  189. package/dist/runtime/public/scss/element-plus/popper.css +78 -78
  190. package/dist/runtime/public/scss/element-plus/popper.scss +107 -0
  191. package/dist/runtime/public/scss/element-plus/progress.css +78 -78
  192. package/dist/runtime/public/scss/element-plus/progress.scss +179 -0
  193. package/dist/runtime/public/scss/element-plus/radio-button.css +78 -79
  194. package/dist/runtime/public/scss/element-plus/radio-button.scss +138 -0
  195. package/dist/runtime/public/scss/element-plus/radio-group.css +78 -78
  196. package/dist/runtime/public/scss/element-plus/radio-group.scss +9 -0
  197. package/dist/runtime/public/scss/element-plus/radio.css +78 -78
  198. package/dist/runtime/public/scss/element-plus/radio.scss +240 -0
  199. package/dist/runtime/public/scss/element-plus/rate.css +78 -78
  200. package/dist/runtime/public/scss/element-plus/rate.scss +108 -0
  201. package/dist/runtime/public/scss/element-plus/reset.css +78 -78
  202. package/dist/runtime/public/scss/element-plus/reset.scss +97 -0
  203. package/dist/runtime/public/scss/element-plus/result.css +78 -78
  204. package/dist/runtime/public/scss/element-plus/result.scss +57 -0
  205. package/dist/runtime/public/scss/element-plus/row.css +78 -78
  206. package/dist/runtime/public/scss/element-plus/row.scss +35 -0
  207. package/dist/runtime/public/scss/element-plus/scrollbar.css +78 -78
  208. package/dist/runtime/public/scss/element-plus/scrollbar.scss +85 -0
  209. package/dist/runtime/public/scss/element-plus/segmented.css +78 -78
  210. package/dist/runtime/public/scss/element-plus/segmented.scss +160 -0
  211. package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +78 -78
  212. package/dist/runtime/public/scss/element-plus/select-dropdown-v2.scss +1 -0
  213. package/dist/runtime/public/scss/element-plus/select-dropdown.css +78 -78
  214. package/dist/runtime/public/scss/element-plus/select-dropdown.scss +57 -0
  215. package/dist/runtime/public/scss/element-plus/select-v2.css +79 -79
  216. package/dist/runtime/public/scss/element-plus/select-v2.scss +4 -0
  217. package/dist/runtime/public/scss/element-plus/select.css +79 -79
  218. package/dist/runtime/public/scss/element-plus/select.scss +277 -0
  219. package/dist/runtime/public/scss/element-plus/skeleton-item.css +78 -78
  220. package/dist/runtime/public/scss/element-plus/skeleton-item.scss +83 -0
  221. package/dist/runtime/public/scss/element-plus/skeleton.css +78 -78
  222. package/dist/runtime/public/scss/element-plus/skeleton.scss +39 -0
  223. package/dist/runtime/public/scss/element-plus/slider.css +78 -78
  224. package/dist/runtime/public/scss/element-plus/slider.scss +212 -0
  225. package/dist/runtime/public/scss/element-plus/space.css +78 -78
  226. package/dist/runtime/public/scss/element-plus/space.scss +20 -0
  227. package/dist/runtime/public/scss/element-plus/spinner.css +78 -78
  228. package/dist/runtime/public/scss/element-plus/spinner.scss +43 -0
  229. package/dist/runtime/public/scss/element-plus/statistic.css +78 -78
  230. package/dist/runtime/public/scss/element-plus/statistic.scss +35 -0
  231. package/dist/runtime/public/scss/element-plus/step.css +78 -78
  232. package/dist/runtime/public/scss/element-plus/step.scss +316 -0
  233. package/dist/runtime/public/scss/element-plus/steps.css +78 -78
  234. package/dist/runtime/public/scss/element-plus/steps.scss +21 -0
  235. package/dist/runtime/public/scss/element-plus/sub-menu.scss +0 -0
  236. package/dist/runtime/public/scss/element-plus/switch.css +78 -78
  237. package/dist/runtime/public/scss/element-plus/switch.scss +309 -0
  238. package/dist/runtime/public/scss/element-plus/tab-pane.scss +0 -0
  239. package/dist/runtime/public/scss/element-plus/table-column.css +78 -78
  240. package/dist/runtime/public/scss/element-plus/table-column.scss +98 -0
  241. package/dist/runtime/public/scss/element-plus/table-v2.css +78 -78
  242. package/dist/runtime/public/scss/element-plus/table-v2.scss +234 -0
  243. package/dist/runtime/public/scss/element-plus/table.css +84 -81
  244. package/dist/runtime/public/scss/element-plus/table.scss +732 -0
  245. package/dist/runtime/public/scss/element-plus/tabs.css +78 -78
  246. package/dist/runtime/public/scss/element-plus/tabs.scss +653 -0
  247. package/dist/runtime/public/scss/element-plus/tag.css +87 -87
  248. package/dist/runtime/public/scss/element-plus/tag.scss +162 -0
  249. package/dist/runtime/public/scss/element-plus/text.css +78 -78
  250. package/dist/runtime/public/scss/element-plus/text.scss +58 -0
  251. package/dist/runtime/public/scss/element-plus/time-picker.css +78 -78
  252. package/dist/runtime/public/scss/element-plus/time-picker.scss +5 -0
  253. package/dist/runtime/public/scss/element-plus/time-select.css +78 -78
  254. package/dist/runtime/public/scss/element-plus/time-select.scss +37 -0
  255. package/dist/runtime/public/scss/element-plus/timeline-item.css +78 -78
  256. package/dist/runtime/public/scss/element-plus/timeline-item.scss +84 -0
  257. package/dist/runtime/public/scss/element-plus/timeline.css +78 -78
  258. package/dist/runtime/public/scss/element-plus/timeline.scss +46 -0
  259. package/dist/runtime/public/scss/element-plus/tooltip-v2.css +78 -78
  260. package/dist/runtime/public/scss/element-plus/tooltip-v2.scss +86 -0
  261. package/dist/runtime/public/scss/element-plus/tooltip.scss +0 -0
  262. package/dist/runtime/public/scss/element-plus/tour.css +80 -80
  263. package/dist/runtime/public/scss/element-plus/tour.scss +170 -0
  264. package/dist/runtime/public/scss/element-plus/transfer.css +78 -78
  265. package/dist/runtime/public/scss/element-plus/transfer.scss +204 -0
  266. package/dist/runtime/public/scss/element-plus/tree-select.css +78 -78
  267. package/dist/runtime/public/scss/element-plus/tree-select.scss +38 -0
  268. package/dist/runtime/public/scss/element-plus/tree.css +78 -78
  269. package/dist/runtime/public/scss/element-plus/tree.scss +132 -0
  270. package/dist/runtime/public/scss/element-plus/upload.css +78 -78
  271. package/dist/runtime/public/scss/element-plus/upload.scss +652 -0
  272. package/dist/runtime/public/scss/element-plus/var.css +78 -78
  273. package/dist/runtime/public/scss/element-plus/var.scss +84 -0
  274. package/dist/runtime/public/scss/element-plus/virtual-list.css +78 -78
  275. package/dist/runtime/public/scss/element-plus/virtual-list.scss +40 -0
  276. package/dist/runtime/public/scss/theme.css +78 -78
  277. package/dist/runtime/public/scss/theme.scss +72 -0
  278. package/package.json +9 -2
@@ -0,0 +1,732 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(table) {
8
+ @include set-component-css-var('table', $table);
9
+ }
10
+
11
+ @include b(table) {
12
+ position: relative;
13
+ overflow: hidden;
14
+ box-sizing: border-box;
15
+ height: fit-content;
16
+ width: calc(100% - 48px) !important;
17
+ max-width: 100%;
18
+ background-color: getCssVar('table-bg-color');
19
+ font-size: 13px;
20
+ font-weight: getCssVar('table-font-weight-body');
21
+ color: getCssVar('table-text-color');
22
+ overflow: initial;
23
+ transform: translateX(24px);
24
+ margin: 8px 0;
25
+
26
+ &::before {
27
+ content: '';
28
+ position: absolute;
29
+ top: -8px;
30
+ left: -24px;
31
+ right: -24px;
32
+ bottom: -8px;
33
+ box-shadow: 0 0 0 1px getCssVar('color-neutral-light-3');
34
+ border-radius: 6px;
35
+ }
36
+
37
+ @include e(inner-wrapper) {
38
+ position: relative;
39
+ display: flex;
40
+ flex-direction: column;
41
+ height: 100%;
42
+
43
+ // 表格底部伪 border,总是有的
44
+ &::before {
45
+ @include extend-rule(border-pseudo);
46
+ left: 0;
47
+ bottom: 0;
48
+ height: 1px;
49
+ }
50
+ }
51
+
52
+ tbody {
53
+ &:focus-visible {
54
+ outline: none;
55
+ }
56
+ }
57
+
58
+ &.has-footer {
59
+ &.#{$namespace}-table--scrollable-y,
60
+ &.#{$namespace}-table--fluid-height {
61
+ tr:last-child td.#{$namespace}-table__cell {
62
+ border-bottom-color: transparent;
63
+ }
64
+ }
65
+ }
66
+
67
+ // when data is empty
68
+ @include e(empty-block) {
69
+ position: sticky;
70
+ left: 0;
71
+ min-height: 60px;
72
+ text-align: center;
73
+ width: 100%;
74
+ display: flex;
75
+ justify-content: center;
76
+ align-items: center;
77
+ }
78
+
79
+ @include e(empty-text) {
80
+ // min-height doesn't work in IE10 and IE11 https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
81
+ // set empty text line height up to contrainer min-height as workaround.
82
+ line-height: 60px;
83
+ width: 50%;
84
+ color: getCssVar('text-color', 'secondary');
85
+ }
86
+
87
+ // expand the row
88
+ @include e(expand-column) {
89
+ .cell {
90
+ padding: 0;
91
+ text-align: center;
92
+ user-select: none;
93
+ }
94
+ }
95
+
96
+ @include e(expand-icon) {
97
+ position: relative;
98
+ cursor: pointer;
99
+ color: getCssVar('text-color', 'regular');
100
+ font-size: 12px;
101
+ transition: transform getCssVar('transition-duration-fast') ease-in-out;
102
+ height: 20px;
103
+
104
+ @include m(expanded) {
105
+ transform: rotate(90deg);
106
+ }
107
+
108
+ > .#{$namespace}-icon {
109
+ font-size: 12px;
110
+ }
111
+ }
112
+
113
+ @include e(expanded-cell) {
114
+ background-color: getCssVar('table-expanded-cell-bg-color');
115
+
116
+ // increase the weight purely
117
+ &[class*='cell'] {
118
+ padding: 20px 50px;
119
+ }
120
+
121
+ &:hover {
122
+ background-color: transparent !important;
123
+ }
124
+ }
125
+
126
+ @include e(placeholder) {
127
+ display: inline-block;
128
+ width: 20px;
129
+ }
130
+
131
+ @include e(append-wrapper) {
132
+ // avoid overlapping margin https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
133
+ overflow: hidden;
134
+ }
135
+
136
+ @include m(fit) {
137
+ // border-right: 0;
138
+ // border-bottom: 0;
139
+
140
+ .#{$namespace}-table__cell.gutter {
141
+ border-right-width: 1px;
142
+ }
143
+
144
+ @include e(inner-wrapper) {
145
+ &::before {
146
+ width: 100%;
147
+ }
148
+ }
149
+ }
150
+
151
+ thead {
152
+ color: getCssVar('table-header-text-color');
153
+
154
+ th {
155
+ font-weight: getCssVar('table-font-weight-head');
156
+ border-bottom: 1px solid getCssVar('color-neutral-light-3');
157
+ }
158
+
159
+ &.is-group {
160
+ th.#{$namespace}-table__cell {
161
+ background: getCssVar('fill-color', 'light');
162
+ }
163
+ }
164
+ }
165
+
166
+ .#{$namespace}-table__cell {
167
+ padding: map.get($table-padding, 'default');
168
+ min-width: 0;
169
+ box-sizing: border-box;
170
+ text-overflow: ellipsis;
171
+ vertical-align: middle;
172
+ position: relative;
173
+ text-align: left;
174
+ z-index: getCssVar('table-index');
175
+
176
+ @include when(center) {
177
+ text-align: center;
178
+ }
179
+
180
+ @include when(right) {
181
+ text-align: right;
182
+ }
183
+
184
+ &.gutter {
185
+ width: 15px;
186
+ border-right-width: 0;
187
+ border-bottom-width: 0;
188
+ padding: 0;
189
+ }
190
+
191
+ &.is-hidden {
192
+ > * {
193
+ visibility: hidden;
194
+ }
195
+ }
196
+
197
+ &:first-of-type {
198
+ .cell {
199
+ padding-left: 0;
200
+ }
201
+ }
202
+
203
+ &:last-of-type {
204
+ .cell {
205
+ padding-right: 0;
206
+ }
207
+ }
208
+ }
209
+
210
+ .cell {
211
+ box-sizing: border-box;
212
+ overflow: hidden;
213
+ text-overflow: ellipsis;
214
+ white-space: normal;
215
+ overflow-wrap: break-word;
216
+ line-height: 25px;
217
+ padding: 0 12px;
218
+
219
+ &.#{$namespace}-tooltip {
220
+ white-space: nowrap;
221
+ min-width: 50px;
222
+ }
223
+ }
224
+
225
+ @each $size in (large, default, small) {
226
+ @include m($size) {
227
+ font-size: map.get($table-font-size, $size);
228
+
229
+ .#{$namespace}-table__cell {
230
+ padding: map.get($table-padding, $size);
231
+ }
232
+
233
+ .cell {
234
+ padding: map.get($table-cell-padding, $size);
235
+ }
236
+ }
237
+ }
238
+
239
+ tr {
240
+ background-color: getCssVar('table-tr-bg-color');
241
+
242
+ input[type='checkbox'] {
243
+ margin: 0;
244
+ }
245
+ }
246
+
247
+ tr:not(:last-of-type) {
248
+ th.#{$namespace}-table__cell.is-leaf,
249
+ td.#{$namespace}-table__cell {
250
+ border-bottom: getCssVar('table-border');
251
+ }
252
+ }
253
+
254
+ th.#{$namespace}-table__cell.is-sortable {
255
+ cursor: pointer;
256
+ }
257
+
258
+ th.#{$namespace}-table__cell {
259
+ background-color: getCssVar('table-header-bg-color');
260
+
261
+ > .cell.highlight {
262
+ color: getCssVar('color-primary');
263
+ }
264
+
265
+ &.required > div::before {
266
+ display: inline-block;
267
+ content: '';
268
+ width: 8px;
269
+ height: 8px;
270
+ border-radius: 50%;
271
+ background: #ff4d51;
272
+ margin-right: 5px;
273
+ vertical-align: middle;
274
+ }
275
+ }
276
+
277
+ td.#{$namespace}-table__cell {
278
+ div {
279
+ box-sizing: border-box;
280
+ }
281
+
282
+ &.gutter {
283
+ width: 0;
284
+ }
285
+ }
286
+
287
+ // 拥有多级表头
288
+ @include m((group, border)) {
289
+ @include share-rule(border-pseudo) {
290
+ content: '';
291
+ position: absolute;
292
+ // It is clear table bottom border
293
+ // background-color: getCssVar('table-border-color');
294
+ z-index: calc(getCssVar('table-index') + 2);
295
+ }
296
+ }
297
+
298
+ // table--border
299
+ @include m(border) {
300
+ @include e(inner-wrapper) {
301
+ &::after {
302
+ @include extend-rule(border-pseudo);
303
+ left: 0;
304
+ top: 0;
305
+ width: 100%;
306
+ height: 1px;
307
+ z-index: calc(getCssVar('table-index') + 2);
308
+ }
309
+ }
310
+
311
+ &::before {
312
+ @include extend-rule(border-pseudo);
313
+ top: -1px;
314
+ left: 0;
315
+ width: 1px;
316
+ height: 100%;
317
+ }
318
+
319
+ &::after {
320
+ @include extend-rule(border-pseudo);
321
+ top: -1px;
322
+ right: 0;
323
+ width: 1px;
324
+ height: 100%;
325
+ }
326
+
327
+ @include e(inner-wrapper) {
328
+ border-right: none;
329
+ border-bottom: none;
330
+ }
331
+
332
+ @include e(footer-wrapper) {
333
+ position: relative;
334
+ flex-shrink: 0;
335
+ }
336
+
337
+ .#{$namespace}-table__cell {
338
+ border-right: getCssVar('table-border');
339
+ }
340
+
341
+ th.#{$namespace}-table__cell.gutter:last-of-type {
342
+ border-bottom: getCssVar('table-border');
343
+ border-bottom-width: 1px;
344
+ }
345
+
346
+ & th.#{$namespace}-table__cell {
347
+ border-bottom: getCssVar('table-border');
348
+ }
349
+ }
350
+
351
+ @include m(hidden) {
352
+ visibility: hidden;
353
+ }
354
+
355
+ @include e((header-wrapper, body-wrapper, footer-wrapper)) {
356
+ width: 100%;
357
+
358
+ tr {
359
+ td,
360
+ th {
361
+ &.#{$namespace}-table-fixed-column--left,
362
+ &.#{$namespace}-table-fixed-column--right {
363
+ position: sticky !important;
364
+ background: inherit;
365
+ z-index: calc(getCssVar('table-index') + 1);
366
+
367
+ &.is-last-column,
368
+ &.is-first-column {
369
+ &::before {
370
+ content: '';
371
+ position: absolute;
372
+ top: 0px;
373
+ width: 10px;
374
+ bottom: -1px;
375
+ overflow-x: hidden;
376
+ overflow-y: hidden;
377
+ box-shadow: none;
378
+ touch-action: none;
379
+ pointer-events: none;
380
+ }
381
+ }
382
+
383
+ &.is-first-column {
384
+ &::before {
385
+ left: -10px;
386
+ }
387
+ }
388
+
389
+ &.is-last-column {
390
+ &::before {
391
+ right: -10px;
392
+ box-shadow: none;
393
+ }
394
+ }
395
+ }
396
+
397
+ &.#{$namespace}-table__fixed-right-patch {
398
+ position: sticky !important;
399
+ z-index: calc(getCssVar('table-index') + 1);
400
+ background: #fff;
401
+ right: 0;
402
+ }
403
+ }
404
+ }
405
+ }
406
+
407
+ @include e(header-wrapper) {
408
+ flex-shrink: 0;
409
+
410
+ tr {
411
+ th {
412
+ &.#{$namespace}-table-fixed-column--left,
413
+ &.#{$namespace}-table-fixed-column--right {
414
+ background-color: getCssVar('table-header-bg-color');
415
+ }
416
+ }
417
+ }
418
+ }
419
+
420
+ @include e((header, body, footer)) {
421
+ table-layout: fixed;
422
+ border-collapse: separate;
423
+ }
424
+
425
+ @include e((header-wrapper)) {
426
+ overflow: hidden;
427
+
428
+ & tbody td.#{$namespace}-table__cell {
429
+ background-color: getCssVar('table-row-hover-bg-color');
430
+ color: getCssVar('table-text-color');
431
+ }
432
+ }
433
+
434
+ @include e((footer-wrapper)) {
435
+ overflow: hidden;
436
+ flex-shrink: 0;
437
+
438
+ tfoot td.#{$namespace}-table__cell {
439
+ background-color: getCssVar('table-row-hover-bg-color');
440
+ color: getCssVar('table-text-color');
441
+ }
442
+ }
443
+
444
+ @include e((header-wrapper, body-wrapper)) {
445
+ .#{$namespace}-table-column--selection {
446
+ > .cell {
447
+ display: flex;
448
+ align-items: center;
449
+ padding: 0;
450
+ }
451
+
452
+ .#{$namespace}-checkbox {
453
+ height: unset;
454
+ }
455
+
456
+ & + td,
457
+ & + th {
458
+ > .cell {
459
+ padding-left: 4px;
460
+ }
461
+ }
462
+ }
463
+ }
464
+
465
+ @include when(scrolling-left) {
466
+ .#{$namespace}-table-fixed-column--right.is-first-column {
467
+ &::before {
468
+ box-shadow: getCssVar('table-fixed-right-column');
469
+ }
470
+ }
471
+
472
+ &.#{$namespace}-table--border {
473
+ .#{$namespace}-table-fixed-column--left {
474
+ &.is-last-column {
475
+ &.#{$namespace}-table__cell {
476
+ border-right: getCssVar('table-border');
477
+ }
478
+ }
479
+ }
480
+ }
481
+
482
+ th.#{$namespace}-table-fixed-column--left {
483
+ background-color: getCssVar('table-header-bg-color');
484
+ }
485
+ }
486
+
487
+ @include when(scrolling-right) {
488
+ .#{$namespace}-table-fixed-column--left.is-last-column {
489
+ &::before {
490
+ box-shadow: getCssVar('table-fixed-left-column');
491
+ }
492
+ }
493
+
494
+ .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
495
+ border-right: none;
496
+ }
497
+
498
+ th.#{$namespace}-table-fixed-column--right {
499
+ background-color: getCssVar('table-header-bg-color');
500
+ }
501
+ }
502
+
503
+ @include when(scrolling-middle) {
504
+ .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
505
+ border-right: none;
506
+ }
507
+
508
+ .#{$namespace}-table-fixed-column--right.is-first-column {
509
+ &::before {
510
+ box-shadow: getCssVar('table-fixed-right-column');
511
+ }
512
+ }
513
+
514
+ .#{$namespace}-table-fixed-column--left.is-last-column {
515
+ &::before {
516
+ box-shadow: getCssVar('table-fixed-left-column');
517
+ }
518
+ }
519
+ }
520
+
521
+ @include when(scrolling-none) {
522
+ .#{$namespace}-table-fixed-column--left,
523
+ .#{$namespace}-table-fixed-column--right {
524
+ &.is-first-column,
525
+ &.is-last-column {
526
+ &::before {
527
+ box-shadow: none;
528
+ }
529
+ }
530
+ }
531
+
532
+ th.#{$namespace}-table-fixed-column--left,
533
+ th.#{$namespace}-table-fixed-column--right {
534
+ background-color: getCssVar('table-header-bg-color');
535
+ }
536
+ }
537
+
538
+ @include e(body-wrapper) {
539
+ overflow: hidden;
540
+ position: relative;
541
+ flex: 1;
542
+
543
+ .#{$namespace}-scrollbar__bar {
544
+ z-index: calc(getCssVar('table-index') + 2);
545
+ }
546
+ }
547
+
548
+ .caret-wrapper {
549
+ display: inline-flex;
550
+ flex-direction: column;
551
+ align-items: center;
552
+ height: 14px;
553
+ width: 24px;
554
+ vertical-align: middle;
555
+ cursor: pointer;
556
+ overflow: initial;
557
+ position: relative;
558
+ }
559
+
560
+ .sort-caret {
561
+ width: 0;
562
+ height: 0;
563
+ border: solid 5px transparent;
564
+ position: absolute;
565
+ left: 7px;
566
+
567
+ &.ascending {
568
+ border-bottom-color: getCssVar('text-color', 'placeholder');
569
+ top: -5px;
570
+ }
571
+
572
+ &.descending {
573
+ border-top-color: getCssVar('text-color', 'placeholder');
574
+ bottom: -3px;
575
+ }
576
+ }
577
+
578
+ .ascending .sort-caret.ascending {
579
+ border-bottom-color: getCssVar('color-primary');
580
+ }
581
+
582
+ .descending .sort-caret.descending {
583
+ border-top-color: getCssVar('color-primary');
584
+ }
585
+
586
+ .hidden-columns {
587
+ visibility: hidden;
588
+ position: absolute;
589
+ z-index: -1;
590
+ }
591
+
592
+ @include m(striped) {
593
+ & .#{$namespace}-table__body {
594
+ & tr.#{$namespace}-table__row--striped {
595
+ td.#{$namespace}-table__cell {
596
+ background: getCssVar('fill-color', 'lighter');
597
+ }
598
+
599
+ &.current-row td.#{$namespace}-table__cell {
600
+ background-color: getCssVar('table-current-row-bg-color');
601
+ }
602
+ }
603
+ }
604
+ }
605
+
606
+ @include e(body) {
607
+ tr.hover-row {
608
+ &,
609
+ &.#{$namespace}-table__row--striped {
610
+ &,
611
+ &.current-row {
612
+ > td.#{$namespace}-table__cell {
613
+ background-color: getCssVar('table-row-hover-bg-color');
614
+ }
615
+ }
616
+ }
617
+ }
618
+
619
+ tr > td.hover-cell {
620
+ background-color: getCssVar('table-row-hover-bg-color');
621
+ }
622
+
623
+ tr.current-row > td.#{$namespace}-table__cell {
624
+ background-color: getCssVar('table-current-row-bg-color');
625
+ }
626
+ }
627
+
628
+ &.#{$namespace}-table--scrollable-y {
629
+ @include e(body-header) {
630
+ position: sticky;
631
+ top: 0;
632
+ z-index: calc(getCssVar('table-index') + 2);
633
+ }
634
+
635
+ @include e(body-footer) {
636
+ position: sticky;
637
+ bottom: 0;
638
+ z-index: calc(getCssVar('table-index') + 2);
639
+ }
640
+ }
641
+
642
+ @include e(column-resize-proxy) {
643
+ position: absolute;
644
+ left: 200px;
645
+ top: 0;
646
+ bottom: 0;
647
+ width: 0;
648
+ border-left: getCssVar('table-border');
649
+ z-index: calc(getCssVar('table-index') + 9);
650
+ }
651
+
652
+ @include e(column-filter-trigger) {
653
+ display: inline-block;
654
+ cursor: pointer;
655
+
656
+ & i {
657
+ color: getCssVar('color-info');
658
+ font-size: 14px;
659
+ vertical-align: middle;
660
+ }
661
+ }
662
+
663
+ @include e(border-left-patch) {
664
+ top: 0;
665
+ left: 0;
666
+ width: 1px;
667
+ height: 100%;
668
+ z-index: calc(getCssVar('table-index') + 2);
669
+ position: absolute;
670
+ background-color: getCssVar('table-border-color');
671
+ }
672
+
673
+ @include e(border-bottom-patch) {
674
+ left: 0;
675
+ height: 1px;
676
+ z-index: calc(getCssVar('table-index') + 2);
677
+ position: absolute;
678
+ background-color: getCssVar('table-border-color');
679
+ }
680
+
681
+ @include e(border-right-patch) {
682
+ top: 0;
683
+ height: 100%;
684
+ width: 1px;
685
+ z-index: calc(getCssVar('table-index') + 2);
686
+ position: absolute;
687
+ background-color: getCssVar('table-border-color');
688
+ }
689
+
690
+ @include m(enable-row-transition) {
691
+ .#{$namespace}-table__body td.#{$namespace}-table__cell {
692
+ transition: background-color 0.25s ease;
693
+ }
694
+ }
695
+
696
+ @include m(enable-row-hover) {
697
+ .#{$namespace}-table__body tr:hover > td.#{$namespace}-table__cell {
698
+ background-color: getCssVar('table-row-hover-bg-color');
699
+ }
700
+ }
701
+
702
+ [class*='#{$namespace}-table__row--level'] {
703
+ .#{$namespace}-table__expand-icon {
704
+ display: inline-block;
705
+ width: 12px;
706
+ line-height: 12px;
707
+ height: 12px;
708
+ text-align: center;
709
+ margin-right: 8px;
710
+ }
711
+ }
712
+
713
+ @include b(table) {
714
+ &.#{$namespace}-table--border {
715
+ .#{$namespace}-table__cell {
716
+ border-right: getCssVar('table-border');
717
+ }
718
+ }
719
+ }
720
+
721
+ &:not(.#{$namespace}-table--border) {
722
+ .#{$namespace}-table__cell {
723
+ border-right: none;
724
+ }
725
+
726
+ > .#{$namespace}-table__inner-wrapper {
727
+ &::after {
728
+ content: none;
729
+ }
730
+ }
731
+ }
732
+ }