vxe-table 3.15.20 → 3.15.22
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/locale/lang/ar-EG.js +3 -0
- package/es/locale/lang/de-DE.js +3 -0
- package/es/locale/lang/en-US.js +3 -0
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/fr-FR.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/hy-AM.js +3 -0
- package/es/locale/lang/id-ID.js +3 -0
- package/es/locale/lang/it-IT.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/ms-MY.js +3 -0
- package/es/locale/lang/nb-NO.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/th-TH.js +3 -0
- package/es/locale/lang/ug-CN.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/uz-UZ.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/render/index.js +74 -2
- package/es/table/src/methods.js +22 -4
- package/es/table/style.css +6 -2
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +6 -2
- 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 +115 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +3 -0
- package/lib/locale/lang/de-DE.js +3 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +3 -0
- package/lib/locale/lang/en-US.js +3 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -0
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/fr-FR.js +3 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +3 -0
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/hy-AM.js +3 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +3 -0
- package/lib/locale/lang/id-ID.js +3 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +3 -0
- package/lib/locale/lang/it-IT.js +3 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +3 -0
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/ms-MY.js +3 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +3 -0
- package/lib/locale/lang/nb-NO.js +3 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +3 -0
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/th-TH.js +3 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +3 -0
- package/lib/locale/lang/ug-CN.js +3 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +3 -0
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/uz-UZ.js +3 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +3 -0
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -0
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/render/index.js +85 -2
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/methods.js +24 -3
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +6 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +1 -0
- package/lib/toolbar/src/toolbar.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/lib/vxe-table/style/style.css +6 -2
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +3 -0
- package/packages/locale/lang/de-DE.ts +3 -0
- package/packages/locale/lang/en-US.ts +3 -0
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/fr-FR.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/hy-AM.ts +3 -0
- package/packages/locale/lang/id-ID.ts +3 -0
- package/packages/locale/lang/it-IT.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/ms-MY.ts +3 -0
- package/packages/locale/lang/nb-NO.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/th-TH.ts +3 -0
- package/packages/locale/lang/ug-CN.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/uz-UZ.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/render/index.ts +72 -2
- package/packages/table/src/methods.ts +8 -2
- package/packages/toolbar/src/toolbar.ts +1 -1
- package/styles/components/table.scss +4 -0
- /package/es/{iconfont.1746750963305.ttf → iconfont.1746836465256.ttf} +0 -0
- /package/es/{iconfont.1746750963305.woff → iconfont.1746836465256.woff} +0 -0
- /package/es/{iconfont.1746750963305.woff2 → iconfont.1746836465256.woff2} +0 -0
- /package/lib/{iconfont.1746750963305.ttf → iconfont.1746836465256.ttf} +0 -0
- /package/lib/{iconfont.1746750963305.woff → iconfont.1746836465256.woff} +0 -0
- /package/lib/{iconfont.1746750963305.woff2 → iconfont.1746836465256.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.22";
|
|
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.22"}`;
|
|
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
|
|
@@ -5913,6 +5913,7 @@ function updateAfterDataIndex($xeTable) {
|
|
|
5913
5913
|
const {
|
|
5914
5914
|
fullDataRowIdData,
|
|
5915
5915
|
fullAllDataRowIdData,
|
|
5916
|
+
afterFullData,
|
|
5916
5917
|
afterTreeFullData
|
|
5917
5918
|
} = internalData;
|
|
5918
5919
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
@@ -5956,8 +5957,20 @@ function updateAfterDataIndex($xeTable) {
|
|
|
5956
5957
|
}, {
|
|
5957
5958
|
children: transform ? treeOpts.mapChildrenField : childrenField
|
|
5958
5959
|
});
|
|
5960
|
+
if (transform) {
|
|
5961
|
+
afterFullData.forEach((row, index) => {
|
|
5962
|
+
const rowid = handleGetRowId(row);
|
|
5963
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
5964
|
+
const seq = index + 1;
|
|
5965
|
+
if (rowRest) {
|
|
5966
|
+
if (!treeConfig) {
|
|
5967
|
+
rowRest.seq = seq;
|
|
5968
|
+
}
|
|
5969
|
+
rowRest._index = index;
|
|
5970
|
+
}
|
|
5971
|
+
});
|
|
5972
|
+
}
|
|
5959
5973
|
internalData.afterFullRowMaps = fullMaps;
|
|
5960
|
-
updateAfterListIndex($xeTable);
|
|
5961
5974
|
} else {
|
|
5962
5975
|
updateAfterListIndex($xeTable);
|
|
5963
5976
|
}
|
|
@@ -7552,7 +7565,8 @@ function removeBodyMerges($xeTable, merges) {
|
|
|
7552
7565
|
const {
|
|
7553
7566
|
mergeBodyList,
|
|
7554
7567
|
fullColumnIdData,
|
|
7555
|
-
fullAllDataRowIdData
|
|
7568
|
+
fullAllDataRowIdData,
|
|
7569
|
+
mergeBodyMaps
|
|
7556
7570
|
} = internalData;
|
|
7557
7571
|
const rest = [];
|
|
7558
7572
|
if (merges) {
|
|
@@ -7593,6 +7607,9 @@ function removeBodyMerges($xeTable, merges) {
|
|
|
7593
7607
|
const item = rItems[0];
|
|
7594
7608
|
if (item) {
|
|
7595
7609
|
rest.push(rItems[0]);
|
|
7610
|
+
if (mergeBodyMaps[`${mergeRowIndex}:${mergeColumnIndex}`]) {
|
|
7611
|
+
delete mergeBodyMaps[`${mergeRowIndex}:${mergeColumnIndex}`];
|
|
7612
|
+
}
|
|
7596
7613
|
}
|
|
7597
7614
|
}
|
|
7598
7615
|
});
|
|
@@ -7603,7 +7620,8 @@ function removeFooterMerges($xeTable, merges) {
|
|
|
7603
7620
|
const internalData = $xeTable;
|
|
7604
7621
|
const {
|
|
7605
7622
|
mergeFooterList,
|
|
7606
|
-
fullColumnIdData
|
|
7623
|
+
fullColumnIdData,
|
|
7624
|
+
mergeFooterMaps
|
|
7607
7625
|
} = internalData;
|
|
7608
7626
|
const rest = [];
|
|
7609
7627
|
if (merges) {
|
|
@@ -7632,6 +7650,9 @@ function removeFooterMerges($xeTable, merges) {
|
|
|
7632
7650
|
const item = rItems[0];
|
|
7633
7651
|
if (item) {
|
|
7634
7652
|
rest.push(item);
|
|
7653
|
+
if (mergeFooterMaps[`${mergeRowIndex}:${mergeColumnIndex}`]) {
|
|
7654
|
+
delete mergeFooterMaps[`${mergeRowIndex}:${mergeColumnIndex}`];
|
|
7655
|
+
}
|
|
7635
7656
|
}
|
|
7636
7657
|
}
|
|
7637
7658
|
});
|
|
@@ -29447,6 +29468,7 @@ const {
|
|
|
29447
29468
|
const gCommandOpts = toolbar_commands.get(code);
|
|
29448
29469
|
const params = {
|
|
29449
29470
|
code,
|
|
29471
|
+
button: null,
|
|
29450
29472
|
tool: item,
|
|
29451
29473
|
$table: $table,
|
|
29452
29474
|
$grid: $xeGrid,
|
|
@@ -31702,7 +31724,7 @@ const blurEvent = 'blur';
|
|
|
31702
31724
|
* @param modelFunc
|
|
31703
31725
|
* @param changeFunc
|
|
31704
31726
|
*/
|
|
31705
|
-
function getComponentOns(renderOpts, params, eFns) {
|
|
31727
|
+
function getComponentOns(renderOpts, params, eFns, eventOns) {
|
|
31706
31728
|
const {
|
|
31707
31729
|
events
|
|
31708
31730
|
} = renderOpts;
|
|
@@ -31746,7 +31768,7 @@ function getComponentOns(renderOpts, params, eFns) {
|
|
|
31746
31768
|
}
|
|
31747
31769
|
};
|
|
31748
31770
|
}
|
|
31749
|
-
return ons;
|
|
31771
|
+
return eventOns ? Object.assign(ons, eventOns) : ons;
|
|
31750
31772
|
}
|
|
31751
31773
|
function getEditOns(renderOpts, params) {
|
|
31752
31774
|
const {
|
|
@@ -32464,6 +32486,89 @@ render_renderer.mixin({
|
|
|
32464
32486
|
renderTableFilter: defaultFilterRender,
|
|
32465
32487
|
tableFilterDefaultMethod: handleFilterMethod
|
|
32466
32488
|
},
|
|
32489
|
+
VxeDateRangePicker: {
|
|
32490
|
+
tableAutoFocus: 'input',
|
|
32491
|
+
renderTableEdit(h, renderOpts, params) {
|
|
32492
|
+
const {
|
|
32493
|
+
startField,
|
|
32494
|
+
endField
|
|
32495
|
+
} = renderOpts;
|
|
32496
|
+
const {
|
|
32497
|
+
$table,
|
|
32498
|
+
row,
|
|
32499
|
+
column
|
|
32500
|
+
} = params;
|
|
32501
|
+
const {
|
|
32502
|
+
model
|
|
32503
|
+
} = column;
|
|
32504
|
+
const cellValue = getCellValue(row, column);
|
|
32505
|
+
const seProps = {};
|
|
32506
|
+
const seOs = {};
|
|
32507
|
+
if (startField && endField) {
|
|
32508
|
+
seProps.startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, startField);
|
|
32509
|
+
seProps.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, endField);
|
|
32510
|
+
seOs['update:startValue'] = value => {
|
|
32511
|
+
if (startField) {
|
|
32512
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, startField, value);
|
|
32513
|
+
}
|
|
32514
|
+
};
|
|
32515
|
+
seOs['update:endValue'] = value => {
|
|
32516
|
+
if (endField) {
|
|
32517
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, endField, value);
|
|
32518
|
+
}
|
|
32519
|
+
};
|
|
32520
|
+
}
|
|
32521
|
+
return [h(getDefaultComponent(renderOpts), {
|
|
32522
|
+
props: getCellEditProps(renderOpts, params, cellValue, seProps),
|
|
32523
|
+
on: getComponentOns(renderOpts, params, {
|
|
32524
|
+
model(cellValue) {
|
|
32525
|
+
model.update = true;
|
|
32526
|
+
model.value = cellValue;
|
|
32527
|
+
setCellValue(row, column, cellValue);
|
|
32528
|
+
},
|
|
32529
|
+
change() {
|
|
32530
|
+
$table.updateStatus(params);
|
|
32531
|
+
},
|
|
32532
|
+
blur() {
|
|
32533
|
+
$table.handleCellRuleUpdateStatus('blur', params);
|
|
32534
|
+
}
|
|
32535
|
+
}, seOs)
|
|
32536
|
+
})];
|
|
32537
|
+
},
|
|
32538
|
+
renderTableCell(h, renderOpts, params) {
|
|
32539
|
+
const {
|
|
32540
|
+
startField,
|
|
32541
|
+
endField
|
|
32542
|
+
} = renderOpts;
|
|
32543
|
+
const {
|
|
32544
|
+
row,
|
|
32545
|
+
column
|
|
32546
|
+
} = params;
|
|
32547
|
+
let startValue = '';
|
|
32548
|
+
let endValue = '';
|
|
32549
|
+
if (startField && endField) {
|
|
32550
|
+
startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, startField);
|
|
32551
|
+
endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, endField);
|
|
32552
|
+
} else {
|
|
32553
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
32554
|
+
if (cellValue) {
|
|
32555
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(cellValue)) {
|
|
32556
|
+
startValue = cellValue[0];
|
|
32557
|
+
endValue = cellValue[1];
|
|
32558
|
+
} else {
|
|
32559
|
+
const strs = `${cellValue}`.split(',');
|
|
32560
|
+
startValue = strs[0];
|
|
32561
|
+
endValue = strs[1];
|
|
32562
|
+
}
|
|
32563
|
+
}
|
|
32564
|
+
}
|
|
32565
|
+
let cellLabel = '';
|
|
32566
|
+
if (startValue && endValue) {
|
|
32567
|
+
cellLabel = `${startValue} ~ ${endValue}`;
|
|
32568
|
+
}
|
|
32569
|
+
return getCellLabelVNs(h, renderOpts, params, cellLabel);
|
|
32570
|
+
}
|
|
32571
|
+
},
|
|
32467
32572
|
VxeTextarea: {
|
|
32468
32573
|
tableAutoFocus: 'textarea',
|
|
32469
32574
|
renderTableEdit: defaultEditRender
|
|
@@ -33105,6 +33210,9 @@ const Toolbar = VxeToolbar;
|
|
|
33105
33210
|
datePicker: {
|
|
33106
33211
|
yearTitle: '{0} 年'
|
|
33107
33212
|
},
|
|
33213
|
+
dateRangePicker: {
|
|
33214
|
+
pleaseRange: '请选择开始日期与结束日期'
|
|
33215
|
+
},
|
|
33108
33216
|
input: {
|
|
33109
33217
|
date: {
|
|
33110
33218
|
m1: '01 月',
|