yc-pro-components 0.0.78 → 0.0.79

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 (167) hide show
  1. package/es/components/check-card/index.d.ts +61 -61
  2. package/es/components/check-card/src/index.vue.d.ts +4 -4
  3. package/es/components/check-card-group/index.d.ts +43 -43
  4. package/es/components/check-card-group/src/index.vue.d.ts +3 -3
  5. package/es/components/date-picker/index.d.ts +30 -30
  6. package/es/components/date-picker/src/index.vue.d.ts +22 -22
  7. package/es/components/dialog/index.d.ts +45 -45
  8. package/es/components/dialog/src/index.vue.d.ts +3 -3
  9. package/es/components/dialog-form/index.d.ts +32 -32
  10. package/es/components/dialog-form/src/index.vue.d.ts +10 -10
  11. package/es/components/display-item/index.d.ts +44 -44
  12. package/es/components/display-item/src/index.vue.d.ts +25 -25
  13. package/es/components/drawer-form/index.d.ts +84 -84
  14. package/es/components/drawer-form/src/index.vue.d.ts +22 -22
  15. package/es/components/form/index.d.ts +73 -73
  16. package/es/components/form/src/form-content.vue.d.ts +25 -25
  17. package/es/components/form/src/index.vue.d.ts +21 -21
  18. package/es/components/form-item/index.d.ts +80 -80
  19. package/es/components/form-item/src/index.vue.d.ts +24 -24
  20. package/es/components/header/index.d.ts +19 -19
  21. package/es/components/header/src/index.vue.d.ts +1 -1
  22. package/es/components/input-tag/index.d.ts +15 -15
  23. package/es/components/input-tag/src/index.vue.d.ts +3 -3
  24. package/es/components/layout/index.d.ts +30 -30
  25. package/es/components/layout/src/index.vue.d.ts +10 -10
  26. package/es/components/page/index.d.ts +574 -574
  27. package/es/components/page/src/index.vue.d.ts +190 -190
  28. package/es/components/pagination/index.d.ts +42 -42
  29. package/es/components/pagination/src/index.vue.d.ts +3 -3
  30. package/es/components/radio/index.d.ts +35 -35
  31. package/es/components/radio/src/index.vue.d.ts +27 -27
  32. package/es/components/render/index.d.ts +6 -6
  33. package/es/components/render/src/index.vue.d.ts +2 -2
  34. package/es/components/search/index.d.ts +250 -250
  35. package/es/components/search/src/index.vue.d.ts +76 -76
  36. package/es/components/sidebar/index.d.ts +31 -31
  37. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  38. package/es/components/steps-form/index.d.ts +24 -24
  39. package/es/components/steps-form/src/index.vue.d.ts +3 -3
  40. package/es/components/table/src/index.vue2.mjs +20 -3
  41. package/es/components/table/src/table-action-bar.vue.d.ts +1 -1
  42. package/es/components/table/src/table-column.vue.d.ts +40 -40
  43. package/es/components/utils/index.d.ts +2 -2
  44. package/es/components/yc-count-to/index.d.ts +2 -2
  45. package/es/components/yc-count-to/src/normal/index.d.ts +2 -2
  46. package/es/components/yc-dialog/index.d.ts +24 -24
  47. package/es/components/yc-download-dialog/index.d.ts +19 -19
  48. package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  49. package/es/components/yc-form-container-header/index.d.ts +12 -12
  50. package/es/components/yc-more-actions/index.d.ts +46 -46
  51. package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
  52. package/es/components/yc-plus-page/src/index.vue.d.ts +392 -392
  53. package/es/components/yc-plus-tree/src/index.vue.d.ts +2 -2
  54. package/es/components/yc-segmented/index.d.ts +2 -2
  55. package/es/components/yc-segmented/src/index.d.ts +2 -2
  56. package/es/components/yc-select-v2/src/index.vue.d.ts +4 -4
  57. package/es/components/yc-status-dialog/src/index.vue.d.ts +2 -2
  58. package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
  59. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  60. package/es/hooks/index.d.ts +1 -0
  61. package/es/hooks/index.mjs +1 -0
  62. package/es/hooks/usePlusFormReset.d.ts +286 -286
  63. package/es/hooks/useTableScrollbarTooltip.d.ts +29 -0
  64. package/es/hooks/useTableScrollbarTooltip.mjs +122 -0
  65. package/es/index.css +9 -9
  66. package/es/index.mjs +1 -0
  67. package/es/version.d.ts +1 -1
  68. package/es/version.mjs +1 -1
  69. package/es/yc-components/version.d.ts +1 -1
  70. package/index.css +1 -1
  71. package/index.js +139 -4
  72. package/index.min.js +12 -12
  73. package/index.min.mjs +12 -12
  74. package/index.mjs +139 -4
  75. package/lib/components/check-card/index.d.ts +61 -61
  76. package/lib/components/check-card/src/index.vue.d.ts +4 -4
  77. package/lib/components/check-card-group/index.d.ts +43 -43
  78. package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
  79. package/lib/components/date-picker/index.d.ts +30 -30
  80. package/lib/components/date-picker/src/index.vue.d.ts +22 -22
  81. package/lib/components/dialog/index.d.ts +45 -45
  82. package/lib/components/dialog/src/index.vue.d.ts +3 -3
  83. package/lib/components/dialog-form/index.d.ts +32 -32
  84. package/lib/components/dialog-form/src/index.vue.d.ts +10 -10
  85. package/lib/components/display-item/index.d.ts +44 -44
  86. package/lib/components/display-item/src/index.vue.d.ts +25 -25
  87. package/lib/components/drawer-form/index.d.ts +84 -84
  88. package/lib/components/drawer-form/src/index.vue.d.ts +22 -22
  89. package/lib/components/form/index.d.ts +73 -73
  90. package/lib/components/form/src/form-content.vue.d.ts +25 -25
  91. package/lib/components/form/src/index.vue.d.ts +21 -21
  92. package/lib/components/form-item/index.d.ts +80 -80
  93. package/lib/components/form-item/src/index.vue.d.ts +24 -24
  94. package/lib/components/header/index.d.ts +19 -19
  95. package/lib/components/header/src/index.vue.d.ts +1 -1
  96. package/lib/components/input-tag/index.d.ts +15 -15
  97. package/lib/components/input-tag/src/index.vue.d.ts +3 -3
  98. package/lib/components/layout/index.d.ts +30 -30
  99. package/lib/components/layout/src/index.vue.d.ts +10 -10
  100. package/lib/components/page/index.d.ts +574 -574
  101. package/lib/components/page/src/index.vue.d.ts +190 -190
  102. package/lib/components/pagination/index.d.ts +42 -42
  103. package/lib/components/pagination/src/index.vue.d.ts +3 -3
  104. package/lib/components/radio/index.d.ts +35 -35
  105. package/lib/components/radio/src/index.vue.d.ts +27 -27
  106. package/lib/components/render/index.d.ts +6 -6
  107. package/lib/components/render/src/index.vue.d.ts +2 -2
  108. package/lib/components/search/index.d.ts +250 -250
  109. package/lib/components/search/src/index.vue.d.ts +76 -76
  110. package/lib/components/sidebar/index.d.ts +31 -31
  111. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  112. package/lib/components/steps-form/index.d.ts +24 -24
  113. package/lib/components/steps-form/src/index.vue.d.ts +3 -3
  114. package/lib/components/table/src/index.vue2.js +19 -2
  115. package/lib/components/table/src/table-action-bar.vue.d.ts +1 -1
  116. package/lib/components/table/src/table-column.vue.d.ts +40 -40
  117. package/lib/components/utils/index.d.ts +2 -2
  118. package/lib/components/yc-count-to/index.d.ts +2 -2
  119. package/lib/components/yc-count-to/src/normal/index.d.ts +2 -2
  120. package/lib/components/yc-dialog/index.d.ts +24 -24
  121. package/lib/components/yc-download-dialog/index.d.ts +19 -19
  122. package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  123. package/lib/components/yc-form-container-header/index.d.ts +12 -12
  124. package/lib/components/yc-more-actions/index.d.ts +46 -46
  125. package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
  126. package/lib/components/yc-plus-page/src/index.vue.d.ts +392 -392
  127. package/lib/components/yc-plus-tree/src/index.vue.d.ts +2 -2
  128. package/lib/components/yc-segmented/index.d.ts +2 -2
  129. package/lib/components/yc-segmented/src/index.d.ts +2 -2
  130. package/lib/components/yc-select-v2/src/index.vue.d.ts +4 -4
  131. package/lib/components/yc-status-dialog/src/index.vue.d.ts +2 -2
  132. package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
  133. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  134. package/lib/hooks/index.d.ts +1 -0
  135. package/lib/hooks/index.js +2 -0
  136. package/lib/hooks/usePlusFormReset.d.ts +286 -286
  137. package/lib/hooks/useTableScrollbarTooltip.d.ts +29 -0
  138. package/lib/hooks/useTableScrollbarTooltip.js +124 -0
  139. package/lib/index.css +9 -9
  140. package/lib/index.js +1 -0
  141. package/lib/version.d.ts +1 -1
  142. package/lib/version.js +1 -1
  143. package/lib/yc-components/version.d.ts +1 -1
  144. package/locale/en.js +1 -1
  145. package/locale/en.min.js +1 -1
  146. package/locale/en.min.mjs +1 -1
  147. package/locale/en.mjs +1 -1
  148. package/locale/ja.js +1 -1
  149. package/locale/ja.min.js +1 -1
  150. package/locale/ja.min.mjs +1 -1
  151. package/locale/ja.mjs +1 -1
  152. package/locale/ko.js +1 -1
  153. package/locale/ko.min.js +1 -1
  154. package/locale/ko.min.mjs +1 -1
  155. package/locale/ko.mjs +1 -1
  156. package/locale/zh-cn.js +1 -1
  157. package/locale/zh-cn.min.js +1 -1
  158. package/locale/zh-cn.min.mjs +1 -1
  159. package/locale/zh-cn.mjs +1 -1
  160. package/locale/zh-tw.js +1 -1
  161. package/locale/zh-tw.min.js +1 -1
  162. package/locale/zh-tw.min.mjs +1 -1
  163. package/locale/zh-tw.mjs +1 -1
  164. package/package.json +1 -1
  165. package/theme-chalk/index.css +1 -1
  166. package/theme-chalk/plus-table.css +1 -1
  167. package/theme-chalk/src/table.scss +315 -301
