vxe-table 4.18.5 → 4.18.7

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 (145) hide show
  1. package/LICENSE +20 -20
  2. package/README.en.md +118 -118
  3. package/README.ja-JP.md +117 -117
  4. package/README.md +268 -268
  5. package/README.zh-TW.md +117 -117
  6. package/es/style.css +1 -1
  7. package/es/table/src/table.js +54 -0
  8. package/es/table/src/util.js +3 -4
  9. package/es/table/style.css +48 -18
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-table/style.css +48 -18
  13. package/lib/index.common.js +1 -2
  14. package/lib/index.umd.js +2832 -2732
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/table/src/table.js +5 -4
  18. package/lib/table/src/table.min.js +1 -1
  19. package/lib/table/src/util.js +4 -6
  20. package/lib/table/src/util.min.js +1 -1
  21. package/lib/table/style/style.css +48 -18
  22. package/lib/ui/index.js +1 -1
  23. package/lib/ui/index.min.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/lib/ui/src/log.min.js +1 -1
  26. package/lib/v-x-e-table/index.js +1 -2
  27. package/lib/v-x-e-table/index.min.js +1 -1
  28. package/lib/vxe-colgroup/index.js +1 -2
  29. package/lib/vxe-colgroup/index.min.js +1 -1
  30. package/lib/vxe-column/index.js +1 -2
  31. package/lib/vxe-column/index.min.js +1 -1
  32. package/lib/vxe-grid/index.js +1 -2
  33. package/lib/vxe-grid/index.min.js +1 -1
  34. package/lib/vxe-table/index.js +1 -2
  35. package/lib/vxe-table/index.min.js +1 -1
  36. package/lib/vxe-table/style/style.css +48 -18
  37. package/lib/vxe-toolbar/index.js +1 -2
  38. package/lib/vxe-toolbar/index.min.js +1 -1
  39. package/lib/vxe-ui/index.js +1 -2
  40. package/lib/vxe-ui/index.min.js +1 -1
  41. package/lib/vxe-v-x-e-table/index.js +1 -2
  42. package/lib/vxe-v-x-e-table/index.min.js +1 -1
  43. package/package.json +91 -91
  44. package/packages/colgroup/index.ts +22 -22
  45. package/packages/column/index.ts +22 -22
  46. package/packages/components.ts +43 -43
  47. package/packages/grid/index.ts +18 -18
  48. package/packages/grid/src/emits.ts +19 -19
  49. package/packages/grid/src/grid.ts +1768 -1768
  50. package/packages/grid/src/props.ts +23 -23
  51. package/packages/index.ts +4 -4
  52. package/packages/locale/lang/ar-EG.ts +832 -832
  53. package/packages/locale/lang/de-DE.ts +832 -832
  54. package/packages/locale/lang/en-US.ts +832 -832
  55. package/packages/locale/lang/es-ES.ts +832 -832
  56. package/packages/locale/lang/fr-FR.ts +832 -832
  57. package/packages/locale/lang/hu-HU.ts +832 -832
  58. package/packages/locale/lang/hy-AM.ts +832 -832
  59. package/packages/locale/lang/id-ID.ts +832 -832
  60. package/packages/locale/lang/it-IT.ts +832 -832
  61. package/packages/locale/lang/ja-JP.ts +832 -832
  62. package/packages/locale/lang/ko-KR.ts +832 -832
  63. package/packages/locale/lang/ms-MY.ts +832 -832
  64. package/packages/locale/lang/nb-NO.ts +832 -832
  65. package/packages/locale/lang/pt-BR.ts +832 -832
  66. package/packages/locale/lang/ru-RU.ts +832 -832
  67. package/packages/locale/lang/th-TH.ts +832 -832
  68. package/packages/locale/lang/ug-CN.ts +832 -832
  69. package/packages/locale/lang/uk-UA.ts +832 -832
  70. package/packages/locale/lang/uz-UZ.ts +832 -832
  71. package/packages/locale/lang/vi-VN.ts +832 -832
  72. package/packages/locale/lang/zh-CHT.ts +832 -832
  73. package/packages/locale/lang/zh-CN.ts +832 -832
  74. package/packages/locale/lang/zh-HK.ts +3 -3
  75. package/packages/locale/lang/zh-MO.ts +3 -3
  76. package/packages/locale/lang/zh-TC.ts +3 -3
  77. package/packages/locale/lang/zh-TW.ts +3 -3
  78. package/packages/table/index.ts +26 -26
  79. package/packages/table/module/custom/hook.ts +359 -359
  80. package/packages/table/module/custom/panel.ts +1331 -1331
  81. package/packages/table/module/edit/hook.ts +1032 -1032
  82. package/packages/table/module/export/export-panel.ts +567 -567
  83. package/packages/table/module/export/hook.ts +1654 -1654
  84. package/packages/table/module/export/import-panel.ts +266 -266
  85. package/packages/table/module/export/util.ts +24 -24
  86. package/packages/table/module/filter/hook.ts +468 -468
  87. package/packages/table/module/filter/panel.ts +301 -301
  88. package/packages/table/module/keyboard/hook.ts +495 -495
  89. package/packages/table/module/menu/hook.ts +325 -325
  90. package/packages/table/module/menu/panel.ts +201 -201
  91. package/packages/table/module/validator/hook.ts +631 -631
  92. package/packages/table/render/index.ts +1440 -1440
  93. package/packages/table/src/body.ts +932 -932
  94. package/packages/table/src/cell.ts +1290 -1290
  95. package/packages/table/src/column.ts +190 -190
  96. package/packages/table/src/columnInfo.ts +225 -225
  97. package/packages/table/src/emits.ts +123 -123
  98. package/packages/table/src/footer.ts +368 -368
  99. package/packages/table/src/group.ts +59 -59
  100. package/packages/table/src/header.ts +559 -559
  101. package/packages/table/src/props.ts +324 -324
  102. package/packages/table/src/store.ts +14 -14
  103. package/packages/table/src/table.ts +14004 -13947
  104. package/packages/table/src/use/cell-view.ts +44 -44
  105. package/packages/table/src/use/index.ts +1 -1
  106. package/packages/table/src/util.ts +1064 -1064
  107. package/packages/toolbar/index.ts +18 -18
  108. package/packages/toolbar/src/toolbar.ts +701 -701
  109. package/packages/ui/index.ts +530 -530
  110. package/packages/ui/src/anime.ts +52 -52
  111. package/packages/ui/src/comp.ts +3 -3
  112. package/packages/ui/src/dom.ts +236 -236
  113. package/packages/ui/src/log.ts +8 -8
  114. package/packages/ui/src/utils.ts +56 -56
  115. package/packages/ui/src/vn.ts +55 -55
  116. package/packages/v-x-e-table/index.d.ts +4 -4
  117. package/packages/v-x-e-table/index.ts +4 -4
  118. package/styles/all.scss +7 -7
  119. package/styles/base.scss +16 -16
  120. package/styles/components/grid.scss +89 -89
  121. package/styles/components/icon.scss +225 -225
  122. package/styles/components/old-icon.scss +715 -715
  123. package/styles/components/table-module/all.scss +6 -6
  124. package/styles/components/table-module/custom.scss +527 -527
  125. package/styles/components/table-module/export.scss +130 -130
  126. package/styles/components/table-module/filter.scss +130 -130
  127. package/styles/components/table-module/menu.scss +81 -81
  128. package/styles/components/table.scss +2679 -2679
  129. package/styles/components/toolbar.scss +119 -119
  130. package/styles/default.scss +2 -2
  131. package/styles/helpers/baseMixin.scss +95 -95
  132. package/styles/index.scss +4 -4
  133. package/styles/modules.scss +5 -5
  134. package/styles/theme/base.scss +93 -93
  135. package/styles/theme/dark.scss +49 -49
  136. package/styles/theme/light.scss +44 -44
  137. package/styles/variable.scss +43 -43
  138. package/types/all.d.ts +37 -37
  139. package/types/index.d.ts +4 -4
  140. /package/es/{iconfont.1773710736571.ttf → iconfont.1773991907408.ttf} +0 -0
  141. /package/es/{iconfont.1773710736571.woff → iconfont.1773991907408.woff} +0 -0
  142. /package/es/{iconfont.1773710736571.woff2 → iconfont.1773991907408.woff2} +0 -0
  143. /package/lib/{iconfont.1773710736571.ttf → iconfont.1773991907408.ttf} +0 -0
  144. /package/lib/{iconfont.1773710736571.woff → iconfont.1773991907408.woff} +0 -0
  145. /package/lib/{iconfont.1773710736571.woff2 → iconfont.1773991907408.woff2} +0 -0
