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
|
@@ -390,7 +390,7 @@ export default defineComponent({
|
|
|
390
390
|
}, [
|
|
391
391
|
VxeUICheckboxComponent
|
|
392
392
|
? h(VxeUICheckboxComponent, {
|
|
393
|
-
modelValue: hasEmptyData ||
|
|
393
|
+
modelValue: hasEmptyData || isHeader,
|
|
394
394
|
disabled: hasEmptyData,
|
|
395
395
|
title: getI18n('vxe.export.expHeaderTitle'),
|
|
396
396
|
content: getI18n('vxe.export.expOptHeader'),
|
|
@@ -401,23 +401,23 @@ export default defineComponent({
|
|
|
401
401
|
: createCommentVNode(),
|
|
402
402
|
VxeUICheckboxComponent
|
|
403
403
|
? h(VxeUICheckboxComponent, {
|
|
404
|
-
modelValue: defaultOptions.
|
|
405
|
-
disabled: !
|
|
406
|
-
title: getI18n('vxe.export.
|
|
407
|
-
content: getI18n('vxe.export.
|
|
404
|
+
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
405
|
+
disabled: !isHeader,
|
|
406
|
+
title: getI18n('vxe.export.expTitleTitle'),
|
|
407
|
+
content: getI18n('vxe.export.expOptTitle'),
|
|
408
408
|
'onUpdate:modelValue' (value: any) {
|
|
409
|
-
defaultOptions.
|
|
409
|
+
defaultOptions.isTitle = value
|
|
410
410
|
}
|
|
411
411
|
})
|
|
412
412
|
: createCommentVNode(),
|
|
413
413
|
VxeUICheckboxComponent
|
|
414
414
|
? h(VxeUICheckboxComponent, {
|
|
415
|
-
modelValue:
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
content: getI18n('vxe.export.
|
|
415
|
+
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
416
|
+
title: getI18n('vxe.export.expColgroupTitle'),
|
|
417
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
418
|
+
content: getI18n('vxe.export.expOptColgroup'),
|
|
419
419
|
'onUpdate:modelValue' (value: any) {
|
|
420
|
-
defaultOptions.
|
|
420
|
+
defaultOptions.isColgroup = value
|
|
421
421
|
}
|
|
422
422
|
})
|
|
423
423
|
: createCommentVNode()
|
|
@@ -427,15 +427,12 @@ export default defineComponent({
|
|
|
427
427
|
}, [
|
|
428
428
|
VxeUICheckboxComponent
|
|
429
429
|
? h(VxeUICheckboxComponent, {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
title: getI18n('vxe.export.expColgroupTitle'),
|
|
435
|
-
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
436
|
-
content: getI18n('vxe.export.expOptColgroup'),
|
|
430
|
+
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
431
|
+
disabled: hasEmptyData,
|
|
432
|
+
title: getI18n('vxe.export.expOriginalTitle'),
|
|
433
|
+
content: getI18n('vxe.export.expOptOriginal'),
|
|
437
434
|
'onUpdate:modelValue' (value: any) {
|
|
438
|
-
defaultOptions.
|
|
435
|
+
defaultOptions.original = value
|
|
439
436
|
}
|
|
440
437
|
})
|
|
441
438
|
: createCommentVNode(),
|
|
@@ -472,6 +469,21 @@ export default defineComponent({
|
|
|
472
469
|
}
|
|
473
470
|
})
|
|
474
471
|
: createCommentVNode()
|
|
472
|
+
]),
|
|
473
|
+
h('div', {
|
|
474
|
+
class: 'vxe-table-export--panel-option-row'
|
|
475
|
+
}, [
|
|
476
|
+
VxeUICheckboxComponent
|
|
477
|
+
? h(VxeUICheckboxComponent, {
|
|
478
|
+
modelValue: defaultOptions.isFooter,
|
|
479
|
+
disabled: !storeData.hasFooter,
|
|
480
|
+
title: getI18n('vxe.export.expFooterTitle'),
|
|
481
|
+
content: getI18n('vxe.export.expOptFooter'),
|
|
482
|
+
'onUpdate:modelValue' (value: any) {
|
|
483
|
+
defaultOptions.isFooter = value
|
|
484
|
+
}
|
|
485
|
+
})
|
|
486
|
+
: createCommentVNode()
|
|
475
487
|
])
|
|
476
488
|
])
|
|
477
489
|
])
|
|
@@ -328,7 +328,7 @@ hooks.add('tableExportModule', {
|
|
|
328
328
|
function getHeaderTitle (opts: any, column: any) {
|
|
329
329
|
const columnOpts = computeColumnOpts.value
|
|
330
330
|
const headExportMethod = column.headerExportMethod || columnOpts.headerExportMethod
|
|
331
|
-
return headExportMethod ? headExportMethod({ column, options: opts, $table: $xeTable }) : ((opts.
|
|
331
|
+
return headExportMethod ? headExportMethod({ column, options: opts, $table: $xeTable }) : ((opts.isTitle ? column.getTitle() : column.field) || '')
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
const toBooleanValue = (cellValue: any) => {
|
|
@@ -1026,6 +1026,7 @@ hooks.add('tableExportModule', {
|
|
|
1026
1026
|
const defOpts = Object.assign({
|
|
1027
1027
|
message: true,
|
|
1028
1028
|
isHeader: showHeader,
|
|
1029
|
+
isTitle: showHeader,
|
|
1029
1030
|
isFooter: showFooter,
|
|
1030
1031
|
isColgroup: isGroup,
|
|
1031
1032
|
isMerge: hasMerge,
|
|
@@ -1146,6 +1147,7 @@ hooks.add('tableExportModule', {
|
|
|
1146
1147
|
const opts = Object.assign({
|
|
1147
1148
|
message: true,
|
|
1148
1149
|
isHeader: showHeader,
|
|
1150
|
+
isTitle: showHeader,
|
|
1149
1151
|
isFooter: showFooter,
|
|
1150
1152
|
isColgroup: isGroup,
|
|
1151
1153
|
isMerge: hasMerge,
|
|
@@ -455,27 +455,42 @@ hooks.add('tableKeyboardModule', {
|
|
|
455
455
|
moveArrowSelected (args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt) {
|
|
456
456
|
const { highlightCurrentRow, highlightCurrentColumn } = props
|
|
457
457
|
const rowOpts = computeRowOpts.value
|
|
458
|
+
const currentRowOpts = computeCurrentRowOpts.value
|
|
458
459
|
const columnOpts = computeColumnOpts.value
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
if (
|
|
462
|
-
|
|
460
|
+
const currentColumnOpts = computeCurrentColumnOpts.value
|
|
461
|
+
const params = handleMoveSelected(evnt, args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow)
|
|
462
|
+
if (rowOpts.isCurrent || highlightCurrentRow) {
|
|
463
|
+
if (currentRowOpts.isFollowSelected) {
|
|
464
|
+
$xeTable.triggerCurrentRowEvent(evnt, params)
|
|
465
|
+
} else {
|
|
466
|
+
// 当前行按键上下移动
|
|
467
|
+
if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
|
|
468
|
+
$xeTable.moveCurrentRow(isUpArrow, isDwArrow, evnt)
|
|
469
|
+
}
|
|
470
|
+
}
|
|
463
471
|
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
472
|
+
if (columnOpts.isCurrent || highlightCurrentColumn) {
|
|
473
|
+
if (currentColumnOpts.isFollowSelected) {
|
|
474
|
+
$xeTable.triggerCurrentColumnEvent(evnt, params)
|
|
475
|
+
} else {
|
|
476
|
+
// 当前行按键左右移动
|
|
477
|
+
if ((isLeftArrow || isRightArrow) && (columnOpts.isCurrent || highlightCurrentColumn)) {
|
|
478
|
+
$xeTable.moveCurrentColumn(isLeftArrow, isRightArrow, evnt)
|
|
479
|
+
}
|
|
480
|
+
}
|
|
467
481
|
}
|
|
468
482
|
},
|
|
469
483
|
moveEnterSelected (args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt) {
|
|
484
|
+
const { highlightCurrentRow, highlightCurrentColumn } = props
|
|
470
485
|
const rowOpts = computeRowOpts.value
|
|
471
486
|
const currentRowOpts = computeCurrentRowOpts.value
|
|
472
487
|
const columnOpts = computeColumnOpts.value
|
|
473
488
|
const currentColumnOpts = computeCurrentColumnOpts.value
|
|
474
489
|
const params = handleMoveSelected(evnt, args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow)
|
|
475
|
-
if ((rowOpts.isCurrent && currentRowOpts.isFollowSelected)) {
|
|
490
|
+
if (((rowOpts.isCurrent || highlightCurrentRow) && currentRowOpts.isFollowSelected)) {
|
|
476
491
|
$xeTable.triggerCurrentRowEvent(evnt, params)
|
|
477
492
|
}
|
|
478
|
-
if (columnOpts.isCurrent && currentColumnOpts.isFollowSelected) {
|
|
493
|
+
if ((columnOpts.isCurrent || highlightCurrentColumn) && currentColumnOpts.isFollowSelected) {
|
|
479
494
|
$xeTable.triggerCurrentColumnEvent(evnt, params)
|
|
480
495
|
}
|
|
481
496
|
},
|
|
@@ -241,6 +241,7 @@ export default defineComponent({
|
|
|
241
241
|
original: false,
|
|
242
242
|
message: true,
|
|
243
243
|
isHeader: false,
|
|
244
|
+
isTitle: false,
|
|
244
245
|
isFooter: false
|
|
245
246
|
},
|
|
246
247
|
|
|
@@ -886,6 +887,7 @@ export default defineComponent({
|
|
|
886
887
|
computeBodyMenu,
|
|
887
888
|
computeFooterMenu,
|
|
888
889
|
computeIsMenu,
|
|
890
|
+
computeMenuList,
|
|
889
891
|
computeMenuOpts,
|
|
890
892
|
computeExportOpts,
|
|
891
893
|
computeImportOpts,
|
|
@@ -1316,6 +1318,7 @@ export default defineComponent({
|
|
|
1316
1318
|
const expandOpts = computeExpandOpts.value
|
|
1317
1319
|
const columnOpts = computeColumnOpts.value
|
|
1318
1320
|
const columnDragOpts = computeColumnDragOpts.value
|
|
1321
|
+
const virtualYOpts = computeVirtualYOpts.value
|
|
1319
1322
|
const { isCrossDrag, isSelfToChildDrag } = columnDragOpts
|
|
1320
1323
|
const customOpts = computeCustomOpts.value
|
|
1321
1324
|
const { storage } = customOpts
|
|
@@ -1348,39 +1351,33 @@ export default defineComponent({
|
|
|
1348
1351
|
htmlColumn = column
|
|
1349
1352
|
}
|
|
1350
1353
|
if (treeNode) {
|
|
1351
|
-
if (
|
|
1352
|
-
|
|
1353
|
-
warnLog('vxe.error.colRepet', ['tree-node', treeNode])
|
|
1354
|
-
}
|
|
1354
|
+
if (treeNodeColumn) {
|
|
1355
|
+
warnLog('vxe.error.colRepet', ['tree-node', treeNode])
|
|
1355
1356
|
}
|
|
1356
1357
|
if (!treeNodeColumn) {
|
|
1357
1358
|
treeNodeColumn = column
|
|
1358
1359
|
}
|
|
1359
1360
|
} else if (type === 'expand') {
|
|
1360
|
-
if (
|
|
1361
|
-
|
|
1362
|
-
warnLog('vxe.error.colRepet', ['type', type])
|
|
1363
|
-
}
|
|
1361
|
+
if (expandColumn) {
|
|
1362
|
+
warnLog('vxe.error.colRepet', ['type', type])
|
|
1364
1363
|
}
|
|
1365
1364
|
if (!expandColumn) {
|
|
1366
1365
|
expandColumn = column
|
|
1367
1366
|
}
|
|
1368
1367
|
}
|
|
1369
|
-
if (
|
|
1370
|
-
if (
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
radioColumn = column
|
|
1383
|
-
}
|
|
1368
|
+
if (type === 'checkbox') {
|
|
1369
|
+
if (checkboxColumn) {
|
|
1370
|
+
warnLog('vxe.error.colRepet', ['type', type])
|
|
1371
|
+
}
|
|
1372
|
+
if (!checkboxColumn) {
|
|
1373
|
+
checkboxColumn = column
|
|
1374
|
+
}
|
|
1375
|
+
} else if (type === 'radio') {
|
|
1376
|
+
if (radioColumn) {
|
|
1377
|
+
warnLog('vxe.error.colRepet', ['type', type])
|
|
1378
|
+
}
|
|
1379
|
+
if (!radioColumn) {
|
|
1380
|
+
radioColumn = column
|
|
1384
1381
|
}
|
|
1385
1382
|
}
|
|
1386
1383
|
if (isAllOverflow && column.showOverflow === false) {
|
|
@@ -1400,6 +1397,9 @@ export default defineComponent({
|
|
|
1400
1397
|
tableFullColumn.forEach(handleFunc)
|
|
1401
1398
|
}
|
|
1402
1399
|
|
|
1400
|
+
if (expandColumn && expandOpts.mode !== 'fixed' && virtualYOpts.enabled) {
|
|
1401
|
+
warnLog('vxe.error.notConflictProp', ['column.type="expand', 'virtual-y-config.enabled=false'])
|
|
1402
|
+
}
|
|
1403
1403
|
if ((expandColumn && expandOpts.mode !== 'fixed') && mouseOpts.area) {
|
|
1404
1404
|
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
|
|
1405
1405
|
}
|
|
@@ -2746,6 +2746,7 @@ export default defineComponent({
|
|
|
2746
2746
|
const { scrollYLoad: oldScrollYLoad } = reactData
|
|
2747
2747
|
const { scrollYStore, scrollXStore, lastScrollLeft, lastScrollTop } = internalData
|
|
2748
2748
|
const treeOpts = computeTreeOpts.value
|
|
2749
|
+
const expandOpts = computeExpandOpts.value
|
|
2749
2750
|
const { transform } = treeOpts
|
|
2750
2751
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
2751
2752
|
let treeData = []
|
|
@@ -2832,6 +2833,9 @@ export default defineComponent({
|
|
|
2832
2833
|
}
|
|
2833
2834
|
|
|
2834
2835
|
if (sYLoad) {
|
|
2836
|
+
if (reactData.expandColumn && expandOpts.mode !== 'fixed') {
|
|
2837
|
+
errLog('vxe.error.notConflictProp', ['column.type="expand', 'expand-config.mode="fixed"'])
|
|
2838
|
+
}
|
|
2835
2839
|
// if (showOverflow) {
|
|
2836
2840
|
// if (!rowOpts.height) {
|
|
2837
2841
|
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
@@ -4241,6 +4245,7 @@ export default defineComponent({
|
|
|
4241
4245
|
*/
|
|
4242
4246
|
getCheckboxRecords (isFull) {
|
|
4243
4247
|
const { treeConfig } = props
|
|
4248
|
+
const { updateCheckboxFlag } = reactData
|
|
4244
4249
|
const { tableFullData, afterFullData, afterTreeFullData, tableFullTreeData, fullDataRowIdData, afterFullRowMaps, selectCheckboxMaps } = internalData
|
|
4245
4250
|
const treeOpts = computeTreeOpts.value
|
|
4246
4251
|
const checkboxOpts = computeCheckboxOpts.value
|
|
@@ -4248,26 +4253,28 @@ export default defineComponent({
|
|
|
4248
4253
|
const { checkField } = checkboxOpts
|
|
4249
4254
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
4250
4255
|
let rowList: any[] = []
|
|
4251
|
-
if (
|
|
4252
|
-
if (
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
const currTableData = isFull ? tableFullData : afterFullData
|
|
4257
|
-
rowList = currTableData.filter((row) => XEUtils.get(row, checkField))
|
|
4258
|
-
}
|
|
4259
|
-
} else {
|
|
4260
|
-
XEUtils.each(selectCheckboxMaps, (row, rowid) => {
|
|
4261
|
-
if (isFull) {
|
|
4262
|
-
if (fullDataRowIdData[rowid]) {
|
|
4263
|
-
rowList.push(fullDataRowIdData[rowid].row)
|
|
4264
|
-
}
|
|
4256
|
+
if (updateCheckboxFlag) {
|
|
4257
|
+
if (checkField) {
|
|
4258
|
+
if (treeConfig) {
|
|
4259
|
+
const currTableData = isFull ? (transform ? tableFullTreeData : tableFullData) : (transform ? afterTreeFullData : afterFullData)
|
|
4260
|
+
rowList = XEUtils.filterTree(currTableData, row => XEUtils.get(row, checkField), { children: transform ? mapChildrenField : childrenField })
|
|
4265
4261
|
} else {
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
}
|
|
4262
|
+
const currTableData = isFull ? tableFullData : afterFullData
|
|
4263
|
+
rowList = currTableData.filter((row) => XEUtils.get(row, checkField))
|
|
4269
4264
|
}
|
|
4270
|
-
}
|
|
4265
|
+
} else {
|
|
4266
|
+
XEUtils.each(selectCheckboxMaps, (row, rowid) => {
|
|
4267
|
+
if (isFull) {
|
|
4268
|
+
if (fullDataRowIdData[rowid]) {
|
|
4269
|
+
rowList.push(fullDataRowIdData[rowid].row)
|
|
4270
|
+
}
|
|
4271
|
+
} else {
|
|
4272
|
+
if (afterFullRowMaps[rowid]) {
|
|
4273
|
+
rowList.push(afterFullRowMaps[rowid])
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4276
|
+
})
|
|
4277
|
+
}
|
|
4271
4278
|
}
|
|
4272
4279
|
return rowList
|
|
4273
4280
|
},
|
|
@@ -10439,7 +10446,7 @@ export default defineComponent({
|
|
|
10439
10446
|
}
|
|
10440
10447
|
|
|
10441
10448
|
nextTick(() => {
|
|
10442
|
-
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props
|
|
10449
|
+
const { data, exportConfig, importConfig, treeConfig, showOverflow, highlightCurrentRow, highlightCurrentColumn } = props
|
|
10443
10450
|
const { scrollXStore, scrollYStore } = internalData
|
|
10444
10451
|
const editOpts = computeEditOpts.value
|
|
10445
10452
|
const treeOpts = computeTreeOpts.value
|
|
@@ -10451,6 +10458,11 @@ export default defineComponent({
|
|
|
10451
10458
|
const mouseOpts = computeMouseOpts.value
|
|
10452
10459
|
const exportOpts = computeExportOpts.value
|
|
10453
10460
|
const importOpts = computeImportOpts.value
|
|
10461
|
+
const currentRowOpts = computeCurrentRowOpts.value
|
|
10462
|
+
const currentColumnOpts = computeCurrentColumnOpts.value
|
|
10463
|
+
const virtualXOpts = computeVirtualXOpts.value
|
|
10464
|
+
const virtualYOpts = computeVirtualYOpts.value
|
|
10465
|
+
const keyboardOpts = computeKeyboardOpts.value
|
|
10454
10466
|
|
|
10455
10467
|
if (props.rowId) {
|
|
10456
10468
|
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField'])
|
|
@@ -10491,6 +10503,12 @@ export default defineComponent({
|
|
|
10491
10503
|
if (props.highlightHoverColumn) {
|
|
10492
10504
|
warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
10493
10505
|
}
|
|
10506
|
+
// if (props.scrollY) {
|
|
10507
|
+
// warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
|
|
10508
|
+
// }
|
|
10509
|
+
// if (props.scrollX) {
|
|
10510
|
+
// warnLog('vxe.error.delProp', ['scroll-x', 'virtual-x-config'])
|
|
10511
|
+
// }
|
|
10494
10512
|
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
10495
10513
|
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(XEUtils.keys(importOpts._typeMaps), importOpts.types)) {
|
|
10496
10514
|
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(',')])
|
|
@@ -10553,6 +10571,28 @@ export default defineComponent({
|
|
|
10553
10571
|
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
|
|
10554
10572
|
}
|
|
10555
10573
|
|
|
10574
|
+
if ((rowOpts.isCurrent || highlightCurrentRow) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentRowOpts.isFollowSelected)) {
|
|
10575
|
+
warnLog('vxe.error.notConflictProp', ['row-config.isCurrent', 'current-row-config.isFollowSelected'])
|
|
10576
|
+
}
|
|
10577
|
+
if ((columnOpts.isCurrent || highlightCurrentColumn) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentColumnOpts.isFollowSelected)) {
|
|
10578
|
+
warnLog('vxe.error.notConflictProp', ['column-config.isCurrent', 'current-column-config.isFollowSelected'])
|
|
10579
|
+
}
|
|
10580
|
+
|
|
10581
|
+
// 如果不支持虚拟滚动
|
|
10582
|
+
if (props.spanMethod) {
|
|
10583
|
+
if (virtualXOpts.enabled) {
|
|
10584
|
+
warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-x-config.enabled=false'])
|
|
10585
|
+
}
|
|
10586
|
+
if (virtualYOpts.enabled) {
|
|
10587
|
+
warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-y-config.enabled=false'])
|
|
10588
|
+
}
|
|
10589
|
+
}
|
|
10590
|
+
if (props.footerSpanMethod) {
|
|
10591
|
+
if (virtualXOpts.enabled) {
|
|
10592
|
+
warnLog('vxe.error.notConflictProp', ['footer-span-method', 'virtual-x-config.enabled=false'])
|
|
10593
|
+
}
|
|
10594
|
+
}
|
|
10595
|
+
|
|
10556
10596
|
// 检查是否有安装需要的模块
|
|
10557
10597
|
if (props.editConfig && !$xeTable.insert) {
|
|
10558
10598
|
errLog('vxe.error.reqModule', ['Edit'])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|