vxe-table 3.19.11 → 3.19.13
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 +2 -1
- package/es/locale/lang/de-DE.js +2 -1
- package/es/locale/lang/en-US.js +2 -1
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/fr-FR.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/hy-AM.js +2 -1
- package/es/locale/lang/id-ID.js +2 -1
- package/es/locale/lang/it-IT.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/ms-MY.js +2 -1
- package/es/locale/lang/nb-NO.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +2 -1
- package/es/locale/lang/th-TH.js +2 -1
- package/es/locale/lang/ug-CN.js +2 -1
- package/es/locale/lang/uk-UA.js +2 -1
- package/es/locale/lang/uz-UZ.js +2 -1
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/mixin.js +3 -6
- package/es/table/module/menu/mixin.js +1 -1
- package/es/table/module/menu/panel.js +30 -14
- package/es/table/src/cell.js +8 -27
- package/es/table/src/columnInfo.js +4 -1
- package/es/table/src/methods.js +70 -0
- package/es/table/src/table.js +2 -0
- package/es/table/src/util.js +1 -0
- package/es/table/style.css +6 -3
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +6 -3
- 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 +1015 -14059
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +2 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +2 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +2 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/hy-AM.js +2 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +2 -1
- package/lib/locale/lang/id-ID.js +2 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +2 -1
- package/lib/locale/lang/it-IT.js +2 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +2 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/ms-MY.js +2 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +2 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -1
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +2 -1
- package/lib/locale/lang/ug-CN.js +2 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +2 -1
- package/lib/locale/lang/uk-UA.js +2 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -1
- package/lib/locale/lang/uz-UZ.js +2 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +2 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +2 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/mixin.js +3 -6
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/menu/mixin.js +1 -1
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/module/menu/panel.js +21 -7
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/src/cell.js +7 -29
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +5 -1
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +76 -0
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +2 -0
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +1 -0
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +6 -3
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -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 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +2 -1
- package/packages/locale/lang/de-DE.ts +2 -1
- package/packages/locale/lang/en-US.ts +2 -1
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/fr-FR.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/hy-AM.ts +2 -1
- package/packages/locale/lang/id-ID.ts +2 -1
- package/packages/locale/lang/it-IT.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/ms-MY.ts +2 -1
- package/packages/locale/lang/nb-NO.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +2 -1
- package/packages/locale/lang/th-TH.ts +2 -1
- package/packages/locale/lang/ug-CN.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +2 -1
- package/packages/locale/lang/uz-UZ.ts +2 -1
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/module/export/mixin.ts +3 -6
- package/packages/table/module/menu/mixin.ts +7 -7
- package/packages/table/module/menu/panel.ts +30 -14
- package/packages/table/src/cell.ts +8 -26
- package/packages/table/src/columnInfo.ts +5 -1
- package/packages/table/src/methods.ts +69 -1
- package/packages/table/src/table.ts +2 -0
- package/packages/table/src/util.ts +3 -0
- package/packages/ui/index.ts +1 -0
- package/styles/components/table-module/menu.scss +1 -0
- /package/es/{iconfont.1762498935526.ttf → iconfont.1762758687118.ttf} +0 -0
- /package/es/{iconfont.1762498935526.woff → iconfont.1762758687118.woff} +0 -0
- /package/es/{iconfont.1762498935526.woff2 → iconfont.1762758687118.woff2} +0 -0
- /package/lib/{iconfont.1762498935526.ttf → iconfont.1762758687118.ttf} +0 -0
- /package/lib/{iconfont.1762498935526.woff → iconfont.1762758687118.woff} +0 -0
- /package/lib/{iconfont.1762498935526.woff2 → iconfont.1762758687118.woff2} +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -5775,6 +5775,82 @@ const Methods = {
|
|
|
5775
5775
|
}
|
|
5776
5776
|
return cellLabel;
|
|
5777
5777
|
},
|
|
5778
|
+
getFooterCellLabel(row, fieldOrColumn) {
|
|
5779
|
+
const $xeTable = this;
|
|
5780
|
+
const reactData = $xeTable;
|
|
5781
|
+
const internalData = $xeTable;
|
|
5782
|
+
const column = (0, _util.handleFieldOrColumn)($xeTable, fieldOrColumn);
|
|
5783
|
+
if (!column) {
|
|
5784
|
+
return null;
|
|
5785
|
+
}
|
|
5786
|
+
const {
|
|
5787
|
+
footerFormatter
|
|
5788
|
+
} = column;
|
|
5789
|
+
const _columnIndex = $xeTable.getVTColumnIndex(column);
|
|
5790
|
+
let itemValue = '';
|
|
5791
|
+
// 兼容老模式
|
|
5792
|
+
if (_xeUtils.default.isArray(row)) {
|
|
5793
|
+
itemValue = row[_columnIndex];
|
|
5794
|
+
} else {
|
|
5795
|
+
itemValue = _xeUtils.default.get(row, column.field);
|
|
5796
|
+
}
|
|
5797
|
+
let cellLabel = itemValue;
|
|
5798
|
+
if (footerFormatter) {
|
|
5799
|
+
let formatData;
|
|
5800
|
+
const {
|
|
5801
|
+
footerTableData
|
|
5802
|
+
} = reactData;
|
|
5803
|
+
const {
|
|
5804
|
+
footerFullDataRowData
|
|
5805
|
+
} = internalData;
|
|
5806
|
+
const colid = column.id;
|
|
5807
|
+
const $rowIndex = footerTableData.indexOf(row);
|
|
5808
|
+
let rowRest = null;
|
|
5809
|
+
if ($rowIndex > -1) {
|
|
5810
|
+
rowRest = footerFullDataRowData[$rowIndex];
|
|
5811
|
+
if (!rowRest) {
|
|
5812
|
+
rowRest = footerFullDataRowData[$rowIndex] = {};
|
|
5813
|
+
}
|
|
5814
|
+
formatData = rowRest.formatData;
|
|
5815
|
+
if (!formatData) {
|
|
5816
|
+
formatData = footerFullDataRowData[$rowIndex].formatData = {};
|
|
5817
|
+
}
|
|
5818
|
+
if (rowRest && formatData[colid]) {
|
|
5819
|
+
if (formatData[colid].value === itemValue) {
|
|
5820
|
+
return formatData[colid].label;
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5823
|
+
}
|
|
5824
|
+
const footerFormatParams = {
|
|
5825
|
+
cellValue: itemValue,
|
|
5826
|
+
itemValue,
|
|
5827
|
+
row,
|
|
5828
|
+
items: row,
|
|
5829
|
+
$rowIndex,
|
|
5830
|
+
column,
|
|
5831
|
+
_columnIndex,
|
|
5832
|
+
columnIndex: $xeTable.getColumnIndex(column)
|
|
5833
|
+
};
|
|
5834
|
+
if (_xeUtils.default.isString(footerFormatter)) {
|
|
5835
|
+
const gFormatOpts = formats.get(footerFormatter);
|
|
5836
|
+
const fcFormatMethod = gFormatOpts ? gFormatOpts.tableFooterCellFormatMethod : null;
|
|
5837
|
+
cellLabel = fcFormatMethod ? fcFormatMethod(footerFormatParams) : '';
|
|
5838
|
+
} else if (_xeUtils.default.isArray(footerFormatter)) {
|
|
5839
|
+
const gFormatOpts = formats.get(footerFormatter[0]);
|
|
5840
|
+
const fcFormatMethod = gFormatOpts ? gFormatOpts.tableFooterCellFormatMethod : null;
|
|
5841
|
+
cellLabel = fcFormatMethod ? fcFormatMethod(footerFormatParams, ...footerFormatter.slice(1)) : '';
|
|
5842
|
+
} else {
|
|
5843
|
+
cellLabel = footerFormatter(footerFormatParams);
|
|
5844
|
+
}
|
|
5845
|
+
if (formatData) {
|
|
5846
|
+
formatData[colid] = {
|
|
5847
|
+
value: itemValue,
|
|
5848
|
+
label: cellLabel
|
|
5849
|
+
};
|
|
5850
|
+
}
|
|
5851
|
+
}
|
|
5852
|
+
return cellLabel;
|
|
5853
|
+
},
|
|
5778
5854
|
/**
|
|
5779
5855
|
* 检查是否为临时行数据
|
|
5780
5856
|
*/
|