@@ -1,301 +1,315 @@
1
- @use 'mixins/config' as *;
2
- @use 'mixins/mixins' as *;
3
- @use 'mixins/function' as *;
4
-
5
- /* 宽松模式下表格行高固定为 50px(包含 padding) */
6
- .el-table--large {
7
- .el-table__row {
8
- td.el-table__cell {
9
- height: 50px;
10
- padding: 2px 0;
11
- }
12
- }
13
- }
14
-
15
- @include b(table) {
16
- /* 自定义列栏 */
17
- @include b(table-column) {
18
- @include e(header) {
19
- @include e(header__icon) {
20
- margin-top: -2px;
21
- margin-left: 2px;
22
- vertical-align: middle;
23
- }
24
- }
25
- }
26
- }
27
-
28
- /* 表头省略显示样式 - 独立定义确保选择器正确 */
29
- .plus-table-column__header--ellipsis {
30
- display: block;
31
- width: 100%;
32
- overflow: hidden;
33
-
34
- .plus-table-column__header-text {
35
- display: block;
36
- width: 100%;
37
- white-space: nowrap;
38
- overflow: hidden;
39
- text-overflow: ellipsis;
40
- }
41
- }
42
-
43
- /* 表头省略显示样式 - 独立定义确保选择器正确 */
44
- .plus-table-column__header--ellipsis {
45
- display: inline-flex;
46
- align-items: center;
47
- width: 100%;
48
- gap: 2px;
49
-
50
- .plus-table-column__header-text {
51
- flex: 1 1 0;
52
- min-width: 0;
53
- white-space: nowrap;
54
- overflow: hidden;
55
- text-overflow: ellipsis;
56
- }
57
-
58
- /* tooltip 图标保持固定,不压缩 */
59
- .plus-table-column__header__icon {
60
- flex-shrink: 0;
61
- }
62
- }
63
-
64
- @include b(table) {
65
- /* 操作栏 */
66
- @include b(table-action-bar) {
67
- &.is-center {
68
- .cell {
69
- justify-content: center;
70
- }
71
- }
72
- &.is-right {
73
- .cell {
74
- justify-content: flex-end;
75
- }
76
- }
77
-
78
- &.#{$el-namespace + -table-fixed-column--right} {
79
- background-color: getCssVar('bg-color');
80
- }
81
-
82
- .cell {
83
- display: flex;
84
- align-items: center;
85
- }
86
-
87
- @include e(dropdown__link) {
88
- display: inline-flex;
89
- cursor: pointer;
90
- user-select: none;
91
- color: getCssVar('color-primary');
92
- }
93
- @include e(more-text) {
94
- margin-right: 2px;
95
- }
96
- @include e(column__link) {
97
- margin-right: 10px;
98
- }
99
- @include e(dropdown) {
100
- vertical-align: baseline;
101
- cursor: pointer;
102
- margin-left: 12px;
103
- }
104
- @include elb(link) {
105
- & + .#{$el-namespace + -link} {
106
- margin-left: 12px;
107
- }
108
- }
109
- @include elb(icon) {
110
- cursor: pointer;
111
-
112
- & + .#{$el-namespace + -icon} {
113
- margin-left: 12px;
114
- }
115
- }
116
- }
117
-
118
- /* 排序 */
119
- @include b(table-column-drag-sort) {
120
- @include b(table-column-drag-icon) {
121
- cursor: move;
122
- padding: 4px;
123
- box-sizing: border-box;
124
- font-size: 18px;
125
- }
126
- }
127
-
128
- /* 序号栏 */
129
- @include b(table-column-index) {
130
- @include b(table-index-column) {
131
- display: inline-flex;
132
- align-items: center;
133
- justify-content: center;
134
- word-break: keep-all;
135
- white-space: nowrap;
136
- width: 20px;
137
- height: 20px;
138
- }
139
-
140
- .cell {
141
- @include b(table-column-index__content) {
142
- align-items: center;
143
- display: flex;
144
- justify-content: center;
145
- overflow: hidden;
146
- }
147
- }
148
- }
149
-
150
- /*工具栏*/
151
- @include b(table-title-bar) {
152
- display: flex;
153
- justify-content: space-between;
154
- align-items: center;
155
- margin-bottom: 10px;
156
- }
157
-
158
- @include e(toolbar) {
159
- display: flex;
160
- align-items: center;
161
- }
162
-
163
- @include elb(popper) {
164
- max-width: 200px;
165
- }
166
- }
167
-
168
- /* 密度设置 */
169
- @include b(table-title-bar__toolbar__density) {
170
- display: flex;
171
- flex-direction: column;
172
- align-items: center;
173
-
174
- @include elb(button) {
175
- margin-top: 10px;
176
- width: 80px;
177
-
178
- & + .#{$el-namespace + -button} {
179
- margin-left: 0;
180
- }
181
- }
182
- }
183
-
184
- @include b(table-title-bar__toolbar__icon) {
185
- margin-left: 10px;
186
- vertical-align: middle;
187
- cursor: pointer;
188
- color: getCssVar('text-color-regular');
189
- }
190
- /* 列设置 */
191
- @include b(table-title-bar__toolbar__checkbox__item) {
192
- margin-left: 6px;
193
- }
194
- /* 列设置列表区域 - 限制最大高度,超出滚动 */
195
- @include b(table-checkbox-sortable-list) {
196
- max-height: 300px;
197
- overflow-y: auto;
198
- }
199
- /* 列设置 拖拽 item */
200
- @include b(table-checkbox-item) {
201
- display: flex;
202
- align-items: center;
203
- margin-left: 20px;
204
- }
205
- /* 列设置 拖拽handle */
206
- @include b(table-checkbox-handle) {
207
- font-size: 18px;
208
- cursor: move;
209
- }
210
-
211
- @include b(table-ghost-class) {
212
- padding: 0 5px;
213
- border: 1px dashed getCssVar('color-primary');
214
- background-color: #fff;
215
- }
216
-
217
- @include b(table-column__edit) {
218
- cursor: pointer;
219
- }
220
-
221
- @include b(table-checkbox-checkAll) {
222
- display: flex;
223
- justify-content: space-between;
224
- }
225
-
226
- /* 树形表格展开/收起图标 */
227
- .el-table__expand-icon {
228
- display: inline-flex;
229
- align-items: center;
230
- justify-content: center;
231
- width: 20px;
232
- height: 20px;
233
- margin-right: 4px;
234
- cursor: pointer;
235
- transition: transform 0.2s ease-in-out;
236
-
237
- // 隐藏默认的 Element Plus 箭头图标
238
- .el-icon {
239
- display: none;
240
- }
241
-
242
- // 使用 CDN 自定义图标
243
- &::before {
244
- content: '';
245
- display: block;
246
- width: 16px;
247
- height: 16px;
248
- background: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/expand_collapse_v2.svg') center center no-repeat;
249
- background-size: contain;
250
- transition: transform 0.2s ease-in-out;
251
- }
252
-
253
- // 展开状态:旋转 -90 度(向下)
254
- // &--expanded::before {
255
- // transform: rotate(-90deg);
256
- // }
257
- }
258
-
259
- /* ==================== el-table 排序图标替换为 CDN 图标 ==================== */
260
- .el-table .caret-wrapper {
261
- position: relative;
262
- display: inline-flex;
263
- flex-direction: column;
264
- align-items: center;
265
- justify-content: center;
266
- width: 24px;
267
- height: 24px;
268
- vertical-align: middle;
269
- cursor: pointer;
270
-
271
- // 隐藏原有的升序/降序箭头图标,使用 mask 保留方向独立高亮。
272
- .sort-caret {
273
- position: static;
274
- display: block;
275
- width: 14px;
276
- height: 7px;
277
- border: none;
278
- background-color: var(--el-text-color-placeholder);
279
- -webkit-mask: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/table_sort_icon.svg') center center no-repeat;
280
- mask: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/table_sort_icon.svg') center center no-repeat;
281
- -webkit-mask-size: 14px 14px;
282
- mask-size: 14px 14px;
283
- transition: background-color 0.2s;
284
- }
285
-
286
- .ascending {
287
- -webkit-mask-position: top center;
288
- mask-position: top center;
289
- }
290
-
291
- .descending {
292
- -webkit-mask-position: bottom center;
293
- mask-position: bottom center;
294
- }
295
- }
296
-
297
- // 升序/降序激活状态只高亮对应方向。
298
- .el-table .ascending .sort-caret.ascending,
299
- .el-table .descending .sort-caret.descending {
300
- background-color: var(--el-color-primary);
301
- }
1
+ @use 'mixins/config' as *;
2
+ @use 'mixins/mixins' as *;
3
+ @use 'mixins/function' as *;
4
+
5
+ /* 宽松模式下表格行高固定为 50px(包含 padding) */
6
+ .el-table--large {
7
+ .el-table__row {
8
+ td.el-table__cell {
9
+ height: 50px;
10
+ padding: 2px 0;
11
+ }
12
+ }
13
+ }
14
+
15
+ @include b(table) {
16
+ /* 横向滚动条 Tooltip 热区扩大,便于 hover 触发 */
17
+ .#{$el-namespace + -scrollbar__bar}.is-horizontal.plus-table__scrollbar-tooltip-target {
18
+ cursor: pointer;
19
+
20
+ &::before {
21
+ position: absolute;
22
+ top: -6px;
23
+ right: 0;
24
+ bottom: -6px;
25
+ left: 0;
26
+ content: '';
27
+ }
28
+ }
29
+
30
+ /* 自定义列栏 */
31
+ @include b(table-column) {
32
+ @include e(header) {
33
+ @include e(header__icon) {
34
+ margin-top: -2px;
35
+ margin-left: 2px;
36
+ vertical-align: middle;
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ /* 表头省略显示样式 - 独立定义确保选择器正确 */
43
+ .plus-table-column__header--ellipsis {
44
+ display: block;
45
+ width: 100%;
46
+ overflow: hidden;
47
+
48
+ .plus-table-column__header-text {
49
+ display: block;
50
+ width: 100%;
51
+ white-space: nowrap;
52
+ overflow: hidden;
53
+ text-overflow: ellipsis;
54
+ }
55
+ }
56
+
57
+ /* 表头省略显示样式 - 独立定义确保选择器正确 */
58
+ .plus-table-column__header--ellipsis {
59
+ display: inline-flex;
60
+ align-items: center;
61
+ width: 100%;
62
+ gap: 2px;
63
+
64
+ .plus-table-column__header-text {
65
+ flex: 1 1 0;
66
+ min-width: 0;
67
+ white-space: nowrap;
68
+ overflow: hidden;
69
+ text-overflow: ellipsis;
70
+ }
71
+
72
+ /* tooltip 图标保持固定,不压缩 */
73
+ .plus-table-column__header__icon {
74
+ flex-shrink: 0;
75
+ }
76
+ }
77
+
78
+ @include b(table) {
79
+ /* 操作栏 */
80
+ @include b(table-action-bar) {
81
+ &.is-center {
82
+ .cell {
83
+ justify-content: center;
84
+ }
85
+ }
86
+ &.is-right {
87
+ .cell {
88
+ justify-content: flex-end;
89
+ }
90
+ }
91
+
92
+ &.#{$el-namespace + -table-fixed-column--right} {
93
+ background-color: getCssVar('bg-color');
94
+ }
95
+
96
+ .cell {
97
+ display: flex;
98
+ align-items: center;
99
+ }
100
+
101
+ @include e(dropdown__link) {
102
+ display: inline-flex;
103
+ cursor: pointer;
104
+ user-select: none;
105
+ color: getCssVar('color-primary');
106
+ }
107
+ @include e(more-text) {
108
+ margin-right: 2px;
109
+ }
110
+ @include e(column__link) {
111
+ margin-right: 10px;
112
+ }
113
+ @include e(dropdown) {
114
+ vertical-align: baseline;
115
+ cursor: pointer;
116
+ margin-left: 12px;
117
+ }
118
+ @include elb(link) {
119
+ & + .#{$el-namespace + -link} {
120
+ margin-left: 12px;
121
+ }
122
+ }
123
+ @include elb(icon) {
124
+ cursor: pointer;
125
+
126
+ & + .#{$el-namespace + -icon} {
127
+ margin-left: 12px;
128
+ }
129
+ }
130
+ }
131
+
132
+ /* 排序 */
133
+ @include b(table-column-drag-sort) {
134
+ @include b(table-column-drag-icon) {
135
+ cursor: move;
136
+ padding: 4px;
137
+ box-sizing: border-box;
138
+ font-size: 18px;
139
+ }
140
+ }
141
+
142
+ /* 序号栏 */
143
+ @include b(table-column-index) {
144
+ @include b(table-index-column) {
145
+ display: inline-flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ word-break: keep-all;
149
+ white-space: nowrap;
150
+ width: 20px;
151
+ height: 20px;
152
+ }
153
+
154
+ .cell {
155
+ @include b(table-column-index__content) {
156
+ align-items: center;
157
+ display: flex;
158
+ justify-content: center;
159
+ overflow: hidden;
160
+ }
161
+ }
162
+ }
163
+
164
+ /*工具栏*/
165
+ @include b(table-title-bar) {
166
+ display: flex;
167
+ justify-content: space-between;
168
+ align-items: center;
169
+ margin-bottom: 10px;
170
+ }
171
+
172
+ @include e(toolbar) {
173
+ display: flex;
174
+ align-items: center;
175
+ }
176
+
177
+ @include elb(popper) {
178
+ max-width: 200px;
179
+ }
180
+ }
181
+
182
+ /* 密度设置 */
183
+ @include b(table-title-bar__toolbar__density) {
184
+ display: flex;
185
+ flex-direction: column;
186
+ align-items: center;
187
+
188
+ @include elb(button) {
189
+ margin-top: 10px;
190
+ width: 80px;
191
+
192
+ & + .#{$el-namespace + -button} {
193
+ margin-left: 0;
194
+ }
195
+ }
196
+ }
197
+
198
+ @include b(table-title-bar__toolbar__icon) {
199
+ margin-left: 10px;
200
+ vertical-align: middle;
201
+ cursor: pointer;
202
+ color: getCssVar('text-color-regular');
203
+ }
204
+ /* 列设置 */
205
+ @include b(table-title-bar__toolbar__checkbox__item) {
206
+ margin-left: 6px;
207
+ }
208
+ /* 列设置列表区域 - 限制最大高度,超出滚动 */
209
+ @include b(table-checkbox-sortable-list) {
210
+ max-height: 300px;
211
+ overflow-y: auto;
212
+ }
213
+ /* 列设置 拖拽 item */
214
+ @include b(table-checkbox-item) {
215
+ display: flex;
216
+ align-items: center;
217
+ margin-left: 20px;
218
+ }
219
+ /* 列设置 拖拽handle */
220
+ @include b(table-checkbox-handle) {
221
+ font-size: 18px;
222
+ cursor: move;
223
+ }
224
+
225
+ @include b(table-ghost-class) {
226
+ padding: 0 5px;
227
+ border: 1px dashed getCssVar('color-primary');
228
+ background-color: #fff;
229
+ }
230
+
231
+ @include b(table-column__edit) {
232
+ cursor: pointer;
233
+ }
234
+
235
+ @include b(table-checkbox-checkAll) {
236
+ display: flex;
237
+ justify-content: space-between;
238
+ }
239
+
240
+ /* 树形表格展开/收起图标 */
241
+ .el-table__expand-icon {
242
+ display: inline-flex;
243
+ align-items: center;
244
+ justify-content: center;
245
+ width: 20px;
246
+ height: 20px;
247
+ margin-right: 4px;
248
+ cursor: pointer;
249
+ transition: transform 0.2s ease-in-out;
250
+
251
+ // 隐藏默认的 Element Plus 箭头图标
252
+ .el-icon {
253
+ display: none;
254
+ }
255
+
256
+ // 使用 CDN 自定义图标
257
+ &::before {
258
+ content: '';
259
+ display: block;
260
+ width: 16px;
261
+ height: 16px;
262
+ background: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/expand_collapse_v2.svg') center center no-repeat;
263
+ background-size: contain;
264
+ transition: transform 0.2s ease-in-out;
265
+ }
266
+
267
+ // 展开状态:旋转 -90 度(向下)
268
+ // &--expanded::before {
269
+ // transform: rotate(-90deg);
270
+ // }
271
+ }
272
+
273
+ /* ==================== el-table 排序图标替换为 CDN 图标 ==================== */
274
+ .el-table .caret-wrapper {
275
+ position: relative;
276
+ display: inline-flex;
277
+ flex-direction: column;
278
+ align-items: center;
279
+ justify-content: center;
280
+ width: 24px;
281
+ height: 24px;
282
+ vertical-align: middle;
283
+ cursor: pointer;
284
+
285
+ // 隐藏原有的升序/降序箭头图标,使用 mask 保留方向独立高亮。
286
+ .sort-caret {
287
+ position: static;
288
+ display: block;
289
+ width: 14px;
290
+ height: 7px;
291
+ border: none;
292
+ background-color: var(--el-text-color-placeholder);
293
+ -webkit-mask: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/table_sort_icon.svg') center center no-repeat;
294
+ mask: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/table_sort_icon.svg') center center no-repeat;
295
+ -webkit-mask-size: 14px 14px;
296
+ mask-size: 14px 14px;
297
+ transition: background-color 0.2s;
298
+ }
299
+
300
+ .ascending {
301
+ -webkit-mask-position: top center;
302
+ mask-position: top center;
303
+ }
304
+
305
+ .descending {
306
+ -webkit-mask-position: bottom center;
307
+ mask-position: bottom center;
308
+ }
309
+ }
310
+
311
+ // 升序/降序激活状态只高亮对应方向。
312
+ .el-table .ascending .sort-caret.ascending,
313
+ .el-table .descending .sort-caret.descending {
314
+ background-color: var(--el-color-primary);
315
+ }