vxe-table 4.12.4 → 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 +3 -1
- package/es/locale/lang/de-DE.js +3 -1
- package/es/locale/lang/en-US.js +7 -5
- package/es/locale/lang/es-ES.js +3 -1
- package/es/locale/lang/fr-FR.js +3 -1
- package/es/locale/lang/hu-HU.js +3 -1
- package/es/locale/lang/hy-AM.js +3 -1
- package/es/locale/lang/id-ID.js +3 -1
- package/es/locale/lang/it-IT.js +3 -1
- package/es/locale/lang/ja-JP.js +3 -1
- package/es/locale/lang/ko-KR.js +3 -1
- package/es/locale/lang/nb-NO.js +3 -1
- package/es/locale/lang/pt-BR.js +3 -1
- package/es/locale/lang/ru-RU.js +3 -1
- package/es/locale/lang/th-TH.js +3 -1
- package/es/locale/lang/ug-CN.js +3 -1
- package/es/locale/lang/uk-UA.js +3 -1
- package/es/locale/lang/vi-VN.js +3 -1
- package/es/locale/lang/zh-CHT.js +3 -1
- package/es/locale/lang/zh-CN.js +3 -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/src/table.js +57 -44
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +47 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +3 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +7 -5
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +7 -5
- package/lib/locale/lang/es-ES.js +3 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -1
- package/lib/locale/lang/fr-FR.js +3 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +3 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -1
- package/lib/locale/lang/hy-AM.js +3 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +3 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +3 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +3 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -1
- package/lib/locale/lang/ko-KR.js +3 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -1
- package/lib/locale/lang/nb-NO.js +3 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +3 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -1
- package/lib/locale/lang/ru-RU.js +3 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -1
- package/lib/locale/lang/th-TH.js +3 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +3 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +3 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -1
- package/lib/locale/lang/vi-VN.js +3 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +3 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +3 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -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/src/table.js +60 -45
- 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 +3 -1
- package/packages/locale/lang/de-DE.ts +3 -1
- package/packages/locale/lang/en-US.ts +7 -5
- package/packages/locale/lang/es-ES.ts +3 -1
- package/packages/locale/lang/fr-FR.ts +3 -1
- package/packages/locale/lang/hu-HU.ts +3 -1
- package/packages/locale/lang/hy-AM.ts +3 -1
- package/packages/locale/lang/id-ID.ts +3 -1
- package/packages/locale/lang/it-IT.ts +3 -1
- package/packages/locale/lang/ja-JP.ts +3 -1
- package/packages/locale/lang/ko-KR.ts +3 -1
- package/packages/locale/lang/nb-NO.ts +3 -1
- package/packages/locale/lang/pt-BR.ts +3 -1
- package/packages/locale/lang/ru-RU.ts +3 -1
- package/packages/locale/lang/th-TH.ts +3 -1
- package/packages/locale/lang/ug-CN.ts +3 -1
- package/packages/locale/lang/uk-UA.ts +3 -1
- package/packages/locale/lang/vi-VN.ts +3 -1
- package/packages/locale/lang/zh-CHT.ts +3 -1
- package/packages/locale/lang/zh-CN.ts +3 -1
- package/packages/table/module/export/export-panel.ts +31 -19
- package/packages/table/module/export/hook.ts +3 -1
- package/packages/table/src/table.ts +56 -43
- /package/es/{iconfont.1743394011765.ttf → iconfont.1743479147314.ttf} +0 -0
- /package/es/{iconfont.1743394011765.woff → iconfont.1743479147314.woff} +0 -0
- /package/es/{iconfont.1743394011765.woff2 → iconfont.1743479147314.woff2} +0 -0
- /package/lib/{iconfont.1743394011765.ttf → iconfont.1743479147314.ttf} +0 -0
- /package/lib/{iconfont.1743394011765.woff → iconfont.1743479147314.woff} +0 -0
- /package/lib/{iconfont.1743394011765.woff2 → iconfont.1743479147314.woff2} +0 -0
|
@@ -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
|
|
|
@@ -1317,6 +1318,7 @@ export default defineComponent({
|
|
|
1317
1318
|
const expandOpts = computeExpandOpts.value
|
|
1318
1319
|
const columnOpts = computeColumnOpts.value
|
|
1319
1320
|
const columnDragOpts = computeColumnDragOpts.value
|
|
1321
|
+
const virtualYOpts = computeVirtualYOpts.value
|
|
1320
1322
|
const { isCrossDrag, isSelfToChildDrag } = columnDragOpts
|
|
1321
1323
|
const customOpts = computeCustomOpts.value
|
|
1322
1324
|
const { storage } = customOpts
|
|
@@ -1349,39 +1351,33 @@ export default defineComponent({
|
|
|
1349
1351
|
htmlColumn = column
|
|
1350
1352
|
}
|
|
1351
1353
|
if (treeNode) {
|
|
1352
|
-
if (
|
|
1353
|
-
|
|
1354
|
-
warnLog('vxe.error.colRepet', ['tree-node', treeNode])
|
|
1355
|
-
}
|
|
1354
|
+
if (treeNodeColumn) {
|
|
1355
|
+
warnLog('vxe.error.colRepet', ['tree-node', treeNode])
|
|
1356
1356
|
}
|
|
1357
1357
|
if (!treeNodeColumn) {
|
|
1358
1358
|
treeNodeColumn = column
|
|
1359
1359
|
}
|
|
1360
1360
|
} else if (type === 'expand') {
|
|
1361
|
-
if (
|
|
1362
|
-
|
|
1363
|
-
warnLog('vxe.error.colRepet', ['type', type])
|
|
1364
|
-
}
|
|
1361
|
+
if (expandColumn) {
|
|
1362
|
+
warnLog('vxe.error.colRepet', ['type', type])
|
|
1365
1363
|
}
|
|
1366
1364
|
if (!expandColumn) {
|
|
1367
1365
|
expandColumn = column
|
|
1368
1366
|
}
|
|
1369
1367
|
}
|
|
1370
|
-
if (
|
|
1371
|
-
if (
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
radioColumn = column
|
|
1384
|
-
}
|
|
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
|
|
1385
1381
|
}
|
|
1386
1382
|
}
|
|
1387
1383
|
if (isAllOverflow && column.showOverflow === false) {
|
|
@@ -1401,6 +1397,9 @@ export default defineComponent({
|
|
|
1401
1397
|
tableFullColumn.forEach(handleFunc)
|
|
1402
1398
|
}
|
|
1403
1399
|
|
|
1400
|
+
if (expandColumn && expandOpts.mode !== 'fixed' && virtualYOpts.enabled) {
|
|
1401
|
+
warnLog('vxe.error.notConflictProp', ['column.type="expand', 'virtual-y-config.enabled=false'])
|
|
1402
|
+
}
|
|
1404
1403
|
if ((expandColumn && expandOpts.mode !== 'fixed') && mouseOpts.area) {
|
|
1405
1404
|
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
|
|
1406
1405
|
}
|
|
@@ -2747,6 +2746,7 @@ export default defineComponent({
|
|
|
2747
2746
|
const { scrollYLoad: oldScrollYLoad } = reactData
|
|
2748
2747
|
const { scrollYStore, scrollXStore, lastScrollLeft, lastScrollTop } = internalData
|
|
2749
2748
|
const treeOpts = computeTreeOpts.value
|
|
2749
|
+
const expandOpts = computeExpandOpts.value
|
|
2750
2750
|
const { transform } = treeOpts
|
|
2751
2751
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
2752
2752
|
let treeData = []
|
|
@@ -2833,6 +2833,9 @@ export default defineComponent({
|
|
|
2833
2833
|
}
|
|
2834
2834
|
|
|
2835
2835
|
if (sYLoad) {
|
|
2836
|
+
if (reactData.expandColumn && expandOpts.mode !== 'fixed') {
|
|
2837
|
+
errLog('vxe.error.notConflictProp', ['column.type="expand', 'expand-config.mode="fixed"'])
|
|
2838
|
+
}
|
|
2836
2839
|
// if (showOverflow) {
|
|
2837
2840
|
// if (!rowOpts.height) {
|
|
2838
2841
|
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
@@ -4242,6 +4245,7 @@ export default defineComponent({
|
|
|
4242
4245
|
*/
|
|
4243
4246
|
getCheckboxRecords (isFull) {
|
|
4244
4247
|
const { treeConfig } = props
|
|
4248
|
+
const { updateCheckboxFlag } = reactData
|
|
4245
4249
|
const { tableFullData, afterFullData, afterTreeFullData, tableFullTreeData, fullDataRowIdData, afterFullRowMaps, selectCheckboxMaps } = internalData
|
|
4246
4250
|
const treeOpts = computeTreeOpts.value
|
|
4247
4251
|
const checkboxOpts = computeCheckboxOpts.value
|
|
@@ -4249,26 +4253,28 @@ export default defineComponent({
|
|
|
4249
4253
|
const { checkField } = checkboxOpts
|
|
4250
4254
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
4251
4255
|
let rowList: any[] = []
|
|
4252
|
-
if (
|
|
4253
|
-
if (
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
const currTableData = isFull ? tableFullData : afterFullData
|
|
4258
|
-
rowList = currTableData.filter((row) => XEUtils.get(row, checkField))
|
|
4259
|
-
}
|
|
4260
|
-
} else {
|
|
4261
|
-
XEUtils.each(selectCheckboxMaps, (row, rowid) => {
|
|
4262
|
-
if (isFull) {
|
|
4263
|
-
if (fullDataRowIdData[rowid]) {
|
|
4264
|
-
rowList.push(fullDataRowIdData[rowid].row)
|
|
4265
|
-
}
|
|
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 })
|
|
4266
4261
|
} else {
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
}
|
|
4262
|
+
const currTableData = isFull ? tableFullData : afterFullData
|
|
4263
|
+
rowList = currTableData.filter((row) => XEUtils.get(row, checkField))
|
|
4270
4264
|
}
|
|
4271
|
-
}
|
|
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
|
+
}
|
|
4272
4278
|
}
|
|
4273
4279
|
return rowList
|
|
4274
4280
|
},
|
|
@@ -10456,6 +10462,7 @@ export default defineComponent({
|
|
|
10456
10462
|
const currentColumnOpts = computeCurrentColumnOpts.value
|
|
10457
10463
|
const virtualXOpts = computeVirtualXOpts.value
|
|
10458
10464
|
const virtualYOpts = computeVirtualYOpts.value
|
|
10465
|
+
const keyboardOpts = computeKeyboardOpts.value
|
|
10459
10466
|
|
|
10460
10467
|
if (props.rowId) {
|
|
10461
10468
|
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField'])
|
|
@@ -10496,6 +10503,12 @@ export default defineComponent({
|
|
|
10496
10503
|
if (props.highlightHoverColumn) {
|
|
10497
10504
|
warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
10498
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
|
+
// }
|
|
10499
10512
|
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
10500
10513
|
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(XEUtils.keys(importOpts._typeMaps), importOpts.types)) {
|
|
10501
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(',')])
|
|
@@ -10558,10 +10571,10 @@ export default defineComponent({
|
|
|
10558
10571
|
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
|
|
10559
10572
|
}
|
|
10560
10573
|
|
|
10561
|
-
if ((rowOpts.isCurrent || highlightCurrentRow) && !XEUtils.isBoolean(currentRowOpts.isFollowSelected)) {
|
|
10574
|
+
if ((rowOpts.isCurrent || highlightCurrentRow) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentRowOpts.isFollowSelected)) {
|
|
10562
10575
|
warnLog('vxe.error.notConflictProp', ['row-config.isCurrent', 'current-row-config.isFollowSelected'])
|
|
10563
10576
|
}
|
|
10564
|
-
if ((columnOpts.isCurrent || highlightCurrentColumn) && !XEUtils.isBoolean(currentColumnOpts.isFollowSelected)) {
|
|
10577
|
+
if ((columnOpts.isCurrent || highlightCurrentColumn) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentColumnOpts.isFollowSelected)) {
|
|
10565
10578
|
warnLog('vxe.error.notConflictProp', ['column-config.isCurrent', 'current-column-config.isFollowSelected'])
|
|
10566
10579
|
}
|
|
10567
10580
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|