@@ -1,528 +1,528 @@
1
- @use '../../helpers/baseMixin.scss';
2
-
3
- .vxe-table-custom--option {
4
- position: relative;
5
- display: flex;
6
- flex-direction: row;
7
- &.active--drag-origin {
8
- opacity: 0.5;
9
- }
10
- &.active--drag-target {
11
- &[drag-pos="top"] {
12
- &::after {
13
- display: block;
14
- top: -2px;
15
- }
16
- }
17
- &[drag-pos="bottom"] {
18
- &::after {
19
- display: block;
20
- bottom: -2px;
21
- }
22
- }
23
- }
24
- &:first-child {
25
- &[drag-pos="top"] {
26
- &::after {
27
- top: 0;
28
- }
29
- }
30
- }
31
- &:last-child {
32
- &[drag-pos="bottom"] {
33
- &::after {
34
- bottom: 0;
35
- }
36
- }
37
- }
38
- &::after {
39
- display: none;
40
- content: "";
41
- position: absolute;
42
- left: -1px;
43
- width: calc(100% + 1px);
44
- height: 2px;
45
- background-color: var(--vxe-ui-font-primary-color);
46
- z-index: 12;
47
- }
48
- &:last-child {
49
- &::after {
50
- width: 100%;
51
- }
52
- }
53
- }
54
-
55
- .vxe-table-custom--handle-wrapper {
56
- display: flex;
57
- flex-direction: column;
58
- }
59
-
60
- .vxe-table-custom-wrapper {
61
- display: none;
62
- flex-direction: row;
63
- position: absolute;
64
- text-align: left;
65
- background-color: var(--vxe-ui-layout-background-color);
66
- z-index: 19;
67
- border: 1px solid var(--vxe-ui-table-border-color);
68
- border-radius: var(--vxe-ui-border-radius);
69
- box-shadow: var(--vxe-ui-base-popup-box-shadow);
70
- &.placement--top-left {
71
- top: 2px;
72
- left: 2px;
73
- }
74
- &.placement--top-right {
75
- top: 2px;
76
- right: 2px;
77
- }
78
- &.placement--bottom-left {
79
- bottom: 2px;
80
- left: 2px;
81
- }
82
- &.placement--bottom-right {
83
- bottom: 2px;
84
- right: 2px;
85
- }
86
- &.placement--left {
87
- left: 2px;
88
- }
89
- &.placement--right {
90
- right: 2px;
91
- }
92
- &.placement--left,
93
- &.placement--right {
94
- top: 2px;
95
- height: calc(100% - 4px);
96
- }
97
- &.is--active {
98
- display: flex;
99
- }
100
- }
101
-
102
-
103
- .vxe-table-custom-simple--body-wrapper {
104
- position: relative;
105
- flex-grow: 1;
106
- display: flex;
107
- flex-direction: row;
108
- }
109
-
110
- .vxe-table-custom--body {
111
- position: relative;
112
- display: block;
113
- flex-grow: 1;
114
- overflow-x: hidden;
115
- overflow-y: auto;
116
- }
117
-
118
- .vxe-table-custom--panel-list {
119
- list-style-type: none;
120
- margin: 0;
121
- padding: 0;
122
- & > li {
123
- max-width: 26em;
124
- min-width: 18em;
125
- padding: 0.2em 1em 0.2em 1em;
126
- @for $i from 2 through 8 {
127
- $interval: $i - 1 + 0.5;
128
- &.level--#{$i}{
129
- padding-left: #{$interval + 1.2}em;
130
- }
131
- }
132
- }
133
- }
134
-
135
- .vxe-table-custom--header {
136
- display: flex;
137
- align-items: center;
138
- flex-shrink: 0;
139
- height: 2.4em;
140
- font-weight: 700;
141
- border-bottom: 1px solid var(--vxe-ui-base-popup-border-color);
142
- user-select: none;
143
- }
144
-
145
- .vxe-table-custom--panel-list {
146
- .vxe-table-custom--checkbox-option {
147
- &:hover {
148
- background-color: var(--vxe-ui-table-row-hover-background-color);
149
- }
150
- }
151
- }
152
-
153
- .vxe-table-custom--footer-buttons {
154
- width: 100%;
155
- display: flex;
156
- flex-direction: row;
157
- flex-shrink: 0;
158
- border-top: 1px solid var(--vxe-ui-base-popup-border-color);
159
- button {
160
- flex-grow: 1;
161
- height: 2.8em;
162
- }
163
- }
164
-
165
- .vxe-table-custom--checkbox-option {
166
- @include baseMixin.createCheckboxIcon();
167
- }
168
- .vxe-table-custom--checkbox-option,
169
- .vxe-table-custom--sort-option {
170
- padding-right: 0.4em;
171
- flex-shrink: 0;
172
- user-select: none;
173
- }
174
- .vxe-table-custom--sort-option {
175
- display: flex;
176
- flex-direction: row;
177
- align-items: center;
178
- justify-content: center;
179
- }
180
- .vxe-table-custom--sort-btn {
181
- padding-left: 0.2em;
182
- padding-right: 0.4em;
183
- &:not(.is--disabled) {
184
- cursor: grab;
185
- &:active {
186
- cursor: grabbing;
187
- }
188
- &:hover {
189
- color: var(--vxe-ui-font-primary-color);
190
- }
191
- }
192
- &.is--disabled {
193
- color: var(--vxe-ui-input-disabled-color);
194
- cursor: not-allowed;
195
- }
196
- }
197
- .vxe-table-custom--name-option {
198
- flex-grow: 1;
199
- display: flex;
200
- flex-direction: row;
201
- overflow: hidden;
202
- }
203
- .vxe-table-custom--checkbox-label {
204
- flex-grow: 1;
205
- overflow: hidden;
206
- text-overflow: ellipsis;
207
- white-space: nowrap;
208
- }
209
-
210
- .vxe-table-custom--fixed-option {
211
- flex-shrink: 0;
212
- padding-left: 0.5em;
213
- display: flex;
214
- flex-direction: row;
215
- align-items: center;
216
- user-select: none;
217
- }
218
-
219
- .vxe-table-custom-popup--body-wrapper {
220
- position: relative;
221
- display: flex;
222
- flex-direction: column;
223
- overflow: hidden;
224
- height: 100%;
225
- outline: 0;
226
- }
227
- .vxe-table-custom-popup--handle-wrapper {
228
- flex-grow: 1;
229
- outline: 0;
230
- overflow: auto;
231
- }
232
-
233
- .vxe-table-custom-popup--table-wrapper {
234
- border-bottom: 1px solid var(--vxe-ui-table-border-color);
235
- table {
236
- width: 100%;
237
- border: 0;
238
- table-layout: fixed;
239
- word-break: break-all;
240
- border-spacing: 0;
241
- border-collapse: separate;
242
- box-sizing: border-box;
243
- th {
244
- position: sticky;
245
- top: 0;
246
- text-align: left;
247
- border-top: 1px solid var(--vxe-ui-table-border-color);
248
- border-bottom: 1px solid var(--vxe-ui-table-border-color);
249
- border-left: 1px solid var(--vxe-ui-table-border-color);
250
- background-color: var(--vxe-ui-table-header-background-color);
251
- z-index: 7;
252
- }
253
- td {
254
- border-top: 1px solid var(--vxe-ui-table-border-color);
255
- border-left: 1px solid var(--vxe-ui-table-border-color);
256
- }
257
- tr {
258
- box-sizing: border-box;
259
- &:first-child {
260
- td {
261
- border-top: 0;
262
- }
263
- }
264
- &:hover {
265
- background-color: var(--vxe-ui-table-row-hover-background-color);
266
- }
267
- }
268
- th,
269
- td {
270
- height: 44px;
271
- padding: 0 0.6em;
272
- box-sizing: border-box;
273
- &:last-child {
274
- border-right: 1px solid var(--vxe-ui-table-border-color);
275
- }
276
- }
277
- }
278
- }
279
-
280
- /*拖拽列*/
281
- .vxe-table-custom-popup--drag-line {
282
- display: none;
283
- position: absolute;
284
- top: 0;
285
- left: 0;
286
- z-index: 11;
287
- pointer-events: none;
288
- }
289
- .vxe-table-custom-popup--drag-line {
290
- width: 100%;
291
- height: 1px;
292
- border: 2px solid transparent;
293
- &[drag-pos="top"] {
294
- border-top-color: var(--vxe-ui-font-primary-color);
295
- }
296
- &[drag-pos="bottom"] {
297
- border-bottom-color: var(--vxe-ui-font-primary-color);
298
- }
299
- &[drag-to-child="y"] {
300
- border-top-color: transparent;
301
- border-bottom-color: transparent;
302
- border-left-color: var(--vxe-ui-status-success-color);
303
- }
304
- &.is--guides {
305
- background-color: var( --vxe-ui-table-drag-over-background-color);
306
- }
307
- }
308
-
309
- .vxe-table-custom-popup--drag-tip {
310
- display: none;
311
- position: absolute;
312
- top: 0;
313
- left: 0;
314
- padding: 0.6em 1.4em;
315
- max-width: 60%;
316
- min-width: 100px;
317
- border-radius: var(--vxe-ui-border-radius);
318
- overflow: hidden;
319
- text-overflow: ellipsis;
320
- white-space: nowrap;
321
- user-select: none;
322
- pointer-events: none;
323
- background-color: var(--vxe-ui-layout-background-color);
324
- box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
325
- z-index: 33;
326
- &[drag-status="normal"] {
327
- .vxe-table-custom-popup--drag-tip-normal-status {
328
- display: block;
329
- }
330
- }
331
- &[drag-status="sub"] {
332
- .vxe-table-custom-popup--drag-tip-sub-status {
333
- display: block;
334
- }
335
- }
336
- &[drag-status="group"] {
337
- .vxe-table-custom-popup--drag-tip-group-status {
338
- display: block;
339
- }
340
- }
341
- &[drag-status="values"] {
342
- .vxe-table-custom-popup--drag-tip-values-status {
343
- display: block;
344
- }
345
- }
346
- &[drag-status="disabled"] {
347
- .vxe-table-custom-popup--drag-tip-disabled-status {
348
- display: block;
349
- }
350
- }
351
- }
352
- .vxe-table-custom-popup--drag-tip-wrapper {
353
- display: flex;
354
- flex-direction: row;
355
- align-items: center;
356
- }
357
- .vxe-table-custom-popup--drag-tip-status {
358
- padding-right: 0.4em;
359
- }
360
- .vxe-table-custom-popup--drag-tip-disabled-status {
361
- display: none;
362
- flex-shrink: 0;
363
- color: var(--vxe-ui-status-error-color)
364
- }
365
- .vxe-table-custom-popup--drag-tip-normal-status,
366
- .vxe-table-custom-popup--drag-tip-sub-status,
367
- .vxe-table-custom-popup--drag-tip-group-status,
368
- .vxe-table-custom-popup--drag-tip-values-status {
369
- display: none;
370
- }
371
- .vxe-table-custom-popup--drag-tip-content {
372
- flex-grow: 1;
373
- overflow: hidden;
374
- text-overflow: ellipsis;
375
- white-space: nowrap;
376
- }
377
-
378
- .vxe-table-custom-popup--name {
379
- display: flex;
380
- flex-direction: row;
381
- align-items: center;
382
- }
383
- .vxe-table-custom-popup--title {
384
- flex-grow: 1;
385
- overflow: hidden;
386
- text-overflow: ellipsis;
387
- white-space: nowrap;
388
- }
389
-
390
- @for $index from 2 to 10 {
391
- $paddingLeft: ($index - 1) * 24px;
392
- .vxe-table-custom-popup--row {
393
- &.level--#{$index} {
394
- .vxe-table-custom-popup--name {
395
- padding-left: $paddingLeft;
396
- }
397
- }
398
- }
399
- }
400
-
401
- .vxe-table-custom-popup--column-item {
402
- position: relative;
403
- &.col--visible,
404
- &.col--resizable,
405
- &.col--fixed {
406
- text-align: center;
407
- }
408
- &.col--resizable {
409
- & > .vxe-input,
410
- & > .vxe-number-input {
411
- width: 100%;
412
- }
413
- }
414
- }
415
-
416
- .vxe-table-custom-popup--row {
417
- &.active--drag-origin {
418
- .vxe-table-custom-popup--column-item {
419
- opacity: 0.5;
420
- }
421
- }
422
- &.active--drag-target {
423
- &[drag-pos="top"] {
424
- .vxe-table-custom-popup--column-item {
425
- &::after {
426
- display: block;
427
- top: -2px;
428
- }
429
- }
430
- }
431
- &[drag-pos="bottom"] {
432
- .vxe-table-custom-popup--column-item {
433
- &::after {
434
- display: block;
435
- bottom: -2px;
436
- }
437
- }
438
- }
439
- }
440
- &:first-child {
441
- &[drag-pos="top"] {
442
- .vxe-table-custom-popup--column-item {
443
- &::after {
444
- top: 0;
445
- }
446
- }
447
- }
448
- }
449
- &:last-child {
450
- &[drag-pos="bottom"] {
451
- .vxe-table-custom-popup--column-item {
452
- &::after {
453
- bottom: 0;
454
- }
455
- }
456
- }
457
- }
458
- }
459
-
460
- .vxe-table-custom-popup--column-item {
461
- &::after {
462
- display: none;
463
- content: "";
464
- position: absolute;
465
- left: -1px;
466
- width: calc(100% + 1px);
467
- height: 2px;
468
- background-color: var(--vxe-ui-font-primary-color);
469
- z-index: 12;
470
- }
471
- &:last-child {
472
- &::after {
473
- width: 100%;
474
- }
475
- }
476
- }
477
-
478
- .vxe-table-custom--list-move {
479
- transition-property: transform;
480
- transition-duration: 0.35s;
481
- transition-delay: 0.05s;
482
- }
483
-
484
- .vxe-table-custom-popup--column-sort-placeholder {
485
- padding: 0.2em 0.5em;
486
- }
487
- .vxe-table-custom-popup--column-sort-btn {
488
- font-size: 1.2em;
489
- padding: 0.2em 0.5em;
490
- &:not(.is--disabled) {
491
- cursor: grab;
492
- &:hover {
493
- color: var(--vxe-ui-font-primary-color);
494
- }
495
- &:active {
496
- cursor: grabbing;
497
- }
498
- }
499
- &.is--disabled {
500
- color: var(--vxe-ui-input-disabled-color);
501
- cursor: not-allowed;
502
- }
503
- }
504
-
505
- .vxe-table-custom-popup--table-sort-help-title,
506
- .vxe-table-custom-popup--table-sort-help-icon {
507
- vertical-align: middle;
508
- }
509
- .vxe-table-custom-popup--table-sort-help-icon {
510
- margin-left: 5px;
511
- cursor: help;
512
- }
513
-
514
- .vxe-table-custom-popup--table-col-seq {
515
- width: 80px;
516
- }
517
- .vxe-table-custom-popup--table-col-sort {
518
- width: 80px;
519
- }
520
- .vxe-table-custom-popup--table-col-title {
521
- min-width: 120px;
522
- }
523
- .vxe-table-custom-popup--table-col-width {
524
- width: 140px;
525
- }
526
- .vxe-table-custom-popup--table-col-fixed {
527
- width: 200px;
1
+ @use '../../helpers/baseMixin.scss';
2
+
3
+ .vxe-table-custom--option {
4
+ position: relative;
5
+ display: flex;
6
+ flex-direction: row;
7
+ &.active--drag-origin {
8
+ opacity: 0.5;
9
+ }
10
+ &.active--drag-target {
11
+ &[drag-pos="top"] {
12
+ &::after {
13
+ display: block;
14
+ top: -2px;
15
+ }
16
+ }
17
+ &[drag-pos="bottom"] {
18
+ &::after {
19
+ display: block;
20
+ bottom: -2px;
21
+ }
22
+ }
23
+ }
24
+ &:first-child {
25
+ &[drag-pos="top"] {
26
+ &::after {
27
+ top: 0;
28
+ }
29
+ }
30
+ }
31
+ &:last-child {
32
+ &[drag-pos="bottom"] {
33
+ &::after {
34
+ bottom: 0;
35
+ }
36
+ }
37
+ }
38
+ &::after {
39
+ display: none;
40
+ content: "";
41
+ position: absolute;
42
+ left: -1px;
43
+ width: calc(100% + 1px);
44
+ height: 2px;
45
+ background-color: var(--vxe-ui-font-primary-color);
46
+ z-index: 12;
47
+ }
48
+ &:last-child {
49
+ &::after {
50
+ width: 100%;
51
+ }
52
+ }
53
+ }
54
+
55
+ .vxe-table-custom--handle-wrapper {
56
+ display: flex;
57
+ flex-direction: column;
58
+ }
59
+
60
+ .vxe-table-custom-wrapper {
61
+ display: none;
62
+ flex-direction: row;
63
+ position: absolute;
64
+ text-align: left;
65
+ background-color: var(--vxe-ui-layout-background-color);
66
+ z-index: 19;
67
+ border: 1px solid var(--vxe-ui-table-border-color);
68
+ border-radius: var(--vxe-ui-border-radius);
69
+ box-shadow: var(--vxe-ui-base-popup-box-shadow);
70
+ &.placement--top-left {
71
+ top: 2px;
72
+ left: 2px;
73
+ }
74
+ &.placement--top-right {
75
+ top: 2px;
76
+ right: 2px;
77
+ }
78
+ &.placement--bottom-left {
79
+ bottom: 2px;
80
+ left: 2px;
81
+ }
82
+ &.placement--bottom-right {
83
+ bottom: 2px;
84
+ right: 2px;
85
+ }
86
+ &.placement--left {
87
+ left: 2px;
88
+ }
89
+ &.placement--right {
90
+ right: 2px;
91
+ }
92
+ &.placement--left,
93
+ &.placement--right {
94
+ top: 2px;
95
+ height: calc(100% - 4px);
96
+ }
97
+ &.is--active {
98
+ display: flex;
99
+ }
100
+ }
101
+
102
+
103
+ .vxe-table-custom-simple--body-wrapper {
104
+ position: relative;
105
+ flex-grow: 1;
106
+ display: flex;
107
+ flex-direction: row;
108
+ }
109
+
110
+ .vxe-table-custom--body {
111
+ position: relative;
112
+ display: block;
113
+ flex-grow: 1;
114
+ overflow-x: hidden;
115
+ overflow-y: auto;
116
+ }
117
+
118
+ .vxe-table-custom--panel-list {
119
+ list-style-type: none;
120
+ margin: 0;
121
+ padding: 0;
122
+ & > li {
123
+ max-width: 26em;
124
+ min-width: 18em;
125
+ padding: 0.2em 1em 0.2em 1em;
126
+ @for $i from 2 through 8 {
127
+ $interval: $i - 1 + 0.5;
128
+ &.level--#{$i}{
129
+ padding-left: #{$interval + 1.2}em;
130
+ }
131
+ }
132
+ }
133
+ }
134
+
135
+ .vxe-table-custom--header {
136
+ display: flex;
137
+ align-items: center;
138
+ flex-shrink: 0;
139
+ height: 2.4em;
140
+ font-weight: 700;
141
+ border-bottom: 1px solid var(--vxe-ui-base-popup-border-color);
142
+ user-select: none;
143
+ }
144
+
145
+ .vxe-table-custom--panel-list {
146
+ .vxe-table-custom--checkbox-option {
147
+ &:hover {
148
+ background-color: var(--vxe-ui-table-row-hover-background-color);
149
+ }
150
+ }
151
+ }
152
+
153
+ .vxe-table-custom--footer-buttons {
154
+ width: 100%;
155
+ display: flex;
156
+ flex-direction: row;
157
+ flex-shrink: 0;
158
+ border-top: 1px solid var(--vxe-ui-base-popup-border-color);
159
+ button {
160
+ flex-grow: 1;
161
+ height: 2.8em;
162
+ }
163
+ }
164
+
165
+ .vxe-table-custom--checkbox-option {
166
+ @include baseMixin.createCheckboxIcon();
167
+ }
168
+ .vxe-table-custom--checkbox-option,
169
+ .vxe-table-custom--sort-option {
170
+ padding-right: 0.4em;
171
+ flex-shrink: 0;
172
+ user-select: none;
173
+ }
174
+ .vxe-table-custom--sort-option {
175
+ display: flex;
176
+ flex-direction: row;
177
+ align-items: center;
178
+ justify-content: center;
179
+ }
180
+ .vxe-table-custom--sort-btn {
181
+ padding-left: 0.2em;
182
+ padding-right: 0.4em;
183
+ &:not(.is--disabled) {
184
+ cursor: grab;
185
+ &:active {
186
+ cursor: grabbing;
187
+ }
188
+ &:hover {
189
+ color: var(--vxe-ui-font-primary-color);
190
+ }
191
+ }
192
+ &.is--disabled {
193
+ color: var(--vxe-ui-input-disabled-color);
194
+ cursor: not-allowed;
195
+ }
196
+ }
197
+ .vxe-table-custom--name-option {
198
+ flex-grow: 1;
199
+ display: flex;
200
+ flex-direction: row;
201
+ overflow: hidden;
202
+ }
203
+ .vxe-table-custom--checkbox-label {
204
+ flex-grow: 1;
205
+ overflow: hidden;
206
+ text-overflow: ellipsis;
207
+ white-space: nowrap;
208
+ }
209
+
210
+ .vxe-table-custom--fixed-option {
211
+ flex-shrink: 0;
212
+ padding-left: 0.5em;
213
+ display: flex;
214
+ flex-direction: row;
215
+ align-items: center;
216
+ user-select: none;
217
+ }
218
+
219
+ .vxe-table-custom-popup--body-wrapper {
220
+ position: relative;
221
+ display: flex;
222
+ flex-direction: column;
223
+ overflow: hidden;
224
+ height: 100%;
225
+ outline: 0;
226
+ }
227
+ .vxe-table-custom-popup--handle-wrapper {
228
+ flex-grow: 1;
229
+ outline: 0;
230
+ overflow: auto;
231
+ }
232
+
233
+ .vxe-table-custom-popup--table-wrapper {
234
+ border-bottom: 1px solid var(--vxe-ui-table-border-color);
235
+ table {
236
+ width: 100%;
237
+ border: 0;
238
+ table-layout: fixed;
239
+ word-break: break-all;
240
+ border-spacing: 0;
241
+ border-collapse: separate;
242
+ box-sizing: border-box;
243
+ th {
244
+ position: sticky;
245
+ top: 0;
246
+ text-align: left;
247
+ border-top: 1px solid var(--vxe-ui-table-border-color);
248
+ border-bottom: 1px solid var(--vxe-ui-table-border-color);
249
+ border-left: 1px solid var(--vxe-ui-table-border-color);
250
+ background-color: var(--vxe-ui-table-header-background-color);
251
+ z-index: 7;
252
+ }
253
+ td {
254
+ border-top: 1px solid var(--vxe-ui-table-border-color);
255
+ border-left: 1px solid var(--vxe-ui-table-border-color);
256
+ }
257
+ tr {
258
+ box-sizing: border-box;
259
+ &:first-child {
260
+ td {
261
+ border-top: 0;
262
+ }
263
+ }
264
+ &:hover {
265
+ background-color: var(--vxe-ui-table-row-hover-background-color);
266
+ }
267
+ }
268
+ th,
269
+ td {
270
+ height: 44px;
271
+ padding: 0 0.6em;
272
+ box-sizing: border-box;
273
+ &:last-child {
274
+ border-right: 1px solid var(--vxe-ui-table-border-color);
275
+ }
276
+ }
277
+ }
278
+ }
279
+
280
+ /*拖拽列*/
281
+ .vxe-table-custom-popup--drag-line {
282
+ display: none;
283
+ position: absolute;
284
+ top: 0;
285
+ left: 0;
286
+ z-index: 11;
287
+ pointer-events: none;
288
+ }
289
+ .vxe-table-custom-popup--drag-line {
290
+ width: 100%;
291
+ height: 1px;
292
+ border: 2px solid transparent;
293
+ &[drag-pos="top"] {
294
+ border-top-color: var(--vxe-ui-font-primary-color);
295
+ }
296
+ &[drag-pos="bottom"] {
297
+ border-bottom-color: var(--vxe-ui-font-primary-color);
298
+ }
299
+ &[drag-to-child="y"] {
300
+ border-top-color: transparent;
301
+ border-bottom-color: transparent;
302
+ border-left-color: var(--vxe-ui-status-success-color);
303
+ }
304
+ &.is--guides {
305
+ background-color: var( --vxe-ui-table-drag-over-background-color);
306
+ }
307
+ }
308
+
309
+ .vxe-table-custom-popup--drag-tip {
310
+ display: none;
311
+ position: absolute;
312
+ top: 0;
313
+ left: 0;
314
+ padding: 0.6em 1.4em;
315
+ max-width: 60%;
316
+ min-width: 100px;
317
+ border-radius: var(--vxe-ui-border-radius);
318
+ overflow: hidden;
319
+ text-overflow: ellipsis;
320
+ white-space: nowrap;
321
+ user-select: none;
322
+ pointer-events: none;
323
+ background-color: var(--vxe-ui-layout-background-color);
324
+ box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
325
+ z-index: 33;
326
+ &[drag-status="normal"] {
327
+ .vxe-table-custom-popup--drag-tip-normal-status {
328
+ display: block;
329
+ }
330
+ }
331
+ &[drag-status="sub"] {
332
+ .vxe-table-custom-popup--drag-tip-sub-status {
333
+ display: block;
334
+ }
335
+ }
336
+ &[drag-status="group"] {
337
+ .vxe-table-custom-popup--drag-tip-group-status {
338
+ display: block;
339
+ }
340
+ }
341
+ &[drag-status="values"] {
342
+ .vxe-table-custom-popup--drag-tip-values-status {
343
+ display: block;
344
+ }
345
+ }
346
+ &[drag-status="disabled"] {
347
+ .vxe-table-custom-popup--drag-tip-disabled-status {
348
+ display: block;
349
+ }
350
+ }
351
+ }
352
+ .vxe-table-custom-popup--drag-tip-wrapper {
353
+ display: flex;
354
+ flex-direction: row;
355
+ align-items: center;
356
+ }
357
+ .vxe-table-custom-popup--drag-tip-status {
358
+ padding-right: 0.4em;
359
+ }
360
+ .vxe-table-custom-popup--drag-tip-disabled-status {
361
+ display: none;
362
+ flex-shrink: 0;
363
+ color: var(--vxe-ui-status-error-color)
364
+ }
365
+ .vxe-table-custom-popup--drag-tip-normal-status,
366
+ .vxe-table-custom-popup--drag-tip-sub-status,
367
+ .vxe-table-custom-popup--drag-tip-group-status,
368
+ .vxe-table-custom-popup--drag-tip-values-status {
369
+ display: none;
370
+ }
371
+ .vxe-table-custom-popup--drag-tip-content {
372
+ flex-grow: 1;
373
+ overflow: hidden;
374
+ text-overflow: ellipsis;
375
+ white-space: nowrap;
376
+ }
377
+
378
+ .vxe-table-custom-popup--name {
379
+ display: flex;
380
+ flex-direction: row;
381
+ align-items: center;
382
+ }
383
+ .vxe-table-custom-popup--title {
384
+ flex-grow: 1;
385
+ overflow: hidden;
386
+ text-overflow: ellipsis;
387
+ white-space: nowrap;
388
+ }
389
+
390
+ @for $index from 2 to 10 {
391
+ $paddingLeft: ($index - 1) * 24px;
392
+ .vxe-table-custom-popup--row {
393
+ &.level--#{$index} {
394
+ .vxe-table-custom-popup--name {
395
+ padding-left: $paddingLeft;
396
+ }
397
+ }
398
+ }
399
+ }
400
+
401
+ .vxe-table-custom-popup--column-item {
402
+ position: relative;
403
+ &.col--visible,
404
+ &.col--resizable,
405
+ &.col--fixed {
406
+ text-align: center;
407
+ }
408
+ &.col--resizable {
409
+ & > .vxe-input,
410
+ & > .vxe-number-input {
411
+ width: 100%;
412
+ }
413
+ }
414
+ }
415
+
416
+ .vxe-table-custom-popup--row {
417
+ &.active--drag-origin {
418
+ .vxe-table-custom-popup--column-item {
419
+ opacity: 0.5;
420
+ }
421
+ }
422
+ &.active--drag-target {
423
+ &[drag-pos="top"] {
424
+ .vxe-table-custom-popup--column-item {
425
+ &::after {
426
+ display: block;
427
+ top: -2px;
428
+ }
429
+ }
430
+ }
431
+ &[drag-pos="bottom"] {
432
+ .vxe-table-custom-popup--column-item {
433
+ &::after {
434
+ display: block;
435
+ bottom: -2px;
436
+ }
437
+ }
438
+ }
439
+ }
440
+ &:first-child {
441
+ &[drag-pos="top"] {
442
+ .vxe-table-custom-popup--column-item {
443
+ &::after {
444
+ top: 0;
445
+ }
446
+ }
447
+ }
448
+ }
449
+ &:last-child {
450
+ &[drag-pos="bottom"] {
451
+ .vxe-table-custom-popup--column-item {
452
+ &::after {
453
+ bottom: 0;
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+
460
+ .vxe-table-custom-popup--column-item {
461
+ &::after {
462
+ display: none;
463
+ content: "";
464
+ position: absolute;
465
+ left: -1px;
466
+ width: calc(100% + 1px);
467
+ height: 2px;
468
+ background-color: var(--vxe-ui-font-primary-color);
469
+ z-index: 12;
470
+ }
471
+ &:last-child {
472
+ &::after {
473
+ width: 100%;
474
+ }
475
+ }
476
+ }
477
+
478
+ .vxe-table-custom--list-move {
479
+ transition-property: transform;
480
+ transition-duration: 0.35s;
481
+ transition-delay: 0.05s;
482
+ }
483
+
484
+ .vxe-table-custom-popup--column-sort-placeholder {
485
+ padding: 0.2em 0.5em;
486
+ }
487
+ .vxe-table-custom-popup--column-sort-btn {
488
+ font-size: 1.2em;
489
+ padding: 0.2em 0.5em;
490
+ &:not(.is--disabled) {
491
+ cursor: grab;
492
+ &:hover {
493
+ color: var(--vxe-ui-font-primary-color);
494
+ }
495
+ &:active {
496
+ cursor: grabbing;
497
+ }
498
+ }
499
+ &.is--disabled {
500
+ color: var(--vxe-ui-input-disabled-color);
501
+ cursor: not-allowed;
502
+ }
503
+ }
504
+
505
+ .vxe-table-custom-popup--table-sort-help-title,
506
+ .vxe-table-custom-popup--table-sort-help-icon {
507
+ vertical-align: middle;
508
+ }
509
+ .vxe-table-custom-popup--table-sort-help-icon {
510
+ margin-left: 5px;
511
+ cursor: help;
512
+ }
513
+
514
+ .vxe-table-custom-popup--table-col-seq {
515
+ width: 80px;
516
+ }
517
+ .vxe-table-custom-popup--table-col-sort {
518
+ width: 80px;
519
+ }
520
+ .vxe-table-custom-popup--table-col-title {
521
+ min-width: 120px;
522
+ }
523
+ .vxe-table-custom-popup--table-col-width {
524
+ width: 140px;
525
+ }
526
+ .vxe-table-custom-popup--table-col-fixed {
527
+ width: 200px;
528
528
  }