vxe-table 4.11.11 → 4.11.13
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/body.js +8 -6
- package/es/table/src/header.js +5 -3
- 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 +14 -8
- 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/body.js +7 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/header.js +5 -2
- package/lib/table/src/header.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/body.ts +7 -5
- package/packages/table/src/header.ts +5 -3
- package/styles/components/table.scss +66 -22
- /package/es/{iconfont.1740451619106.ttf → iconfont.1740561134294.ttf} +0 -0
- /package/es/{iconfont.1740451619106.woff → iconfont.1740561134294.woff} +0 -0
- /package/es/{iconfont.1740451619106.woff2 → iconfont.1740561134294.woff2} +0 -0
- /package/lib/{iconfont.1740451619106.ttf → iconfont.1740561134294.ttf} +0 -0
- /package/lib/{iconfont.1740451619106.woff → iconfont.1740561134294.woff} +0 -0
- /package/lib/{iconfont.1740451619106.woff2 → iconfont.1740561134294.woff2} +0 -0
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@ export default defineComponent({
|
|
|
104
104
|
) => {
|
|
105
105
|
const { fullAllDataRowIdData } = tableInternalData
|
|
106
106
|
const { columnKey, resizable: allResizable, border, height, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps
|
|
107
|
-
const { tableData, overflowX, currentColumn, scrollXLoad, scrollYLoad, calcCellHeightFlag, resizeHeightFlag, mergeList, editStore, isAllOverflow, validErrorMaps } = tableReactData
|
|
107
|
+
const { tableData, dragRow, overflowX, currentColumn, scrollXLoad, scrollYLoad, calcCellHeightFlag, resizeHeightFlag, mergeList, editStore, isAllOverflow, validErrorMaps } = tableReactData
|
|
108
108
|
const { afterFullData, scrollXStore, scrollYStore } = tableInternalData
|
|
109
109
|
const cellOpts = computeCellOpts.value
|
|
110
110
|
const validOpts = computeValidOpts.value
|
|
@@ -276,10 +276,12 @@ export default defineComponent({
|
|
|
276
276
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto')
|
|
277
277
|
|
|
278
278
|
let isVNPreEmptyStatus = false
|
|
279
|
-
if (
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
if (!dragRow || getRowid($xeTable, dragRow) !== rowid) {
|
|
280
|
+
if (scrollYLoad && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
|
|
281
|
+
isVNPreEmptyStatus = true
|
|
282
|
+
} else if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
283
|
+
isVNPreEmptyStatus = true
|
|
284
|
+
}
|
|
283
285
|
}
|
|
284
286
|
|
|
285
287
|
const tcStyle: Record<string, string> = {}
|
|
@@ -45,7 +45,7 @@ export default defineComponent({
|
|
|
45
45
|
const renderRows = (isGroup: boolean, isOptimizeMode: boolean, cols: VxeTableDefines.ColumnInfo[], $rowIndex: number) => {
|
|
46
46
|
const { fixedType } = props
|
|
47
47
|
const { resizable: allResizable, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps
|
|
48
|
-
const { currentColumn, scrollXLoad, scrollYLoad, overflowX } = tableReactData
|
|
48
|
+
const { currentColumn, dragCol, scrollXLoad, scrollYLoad, overflowX } = tableReactData
|
|
49
49
|
const { scrollXStore } = tableInternalData
|
|
50
50
|
const columnOpts = computeColumnOpts.value
|
|
51
51
|
const columnDragOpts = computeColumnDragOpts.value
|
|
@@ -116,8 +116,10 @@ export default defineComponent({
|
|
|
116
116
|
|
|
117
117
|
let isVNPreEmptyStatus = false
|
|
118
118
|
if (!isGroup) {
|
|
119
|
-
if (
|
|
120
|
-
|
|
119
|
+
if (!dragCol || dragCol.id !== colid) {
|
|
120
|
+
if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
121
|
+
isVNPreEmptyStatus = true
|
|
122
|
+
}
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
|
|
@@ -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
|