vxe-table 3.13.10 → 3.13.12
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.
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/methods.js +34 -14
- package/es/table/style.css +20 -22
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +20 -22
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +32 -16
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +30 -14
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +20 -22
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +20 -22
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/table/src/methods.ts +33 -19
- package/styles/components/table.scss +66 -22
- /package/es/{iconfont.1740398494462.ttf → iconfont.1740558658469.ttf} +0 -0
- /package/es/{iconfont.1740398494462.woff → iconfont.1740558658469.woff} +0 -0
- /package/es/{iconfont.1740398494462.woff2 → iconfont.1740558658469.woff2} +0 -0
- /package/lib/{iconfont.1740398494462.ttf → iconfont.1740558658469.ttf} +0 -0
- /package/lib/{iconfont.1740398494462.woff → iconfont.1740558658469.woff} +0 -0
- /package/lib/{iconfont.1740398494462.woff2 → iconfont.1740558658469.woff2} +0 -0
|
@@ -534,18 +534,11 @@ function updateStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
534
534
|
if (layout === 'header') {
|
|
535
535
|
// 表头体样式处理
|
|
536
536
|
// 横向滚动渲染
|
|
537
|
-
let tWidth = tableWidth
|
|
538
537
|
let renderColumnList = tableColumn
|
|
539
538
|
let isOptimizeMode = false
|
|
540
539
|
|
|
541
540
|
if (isGroup) {
|
|
542
541
|
renderColumnList = visibleColumn
|
|
543
|
-
|
|
544
|
-
if (fixedType) {
|
|
545
|
-
if (wrapperElem) {
|
|
546
|
-
wrapperElem.style.width = tWidth ? `${tWidth}px` : ''
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
542
|
} else {
|
|
550
543
|
// 如果是使用优化模式
|
|
551
544
|
if (scrollXLoad || scrollYLoad || allColumnHeaderOverflow) {
|
|
@@ -562,17 +555,29 @@ function updateStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
562
555
|
if (isOptimizeMode) {
|
|
563
556
|
renderColumnList = fixedColumn || []
|
|
564
557
|
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
565
562
|
|
|
566
|
-
|
|
563
|
+
if (fixedType) {
|
|
564
|
+
if (isGroup) {
|
|
565
|
+
if (wrapperElem) {
|
|
566
|
+
wrapperElem.style.width = tableWidth ? `${tableWidth}px` : ''
|
|
567
|
+
}
|
|
568
|
+
} else {
|
|
569
|
+
if (isOptimizeMode) {
|
|
567
570
|
if (wrapperElem) {
|
|
568
571
|
wrapperElem.style.width = tWidth ? `${tWidth}px` : ''
|
|
569
572
|
}
|
|
573
|
+
} else {
|
|
574
|
+
if (wrapperElem) {
|
|
575
|
+
wrapperElem.style.width = tableWidth ? `${tableWidth}px` : ''
|
|
576
|
+
}
|
|
570
577
|
}
|
|
571
578
|
}
|
|
572
579
|
}
|
|
573
580
|
|
|
574
|
-
tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
575
|
-
|
|
576
581
|
if (currScrollElem) {
|
|
577
582
|
currScrollElem.style.height = `${headerHeight}px`
|
|
578
583
|
}
|
|
@@ -628,7 +633,6 @@ function updateStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
628
633
|
fixedWrapperElem.style.width = `${fixedColumn.reduce((previous, column) => previous + column.renderWidth, 0)}px`
|
|
629
634
|
}
|
|
630
635
|
|
|
631
|
-
let tWidth = tableWidth
|
|
632
636
|
let renderColumnList = tableColumn
|
|
633
637
|
|
|
634
638
|
let isOptimizeMode = false
|
|
@@ -646,16 +650,22 @@ function updateStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
646
650
|
if (isOptimizeMode) {
|
|
647
651
|
renderColumnList = fixedColumn || []
|
|
648
652
|
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
649
656
|
|
|
650
|
-
|
|
657
|
+
if (fixedType) {
|
|
658
|
+
if (isOptimizeMode) {
|
|
651
659
|
if (wrapperElem) {
|
|
652
660
|
wrapperElem.style.width = tWidth ? `${tWidth}px` : ''
|
|
653
661
|
}
|
|
662
|
+
} else {
|
|
663
|
+
if (wrapperElem) {
|
|
664
|
+
wrapperElem.style.width = tableWidth ? `${tableWidth}px` : ''
|
|
665
|
+
}
|
|
654
666
|
}
|
|
655
667
|
}
|
|
656
668
|
|
|
657
|
-
tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
658
|
-
|
|
659
669
|
if (tableElem) {
|
|
660
670
|
tableElem.style.width = tWidth ? `${tWidth}px` : ''
|
|
661
671
|
// 兼容性处理
|
|
@@ -666,8 +676,6 @@ function updateStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
666
676
|
emptyBlockElem.style.width = tWidth ? `${tWidth}px` : ''
|
|
667
677
|
}
|
|
668
678
|
} else if (layout === 'footer') {
|
|
669
|
-
let tWidth = tableWidth
|
|
670
|
-
|
|
671
679
|
let renderColumnList = tableColumn
|
|
672
680
|
let isOptimizeMode = false
|
|
673
681
|
// 如果是使用优化模式
|
|
@@ -684,16 +692,22 @@ function updateStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
684
692
|
if (isOptimizeMode) {
|
|
685
693
|
renderColumnList = fixedColumn || []
|
|
686
694
|
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
687
698
|
|
|
688
|
-
|
|
699
|
+
if (fixedType) {
|
|
700
|
+
if (isOptimizeMode) {
|
|
689
701
|
if (wrapperElem) {
|
|
690
702
|
wrapperElem.style.width = tWidth ? `${tWidth}px` : ''
|
|
691
703
|
}
|
|
704
|
+
} else {
|
|
705
|
+
if (wrapperElem) {
|
|
706
|
+
wrapperElem.style.width = tableWidth ? `${tableWidth}px` : ''
|
|
707
|
+
}
|
|
692
708
|
}
|
|
693
709
|
}
|
|
694
710
|
|
|
695
|
-
tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
696
|
-
|
|
697
711
|
if (currScrollElem) {
|
|
698
712
|
currScrollElem.style.height = `${footerHeight}px`
|
|
699
713
|
// 如果是固定列
|
|
@@ -490,6 +490,46 @@
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
+
&.sx-pos--top {
|
|
494
|
+
.vxe-table--scroll-x-left-corner {
|
|
495
|
+
&::before {
|
|
496
|
+
@extend %TopLeftRadius;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
.vxe-table--scroll-x-right-corner {
|
|
500
|
+
&::before {
|
|
501
|
+
@extend %TopRightRadius;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
&.sx-pos--bottom {
|
|
506
|
+
&.sy-pos--right {
|
|
507
|
+
.vxe-table--scroll-y-top-corner {
|
|
508
|
+
@extend %TopRightRadius;
|
|
509
|
+
&::before {
|
|
510
|
+
@extend %TopRightRadius;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
&.sy-pos--left {
|
|
515
|
+
.vxe-table--scroll-y-top-corner {
|
|
516
|
+
@extend %TopLeftRadius;
|
|
517
|
+
&::before {
|
|
518
|
+
@extend %TopLeftRadius;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
.vxe-table--scroll-x-left-corner {
|
|
523
|
+
&::before {
|
|
524
|
+
@extend %BottomLeftRadius;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
.vxe-table--scroll-x-right-corner {
|
|
528
|
+
&::before {
|
|
529
|
+
@extend %BottomRightRadius;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
493
533
|
}
|
|
494
534
|
}
|
|
495
535
|
|
|
@@ -1085,28 +1125,30 @@
|
|
|
1085
1125
|
border-top: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
1086
1126
|
}
|
|
1087
1127
|
.vxe-table--scroll-x-wrapper {
|
|
1088
|
-
&::before,
|
|
1089
1128
|
&::after {
|
|
1090
1129
|
content: "";
|
|
1091
1130
|
position: absolute;
|
|
1092
1131
|
left: 0;
|
|
1093
1132
|
width: 100%;
|
|
1094
|
-
height:
|
|
1133
|
+
height: 100%;
|
|
1095
1134
|
z-index: 1;
|
|
1135
|
+
pointer-events: none;
|
|
1096
1136
|
}
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1137
|
+
}
|
|
1138
|
+
&.sx-pos--top {
|
|
1139
|
+
.vxe-table--scroll-x-wrapper {
|
|
1140
|
+
&::after {
|
|
1141
|
+
top: 0;
|
|
1142
|
+
border-bottom: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
1143
|
+
}
|
|
1104
1144
|
}
|
|
1105
1145
|
}
|
|
1106
1146
|
&.sx-pos--bottom {
|
|
1107
1147
|
.vxe-table--scroll-x-wrapper {
|
|
1108
|
-
&::
|
|
1109
|
-
|
|
1148
|
+
&::after {
|
|
1149
|
+
bottom: 0;
|
|
1150
|
+
height: calc(100% + var(--vxe-ui-table-border-width));
|
|
1151
|
+
border-top: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
1110
1152
|
}
|
|
1111
1153
|
}
|
|
1112
1154
|
}
|
|
@@ -1175,28 +1217,30 @@
|
|
|
1175
1217
|
}
|
|
1176
1218
|
}
|
|
1177
1219
|
.vxe-table--scroll-y-wrapper {
|
|
1178
|
-
&::before,
|
|
1179
1220
|
&::after {
|
|
1180
1221
|
content: "";
|
|
1181
1222
|
position: absolute;
|
|
1182
1223
|
top: 0;
|
|
1183
|
-
width:
|
|
1224
|
+
width: 100%;
|
|
1184
1225
|
height: 100%;
|
|
1185
1226
|
z-index: 1;
|
|
1227
|
+
pointer-events: none;
|
|
1186
1228
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1229
|
+
}
|
|
1230
|
+
&.sy-pos--left {
|
|
1231
|
+
.vxe-table--scroll-y-wrapper {
|
|
1232
|
+
&::after {
|
|
1233
|
+
left: 0;
|
|
1234
|
+
border-right: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
1235
|
+
}
|
|
1194
1236
|
}
|
|
1195
1237
|
}
|
|
1196
1238
|
&.sy-pos--right {
|
|
1197
1239
|
.vxe-table--scroll-y-wrapper {
|
|
1198
|
-
&::
|
|
1199
|
-
|
|
1240
|
+
&::after {
|
|
1241
|
+
right: 0;
|
|
1242
|
+
width: calc(100% + var(--vxe-ui-table-border-width));
|
|
1243
|
+
border-left: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
1200
1244
|
}
|
|
1201
1245
|
}
|
|
1202
1246
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|