vxe-table 3.21.24 → 3.21.25
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/style.css +1 -1
- package/es/table/src/methods.js +3 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +4 -4
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +2 -2
- package/lib/table/src/methods.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/table/src/methods.ts +3 -3
- /package/es/{iconfont.1783331230583.ttf → iconfont.1783427836981.ttf} +0 -0
- /package/es/{iconfont.1783331230583.woff → iconfont.1783427836981.woff} +0 -0
- /package/es/{iconfont.1783331230583.woff2 → iconfont.1783427836981.woff2} +0 -0
- /package/lib/{iconfont.1783331230583.ttf → iconfont.1783427836981.ttf} +0 -0
- /package/lib/{iconfont.1783331230583.woff → iconfont.1783427836981.woff} +0 -0
- /package/lib/{iconfont.1783331230583.woff2 → iconfont.1783427836981.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -5828,10 +5828,10 @@ const tableMethods = {
|
|
|
5828
5828
|
return false;
|
|
5829
5829
|
}
|
|
5830
5830
|
if (arguments.length > 1) {
|
|
5831
|
-
return !eqCellValue(
|
|
5831
|
+
return !eqCellValue(row, oRow, field).result;
|
|
5832
5832
|
}
|
|
5833
5833
|
for (let i = 0; i < keepFields.length; i++) {
|
|
5834
|
-
if (!eqCellValue(
|
|
5834
|
+
if (!eqCellValue(row, oRow, keepFields[i]).result) {
|
|
5835
5835
|
return true;
|
|
5836
5836
|
}
|
|
5837
5837
|
}
|
|
@@ -5863,7 +5863,7 @@ const tableMethods = {
|
|
|
5863
5863
|
}
|
|
5864
5864
|
for (let i = 0; i < keepFields.length; i++) {
|
|
5865
5865
|
const field = keepFields[i];
|
|
5866
|
-
const { result, newValue, oldValue } = eqCellValue(
|
|
5866
|
+
const { result, newValue, oldValue } = eqCellValue(row, oRow, field);
|
|
5867
5867
|
if (!result) {
|
|
5868
5868
|
const column = fullColumnFieldData[field] ? fullColumnFieldData[field].column : null;
|
|
5869
5869
|
cellList.push({ row, rowid, column, field, newValue, oldValue });
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const tableVersion = `table v${"3.21.
|
|
3
|
+
const tableVersion = `table v${"3.21.25"}`;
|
|
4
4
|
export function createComponentLog(name) {
|
|
5
5
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
6
6
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
package/lib/index.umd.js
CHANGED
|
@@ -3311,7 +3311,7 @@ function getClass(property, params) {
|
|
|
3311
3311
|
/* unused harmony import specifier */ var VxeUI;
|
|
3312
3312
|
|
|
3313
3313
|
|
|
3314
|
-
const version = "3.21.
|
|
3314
|
+
const version = "3.21.25";
|
|
3315
3315
|
core_.VxeUI.version = version;
|
|
3316
3316
|
core_.VxeUI.tableVersion = version;
|
|
3317
3317
|
core_.VxeUI.setConfig({
|
|
@@ -4086,7 +4086,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
4086
4086
|
const {
|
|
4087
4087
|
log: log_log
|
|
4088
4088
|
} = core_.VxeUI;
|
|
4089
|
-
const tableVersion = `table v${"3.21.
|
|
4089
|
+
const tableVersion = `table v${"3.21.25"}`;
|
|
4090
4090
|
function createComponentLog(name) {
|
|
4091
4091
|
const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
|
|
4092
4092
|
const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
|
|
@@ -8158,8 +8158,8 @@ if(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_defau
|
|
|
8158
8158
|
*/removeInsertRow(){const $xeTable=this;const internalData=$xeTable;const{insertRowMaps}=internalData;return $xeTable.remove(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().values(insertRowMaps));},/**
|
|
8159
8159
|
* 检查行或列数据是否发生改变
|
|
8160
8160
|
*/isUpdateByRow(rowOrId,field){const $xeTable=this;const props=$xeTable;const internalData=$xeTable;const{keepSource,editConfig}=props;const{fullDataRowIdData,sourceDataRowIdData}=internalData;const keepFields=$xeTable.computeKeepFields;if(keepSource&&editConfig){const rowid=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(rowOrId)||external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(rowOrId)?rowOrId:getRowid($xeTable,rowOrId);const rowRest=fullDataRowIdData[rowid];// 新增的数据不需要检测
|
|
8161
|
-
if(!rowRest){return false;}const row=rowRest.row;const oRow=sourceDataRowIdData[rowid];if(!oRow){return false;}if(arguments.length>1){return!eqCellValue(oRow,
|
|
8162
|
-
if(!rowRest){return;}const row=rowRest.row;const oRow=sourceDataRowIdData[rowid];if(!oRow){return;}for(let i=0;i<keepFields.length;i++){const field=keepFields[i];const{result,newValue,oldValue}=eqCellValue(oRow,
|
|
8161
|
+
if(!rowRest){return false;}const row=rowRest.row;const oRow=sourceDataRowIdData[rowid];if(!oRow){return false;}if(arguments.length>1){return!eqCellValue(row,oRow,field).result;}for(let i=0;i<keepFields.length;i++){if(!eqCellValue(row,oRow,keepFields[i]).result){return true;}}}return false;},getUpdateCells(){const $xeTable=this;const props=$xeTable;const internalData=$xeTable;const{keepSource,treeConfig}=props;const{tableFullData,tableFullTreeData,fullDataRowIdData,sourceDataRowIdData,fullColumnFieldData}=internalData;const treeOpts=$xeTable.computeTreeOpts;const keepFields=$xeTable.computeKeepFields;const cellList=[];if(keepSource){const{handleGetRowId}=createHandleGetRowId($xeTable);const handleCell=item=>{const rowid=handleGetRowId(item);const rowRest=fullDataRowIdData[rowid];// 新增的数据不需要检测
|
|
8162
|
+
if(!rowRest){return;}const row=rowRest.row;const oRow=sourceDataRowIdData[rowid];if(!oRow){return;}for(let i=0;i<keepFields.length;i++){const field=keepFields[i];const{result,newValue,oldValue}=eqCellValue(row,oRow,field);if(!result){const column=fullColumnFieldData[field]?fullColumnFieldData[field].column:null;cellList.push({row,rowid,column,field,newValue,oldValue});}}};if(treeConfig){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData,handleCell,treeOpts);}else{tableFullData.forEach(handleCell);}}return cellList;},/**
|
|
8163
8163
|
* 获取表格的可视列,也可以指定索引获取列
|
|
8164
8164
|
* @param {Number} columnIndex 索引
|
|
8165
8165
|
*/getColumns(columnIndex){const $xeTable=this;const internalData=$xeTable;const{visibleColumn}=internalData;return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(columnIndex)?visibleColumn.slice(0):visibleColumn[columnIndex];},/**
|