vxe-table 4.10.6-beta.9 → 4.10.6

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 (178) hide show
  1. package/es/grid/src/grid.js +1 -1
  2. package/es/index.css +1 -1
  3. package/es/index.min.css +1 -1
  4. package/es/locale/lang/ar-EG.js +2 -1
  5. package/es/locale/lang/de-DE.js +2 -1
  6. package/es/locale/lang/en-US.js +4 -3
  7. package/es/locale/lang/es-ES.js +2 -1
  8. package/es/locale/lang/fr-FR.js +2 -1
  9. package/es/locale/lang/hu-HU.js +2 -1
  10. package/es/locale/lang/hy-AM.js +2 -1
  11. package/es/locale/lang/it-IT.js +2 -1
  12. package/es/locale/lang/ja-JP.js +2 -1
  13. package/es/locale/lang/ko-KR.js +2 -1
  14. package/es/locale/lang/nb-NO.js +2 -1
  15. package/es/locale/lang/pt-BR.js +2 -1
  16. package/es/locale/lang/ru-RU.js +4 -3
  17. package/es/locale/lang/th-TH.js +2 -1
  18. package/es/locale/lang/ug-CN.js +2 -1
  19. package/es/locale/lang/uk-UA.js +518 -517
  20. package/es/locale/lang/vi-VN.js +2 -1
  21. package/es/locale/lang/zh-CHT.js +2 -1
  22. package/es/locale/lang/zh-CN.js +2 -1
  23. package/es/style.css +1 -1
  24. package/es/style.min.css +1 -1
  25. package/es/table/module/edit/hook.js +7 -7
  26. package/es/table/module/export/hook.js +97 -62
  27. package/es/table/module/keyboard/hook.js +63 -27
  28. package/es/table/src/body.js +118 -84
  29. package/es/table/src/cell.js +41 -55
  30. package/es/table/src/column.js +13 -1
  31. package/es/table/src/columnInfo.js +3 -0
  32. package/es/table/src/emits.js +2 -0
  33. package/es/table/src/footer.js +45 -7
  34. package/es/table/src/header.js +67 -165
  35. package/es/table/src/props.js +14 -4
  36. package/es/table/src/table.js +858 -398
  37. package/es/table/src/util.js +77 -62
  38. package/es/table/style.css +246 -191
  39. package/es/table/style.min.css +1 -1
  40. package/es/ui/index.js +20 -7
  41. package/es/ui/src/log.js +1 -1
  42. package/es/vxe-table/style.css +246 -191
  43. package/es/vxe-table/style.min.css +1 -1
  44. package/lib/grid/src/grid.js +1 -1
  45. package/lib/grid/src/grid.min.js +1 -1
  46. package/lib/index.css +1 -1
  47. package/lib/index.min.css +1 -1
  48. package/lib/index.umd.js +1489 -874
  49. package/lib/index.umd.min.js +1 -1
  50. package/lib/locale/lang/ar-EG.js +2 -1
  51. package/lib/locale/lang/ar-EG.min.js +1 -1
  52. package/lib/locale/lang/de-DE.js +2 -1
  53. package/lib/locale/lang/de-DE.min.js +1 -1
  54. package/lib/locale/lang/en-US.js +4 -3
  55. package/lib/locale/lang/en-US.min.js +1 -1
  56. package/lib/locale/lang/en-US.umd.js +4 -3
  57. package/lib/locale/lang/es-ES.js +2 -1
  58. package/lib/locale/lang/es-ES.min.js +1 -1
  59. package/lib/locale/lang/es-ES.umd.js +2 -1
  60. package/lib/locale/lang/fr-FR.js +2 -1
  61. package/lib/locale/lang/fr-FR.min.js +1 -1
  62. package/lib/locale/lang/hu-HU.js +2 -1
  63. package/lib/locale/lang/hu-HU.min.js +1 -1
  64. package/lib/locale/lang/hu-HU.umd.js +2 -1
  65. package/lib/locale/lang/hy-AM.js +2 -1
  66. package/lib/locale/lang/hy-AM.min.js +1 -1
  67. package/lib/locale/lang/it-IT.js +2 -1
  68. package/lib/locale/lang/it-IT.min.js +1 -1
  69. package/lib/locale/lang/ja-JP.js +2 -1
  70. package/lib/locale/lang/ja-JP.min.js +1 -1
  71. package/lib/locale/lang/ja-JP.umd.js +2 -1
  72. package/lib/locale/lang/ko-KR.js +2 -1
  73. package/lib/locale/lang/ko-KR.min.js +1 -1
  74. package/lib/locale/lang/ko-KR.umd.js +2 -1
  75. package/lib/locale/lang/nb-NO.js +2 -1
  76. package/lib/locale/lang/nb-NO.min.js +1 -1
  77. package/lib/locale/lang/pt-BR.js +2 -1
  78. package/lib/locale/lang/pt-BR.min.js +1 -1
  79. package/lib/locale/lang/pt-BR.umd.js +2 -1
  80. package/lib/locale/lang/ru-RU.js +4 -3
  81. package/lib/locale/lang/ru-RU.min.js +1 -1
  82. package/lib/locale/lang/ru-RU.umd.js +4 -3
  83. package/lib/locale/lang/th-TH.js +2 -1
  84. package/lib/locale/lang/th-TH.min.js +1 -1
  85. package/lib/locale/lang/ug-CN.js +2 -1
  86. package/lib/locale/lang/ug-CN.min.js +1 -1
  87. package/lib/locale/lang/uk-UA.js +518 -517
  88. package/lib/locale/lang/uk-UA.min.js +1 -1
  89. package/lib/locale/lang/uk-UA.umd.js +518 -517
  90. package/lib/locale/lang/vi-VN.js +2 -1
  91. package/lib/locale/lang/vi-VN.min.js +1 -1
  92. package/lib/locale/lang/zh-CHT.js +2 -1
  93. package/lib/locale/lang/zh-CHT.min.js +1 -1
  94. package/lib/locale/lang/zh-CN.js +2 -1
  95. package/lib/locale/lang/zh-CN.min.js +1 -1
  96. package/lib/locale/lang/zh-CN.umd.js +2 -1
  97. package/lib/style.css +1 -1
  98. package/lib/style.min.css +1 -1
  99. package/lib/table/module/edit/hook.js +7 -2
  100. package/lib/table/module/edit/hook.min.js +1 -1
  101. package/lib/table/module/export/hook.js +97 -57
  102. package/lib/table/module/export/hook.min.js +1 -1
  103. package/lib/table/module/keyboard/hook.js +71 -28
  104. package/lib/table/module/keyboard/hook.min.js +1 -1
  105. package/lib/table/src/body.js +121 -80
  106. package/lib/table/src/body.min.js +1 -1
  107. package/lib/table/src/cell.js +32 -42
  108. package/lib/table/src/cell.min.js +1 -1
  109. package/lib/table/src/column.js +13 -1
  110. package/lib/table/src/column.min.js +1 -1
  111. package/lib/table/src/columnInfo.js +3 -0
  112. package/lib/table/src/columnInfo.min.js +1 -1
  113. package/lib/table/src/emits.js +1 -1
  114. package/lib/table/src/emits.min.js +1 -1
  115. package/lib/table/src/footer.js +45 -5
  116. package/lib/table/src/footer.min.js +1 -1
  117. package/lib/table/src/header.js +51 -178
  118. package/lib/table/src/header.min.js +1 -1
  119. package/lib/table/src/props.js +14 -4
  120. package/lib/table/src/props.min.js +1 -1
  121. package/lib/table/src/table.js +911 -384
  122. package/lib/table/src/table.min.js +1 -1
  123. package/lib/table/src/util.js +100 -82
  124. package/lib/table/src/util.min.js +1 -1
  125. package/lib/table/style/style.css +246 -191
  126. package/lib/table/style/style.min.css +1 -1
  127. package/lib/ui/index.js +20 -7
  128. package/lib/ui/index.min.js +1 -1
  129. package/lib/ui/src/log.js +1 -1
  130. package/lib/ui/src/log.min.js +1 -1
  131. package/lib/vxe-table/style/style.css +246 -191
  132. package/lib/vxe-table/style/style.min.css +1 -1
  133. package/package.json +2 -2
  134. package/packages/grid/src/grid.ts +1 -1
  135. package/packages/locale/lang/ar-EG.ts +2 -1
  136. package/packages/locale/lang/de-DE.ts +2 -1
  137. package/packages/locale/lang/en-US.ts +4 -3
  138. package/packages/locale/lang/es-ES.ts +2 -1
  139. package/packages/locale/lang/fr-FR.ts +2 -1
  140. package/packages/locale/lang/hu-HU.ts +2 -1
  141. package/packages/locale/lang/hy-AM.ts +2 -1
  142. package/packages/locale/lang/it-IT.ts +2 -1
  143. package/packages/locale/lang/ja-JP.ts +2 -1
  144. package/packages/locale/lang/ko-KR.ts +2 -1
  145. package/packages/locale/lang/nb-NO.ts +2 -1
  146. package/packages/locale/lang/pt-BR.ts +2 -1
  147. package/packages/locale/lang/ru-RU.ts +4 -3
  148. package/packages/locale/lang/th-TH.ts +2 -1
  149. package/packages/locale/lang/ug-CN.ts +2 -1
  150. package/packages/locale/lang/uk-UA.ts +518 -517
  151. package/packages/locale/lang/vi-VN.ts +2 -1
  152. package/packages/locale/lang/zh-CHT.ts +2 -1
  153. package/packages/locale/lang/zh-CN.ts +2 -1
  154. package/packages/table/module/edit/hook.ts +7 -7
  155. package/packages/table/module/export/hook.ts +118 -65
  156. package/packages/table/module/keyboard/hook.ts +59 -25
  157. package/packages/table/src/body.ts +136 -94
  158. package/packages/table/src/cell.ts +41 -63
  159. package/packages/table/src/column.ts +13 -1
  160. package/packages/table/src/columnInfo.ts +3 -0
  161. package/packages/table/src/emits.ts +5 -1
  162. package/packages/table/src/footer.ts +48 -8
  163. package/packages/table/src/header.ts +67 -165
  164. package/packages/table/src/props.ts +14 -5
  165. package/packages/table/src/table.ts +862 -398
  166. package/packages/table/src/util.ts +81 -62
  167. package/packages/ui/index.ts +19 -6
  168. package/styles/components/table.scss +313 -274
  169. package/styles/theme/base.scss +4 -6
  170. package/styles/theme/dark.scss +1 -0
  171. package/styles/theme/light.scss +1 -0
  172. package/styles/variable.scss +1 -1
  173. /package/es/{iconfont.1736854674495.ttf → iconfont.1738985856004.ttf} +0 -0
  174. /package/es/{iconfont.1736854674495.woff → iconfont.1738985856004.woff} +0 -0
  175. /package/es/{iconfont.1736854674495.woff2 → iconfont.1738985856004.woff2} +0 -0
  176. /package/lib/{iconfont.1736854674495.ttf → iconfont.1738985856004.ttf} +0 -0
  177. /package/lib/{iconfont.1736854674495.woff → iconfont.1738985856004.woff} +0 -0
  178. /package/lib/{iconfont.1736854674495.woff2 → iconfont.1738985856004.woff2} +0 -0
