vxe-table 4.12.3 → 4.12.5
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/locale/lang/ar-EG.js +4 -1
- package/es/locale/lang/de-DE.js +4 -1
- package/es/locale/lang/en-US.js +8 -5
- package/es/locale/lang/es-ES.js +4 -1
- package/es/locale/lang/fr-FR.js +4 -1
- package/es/locale/lang/hu-HU.js +4 -1
- package/es/locale/lang/hy-AM.js +4 -1
- package/es/locale/lang/id-ID.js +4 -1
- package/es/locale/lang/it-IT.js +4 -1
- package/es/locale/lang/ja-JP.js +4 -1
- package/es/locale/lang/ko-KR.js +4 -1
- package/es/locale/lang/nb-NO.js +4 -1
- package/es/locale/lang/pt-BR.js +4 -1
- package/es/locale/lang/ru-RU.js +4 -1
- package/es/locale/lang/th-TH.js +4 -1
- package/es/locale/lang/ug-CN.js +4 -1
- package/es/locale/lang/uk-UA.js +4 -1
- package/es/locale/lang/vi-VN.js +4 -1
- package/es/locale/lang/zh-CHT.js +4 -1
- package/es/locale/lang/zh-CN.js +4 -1
- package/es/style.css +1 -1
- package/es/table/module/export/export-panel.js +31 -19
- package/es/table/module/export/hook.js +3 -1
- package/es/table/module/keyboard/hook.js +26 -9
- package/es/table/src/table.js +81 -43
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +1106 -12298
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +4 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +4 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +8 -5
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +8 -5
- package/lib/locale/lang/es-ES.js +4 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +4 -1
- package/lib/locale/lang/fr-FR.js +4 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +4 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +4 -1
- package/lib/locale/lang/hy-AM.js +4 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +4 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +4 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +4 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +4 -1
- package/lib/locale/lang/ko-KR.js +4 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +4 -1
- package/lib/locale/lang/nb-NO.js +4 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +4 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +4 -1
- package/lib/locale/lang/ru-RU.js +4 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +4 -1
- package/lib/locale/lang/th-TH.js +4 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +4 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +4 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +4 -1
- package/lib/locale/lang/vi-VN.js +4 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +4 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +4 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +4 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/export-panel.js +26 -19
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/hook.js +3 -1
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/keyboard/hook.js +27 -9
- package/lib/table/module/keyboard/hook.min.js +1 -1
- package/lib/table/src/table.js +86 -44
- package/lib/table/src/table.min.js +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/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +4 -1
- package/packages/locale/lang/de-DE.ts +4 -1
- package/packages/locale/lang/en-US.ts +8 -5
- package/packages/locale/lang/es-ES.ts +4 -1
- package/packages/locale/lang/fr-FR.ts +4 -1
- package/packages/locale/lang/hu-HU.ts +4 -1
- package/packages/locale/lang/hy-AM.ts +4 -1
- package/packages/locale/lang/id-ID.ts +4 -1
- package/packages/locale/lang/it-IT.ts +4 -1
- package/packages/locale/lang/ja-JP.ts +4 -1
- package/packages/locale/lang/ko-KR.ts +4 -1
- package/packages/locale/lang/nb-NO.ts +4 -1
- package/packages/locale/lang/pt-BR.ts +4 -1
- package/packages/locale/lang/ru-RU.ts +4 -1
- package/packages/locale/lang/th-TH.ts +4 -1
- package/packages/locale/lang/ug-CN.ts +4 -1
- package/packages/locale/lang/uk-UA.ts +4 -1
- package/packages/locale/lang/vi-VN.ts +4 -1
- package/packages/locale/lang/zh-CHT.ts +4 -1
- package/packages/locale/lang/zh-CN.ts +4 -1
- package/packages/table/module/export/export-panel.ts +31 -19
- package/packages/table/module/export/hook.ts +3 -1
- package/packages/table/module/keyboard/hook.ts +24 -9
- package/packages/table/src/table.ts +82 -42
- /package/es/{iconfont.1743389164894.ttf → iconfont.1743479147314.ttf} +0 -0
- /package/es/{iconfont.1743389164894.woff → iconfont.1743479147314.woff} +0 -0
- /package/es/{iconfont.1743389164894.woff2 → iconfont.1743479147314.woff2} +0 -0
- /package/lib/{iconfont.1743389164894.ttf → iconfont.1743479147314.ttf} +0 -0
- /package/lib/{iconfont.1743389164894.woff → iconfont.1743479147314.woff} +0 -0
- /package/lib/{iconfont.1743389164894.woff2 → iconfont.1743479147314.woff2} +0 -0
|
@@ -362,7 +362,7 @@ export default defineComponent({
|
|
|
362
362
|
}, [
|
|
363
363
|
VxeUICheckboxComponent
|
|
364
364
|
? h(VxeUICheckboxComponent, {
|
|
365
|
-
modelValue: hasEmptyData ||
|
|
365
|
+
modelValue: hasEmptyData || isHeader,
|
|
366
366
|
disabled: hasEmptyData,
|
|
367
367
|
title: getI18n('vxe.export.expHeaderTitle'),
|
|
368
368
|
content: getI18n('vxe.export.expOptHeader'),
|
|
@@ -373,23 +373,23 @@ export default defineComponent({
|
|
|
373
373
|
: createCommentVNode(),
|
|
374
374
|
VxeUICheckboxComponent
|
|
375
375
|
? h(VxeUICheckboxComponent, {
|
|
376
|
-
modelValue: defaultOptions.
|
|
377
|
-
disabled: !
|
|
378
|
-
title: getI18n('vxe.export.
|
|
379
|
-
content: getI18n('vxe.export.
|
|
376
|
+
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
377
|
+
disabled: !isHeader,
|
|
378
|
+
title: getI18n('vxe.export.expTitleTitle'),
|
|
379
|
+
content: getI18n('vxe.export.expOptTitle'),
|
|
380
380
|
'onUpdate:modelValue'(value) {
|
|
381
|
-
defaultOptions.
|
|
381
|
+
defaultOptions.isTitle = value;
|
|
382
382
|
}
|
|
383
383
|
})
|
|
384
384
|
: createCommentVNode(),
|
|
385
385
|
VxeUICheckboxComponent
|
|
386
386
|
? h(VxeUICheckboxComponent, {
|
|
387
|
-
modelValue:
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
content: getI18n('vxe.export.
|
|
387
|
+
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
388
|
+
title: getI18n('vxe.export.expColgroupTitle'),
|
|
389
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
390
|
+
content: getI18n('vxe.export.expOptColgroup'),
|
|
391
391
|
'onUpdate:modelValue'(value) {
|
|
392
|
-
defaultOptions.
|
|
392
|
+
defaultOptions.isColgroup = value;
|
|
393
393
|
}
|
|
394
394
|
})
|
|
395
395
|
: createCommentVNode()
|
|
@@ -399,15 +399,12 @@ export default defineComponent({
|
|
|
399
399
|
}, [
|
|
400
400
|
VxeUICheckboxComponent
|
|
401
401
|
? h(VxeUICheckboxComponent, {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
title: getI18n('vxe.export.expColgroupTitle'),
|
|
407
|
-
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
408
|
-
content: getI18n('vxe.export.expOptColgroup'),
|
|
402
|
+
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
403
|
+
disabled: hasEmptyData,
|
|
404
|
+
title: getI18n('vxe.export.expOriginalTitle'),
|
|
405
|
+
content: getI18n('vxe.export.expOptOriginal'),
|
|
409
406
|
'onUpdate:modelValue'(value) {
|
|
410
|
-
defaultOptions.
|
|
407
|
+
defaultOptions.original = value;
|
|
411
408
|
}
|
|
412
409
|
})
|
|
413
410
|
: createCommentVNode(),
|
|
@@ -444,6 +441,21 @@ export default defineComponent({
|
|
|
444
441
|
}
|
|
445
442
|
})
|
|
446
443
|
: createCommentVNode()
|
|
444
|
+
]),
|
|
445
|
+
h('div', {
|
|
446
|
+
class: 'vxe-table-export--panel-option-row'
|
|
447
|
+
}, [
|
|
448
|
+
VxeUICheckboxComponent
|
|
449
|
+
? h(VxeUICheckboxComponent, {
|
|
450
|
+
modelValue: defaultOptions.isFooter,
|
|
451
|
+
disabled: !storeData.hasFooter,
|
|
452
|
+
title: getI18n('vxe.export.expFooterTitle'),
|
|
453
|
+
content: getI18n('vxe.export.expOptFooter'),
|
|
454
|
+
'onUpdate:modelValue'(value) {
|
|
455
|
+
defaultOptions.isFooter = value;
|
|
456
|
+
}
|
|
457
|
+
})
|
|
458
|
+
: createCommentVNode()
|
|
447
459
|
])
|
|
448
460
|
])
|
|
449
461
|
])
|
|
@@ -279,7 +279,7 @@ hooks.add('tableExportModule', {
|
|
|
279
279
|
function getHeaderTitle(opts, column) {
|
|
280
280
|
const columnOpts = computeColumnOpts.value;
|
|
281
281
|
const headExportMethod = column.headerExportMethod || columnOpts.headerExportMethod;
|
|
282
|
-
return headExportMethod ? headExportMethod({ column, options: opts, $table: $xeTable }) : ((opts.
|
|
282
|
+
return headExportMethod ? headExportMethod({ column, options: opts, $table: $xeTable }) : ((opts.isTitle ? column.getTitle() : column.field) || '');
|
|
283
283
|
}
|
|
284
284
|
const toBooleanValue = (cellValue) => {
|
|
285
285
|
return XEUtils.isBoolean(cellValue) ? (cellValue ? 'TRUE' : 'FALSE') : cellValue;
|
|
@@ -964,6 +964,7 @@ hooks.add('tableExportModule', {
|
|
|
964
964
|
const defOpts = Object.assign({
|
|
965
965
|
message: true,
|
|
966
966
|
isHeader: showHeader,
|
|
967
|
+
isTitle: showHeader,
|
|
967
968
|
isFooter: showFooter,
|
|
968
969
|
isColgroup: isGroup,
|
|
969
970
|
isMerge: hasMerge,
|
|
@@ -1086,6 +1087,7 @@ hooks.add('tableExportModule', {
|
|
|
1086
1087
|
const opts = Object.assign({
|
|
1087
1088
|
message: true,
|
|
1088
1089
|
isHeader: showHeader,
|
|
1090
|
+
isTitle: showHeader,
|
|
1089
1091
|
isFooter: showFooter,
|
|
1090
1092
|
isColgroup: isGroup,
|
|
1091
1093
|
isMerge: hasMerge,
|
|
@@ -473,27 +473,44 @@ hooks.add('tableKeyboardModule', {
|
|
|
473
473
|
moveArrowSelected(args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt) {
|
|
474
474
|
const { highlightCurrentRow, highlightCurrentColumn } = props;
|
|
475
475
|
const rowOpts = computeRowOpts.value;
|
|
476
|
+
const currentRowOpts = computeCurrentRowOpts.value;
|
|
476
477
|
const columnOpts = computeColumnOpts.value;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
if (
|
|
480
|
-
|
|
478
|
+
const currentColumnOpts = computeCurrentColumnOpts.value;
|
|
479
|
+
const params = handleMoveSelected(evnt, args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow);
|
|
480
|
+
if (rowOpts.isCurrent || highlightCurrentRow) {
|
|
481
|
+
if (currentRowOpts.isFollowSelected) {
|
|
482
|
+
$xeTable.triggerCurrentRowEvent(evnt, params);
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
// 当前行按键上下移动
|
|
486
|
+
if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
|
|
487
|
+
$xeTable.moveCurrentRow(isUpArrow, isDwArrow, evnt);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
481
490
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
491
|
+
if (columnOpts.isCurrent || highlightCurrentColumn) {
|
|
492
|
+
if (currentColumnOpts.isFollowSelected) {
|
|
493
|
+
$xeTable.triggerCurrentColumnEvent(evnt, params);
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
// 当前行按键左右移动
|
|
497
|
+
if ((isLeftArrow || isRightArrow) && (columnOpts.isCurrent || highlightCurrentColumn)) {
|
|
498
|
+
$xeTable.moveCurrentColumn(isLeftArrow, isRightArrow, evnt);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
485
501
|
}
|
|
486
502
|
},
|
|
487
503
|
moveEnterSelected(args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt) {
|
|
504
|
+
const { highlightCurrentRow, highlightCurrentColumn } = props;
|
|
488
505
|
const rowOpts = computeRowOpts.value;
|
|
489
506
|
const currentRowOpts = computeCurrentRowOpts.value;
|
|
490
507
|
const columnOpts = computeColumnOpts.value;
|
|
491
508
|
const currentColumnOpts = computeCurrentColumnOpts.value;
|
|
492
509
|
const params = handleMoveSelected(evnt, args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow);
|
|
493
|
-
if ((rowOpts.isCurrent && currentRowOpts.isFollowSelected)) {
|
|
510
|
+
if (((rowOpts.isCurrent || highlightCurrentRow) && currentRowOpts.isFollowSelected)) {
|
|
494
511
|
$xeTable.triggerCurrentRowEvent(evnt, params);
|
|
495
512
|
}
|
|
496
|
-
if (columnOpts.isCurrent && currentColumnOpts.isFollowSelected) {
|
|
513
|
+
if ((columnOpts.isCurrent || highlightCurrentColumn) && currentColumnOpts.isFollowSelected) {
|
|
497
514
|
$xeTable.triggerCurrentColumnEvent(evnt, params);
|
|
498
515
|
}
|
|
499
516
|
},
|
package/es/table/src/table.js
CHANGED
|
@@ -229,6 +229,7 @@ export default defineComponent({
|
|
|
229
229
|
original: false,
|
|
230
230
|
message: true,
|
|
231
231
|
isHeader: false,
|
|
232
|
+
isTitle: false,
|
|
232
233
|
isFooter: false
|
|
233
234
|
},
|
|
234
235
|
rowExpandedFlag: 1,
|
|
@@ -792,6 +793,7 @@ export default defineComponent({
|
|
|
792
793
|
computeBodyMenu,
|
|
793
794
|
computeFooterMenu,
|
|
794
795
|
computeIsMenu,
|
|
796
|
+
computeMenuList,
|
|
795
797
|
computeMenuOpts,
|
|
796
798
|
computeExportOpts,
|
|
797
799
|
computeImportOpts,
|
|
@@ -1208,6 +1210,7 @@ export default defineComponent({
|
|
|
1208
1210
|
const expandOpts = computeExpandOpts.value;
|
|
1209
1211
|
const columnOpts = computeColumnOpts.value;
|
|
1210
1212
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
1213
|
+
const virtualYOpts = computeVirtualYOpts.value;
|
|
1211
1214
|
const { isCrossDrag, isSelfToChildDrag } = columnDragOpts;
|
|
1212
1215
|
const customOpts = computeCustomOpts.value;
|
|
1213
1216
|
const { storage } = customOpts;
|
|
@@ -1241,41 +1244,35 @@ export default defineComponent({
|
|
|
1241
1244
|
htmlColumn = column;
|
|
1242
1245
|
}
|
|
1243
1246
|
if (treeNode) {
|
|
1244
|
-
if (
|
|
1245
|
-
|
|
1246
|
-
warnLog('vxe.error.colRepet', ['tree-node', treeNode]);
|
|
1247
|
-
}
|
|
1247
|
+
if (treeNodeColumn) {
|
|
1248
|
+
warnLog('vxe.error.colRepet', ['tree-node', treeNode]);
|
|
1248
1249
|
}
|
|
1249
1250
|
if (!treeNodeColumn) {
|
|
1250
1251
|
treeNodeColumn = column;
|
|
1251
1252
|
}
|
|
1252
1253
|
}
|
|
1253
1254
|
else if (type === 'expand') {
|
|
1254
|
-
if (
|
|
1255
|
-
|
|
1256
|
-
warnLog('vxe.error.colRepet', ['type', type]);
|
|
1257
|
-
}
|
|
1255
|
+
if (expandColumn) {
|
|
1256
|
+
warnLog('vxe.error.colRepet', ['type', type]);
|
|
1258
1257
|
}
|
|
1259
1258
|
if (!expandColumn) {
|
|
1260
1259
|
expandColumn = column;
|
|
1261
1260
|
}
|
|
1262
1261
|
}
|
|
1263
|
-
if (
|
|
1264
|
-
if (
|
|
1265
|
-
|
|
1266
|
-
warnLog('vxe.error.colRepet', ['type', type]);
|
|
1267
|
-
}
|
|
1268
|
-
if (!checkboxColumn) {
|
|
1269
|
-
checkboxColumn = column;
|
|
1270
|
-
}
|
|
1262
|
+
if (type === 'checkbox') {
|
|
1263
|
+
if (checkboxColumn) {
|
|
1264
|
+
warnLog('vxe.error.colRepet', ['type', type]);
|
|
1271
1265
|
}
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1266
|
+
if (!checkboxColumn) {
|
|
1267
|
+
checkboxColumn = column;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
else if (type === 'radio') {
|
|
1271
|
+
if (radioColumn) {
|
|
1272
|
+
warnLog('vxe.error.colRepet', ['type', type]);
|
|
1273
|
+
}
|
|
1274
|
+
if (!radioColumn) {
|
|
1275
|
+
radioColumn = column;
|
|
1279
1276
|
}
|
|
1280
1277
|
}
|
|
1281
1278
|
if (isAllOverflow && column.showOverflow === false) {
|
|
@@ -1295,6 +1292,9 @@ export default defineComponent({
|
|
|
1295
1292
|
else {
|
|
1296
1293
|
tableFullColumn.forEach(handleFunc);
|
|
1297
1294
|
}
|
|
1295
|
+
if (expandColumn && expandOpts.mode !== 'fixed' && virtualYOpts.enabled) {
|
|
1296
|
+
warnLog('vxe.error.notConflictProp', ['column.type="expand', 'virtual-y-config.enabled=false']);
|
|
1297
|
+
}
|
|
1298
1298
|
if ((expandColumn && expandOpts.mode !== 'fixed') && mouseOpts.area) {
|
|
1299
1299
|
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
1300
1300
|
}
|
|
@@ -2610,6 +2610,7 @@ export default defineComponent({
|
|
|
2610
2610
|
const { scrollYLoad: oldScrollYLoad } = reactData;
|
|
2611
2611
|
const { scrollYStore, scrollXStore, lastScrollLeft, lastScrollTop } = internalData;
|
|
2612
2612
|
const treeOpts = computeTreeOpts.value;
|
|
2613
|
+
const expandOpts = computeExpandOpts.value;
|
|
2613
2614
|
const { transform } = treeOpts;
|
|
2614
2615
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
2615
2616
|
let treeData = [];
|
|
@@ -2696,6 +2697,9 @@ export default defineComponent({
|
|
|
2696
2697
|
scrollYStore.endIndex = scrollYStore.visibleSize;
|
|
2697
2698
|
}
|
|
2698
2699
|
if (sYLoad) {
|
|
2700
|
+
if (reactData.expandColumn && expandOpts.mode !== 'fixed') {
|
|
2701
|
+
errLog('vxe.error.notConflictProp', ['column.type="expand', 'expand-config.mode="fixed"']);
|
|
2702
|
+
}
|
|
2699
2703
|
// if (showOverflow) {
|
|
2700
2704
|
// if (!rowOpts.height) {
|
|
2701
2705
|
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
@@ -4094,6 +4098,7 @@ export default defineComponent({
|
|
|
4094
4098
|
*/
|
|
4095
4099
|
getCheckboxRecords(isFull) {
|
|
4096
4100
|
const { treeConfig } = props;
|
|
4101
|
+
const { updateCheckboxFlag } = reactData;
|
|
4097
4102
|
const { tableFullData, afterFullData, afterTreeFullData, tableFullTreeData, fullDataRowIdData, afterFullRowMaps, selectCheckboxMaps } = internalData;
|
|
4098
4103
|
const treeOpts = computeTreeOpts.value;
|
|
4099
4104
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
@@ -4101,29 +4106,31 @@ export default defineComponent({
|
|
|
4101
4106
|
const { checkField } = checkboxOpts;
|
|
4102
4107
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
4103
4108
|
let rowList = [];
|
|
4104
|
-
if (
|
|
4105
|
-
if (
|
|
4106
|
-
|
|
4107
|
-
|
|
4109
|
+
if (updateCheckboxFlag) {
|
|
4110
|
+
if (checkField) {
|
|
4111
|
+
if (treeConfig) {
|
|
4112
|
+
const currTableData = isFull ? (transform ? tableFullTreeData : tableFullData) : (transform ? afterTreeFullData : afterFullData);
|
|
4113
|
+
rowList = XEUtils.filterTree(currTableData, row => XEUtils.get(row, checkField), { children: transform ? mapChildrenField : childrenField });
|
|
4114
|
+
}
|
|
4115
|
+
else {
|
|
4116
|
+
const currTableData = isFull ? tableFullData : afterFullData;
|
|
4117
|
+
rowList = currTableData.filter((row) => XEUtils.get(row, checkField));
|
|
4118
|
+
}
|
|
4108
4119
|
}
|
|
4109
4120
|
else {
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
XEUtils.each(selectCheckboxMaps, (row, rowid) => {
|
|
4116
|
-
if (isFull) {
|
|
4117
|
-
if (fullDataRowIdData[rowid]) {
|
|
4118
|
-
rowList.push(fullDataRowIdData[rowid].row);
|
|
4121
|
+
XEUtils.each(selectCheckboxMaps, (row, rowid) => {
|
|
4122
|
+
if (isFull) {
|
|
4123
|
+
if (fullDataRowIdData[rowid]) {
|
|
4124
|
+
rowList.push(fullDataRowIdData[rowid].row);
|
|
4125
|
+
}
|
|
4119
4126
|
}
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4127
|
+
else {
|
|
4128
|
+
if (afterFullRowMaps[rowid]) {
|
|
4129
|
+
rowList.push(afterFullRowMaps[rowid]);
|
|
4130
|
+
}
|
|
4124
4131
|
}
|
|
4125
|
-
}
|
|
4126
|
-
}
|
|
4132
|
+
});
|
|
4133
|
+
}
|
|
4127
4134
|
}
|
|
4128
4135
|
return rowList;
|
|
4129
4136
|
},
|
|
@@ -10272,7 +10279,7 @@ export default defineComponent({
|
|
|
10272
10279
|
initTpImg();
|
|
10273
10280
|
}
|
|
10274
10281
|
nextTick(() => {
|
|
10275
|
-
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props;
|
|
10282
|
+
const { data, exportConfig, importConfig, treeConfig, showOverflow, highlightCurrentRow, highlightCurrentColumn } = props;
|
|
10276
10283
|
const { scrollXStore, scrollYStore } = internalData;
|
|
10277
10284
|
const editOpts = computeEditOpts.value;
|
|
10278
10285
|
const treeOpts = computeTreeOpts.value;
|
|
@@ -10284,6 +10291,11 @@ export default defineComponent({
|
|
|
10284
10291
|
const mouseOpts = computeMouseOpts.value;
|
|
10285
10292
|
const exportOpts = computeExportOpts.value;
|
|
10286
10293
|
const importOpts = computeImportOpts.value;
|
|
10294
|
+
const currentRowOpts = computeCurrentRowOpts.value;
|
|
10295
|
+
const currentColumnOpts = computeCurrentColumnOpts.value;
|
|
10296
|
+
const virtualXOpts = computeVirtualXOpts.value;
|
|
10297
|
+
const virtualYOpts = computeVirtualYOpts.value;
|
|
10298
|
+
const keyboardOpts = computeKeyboardOpts.value;
|
|
10287
10299
|
if (props.rowId) {
|
|
10288
10300
|
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
10289
10301
|
}
|
|
@@ -10323,6 +10335,12 @@ export default defineComponent({
|
|
|
10323
10335
|
if (props.highlightHoverColumn) {
|
|
10324
10336
|
warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover']);
|
|
10325
10337
|
}
|
|
10338
|
+
// if (props.scrollY) {
|
|
10339
|
+
// warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
|
|
10340
|
+
// }
|
|
10341
|
+
// if (props.scrollX) {
|
|
10342
|
+
// warnLog('vxe.error.delProp', ['scroll-x', 'virtual-x-config'])
|
|
10343
|
+
// }
|
|
10326
10344
|
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
10327
10345
|
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(XEUtils.keys(importOpts._typeMaps), importOpts.types)) {
|
|
10328
10346
|
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter((type) => XEUtils.includes(XEUtils.keys(importOpts._typeMaps), type)).join(',') || XEUtils.keys(importOpts._typeMaps).join(',')]);
|
|
@@ -10383,6 +10401,26 @@ export default defineComponent({
|
|
|
10383
10401
|
if (checkboxOpts.halfField) {
|
|
10384
10402
|
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
10385
10403
|
}
|
|
10404
|
+
if ((rowOpts.isCurrent || highlightCurrentRow) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentRowOpts.isFollowSelected)) {
|
|
10405
|
+
warnLog('vxe.error.notConflictProp', ['row-config.isCurrent', 'current-row-config.isFollowSelected']);
|
|
10406
|
+
}
|
|
10407
|
+
if ((columnOpts.isCurrent || highlightCurrentColumn) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentColumnOpts.isFollowSelected)) {
|
|
10408
|
+
warnLog('vxe.error.notConflictProp', ['column-config.isCurrent', 'current-column-config.isFollowSelected']);
|
|
10409
|
+
}
|
|
10410
|
+
// 如果不支持虚拟滚动
|
|
10411
|
+
if (props.spanMethod) {
|
|
10412
|
+
if (virtualXOpts.enabled) {
|
|
10413
|
+
warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-x-config.enabled=false']);
|
|
10414
|
+
}
|
|
10415
|
+
if (virtualYOpts.enabled) {
|
|
10416
|
+
warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-y-config.enabled=false']);
|
|
10417
|
+
}
|
|
10418
|
+
}
|
|
10419
|
+
if (props.footerSpanMethod) {
|
|
10420
|
+
if (virtualXOpts.enabled) {
|
|
10421
|
+
warnLog('vxe.error.notConflictProp', ['footer-span-method', 'virtual-x-config.enabled=false']);
|
|
10422
|
+
}
|
|
10423
|
+
}
|
|
10386
10424
|
// 检查是否有安装需要的模块
|
|
10387
10425
|
if (props.editConfig && !$xeTable.insert) {
|
|
10388
10426
|
errLog('vxe.error.reqModule', ['Edit']);
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED