vxe-table 3.16.3 → 3.16.4
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.min.css +1 -1
- package/es/locale/lang/ar-EG.js +19 -1
- package/es/locale/lang/de-DE.js +19 -1
- package/es/locale/lang/en-US.js +20 -2
- package/es/locale/lang/es-ES.js +19 -1
- package/es/locale/lang/fr-FR.js +19 -1
- package/es/locale/lang/hu-HU.js +19 -1
- package/es/locale/lang/hy-AM.js +18 -0
- package/es/locale/lang/id-ID.js +19 -1
- package/es/locale/lang/it-IT.js +19 -1
- package/es/locale/lang/ja-JP.js +19 -1
- package/es/locale/lang/ko-KR.js +19 -1
- package/es/locale/lang/ms-MY.js +19 -1
- package/es/locale/lang/nb-NO.js +19 -1
- package/es/locale/lang/pt-BR.js +19 -1
- package/es/locale/lang/ru-RU.js +19 -1
- package/es/locale/lang/th-TH.js +19 -1
- package/es/locale/lang/ug-CN.js +19 -1
- package/es/locale/lang/uk-UA.js +19 -1
- package/es/locale/lang/uz-UZ.js +19 -1
- package/es/locale/lang/vi-VN.js +19 -1
- package/es/locale/lang/zh-CHT.js +19 -1
- package/es/locale/lang/zh-CN.js +18 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/methods.js +14 -4
- 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.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +36 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +19 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +19 -1
- package/lib/locale/lang/de-DE.js +19 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +19 -1
- package/lib/locale/lang/en-US.js +20 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +20 -2
- package/lib/locale/lang/es-ES.js +19 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +19 -1
- package/lib/locale/lang/fr-FR.js +19 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +19 -1
- package/lib/locale/lang/hu-HU.js +19 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +19 -1
- package/lib/locale/lang/hy-AM.js +18 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +18 -0
- package/lib/locale/lang/id-ID.js +19 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +19 -1
- package/lib/locale/lang/it-IT.js +19 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +19 -1
- package/lib/locale/lang/ja-JP.js +19 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +19 -1
- package/lib/locale/lang/ko-KR.js +19 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +19 -1
- package/lib/locale/lang/ms-MY.js +19 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +19 -1
- package/lib/locale/lang/nb-NO.js +19 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +19 -1
- package/lib/locale/lang/pt-BR.js +19 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +19 -1
- package/lib/locale/lang/ru-RU.js +19 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +19 -1
- package/lib/locale/lang/th-TH.js +19 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +19 -1
- package/lib/locale/lang/ug-CN.js +19 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +19 -1
- package/lib/locale/lang/uk-UA.js +19 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +19 -1
- package/lib/locale/lang/uz-UZ.js +19 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +19 -1
- package/lib/locale/lang/vi-VN.js +19 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +19 -1
- package/lib/locale/lang/zh-CHT.js +19 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +19 -1
- package/lib/locale/lang/zh-CN.js +18 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +18 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +14 -3
- 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/vxe-table/style/style.css +1 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +6 -6
- package/packages/locale/lang/ar-EG.ts +19 -1
- package/packages/locale/lang/de-DE.ts +19 -1
- package/packages/locale/lang/en-US.ts +20 -2
- package/packages/locale/lang/es-ES.ts +19 -1
- package/packages/locale/lang/fr-FR.ts +19 -1
- package/packages/locale/lang/hu-HU.ts +19 -1
- package/packages/locale/lang/hy-AM.ts +18 -0
- package/packages/locale/lang/id-ID.ts +19 -1
- package/packages/locale/lang/it-IT.ts +19 -1
- package/packages/locale/lang/ja-JP.ts +19 -1
- package/packages/locale/lang/ko-KR.ts +19 -1
- package/packages/locale/lang/ms-MY.ts +19 -1
- package/packages/locale/lang/nb-NO.ts +19 -1
- package/packages/locale/lang/pt-BR.ts +19 -1
- package/packages/locale/lang/ru-RU.ts +19 -1
- package/packages/locale/lang/th-TH.ts +19 -1
- package/packages/locale/lang/ug-CN.ts +19 -1
- package/packages/locale/lang/uk-UA.ts +19 -1
- package/packages/locale/lang/uz-UZ.ts +19 -1
- package/packages/locale/lang/vi-VN.ts +19 -1
- package/packages/locale/lang/zh-CHT.ts +19 -1
- package/packages/locale/lang/zh-CN.ts +18 -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/methods.ts +14 -5
- 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.1752646203441.ttf} +0 -0
- /package/es/{iconfont.1752211596473.woff → iconfont.1752646203441.woff} +0 -0
- /package/es/{iconfont.1752211596473.woff2 → iconfont.1752646203441.woff2} +0 -0
- /package/lib/{iconfont.1752211596473.ttf → iconfont.1752646203441.ttf} +0 -0
- /package/lib/{iconfont.1752211596473.woff → iconfont.1752646203441.woff} +0 -0
- /package/lib/{iconfont.1752211596473.woff2 → iconfont.1752646203441.woff2} +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -7975,6 +7975,7 @@ const Methods = {
|
|
|
7975
7975
|
const checkboxOpts = $xeTable.computeCheckboxOpts;
|
|
7976
7976
|
const {
|
|
7977
7977
|
checkField,
|
|
7978
|
+
indeterminateField,
|
|
7978
7979
|
checkStrictly,
|
|
7979
7980
|
checkMethod
|
|
7980
7981
|
} = checkboxOpts;
|
|
@@ -8014,6 +8015,10 @@ const Methods = {
|
|
|
8014
8015
|
if (childList && childList.length && !childRowMaps[rowid]) {
|
|
8015
8016
|
childRowMaps[rowid] = 1;
|
|
8016
8017
|
childRowList.unshift([row, rowid, childList]);
|
|
8018
|
+
} else {
|
|
8019
|
+
if (indeterminateField) {
|
|
8020
|
+
_xeUtils.default.set(row, indeterminateField, false);
|
|
8021
|
+
}
|
|
8017
8022
|
}
|
|
8018
8023
|
}, {
|
|
8019
8024
|
children: transform ? mapChildrenField : childrenField
|
|
@@ -8026,7 +8031,7 @@ const Methods = {
|
|
|
8026
8031
|
let sLen = 0; // 已选
|
|
8027
8032
|
let hLen = 0; // 半选
|
|
8028
8033
|
let vLen = 0; // 有效子行
|
|
8029
|
-
const cLen = childList.length; //
|
|
8034
|
+
const cLen = childList.length; // 子行
|
|
8030
8035
|
childList.forEach(checkMethod ? item => {
|
|
8031
8036
|
const childRowid = handleGetRowId(item);
|
|
8032
8037
|
const isSelect = checkField ? _xeUtils.default.get(item, checkField) : selectCheckboxMaps[childRowid];
|
|
@@ -8079,6 +8084,9 @@ const Methods = {
|
|
|
8079
8084
|
if (checkField) {
|
|
8080
8085
|
_xeUtils.default.set(row, checkField, isSelected);
|
|
8081
8086
|
}
|
|
8087
|
+
if (indeterminateField) {
|
|
8088
|
+
_xeUtils.default.set(row, indeterminateField, halfSelect);
|
|
8089
|
+
}
|
|
8082
8090
|
if (isSelected) {
|
|
8083
8091
|
if (!checkField) {
|
|
8084
8092
|
selectCheckboxMaps[rowid] = row;
|
|
@@ -10574,7 +10582,8 @@ const Methods = {
|
|
|
10574
10582
|
const reactData = $xeTable;
|
|
10575
10583
|
const internalData = $xeTable;
|
|
10576
10584
|
const {
|
|
10577
|
-
tableFullData
|
|
10585
|
+
tableFullData,
|
|
10586
|
+
scrollYStore
|
|
10578
10587
|
} = internalData;
|
|
10579
10588
|
const expandOpts = $xeTable.computeExpandOpts;
|
|
10580
10589
|
const {
|
|
@@ -10582,10 +10591,12 @@ const Methods = {
|
|
|
10582
10591
|
} = expandOpts;
|
|
10583
10592
|
const expList = $xeTable.getRowExpandRecords();
|
|
10584
10593
|
internalData.rowExpandedMaps = {};
|
|
10585
|
-
reactData.rowExpandedFlag++;
|
|
10586
10594
|
if (reserve) {
|
|
10587
10595
|
tableFullData.forEach(row => handleRowExpandReserve($xeTable, row, false));
|
|
10588
10596
|
}
|
|
10597
|
+
reactData.rowExpandedFlag++;
|
|
10598
|
+
scrollYStore.startIndex = 0;
|
|
10599
|
+
scrollYStore.endIndex = 1;
|
|
10589
10600
|
return $xeTable.$nextTick().then(() => {
|
|
10590
10601
|
if (expList.length) {
|
|
10591
10602
|
return handleLazyRecalculate($xeTable, true, true, true);
|