@@ -2,22 +2,6 @@
2
2
  @use './icon.scss';
3
3
  @use './table-module/all.scss';
4
4
 
5
- %DefaultColumnHeight {
6
- height: var(--vxe-ui-table-row-height-default);
7
- }
8
-
9
- %MediumColumnHeight {
10
- height: var(--vxe-ui-table-row-height-medium);
11
- }
12
-
13
- %SmallColumnHeight {
14
- height: var(--vxe-ui-table-row-height-small);
15
- }
16
-
17
- %MiniColumnHeight {
18
- height: var(--vxe-ui-table-row-height-mini);
19
- }
20
-
21
5
  .vxe-table-slots,
22
6
  .vxe-table--file-form {
23
7
  display: none;
@@ -57,6 +41,10 @@
57
41
  width: 100%;
58
42
  height: 100%;
59
43
  scrollbar-width: none;
44
+ -ms-overflow-style: none;
45
+ &::-webkit-scrollbar {
46
+ display: none;
47
+ }
60
48
  }
61
49
  .vxe-table--header-inner-wrapper,
62
50
  .vxe-table--footer-inner-wrapper {
@@ -87,44 +75,12 @@
87
75
  .vxe-footer--column {
88
76
  &.fixed--width {
89
77
  & > .vxe-cell {
90
- .vxe-default-input,
91
- .vxe-default-textarea,
92
- .vxe-default-select {
93
- width: 100%;
94
- }
95
- .vxe-input,
96
- .vxe-textarea,
97
- .vxe-select,
98
- .vxe-tree-select,
99
- .vxe-date-picker,
100
- .vxe-number-input,
101
- .vxe-ico-picker {
102
- width: 100%;
103
- }
104
- }
105
- }
106
- }
107
- .vxe-body--column {
108
- &.fixed--width {
109
- & > .vxe-cell {
110
- & > .vxe-default-input,
111
- & > .vxe-default-textarea,
112
- & > .vxe-default-select {
113
- width: 100%;
114
- }
115
- & > .vxe-input,
116
- & > .vxe-textarea,
117
- & > .vxe-select,
118
- & > .vxe-tree-select,
119
- & > .vxe-date-picker,
120
- & > .vxe-number-input,
121
- & > .vxe-ico-picker {
122
- width: 100%;
123
- }
124
- & > .vxe-cell--tree-node {
78
+ & > .vxe-cell--wrapper {
125
79
  .vxe-default-input,
126
80
  .vxe-default-textarea,
127
- .vxe-default-select,
81
+ .vxe-default-select {
82
+ width: 100%;
83
+ }
128
84
  .vxe-input,
129
85
  .vxe-textarea,
130
86
  .vxe-select,
@@ -138,6 +94,42 @@
138
94
  }
139
95
  }
140
96
  }
97
+ .vxe-body--column {
98
+ &.fixed--width {
99
+ & > .vxe-cell {
100
+ & > .vxe-cell--wrapper {
101
+ & > .vxe-default-input,
102
+ & > .vxe-default-textarea,
103
+ & > .vxe-default-select {
104
+ width: 100%;
105
+ }
106
+ & > .vxe-input,
107
+ & > .vxe-textarea,
108
+ & > .vxe-select,
109
+ & > .vxe-tree-select,
110
+ & > .vxe-date-picker,
111
+ & > .vxe-number-input,
112
+ & > .vxe-ico-picker {
113
+ width: 100%;
114
+ }
115
+ & > .vxe-cell--tree-node {
116
+ .vxe-default-input,
117
+ .vxe-default-textarea,
118
+ .vxe-default-select,
119
+ .vxe-input,
120
+ .vxe-textarea,
121
+ .vxe-select,
122
+ .vxe-tree-select,
123
+ .vxe-date-picker,
124
+ .vxe-number-input,
125
+ .vxe-ico-picker {
126
+ width: 100%;
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
141
133
  .vxe-table--filter-template {
142
134
  & > .vxe-default-input,
143
135
  & > .vxe-default-textarea,
@@ -163,8 +155,8 @@
163
155
  .vxe-default-input,
164
156
  .vxe-default-textarea,
165
157
  .vxe-default-select {
158
+ font-family: var(--vxe-ui-font-family);
166
159
  outline: 0;
167
- padding: 0 2px;
168
160
  color: var(--vxe-ui-font-color);
169
161
  border-radius: var(--vxe-ui-border-radius);
170
162
  border: 1px solid var(--vxe-ui-input-border-color);
@@ -194,11 +186,9 @@
194
186
  }
195
187
  }
196
188
  .vxe-default-textarea {
189
+ font-size: 1em;
197
190
  resize: none;
198
191
  vertical-align: middle;
199
- &:not([rows]) {
200
- height: var(--vxe-ui-input-height-default);
201
- }
202
192
  }
203
193
  & > .vxe-input > .vxe-input--inner,
204
194
  & > .vxe-textarea > .vxe-textarea--inner {
@@ -221,8 +211,31 @@
221
211
  }
222
212
  .vxe-body--column {
223
213
  &.col--vertical-top {
224
- & > .vxe-cell {
225
- height: 100%;
214
+ &.col--active {
215
+ & > .vxe-cell {
216
+ & > .vxe-cell--wrapper {
217
+ height: 100%;
218
+ & > .vxe-default-textarea {
219
+ height: 100%;
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
225
+ }
226
+ /*行高*/
227
+ .vxe-table {
228
+ &:not([data-calc-row]) {
229
+ .vxe-body--column {
230
+ &.col--vertical-top {
231
+ &:not(.col--active) {
232
+ & > .vxe-cell {
233
+ & > .vxe-cell--wrapper {
234
+ min-height: 100%;
235
+ }
236
+ }
237
+ }
238
+ }
226
239
  }
227
240
  }
228
241
  }
@@ -232,19 +245,19 @@
232
245
  .vxe-table--cell-extend-area,
233
246
  .vxe-table--cell-active-area,
234
247
  .vxe-table--cell-copy-area,
235
- .vxe-table--cell-status {
248
+ .vxe-table--cell-col-status-area,
249
+ .vxe-table--cell-row-status-area {
236
250
  display: none;
237
251
  position: absolute;
238
252
  pointer-events: none;
239
253
  z-index: 1;
240
254
  }
241
255
 
242
- .vxe-table--cell-status {
243
- top: 0;
244
- left: 0;
245
- width: var(--vxe-ui-table-cell-area-status-border-width);
246
- height: 0;
247
- background-color: var(--vxe-ui-font-primary-color);
256
+ .vxe-table--header-wrapper {
257
+ .vxe-table--cell-col-status-area {
258
+ top: 0;
259
+ height: 100%;
260
+ }
248
261
  }
249
262
 
250
263
  .vxe-table--fixed-left-wrapper,
@@ -253,7 +266,9 @@
253
266
  .vxe-table--cell-main-area,
254
267
  .vxe-table--cell-extend-area,
255
268
  .vxe-table--cell-active-area,
256
- .vxe-table--cell-copy-area {
269
+ .vxe-table--cell-copy-area,
270
+ .vxe-table--cell-col-status-area,
271
+ .vxe-table--cell-row-status-area {
257
272
  z-index: 2;
258
273
  }
259
274
  }
@@ -319,6 +334,10 @@
319
334
  .vxe-table--cell-extend-area {
320
335
  border: var(--vxe-ui-table-cell-extend-area-border-width) solid var(--vxe-ui-table-cell-extend-area-border-color);
321
336
  }
337
+ .vxe-table--cell-col-status-area,
338
+ .vxe-table--cell-row-status-area {
339
+ background-color: var(--vxe-ui-table-checkbox-range-background-color);
340
+ }
322
341
  }
323
342
 
324
343
  @keyframes moveCopyCellBorder {
@@ -446,40 +465,27 @@
446
465
 
447
466
  /*列宽*/
448
467
  .vxe-table {
449
- &.column--calc {
468
+ &[data-calc-col] {
450
469
  .vxe-header--column,
451
470
  .vxe-body--column,
452
471
  .vxe-footer--column {
453
472
  .vxe-cell {
454
- word-break: break-all;
455
- white-space: nowrap;
473
+ & > .vxe-cell--wrapper {
474
+ word-break: break-all;
475
+ white-space: nowrap;
476
+ }
456
477
  }
457
478
  }
458
479
  }
480
+ &:not([data-calc-col]) {
481
+ .vxe-cell--wrapper {
482
+ min-width: 100%;
483
+ }
484
+ }
459
485
  }
460
486
 
461
487
  /*scroll*/
462
488
  .vxe-table {
463
- &.is--scroll-x {
464
- &:hover {
465
- & > .vxe-table--scroll-x-virtual {
466
- .vxe-table--scroll-x-handle {
467
- overflow-x: scroll;
468
- }
469
- }
470
- }
471
- }
472
- &.is--scroll-y {
473
- &:hover {
474
- & > .vxe-table--layout-wrapper {
475
- & > .vxe-table--scroll-y-virtual {
476
- .vxe-table--scroll-y-handle {
477
- overflow-y: scroll;
478
- }
479
- }
480
- }
481
- }
482
- }
483
489
  &.is--loading {
484
490
  & > .vxe-table--scroll-x-virtual {
485
491
  visibility: hidden;
@@ -521,7 +527,7 @@
521
527
  }
522
528
  .vxe-table--scroll-x-handle {
523
529
  overflow-y: hidden;
524
- overflow-x: auto;
530
+ overflow-x: scroll;
525
531
  height: 18px;
526
532
  }
527
533
  .vxe-table--scroll-x-wrapper {
@@ -535,7 +541,7 @@
535
541
  top: 0;
536
542
  }
537
543
  .vxe-table--scroll-y-handle {
538
- overflow-y: auto;
544
+ overflow-y: scroll;
539
545
  overflow-x: hidden;
540
546
  width: 18px;
541
547
  height: 100%;
@@ -612,11 +618,13 @@
612
618
  .vxe-table {
613
619
  .vxe-table--header-wrapper {
614
620
  color: var(--vxe-ui-table-header-font-color);
615
- .vxe-table--header-border-line {
621
+ &::after {
622
+ content: "";
616
623
  position: absolute;
617
624
  left: 0;
618
625
  bottom: 0;
619
626
  height: 0;
627
+ width: 100%;
620
628
  border-bottom: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
621
629
  }
622
630
  }
@@ -722,43 +730,66 @@
722
730
  .vxe-cell-title-suffix-icon {
723
731
  cursor: help;
724
732
  }
725
- .vxe-resizable {
733
+ }
734
+
735
+ .vxe-cell--col-resizable {
736
+ position: absolute;
737
+ right: -0.3em;
738
+ bottom: 0;
739
+ width: 0.6em;
740
+ height: 100%;
741
+ text-align: center;
742
+ z-index: 1;
743
+ cursor: col-resize;
744
+ &.is--line {
745
+ &:before,
746
+ &:after {
747
+ content: "";
748
+ display: inline-block;
749
+ vertical-align: middle;
750
+ }
751
+ &:before {
752
+ width: 1px;
753
+ height: 50%;
754
+ background-color: var(--vxe-ui-table-resizable-line-color);
755
+ }
756
+ &:after {
757
+ width: 0;
758
+ height: 100%;
759
+ }
760
+ }
761
+ }
762
+ .vxe-table--fixed-right-wrapper {
763
+ .vxe-cell--col-resizable {
764
+ right: auto;
765
+ left: -0.3em;
766
+ }
767
+ }
768
+
769
+ .vxe-body--column {
770
+ .vxe-cell--row-resizable {
726
771
  position: absolute;
727
- right: -7px;
728
- bottom: 0;
729
- width: 14px;
730
- height: 100%;
772
+ left: 0;
773
+ bottom: -0.4em;
774
+ height: 0.8em;
775
+ width: 100%;
731
776
  text-align: center;
732
777
  z-index: 1;
733
- cursor: col-resize;
734
- &.is--line {
735
- &:before,
736
- &:after {
737
- content: "";
738
- display: inline-block;
739
- vertical-align: middle;
740
- }
741
- &:before {
742
- width: 1px;
743
- height: 50%;
744
- background-color: var(--vxe-ui-table-resizable-line-color);
745
- }
746
- &:after {
747
- width: 0;
748
- height: 100%;
749
- }
750
- }
778
+ cursor: row-resize;
751
779
  }
752
780
  }
753
- .vxe-table--fixed-right-wrapper {
754
- .vxe-header--column {
755
- .vxe-resizable {
756
- right: auto;
757
- left: -7px;
781
+ .vxe-body--row {
782
+ &:last-child {
783
+ .vxe-body--column {
784
+ .vxe-cell--row-resizable {
785
+ height: 0.4em;
786
+ bottom: -0px;
787
+ }
758
788
  }
759
789
  }
760
790
  }
761
791
 
792
+
762
793
  /*table*/
763
794
  .vxe-table--render-default {
764
795
  position: relative;
@@ -868,7 +899,7 @@
868
899
  // }
869
900
  // }
870
901
  // }
871
- &.drag--resize {
902
+ &.col-drag--resize {
872
903
  .vxe-table--main-wrapper,
873
904
  .vxe-table--fixed-left-wrapper,
874
905
  .vxe-table--fixed-right-wrapper {
@@ -877,6 +908,15 @@
877
908
  }
878
909
  }
879
910
  }
911
+ &.row-drag--resize {
912
+ .vxe-table--main-wrapper,
913
+ .vxe-table--fixed-left-wrapper,
914
+ .vxe-table--fixed-right-wrapper {
915
+ * {
916
+ cursor: row-resize;
917
+ }
918
+ }
919
+ }
880
920
  &.drag--range,
881
921
  &.drag--area {
882
922
  .vxe-table--main-wrapper,
@@ -945,19 +985,6 @@
945
985
  }
946
986
  }
947
987
  }
948
- &.is--padding {
949
- .vxe-body--column {
950
- &:not(.col--ellipsis) {
951
- padding: var(--vxe-ui-table-column-padding-default);
952
- }
953
- }
954
- }
955
- .vxe-header--column,
956
- .vxe-footer--column {
957
- &:not(.col--ellipsis) {
958
- padding: var(--vxe-ui-table-column-padding-default);
959
- }
960
- }
961
988
  .vxe-header--column,
962
989
  .vxe-body--column,
963
990
  .vxe-footer--column {
@@ -972,9 +999,15 @@
972
999
  }
973
1000
  &.col--center {
974
1001
  text-align: center;
1002
+ & > .vxe-cell {
1003
+ justify-content: center;
1004
+ }
975
1005
  }
976
1006
  &.col--right {
977
1007
  text-align: right;
1008
+ & > .vxe-cell {
1009
+ justify-content: right;
1010
+ }
978
1011
  }
979
1012
  }
980
1013
  // &.is--tree-line {
@@ -1012,16 +1045,6 @@
1012
1045
  &.border--full,
1013
1046
  &.border--outer,
1014
1047
  &.border--inner {
1015
- .vxe-table--scroll-y-top-corner {
1016
- &::before {
1017
- border-width: 0 var(--vxe-ui-table-border-width) var(--vxe-ui-table-border-width) var(--vxe-ui-table-border-width);
1018
- }
1019
- }
1020
- .vxe-table--scroll-y-bottom-corner {
1021
- &::before {
1022
- border-width: 0 var(--vxe-ui-table-border-width) 0 var(--vxe-ui-table-border-width);
1023
- }
1024
- }
1025
1048
  .vxe-table--scroll-y-top-corner,
1026
1049
  .vxe-table--scroll-y-bottom-corner {
1027
1050
  &::before {
@@ -1032,17 +1055,14 @@
1032
1055
  width: 100%;
1033
1056
  height: 100%;
1034
1057
  z-index: 1;
1058
+ border-width: 0;
1035
1059
  border-style: solid;
1036
1060
  border-color: var(--vxe-ui-table-border-color);
1037
1061
  }
1038
1062
  }
1039
- &.sy-pos--right {
1040
- .vxe-table--scroll-y-top-corner,
1041
- .vxe-table--scroll-y-bottom-corner {
1042
- &::before {
1043
- width: calc(100% + 1px);
1044
- left: -1px;
1045
- }
1063
+ .vxe-table--scroll-y-top-corner {
1064
+ &::before {
1065
+ border-bottom-width: var(--vxe-ui-table-border-width);
1046
1066
  }
1047
1067
  }
1048
1068
  .vxe-table--scroll-y-bottom-corner {
@@ -1095,6 +1115,27 @@
1095
1115
  }
1096
1116
  &.border--default,
1097
1117
  &.border--full {
1118
+ .vxe-table--scroll-y-top-corner {
1119
+ &::before {
1120
+ border-left-width: var(--vxe-ui-table-border-width);
1121
+ border-right-width: var(--vxe-ui-table-border-width);
1122
+ }
1123
+ }
1124
+ .vxe-table--scroll-y-bottom-corner {
1125
+ &::before {
1126
+ border-left-width: var(--vxe-ui-table-border-width);
1127
+ border-right-width: var(--vxe-ui-table-border-width);
1128
+ }
1129
+ }
1130
+ &.sy-pos--right {
1131
+ .vxe-table--scroll-y-top-corner,
1132
+ .vxe-table--scroll-y-bottom-corner {
1133
+ &::before {
1134
+ width: calc(100% + 1px);
1135
+ left: -1px;
1136
+ }
1137
+ }
1138
+ }
1098
1139
  .vxe-table--scroll-y-wrapper {
1099
1140
  &::before,
1100
1141
  &::after {
@@ -1156,8 +1197,10 @@
1156
1197
  .vxe-table--border-line {
1157
1198
  display: none;
1158
1199
  }
1159
- .vxe-table--header-border-line {
1160
- display: none;
1200
+ .vxe-table--header-wrapper {
1201
+ &::after {
1202
+ display: none;
1203
+ }
1161
1204
  }
1162
1205
  }
1163
1206
 
@@ -1170,8 +1213,13 @@
1170
1213
  .vxe-header--column,
1171
1214
  .vxe-body--column,
1172
1215
  .vxe-footer--column {
1173
- &:not(.col--ellipsis) {
1174
- padding: var(--vxe-ui-table-column-padding-medium);
1216
+ &.is--padding {
1217
+ .vxe-cell {
1218
+ padding: var(--vxe-ui-table-cell-padding-medium);
1219
+ .vxe-default-textarea {
1220
+ padding: var(--vxe-ui-table-cell-padding-medium);
1221
+ }
1222
+ }
1175
1223
  }
1176
1224
  }
1177
1225
  .vxe-cell {
@@ -1196,8 +1244,13 @@
1196
1244
  .vxe-header--column,
1197
1245
  .vxe-body--column,
1198
1246
  .vxe-footer--column {
1199
- &:not(.col--ellipsis) {
1200
- padding: var(--vxe-ui-table-column-padding-small);
1247
+ &.is--padding {
1248
+ .vxe-cell {
1249
+ padding: var(--vxe-ui-table-cell-padding-small);
1250
+ .vxe-default-textarea {
1251
+ padding: var(--vxe-ui-table-cell-padding-small);
1252
+ }
1253
+ }
1201
1254
  }
1202
1255
  }
1203
1256
  .vxe-cell {
@@ -1222,8 +1275,13 @@
1222
1275
  .vxe-header--column,
1223
1276
  .vxe-body--column,
1224
1277
  .vxe-footer--column {
1225
- &:not(.col--ellipsis) {
1226
- padding: var(--vxe-ui-table-column-padding-mini);
1278
+ &.is--padding {
1279
+ .vxe-cell {
1280
+ padding: var(--vxe-ui-table-cell-padding-mini);
1281
+ .vxe-default-textarea {
1282
+ padding: var(--vxe-ui-table-cell-padding-mini);
1283
+ }
1284
+ }
1227
1285
  }
1228
1286
  }
1229
1287
  .vxe-cell {
@@ -1240,21 +1298,19 @@
1240
1298
  }
1241
1299
  }
1242
1300
 
1243
- &.is--padding {
1244
- .vxe-body--column {
1245
- .vxe-cell {
1246
- padding-left: var(--vxe-ui-table-cell-padding-left);
1247
- padding-right: var(--vxe-ui-table-cell-padding-right);
1248
- }
1249
- }
1250
- }
1251
1301
  .vxe-header--column,
1302
+ .vxe-body--column,
1252
1303
  .vxe-footer--column {
1253
- .vxe-cell {
1254
- padding-left: var(--vxe-ui-table-cell-padding-left);
1255
- padding-right: var(--vxe-ui-table-cell-padding-right);
1304
+ &.is--padding {
1305
+ .vxe-cell {
1306
+ padding: var(--vxe-ui-table-cell-padding-default);
1307
+ .vxe-default-textarea {
1308
+ padding: var(--vxe-ui-table-cell-padding-default);
1309
+ }
1310
+ }
1256
1311
  }
1257
1312
  }
1313
+
1258
1314
  .vxe-cell {
1259
1315
  white-space: pre-line;
1260
1316
  word-break: break-all;
@@ -1347,33 +1403,60 @@
1347
1403
  float: left;
1348
1404
  }
1349
1405
 
1350
- /*列宽线*/
1351
- .vxe-table--resizable-bar {
1406
+ .vxe-table--resizable-row-bar,
1407
+ .vxe-table--resizable-col-bar {
1352
1408
  display: none;
1353
1409
  position: absolute;
1354
1410
  top: 0;
1355
1411
  left: 0;
1356
- width: 1px;
1357
- height: 100%;
1358
1412
  z-index: 9;
1359
1413
  pointer-events: none;
1360
- cursor: col-resize;
1414
+ user-select: none;
1361
1415
  &:before {
1362
1416
  content: "";
1363
1417
  display: block;
1364
- height: 100%;
1365
1418
  background-color: var(--vxe-ui-table-resizable-drag-line-color);
1366
1419
  }
1367
1420
  .vxe-table--resizable-number-tip {
1368
1421
  position: absolute;
1369
- left: 0;
1370
- top: 1em;
1371
1422
  padding: 0.25em 0.25em;
1372
1423
  font-size: 12px;
1373
1424
  border-radius: var(--vxe-ui-border-radius);
1374
1425
  white-space: nowrap;
1375
1426
  color: #ffffff;
1376
1427
  background-color: var(--vxe-ui-table-resizable-drag-line-color);
1428
+ user-select: none;
1429
+ pointer-events: none;
1430
+ }
1431
+ }
1432
+
1433
+ /*列宽线*/
1434
+ .vxe-table--resizable-col-bar {
1435
+ width: 1px;
1436
+ height: 100%;
1437
+ cursor: col-resize;
1438
+ &:before {
1439
+ width: 1px;
1440
+ height: 100%;
1441
+ }
1442
+ .vxe-table--resizable-number-tip {
1443
+ left: 0;
1444
+ top: 1em;
1445
+ }
1446
+ }
1447
+
1448
+ // 行高线
1449
+ .vxe-table--resizable-row-bar {
1450
+ height: 1px;
1451
+ width: 100%;
1452
+ cursor: row-resize;
1453
+ &:before {
1454
+ height: 1px;
1455
+ width: 100%;
1456
+ }
1457
+ .vxe-table--resizable-number-tip {
1458
+ top: 0;
1459
+ left: 0;
1377
1460
  }
1378
1461
  }
1379
1462
 
@@ -1412,7 +1495,7 @@
1412
1495
  .vxe-tree--line {
1413
1496
  content: "";
1414
1497
  position: absolute;
1415
- bottom: -0.9em;
1498
+ bottom: -1.5em;
1416
1499
  width: 0.8em;
1417
1500
  border-width: 0 0 1px 1px;
1418
1501
  border-style: var(--vxe-ui-table-tree-node-line-style);
@@ -1446,6 +1529,8 @@
1446
1529
  display: block;
1447
1530
  padding-left: 1.5em;
1448
1531
  }
1532
+
1533
+ /*单元格高度*/
1449
1534
  .vxe-body--column {
1450
1535
  &.col--ellipsis {
1451
1536
  & > .vxe-cell {
@@ -1456,15 +1541,61 @@
1456
1541
  }
1457
1542
  }
1458
1543
  }
1544
+ &.col--cs-height,
1545
+ &.col--rs-height,
1459
1546
  &.col--auto-height {
1460
1547
  overflow: hidden;
1461
1548
  & > .vxe-cell {
1462
- display: flex;
1463
- flex-direction: row;
1464
- align-items: center;
1465
1549
  overflow: hidden;
1466
1550
  }
1467
1551
  }
1552
+ & > .vxe-cell {
1553
+ display: flex;
1554
+ flex-direction: row;
1555
+ align-items: center;
1556
+ }
1557
+ }
1558
+ /*溢出列*/
1559
+ .vxe-header--column,
1560
+ .vxe-body--column,
1561
+ .vxe-footer--column {
1562
+ &:not(.col--active) {
1563
+ &.col--ellipsis {
1564
+ & > .vxe-cell {
1565
+ overflow: hidden;
1566
+ & > .vxe-cell--wrapper {
1567
+ overflow: hidden;
1568
+ text-overflow: ellipsis;
1569
+ white-space: nowrap;
1570
+ }
1571
+ }
1572
+ }
1573
+ &.vxe-tree-cell,
1574
+ &.col--vertical-top {
1575
+ & > .vxe-cell {
1576
+ & > .vxe-cell--wrapper {
1577
+ white-space: pre-line;
1578
+ }
1579
+ }
1580
+ }
1581
+ }
1582
+ }
1583
+ .vxe-header--column,
1584
+ .vxe-footer--column {
1585
+ &.col--ellipsis {
1586
+ & > .vxe-cell {
1587
+ .vxe-cell--wrapper {
1588
+ overflow: hidden;
1589
+ text-overflow: ellipsis;
1590
+ white-space: nowrap;
1591
+ }
1592
+ }
1593
+ }
1594
+ & > .vxe-cell {
1595
+ display: flex;
1596
+ flex-direction: row;
1597
+ align-items: center;
1598
+ }
1468
1599
  }
1469
1600
 
1470
1601
  /*展开行*/
@@ -1515,28 +1646,6 @@
1515
1646
  }
1516
1647
  }
1517
1648
 
1518
- /*设置列高度*/
1519
- &.vxe-editable {
1520
- .vxe-body--column {
1521
- @extend %DefaultColumnHeight;
1522
- }
1523
- &.size--medium {
1524
- .vxe-body--column {
1525
- @extend %MediumColumnHeight;
1526
- }
1527
- }
1528
- &.size--small {
1529
- .vxe-body--column {
1530
- @extend %SmallColumnHeight;
1531
- }
1532
- }
1533
- &.size--mini {
1534
- .vxe-body--column {
1535
- @extend %MiniColumnHeight;
1536
- }
1537
- }
1538
- }
1539
-
1540
1649
  /*拖拽列*/
1541
1650
  .vxe-table--drag-col-line {
1542
1651
  height: 100%;
@@ -1708,40 +1817,7 @@
1708
1817
  white-space: nowrap;
1709
1818
  }
1710
1819
 
1711
- /*溢出列*/
1712
- .vxe-header--column,
1713
- .vxe-body--column,
1714
- .vxe-footer--column {
1715
- &.col--ellipsis {
1716
- @extend %DefaultColumnHeight;
1717
- &:not(.col--active) {
1718
- & > .vxe-cell {
1719
- overflow: hidden;
1720
- text-overflow: ellipsis;
1721
- white-space: nowrap;
1722
- }
1723
- &.col--vertical-top {
1724
- & > .vxe-cell {
1725
- white-space: pre-line;
1726
- }
1727
- }
1728
- }
1729
- & > .vxe-cell {
1730
- max-height: var(--vxe-ui-table-row-height-default);
1731
- }
1732
- }
1733
- }
1734
1820
  &.size--medium {
1735
- .vxe-header--column,
1736
- .vxe-body--column,
1737
- .vxe-footer--column {
1738
- &.col--ellipsis {
1739
- @extend %MediumColumnHeight;
1740
- & > .vxe-cell {
1741
- max-height: var(--vxe-ui-table-row-height-medium);
1742
- }
1743
- }
1744
- }
1745
1821
  .vxe-cell--checkbox {
1746
1822
  font-size: var(--vxe-checkbox-font-size-medium);
1747
1823
  }
@@ -1750,16 +1826,6 @@
1750
1826
  }
1751
1827
  }
1752
1828
  &.size--small {
1753
- .vxe-header--column,
1754
- .vxe-body--column,
1755
- .vxe-footer--column {
1756
- &.col--ellipsis {
1757
- @extend %SmallColumnHeight;
1758
- & > .vxe-cell {
1759
- max-height: var(--vxe-ui-table-row-height-small);
1760
- }
1761
- }
1762
- }
1763
1829
  .vxe-cell--checkbox {
1764
1830
  font-size: var(--vxe-checkbox-font-size-small);
1765
1831
  }
@@ -1768,16 +1834,6 @@
1768
1834
  }
1769
1835
  }
1770
1836
  &.size--mini {
1771
- .vxe-header--column,
1772
- .vxe-body--column,
1773
- .vxe-footer--column {
1774
- &.col--ellipsis {
1775
- @extend %MiniColumnHeight;
1776
- & > .vxe-cell {
1777
- max-height: var(--vxe-ui-table-row-height-mini);
1778
- }
1779
- }
1780
- }
1781
1837
  .vxe-cell--checkbox {
1782
1838
  font-size: var(--vxe-checkbox-font-size-mini);
1783
1839
  }
@@ -2023,9 +2079,6 @@
2023
2079
  }
2024
2080
  .vxe-body--column {
2025
2081
  padding: 0;
2026
- &.col--active {
2027
- padding: 0;
2028
- }
2029
2082
  }
2030
2083
  }
2031
2084
  }
@@ -2051,17 +2104,3 @@ div.vxe-table--tooltip-wrapper {
2051
2104
  outline: 0;
2052
2105
  }
2053
2106
  }
2054
-
2055
- .vxe-footer--column {
2056
- &.col--ellipsis {
2057
- & > .vxe-cell {
2058
- display: flex;
2059
- align-items: center;
2060
- .vxe-cell--item {
2061
- overflow: hidden;
2062
- text-overflow: ellipsis;
2063
- white-space: nowrap;
2064
- }
2065
- }
2066
- }
2067
- }