vxe-table 3.16.3 → 3.16.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/grid/src/grid.js +1 -1
- package/es/index.css +1 -1
- package/es/index.esm.js +1 -2
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +20 -1
- package/es/locale/lang/de-DE.js +20 -1
- package/es/locale/lang/en-US.js +21 -2
- package/es/locale/lang/es-ES.js +20 -1
- package/es/locale/lang/fr-FR.js +20 -1
- package/es/locale/lang/hu-HU.js +20 -1
- package/es/locale/lang/hy-AM.js +19 -0
- package/es/locale/lang/id-ID.js +20 -1
- package/es/locale/lang/it-IT.js +20 -1
- package/es/locale/lang/ja-JP.js +20 -1
- package/es/locale/lang/ko-KR.js +20 -1
- package/es/locale/lang/ms-MY.js +20 -1
- package/es/locale/lang/nb-NO.js +20 -1
- package/es/locale/lang/pt-BR.js +20 -1
- package/es/locale/lang/ru-RU.js +20 -1
- package/es/locale/lang/th-TH.js +20 -1
- package/es/locale/lang/ug-CN.js +20 -1
- package/es/locale/lang/uk-UA.js +20 -1
- package/es/locale/lang/uz-UZ.js +20 -1
- package/es/locale/lang/vi-VN.js +20 -1
- package/es/locale/lang/zh-CHT.js +20 -1
- package/es/locale/lang/zh-CN.js +19 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/columnInfo.js +11 -2
- package/es/table/src/methods.js +15 -6
- package/es/table/style.css +1 -0
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -0
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.common.js +1 -2
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +2310 -934
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +20 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +20 -1
- package/lib/locale/lang/de-DE.js +20 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +20 -1
- package/lib/locale/lang/en-US.js +21 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +21 -2
- package/lib/locale/lang/es-ES.js +20 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +20 -1
- package/lib/locale/lang/fr-FR.js +20 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +20 -1
- package/lib/locale/lang/hu-HU.js +20 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +20 -1
- package/lib/locale/lang/hy-AM.js +19 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +19 -0
- package/lib/locale/lang/id-ID.js +20 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +20 -1
- package/lib/locale/lang/it-IT.js +20 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +20 -1
- package/lib/locale/lang/ja-JP.js +20 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +20 -1
- package/lib/locale/lang/ko-KR.js +20 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +20 -1
- package/lib/locale/lang/ms-MY.js +20 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +20 -1
- package/lib/locale/lang/nb-NO.js +20 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +20 -1
- package/lib/locale/lang/pt-BR.js +20 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +20 -1
- package/lib/locale/lang/ru-RU.js +20 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +20 -1
- package/lib/locale/lang/th-TH.js +20 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +20 -1
- package/lib/locale/lang/ug-CN.js +20 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +20 -1
- package/lib/locale/lang/uk-UA.js +20 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +20 -1
- package/lib/locale/lang/uz-UZ.js +20 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +20 -1
- package/lib/locale/lang/vi-VN.js +20 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +20 -1
- package/lib/locale/lang/zh-CHT.js +20 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +20 -1
- package/lib/locale/lang/zh-CN.js +19 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +19 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/columnInfo.js +14 -2
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +15 -5
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +1 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -2
- 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/v-x-e-table/index.js +1 -2
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +1 -2
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +1 -2
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +1 -2
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +1 -2
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +1 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/index.js +1 -2
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +1 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +1 -2
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +6 -6
- package/packages/locale/lang/ar-EG.ts +20 -1
- package/packages/locale/lang/de-DE.ts +20 -1
- package/packages/locale/lang/en-US.ts +21 -2
- package/packages/locale/lang/es-ES.ts +20 -1
- package/packages/locale/lang/fr-FR.ts +20 -1
- package/packages/locale/lang/hu-HU.ts +20 -1
- package/packages/locale/lang/hy-AM.ts +19 -0
- package/packages/locale/lang/id-ID.ts +20 -1
- package/packages/locale/lang/it-IT.ts +20 -1
- package/packages/locale/lang/ja-JP.ts +20 -1
- package/packages/locale/lang/ko-KR.ts +20 -1
- package/packages/locale/lang/ms-MY.ts +20 -1
- package/packages/locale/lang/nb-NO.ts +20 -1
- package/packages/locale/lang/pt-BR.ts +20 -1
- package/packages/locale/lang/ru-RU.ts +20 -1
- package/packages/locale/lang/th-TH.ts +20 -1
- package/packages/locale/lang/ug-CN.ts +20 -1
- package/packages/locale/lang/uk-UA.ts +20 -1
- package/packages/locale/lang/uz-UZ.ts +20 -1
- package/packages/locale/lang/vi-VN.ts +20 -1
- package/packages/locale/lang/zh-CHT.ts +20 -1
- package/packages/locale/lang/zh-CN.ts +19 -0
- package/packages/table/module/custom/panel.ts +11 -11
- package/packages/table/module/export/export-panel.ts +5 -6
- package/packages/table/module/export/import-panel.ts +3 -4
- package/packages/table/src/columnInfo.ts +13 -2
- package/packages/table/src/methods.ts +15 -7
- package/packages/table/src/table.ts +5 -5
- package/packages/toolbar/src/toolbar.ts +11 -11
- package/packages/ui/index.ts +1 -1
- package/styles/components/table.scss +1 -0
- /package/es/{iconfont.1752211596473.ttf → iconfont.1753174798434.ttf} +0 -0
- /package/es/{iconfont.1752211596473.woff → iconfont.1753174798434.woff} +0 -0
- /package/es/{iconfont.1752211596473.woff2 → iconfont.1753174798434.woff2} +0 -0
- /package/lib/{iconfont.1752211596473.ttf → iconfont.1753174798434.ttf} +0 -0
- /package/lib/{iconfont.1752211596473.woff → iconfont.1753174798434.woff} +0 -0
- /package/lib/{iconfont.1752211596473.woff2 → iconfont.1753174798434.woff2} +0 -0
|
@@ -9,6 +9,7 @@ export class ColumnInfo {
|
|
|
9
9
|
constructor($xeTable, _vm, { renderHeader, renderCell, renderFooter, renderData } = {}) {
|
|
10
10
|
const tableProps = $xeTable;
|
|
11
11
|
const $xeGrid = $xeTable.$xeGrid;
|
|
12
|
+
const { field, editRender } = _vm;
|
|
12
13
|
const proxyOpts = $xeGrid ? $xeGrid.computeProxyOpts : null;
|
|
13
14
|
const formatter = _vm.formatter;
|
|
14
15
|
const visible = XEUtils.isBoolean(_vm.visible) ? _vm.visible : true;
|
|
@@ -53,11 +54,19 @@ export class ColumnInfo {
|
|
|
53
54
|
errLog('vxe.error.errProp', [`column.agg-func=${_vm.aggFunc}`, 'column.agg-func=true']);
|
|
54
55
|
}
|
|
55
56
|
}
|
|
57
|
+
if (field && editRender) {
|
|
58
|
+
if (editRender.startField && `${editRender.startField}`.indexOf(field) >= 0) {
|
|
59
|
+
errLog('vxe.error.modelConflicts', [`field=${field}`, `edit-render.startField=${editRender.startField}`]);
|
|
60
|
+
}
|
|
61
|
+
if (editRender.endField && `${editRender.endField}`.indexOf(field) >= 0) {
|
|
62
|
+
errLog('vxe.error.modelConflicts', [`field=${field}`, `edit-render.endField=${editRender.endField}`]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
56
65
|
Object.assign(this, {
|
|
57
66
|
// 基本属性
|
|
58
67
|
type: _vm.type,
|
|
59
68
|
property: _vm.field,
|
|
60
|
-
field:
|
|
69
|
+
field: field,
|
|
61
70
|
title: _vm.title,
|
|
62
71
|
width: _vm.width,
|
|
63
72
|
minWidth: _vm.minWidth,
|
|
@@ -94,7 +103,7 @@ export class ColumnInfo {
|
|
|
94
103
|
rowResize: _vm.rowResize,
|
|
95
104
|
cellType: _vm.cellType,
|
|
96
105
|
cellRender: _vm.cellRender,
|
|
97
|
-
editRender:
|
|
106
|
+
editRender: editRender,
|
|
98
107
|
contentRender: _vm.contentRender,
|
|
99
108
|
headerExportMethod: _vm.headerExportMethod,
|
|
100
109
|
exportMethod: _vm.exportMethod,
|
package/es/table/src/methods.js
CHANGED
|
@@ -6827,7 +6827,7 @@ const Methods = {
|
|
|
6827
6827
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
6828
6828
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
6829
6829
|
const checkboxOpts = $xeTable.computeCheckboxOpts;
|
|
6830
|
-
const { checkField, checkStrictly, checkMethod } = checkboxOpts;
|
|
6830
|
+
const { checkField, indeterminateField, checkStrictly, checkMethod } = checkboxOpts;
|
|
6831
6831
|
if (checkStrictly) {
|
|
6832
6832
|
return;
|
|
6833
6833
|
}
|
|
@@ -6859,6 +6859,11 @@ const Methods = {
|
|
|
6859
6859
|
childRowMaps[rowid] = 1;
|
|
6860
6860
|
childRowList.unshift([row, rowid, childList]);
|
|
6861
6861
|
}
|
|
6862
|
+
else {
|
|
6863
|
+
if (indeterminateField) {
|
|
6864
|
+
XEUtils.set(row, indeterminateField, false);
|
|
6865
|
+
}
|
|
6866
|
+
}
|
|
6862
6867
|
}, { children: transform ? mapChildrenField : childrenField });
|
|
6863
6868
|
}
|
|
6864
6869
|
childRowList.forEach(vals => {
|
|
@@ -6868,7 +6873,7 @@ const Methods = {
|
|
|
6868
6873
|
let sLen = 0; // 已选
|
|
6869
6874
|
let hLen = 0; // 半选
|
|
6870
6875
|
let vLen = 0; // 有效子行
|
|
6871
|
-
const cLen = childList.length; //
|
|
6876
|
+
const cLen = childList.length; // 子行
|
|
6872
6877
|
childList.forEach(checkMethod
|
|
6873
6878
|
? (item) => {
|
|
6874
6879
|
const childRowid = handleGetRowId(item);
|
|
@@ -6928,6 +6933,9 @@ const Methods = {
|
|
|
6928
6933
|
if (checkField) {
|
|
6929
6934
|
XEUtils.set(row, checkField, isSelected);
|
|
6930
6935
|
}
|
|
6936
|
+
if (indeterminateField) {
|
|
6937
|
+
XEUtils.set(row, indeterminateField, halfSelect);
|
|
6938
|
+
}
|
|
6931
6939
|
if (isSelected) {
|
|
6932
6940
|
if (!checkField) {
|
|
6933
6941
|
selectCheckboxMaps[rowid] = row;
|
|
@@ -8662,8 +8670,7 @@ const Methods = {
|
|
|
8662
8670
|
},
|
|
8663
8671
|
setSort(sortConfs, isUpdate) {
|
|
8664
8672
|
const $xeTable = this;
|
|
8665
|
-
|
|
8666
|
-
return handleSortEvent($xeTable, new Event('click'), sortConfs, isUpdate);
|
|
8673
|
+
return handleSortEvent($xeTable, null, sortConfs, isUpdate);
|
|
8667
8674
|
},
|
|
8668
8675
|
setSortByEvent(evnt, sortConfs, isUpdate) {
|
|
8669
8676
|
const $xeTable = this;
|
|
@@ -9052,15 +9059,17 @@ const Methods = {
|
|
|
9052
9059
|
const $xeTable = this;
|
|
9053
9060
|
const reactData = $xeTable;
|
|
9054
9061
|
const internalData = $xeTable;
|
|
9055
|
-
const { tableFullData } = internalData;
|
|
9062
|
+
const { tableFullData, scrollYStore } = internalData;
|
|
9056
9063
|
const expandOpts = $xeTable.computeExpandOpts;
|
|
9057
9064
|
const { reserve } = expandOpts;
|
|
9058
9065
|
const expList = $xeTable.getRowExpandRecords();
|
|
9059
9066
|
internalData.rowExpandedMaps = {};
|
|
9060
|
-
reactData.rowExpandedFlag++;
|
|
9061
9067
|
if (reserve) {
|
|
9062
9068
|
tableFullData.forEach((row) => handleRowExpandReserve($xeTable, row, false));
|
|
9063
9069
|
}
|
|
9070
|
+
reactData.rowExpandedFlag++;
|
|
9071
|
+
scrollYStore.startIndex = 0;
|
|
9072
|
+
scrollYStore.endIndex = 1;
|
|
9064
9073
|
return $xeTable.$nextTick().then(() => {
|
|
9065
9074
|
if (expList.length) {
|
|
9066
9075
|
return handleLazyRecalculate($xeTable, true, true, true);
|
package/es/table/style.css
CHANGED