vxe-table 3.15.18 → 3.15.20
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 +1 -1
- package/es/locale/lang/de-DE.js +1 -1
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/es-ES.js +1 -1
- package/es/locale/lang/fr-FR.js +1 -1
- package/es/locale/lang/hu-HU.js +1 -1
- package/es/locale/lang/hy-AM.js +1 -1
- package/es/locale/lang/id-ID.js +1 -1
- package/es/locale/lang/it-IT.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/ko-KR.js +1 -1
- package/es/locale/lang/ms-MY.js +1 -1
- package/es/locale/lang/nb-NO.js +1 -1
- package/es/locale/lang/pt-BR.js +1 -1
- package/es/locale/lang/ru-RU.js +1 -1
- package/es/locale/lang/th-TH.js +1 -1
- package/es/locale/lang/ug-CN.js +1 -1
- package/es/locale/lang/uk-UA.js +1 -1
- package/es/locale/lang/uz-UZ.js +1 -1
- package/es/locale/lang/vi-VN.js +1 -1
- package/es/locale/lang/zh-CHT.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/style.css +1 -1
- package/es/table/render/index.js +27 -21
- package/es/table/src/body.js +2 -1
- package/es/table/src/footer.js +2 -1
- package/es/table/src/header.js +2 -1
- package/es/table/src/methods.js +98 -34
- package/es/table/src/table.js +2 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +153 -69
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +1 -1
- package/lib/locale/lang/en-US.js +1 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -1
- package/lib/locale/lang/es-ES.js +1 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -1
- package/lib/locale/lang/fr-FR.js +1 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -1
- package/lib/locale/lang/hy-AM.js +1 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +1 -1
- package/lib/locale/lang/id-ID.js +1 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +1 -1
- package/lib/locale/lang/it-IT.js +1 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -1
- package/lib/locale/lang/ko-KR.js +1 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -1
- package/lib/locale/lang/ms-MY.js +1 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +1 -1
- package/lib/locale/lang/nb-NO.js +1 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -1
- package/lib/locale/lang/ru-RU.js +1 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -1
- package/lib/locale/lang/th-TH.js +1 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -1
- package/lib/locale/lang/uz-UZ.js +1 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +1 -1
- package/lib/locale/lang/vi-VN.js +1 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +27 -21
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +2 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +2 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +2 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +114 -39
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +2 -2
- 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 +1 -1
- package/packages/locale/lang/ar-EG.ts +1 -1
- package/packages/locale/lang/de-DE.ts +1 -1
- package/packages/locale/lang/en-US.ts +1 -1
- package/packages/locale/lang/es-ES.ts +1 -1
- package/packages/locale/lang/fr-FR.ts +1 -1
- package/packages/locale/lang/hu-HU.ts +1 -1
- package/packages/locale/lang/hy-AM.ts +1 -1
- package/packages/locale/lang/id-ID.ts +1 -1
- package/packages/locale/lang/it-IT.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/ko-KR.ts +1 -1
- package/packages/locale/lang/ms-MY.ts +1 -1
- package/packages/locale/lang/nb-NO.ts +1 -1
- package/packages/locale/lang/pt-BR.ts +1 -1
- package/packages/locale/lang/ru-RU.ts +1 -1
- package/packages/locale/lang/th-TH.ts +1 -1
- package/packages/locale/lang/ug-CN.ts +1 -1
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +1 -1
- package/packages/locale/lang/vi-VN.ts +1 -1
- package/packages/locale/lang/zh-CHT.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/table/render/index.ts +26 -20
- package/packages/table/src/body.ts +2 -1
- package/packages/table/src/footer.ts +2 -1
- package/packages/table/src/header.ts +2 -1
- package/packages/table/src/methods.ts +111 -37
- package/packages/table/src/table.ts +2 -2
- /package/es/{iconfont.1746578838891.ttf → iconfont.1746750963305.ttf} +0 -0
- /package/es/{iconfont.1746578838891.woff → iconfont.1746750963305.woff} +0 -0
- /package/es/{iconfont.1746578838891.woff2 → iconfont.1746750963305.woff2} +0 -0
- /package/lib/{iconfont.1746578838891.ttf → iconfont.1746750963305.ttf} +0 -0
- /package/lib/{iconfont.1746578838891.woff → iconfont.1746750963305.woff} +0 -0
- /package/lib/{iconfont.1746578838891.woff2 → iconfont.1746750963305.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.15.
|
|
2223
|
+
const version = "3.15.20";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2858,7 +2858,7 @@ function isNodeElement(elem) {
|
|
|
2858
2858
|
const {
|
|
2859
2859
|
log: log_log
|
|
2860
2860
|
} = core_.VxeUI;
|
|
2861
|
-
const log_version = `table v${"3.15.
|
|
2861
|
+
const log_version = `table v${"3.15.20"}`;
|
|
2862
2862
|
const warnLog = log_log.create('warn', log_version);
|
|
2863
2863
|
const errLog = log_log.create('error', log_version);
|
|
2864
2864
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -7488,7 +7488,8 @@ const handleFooterMerge = ($xeTable, merges) => {
|
|
|
7488
7488
|
} = reactData;
|
|
7489
7489
|
const {
|
|
7490
7490
|
mergeFooterList,
|
|
7491
|
-
mergeFooterMaps
|
|
7491
|
+
mergeFooterMaps,
|
|
7492
|
+
fullColumnIdData
|
|
7492
7493
|
} = internalData;
|
|
7493
7494
|
if (merges) {
|
|
7494
7495
|
const {
|
|
@@ -7508,6 +7509,12 @@ const handleFooterMerge = ($xeTable, merges) => {
|
|
|
7508
7509
|
let mergeColumnIndex = -1;
|
|
7509
7510
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(margeCol)) {
|
|
7510
7511
|
mergeColumnIndex = margeCol;
|
|
7512
|
+
} else {
|
|
7513
|
+
const colid = margeCol ? margeCol.id : null;
|
|
7514
|
+
const colRest = colid ? fullColumnIdData[colid] : null;
|
|
7515
|
+
if (colRest) {
|
|
7516
|
+
mergeColumnIndex = colRest._index;
|
|
7517
|
+
}
|
|
7511
7518
|
}
|
|
7512
7519
|
if (mergeRowIndex > -1 && mergeColumnIndex > -1 && (rowspan || colspan)) {
|
|
7513
7520
|
rowspan = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(rowspan) || 1;
|
|
@@ -7540,36 +7547,92 @@ const handleFooterMerge = ($xeTable, merges) => {
|
|
|
7540
7547
|
});
|
|
7541
7548
|
}
|
|
7542
7549
|
};
|
|
7543
|
-
function
|
|
7544
|
-
// const props = $xeTable
|
|
7550
|
+
function removeBodyMerges($xeTable, merges) {
|
|
7545
7551
|
const internalData = $xeTable;
|
|
7552
|
+
const {
|
|
7553
|
+
mergeBodyList,
|
|
7554
|
+
fullColumnIdData,
|
|
7555
|
+
fullAllDataRowIdData
|
|
7556
|
+
} = internalData;
|
|
7546
7557
|
const rest = [];
|
|
7547
7558
|
if (merges) {
|
|
7548
|
-
// const { treeConfig } = props
|
|
7549
7559
|
const {
|
|
7550
|
-
|
|
7551
|
-
} =
|
|
7560
|
+
handleGetRowId
|
|
7561
|
+
} = createHandleGetRowId($xeTable);
|
|
7552
7562
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(merges)) {
|
|
7553
7563
|
merges = [merges];
|
|
7554
7564
|
}
|
|
7555
|
-
// if (treeConfig && merges.length) {
|
|
7556
|
-
// errLog('vxe.error.noTree', ['merge-cells | merge-footer-items'])
|
|
7557
|
-
// }
|
|
7558
7565
|
merges.forEach(item => {
|
|
7559
|
-
|
|
7560
|
-
row,
|
|
7561
|
-
col
|
|
7566
|
+
const {
|
|
7567
|
+
row: margeRow,
|
|
7568
|
+
col: margeCol
|
|
7562
7569
|
} = item;
|
|
7563
|
-
|
|
7564
|
-
|
|
7570
|
+
let mergeRowIndex = -1;
|
|
7571
|
+
let mergeColumnIndex = -1;
|
|
7572
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(margeRow)) {
|
|
7573
|
+
mergeRowIndex = margeRow;
|
|
7574
|
+
} else {
|
|
7575
|
+
const rowid = margeRow ? handleGetRowId(margeRow) : null;
|
|
7576
|
+
const rowRest = rowid ? fullAllDataRowIdData[rowid] : null;
|
|
7577
|
+
if (rowRest) {
|
|
7578
|
+
mergeRowIndex = rowRest._index;
|
|
7579
|
+
}
|
|
7565
7580
|
}
|
|
7566
|
-
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(
|
|
7567
|
-
|
|
7581
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(margeCol)) {
|
|
7582
|
+
mergeColumnIndex = margeCol;
|
|
7583
|
+
} else {
|
|
7584
|
+
const colid = margeCol ? margeCol.id : null;
|
|
7585
|
+
const colRest = colid ? fullColumnIdData[colid] : null;
|
|
7586
|
+
if (colRest) {
|
|
7587
|
+
mergeColumnIndex = colRest._index;
|
|
7588
|
+
}
|
|
7568
7589
|
}
|
|
7569
|
-
const mcIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(
|
|
7590
|
+
const mcIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(mergeBodyList, item => item.row === mergeRowIndex && item.col === mergeColumnIndex);
|
|
7570
7591
|
if (mcIndex > -1) {
|
|
7571
|
-
const rItems =
|
|
7572
|
-
|
|
7592
|
+
const rItems = mergeBodyList.splice(mcIndex, 1);
|
|
7593
|
+
const item = rItems[0];
|
|
7594
|
+
if (item) {
|
|
7595
|
+
rest.push(rItems[0]);
|
|
7596
|
+
}
|
|
7597
|
+
}
|
|
7598
|
+
});
|
|
7599
|
+
}
|
|
7600
|
+
return rest;
|
|
7601
|
+
}
|
|
7602
|
+
function removeFooterMerges($xeTable, merges) {
|
|
7603
|
+
const internalData = $xeTable;
|
|
7604
|
+
const {
|
|
7605
|
+
mergeFooterList,
|
|
7606
|
+
fullColumnIdData
|
|
7607
|
+
} = internalData;
|
|
7608
|
+
const rest = [];
|
|
7609
|
+
if (merges) {
|
|
7610
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(merges)) {
|
|
7611
|
+
merges = [merges];
|
|
7612
|
+
}
|
|
7613
|
+
merges.forEach(item => {
|
|
7614
|
+
const {
|
|
7615
|
+
row: margeRow,
|
|
7616
|
+
col: margeCol
|
|
7617
|
+
} = item;
|
|
7618
|
+
const mergeRowIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(margeRow) ? margeRow : -1;
|
|
7619
|
+
let mergeColumnIndex = -1;
|
|
7620
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(margeCol)) {
|
|
7621
|
+
mergeColumnIndex = margeCol;
|
|
7622
|
+
} else {
|
|
7623
|
+
const colid = margeCol ? margeCol.id : null;
|
|
7624
|
+
const colRest = colid ? fullColumnIdData[colid] : null;
|
|
7625
|
+
if (colRest) {
|
|
7626
|
+
mergeColumnIndex = colRest._index;
|
|
7627
|
+
}
|
|
7628
|
+
}
|
|
7629
|
+
const mcIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(mergeFooterList, item => item.row === mergeRowIndex && item.col === mergeColumnIndex);
|
|
7630
|
+
if (mcIndex > -1) {
|
|
7631
|
+
const rItems = mergeFooterList.splice(mcIndex, 1);
|
|
7632
|
+
const item = rItems[0];
|
|
7633
|
+
if (item) {
|
|
7634
|
+
rest.push(item);
|
|
7635
|
+
}
|
|
7573
7636
|
}
|
|
7574
7637
|
});
|
|
7575
7638
|
}
|
|
@@ -13307,29 +13370,35 @@ const Methods = {
|
|
|
13307
13370
|
} = params;
|
|
13308
13371
|
const radioOpts = $xeTable.computeRadioOpts;
|
|
13309
13372
|
const {
|
|
13310
|
-
trigger
|
|
13373
|
+
trigger,
|
|
13374
|
+
checkMethod
|
|
13311
13375
|
} = radioOpts;
|
|
13312
13376
|
if (trigger === 'manual') {
|
|
13313
13377
|
return;
|
|
13314
13378
|
}
|
|
13315
13379
|
evnt.stopPropagation();
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
isChange = oldValue
|
|
13380
|
+
if (!checkMethod || checkMethod({
|
|
13381
|
+
$table: $xeTable,
|
|
13382
|
+
row
|
|
13383
|
+
})) {
|
|
13384
|
+
let newValue = row;
|
|
13385
|
+
let isChange = oldValue !== newValue;
|
|
13322
13386
|
if (isChange) {
|
|
13323
|
-
newValue
|
|
13324
|
-
|
|
13387
|
+
handleCheckedRadioRow($xeTable, newValue);
|
|
13388
|
+
} else if (!radioOpts.strict) {
|
|
13389
|
+
isChange = oldValue === newValue;
|
|
13390
|
+
if (isChange) {
|
|
13391
|
+
newValue = null;
|
|
13392
|
+
$xeTable.clearRadioRow();
|
|
13393
|
+
}
|
|
13394
|
+
}
|
|
13395
|
+
if (isChange) {
|
|
13396
|
+
$xeTable.dispatchEvent('radio-change', {
|
|
13397
|
+
oldValue,
|
|
13398
|
+
newValue,
|
|
13399
|
+
...params
|
|
13400
|
+
}, evnt);
|
|
13325
13401
|
}
|
|
13326
|
-
}
|
|
13327
|
-
if (isChange) {
|
|
13328
|
-
$xeTable.dispatchEvent('radio-change', {
|
|
13329
|
-
oldValue,
|
|
13330
|
-
newValue,
|
|
13331
|
-
...params
|
|
13332
|
-
}, evnt);
|
|
13333
13402
|
}
|
|
13334
13403
|
},
|
|
13335
13404
|
triggerCurrentColumnEvent(evnt, params) {
|
|
@@ -15400,7 +15469,9 @@ const Methods = {
|
|
|
15400
15469
|
return rest;
|
|
15401
15470
|
},
|
|
15402
15471
|
/**
|
|
15403
|
-
*
|
|
15472
|
+
* 内部方法、获取树表格状态
|
|
15473
|
+
* @deprecated
|
|
15474
|
+
* @private
|
|
15404
15475
|
*/
|
|
15405
15476
|
getTreeStatus() {
|
|
15406
15477
|
if (this.treeConfig) {
|
|
@@ -16766,11 +16837,11 @@ const Methods = {
|
|
|
16766
16837
|
removeMergeCells(merges) {
|
|
16767
16838
|
const $xeTable = this;
|
|
16768
16839
|
const props = $xeTable;
|
|
16769
|
-
const internalData = $xeTable;
|
|
16770
16840
|
if (props.spanMethod) {
|
|
16771
16841
|
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
16772
16842
|
}
|
|
16773
|
-
const rest =
|
|
16843
|
+
const rest = removeBodyMerges($xeTable, merges);
|
|
16844
|
+
$xeTable.handleUpdateBodyMerge();
|
|
16774
16845
|
return $xeTable.$nextTick().then(() => {
|
|
16775
16846
|
$xeTable.updateCellAreas();
|
|
16776
16847
|
updateStyle($xeTable);
|
|
@@ -16790,10 +16861,12 @@ const Methods = {
|
|
|
16790
16861
|
*/
|
|
16791
16862
|
clearMergeCells() {
|
|
16792
16863
|
const $xeTable = this;
|
|
16864
|
+
const reactData = $xeTable;
|
|
16793
16865
|
const internalData = $xeTable;
|
|
16794
16866
|
internalData.mergeBodyList = [];
|
|
16795
16867
|
internalData.mergeBodyMaps = {};
|
|
16796
16868
|
internalData.mergeBodyCellMaps = {};
|
|
16869
|
+
reactData.mergeBodyFlag++;
|
|
16797
16870
|
return $xeTable.$nextTick().then(() => {
|
|
16798
16871
|
return updateStyle($xeTable);
|
|
16799
16872
|
});
|
|
@@ -16814,11 +16887,11 @@ const Methods = {
|
|
|
16814
16887
|
removeMergeFooterItems(merges) {
|
|
16815
16888
|
const $xeTable = this;
|
|
16816
16889
|
const props = $xeTable;
|
|
16817
|
-
const internalData = $xeTable;
|
|
16818
16890
|
if (props.footerSpanMethod) {
|
|
16819
16891
|
errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
16820
16892
|
}
|
|
16821
|
-
const rest =
|
|
16893
|
+
const rest = removeFooterMerges($xeTable, merges);
|
|
16894
|
+
$xeTable.handleUpdateFooterMerge();
|
|
16822
16895
|
return $xeTable.$nextTick().then(() => {
|
|
16823
16896
|
$xeTable.updateCellAreas();
|
|
16824
16897
|
updateStyle($xeTable);
|
|
@@ -16838,10 +16911,12 @@ const Methods = {
|
|
|
16838
16911
|
*/
|
|
16839
16912
|
clearMergeFooterItems() {
|
|
16840
16913
|
const $xeTable = this;
|
|
16914
|
+
const reactData = $xeTable;
|
|
16841
16915
|
const internalData = $xeTable;
|
|
16842
16916
|
internalData.mergeFooterList = [];
|
|
16843
16917
|
internalData.mergeFooterMaps = {};
|
|
16844
16918
|
internalData.mergeFooterCellMaps = {};
|
|
16919
|
+
reactData.mergeFootFlag++;
|
|
16845
16920
|
return $xeTable.$nextTick().then(() => {
|
|
16846
16921
|
return updateStyle($xeTable);
|
|
16847
16922
|
});
|
|
@@ -17880,7 +17955,8 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
17880
17955
|
xid: xID,
|
|
17881
17956
|
cellspacing: 0,
|
|
17882
17957
|
cellpadding: 0,
|
|
17883
|
-
border: 0
|
|
17958
|
+
border: 0,
|
|
17959
|
+
xvm: isOptimizeMode ? '1' : null
|
|
17884
17960
|
}
|
|
17885
17961
|
}, [
|
|
17886
17962
|
/**
|
|
@@ -18355,7 +18431,8 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
|
|
|
18355
18431
|
xid: xID,
|
|
18356
18432
|
cellspacing: 0,
|
|
18357
18433
|
cellpadding: 0,
|
|
18358
|
-
border: 0
|
|
18434
|
+
border: 0,
|
|
18435
|
+
xvm: isOptimizeMode ? '1' : null
|
|
18359
18436
|
}
|
|
18360
18437
|
}, [
|
|
18361
18438
|
/**
|
|
@@ -18829,7 +18906,8 @@ function footer_renderHeads(h, _vm, isOptimizeMode, renderColumnList) {
|
|
|
18829
18906
|
xid: xID,
|
|
18830
18907
|
cellspacing: 0,
|
|
18831
18908
|
cellpadding: 0,
|
|
18832
|
-
border: 0
|
|
18909
|
+
border: 0,
|
|
18910
|
+
xvm: isOptimizeMode ? '1' : null
|
|
18833
18911
|
}
|
|
18834
18912
|
}, [
|
|
18835
18913
|
/**
|
|
@@ -28489,8 +28567,8 @@ function renderBody(h, $xeTable) {
|
|
|
28489
28567
|
if (props.editConfig && editOpts.showStatus && !props.keepSource) {
|
|
28490
28568
|
warnLog('vxe.error.reqProp', ['keep-source']);
|
|
28491
28569
|
}
|
|
28492
|
-
if (treeConfig && (treeOpts.showLine || treeOpts.line) &&
|
|
28493
|
-
warnLog('vxe.error.reqProp', ['
|
|
28570
|
+
if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
|
|
28571
|
+
warnLog('vxe.error.reqProp', ['show-overflow']);
|
|
28494
28572
|
}
|
|
28495
28573
|
if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
28496
28574
|
warnLog('vxe.error.noTree', ['stripe']);
|
|
@@ -31889,14 +31967,17 @@ function renderNativeOptgroups(h, renderOpts, params, renderOptionsMethods) {
|
|
|
31889
31967
|
} = renderOpts;
|
|
31890
31968
|
const groupOptions = optionGroupProps.options || 'options';
|
|
31891
31969
|
const groupLabel = optionGroupProps.label || 'label';
|
|
31892
|
-
|
|
31893
|
-
return
|
|
31894
|
-
|
|
31895
|
-
|
|
31896
|
-
|
|
31897
|
-
|
|
31898
|
-
|
|
31899
|
-
|
|
31970
|
+
if (optionGroups) {
|
|
31971
|
+
return optionGroups.map((group, gIndex) => {
|
|
31972
|
+
return h('optgroup', {
|
|
31973
|
+
key: gIndex,
|
|
31974
|
+
attrs: {
|
|
31975
|
+
label: group[groupLabel]
|
|
31976
|
+
}
|
|
31977
|
+
}, renderOptionsMethods(h, group[groupOptions], renderOpts, params));
|
|
31978
|
+
});
|
|
31979
|
+
}
|
|
31980
|
+
return [];
|
|
31900
31981
|
}
|
|
31901
31982
|
/**
|
|
31902
31983
|
* 渲染原生的 option 标签
|
|
@@ -31913,19 +31994,22 @@ function renderNativeOptions(h, options, renderOpts, params) {
|
|
|
31913
31994
|
const valueProp = optionProps.value || 'value';
|
|
31914
31995
|
const disabledProp = optionProps.disabled || 'disabled';
|
|
31915
31996
|
const cellValue = isImmediateCell(renderOpts, params) ? getCellValue(row, column) : column.model.value;
|
|
31916
|
-
|
|
31917
|
-
return
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31926
|
-
|
|
31927
|
-
|
|
31928
|
-
|
|
31997
|
+
if (options) {
|
|
31998
|
+
return options.map((option, oIndex) => {
|
|
31999
|
+
return h('option', {
|
|
32000
|
+
key: oIndex,
|
|
32001
|
+
attrs: {
|
|
32002
|
+
value: option[valueProp],
|
|
32003
|
+
disabled: option[disabledProp]
|
|
32004
|
+
},
|
|
32005
|
+
domProps: {
|
|
32006
|
+
/* eslint-disable eqeqeq */
|
|
32007
|
+
selected: option[valueProp] == cellValue
|
|
32008
|
+
}
|
|
32009
|
+
}, option[labelProp]);
|
|
32010
|
+
});
|
|
32011
|
+
}
|
|
32012
|
+
return [];
|
|
31929
32013
|
}
|
|
31930
32014
|
function nativeFilterRender(h, renderOpts, params) {
|
|
31931
32015
|
const {
|
|
@@ -33048,7 +33132,7 @@ const Toolbar = VxeToolbar;
|
|
|
33048
33132
|
year: 'yyyy'
|
|
33049
33133
|
},
|
|
33050
33134
|
weeks: {
|
|
33051
|
-
w: '
|
|
33135
|
+
w: '',
|
|
33052
33136
|
w0: '周日',
|
|
33053
33137
|
w1: '周一',
|
|
33054
33138
|
w2: '周二',
|