vxe-table 3.11.35 → 3.11.36
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/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/edit/mixin.js +57 -33
- package/es/table/module/export/mixin.js +23 -20
- package/es/table/src/methods.js +1 -1
- package/es/table/style.css +3 -25
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +3 -25
- 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 +92 -55
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/edit/mixin.js +67 -33
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/export/mixin.js +22 -19
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/src/methods.js +1 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +3 -25
- package/lib/table/style/style.min.css +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 +3 -25
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/edit/mixin.ts +58 -33
- package/packages/table/module/export/mixin.ts +24 -20
- package/packages/table/src/methods.ts +1 -1
- package/styles/components/table.scss +3 -22
- /package/es/{iconfont.1734517179309.ttf → iconfont.1734659093549.ttf} +0 -0
- /package/es/{iconfont.1734517179309.woff → iconfont.1734659093549.woff} +0 -0
- /package/es/{iconfont.1734517179309.woff2 → iconfont.1734659093549.woff2} +0 -0
- /package/lib/{iconfont.1734517179309.ttf → iconfont.1734659093549.ttf} +0 -0
- /package/lib/{iconfont.1734517179309.woff → iconfont.1734659093549.woff} +0 -0
- /package/lib/{iconfont.1734517179309.woff2 → iconfont.1734659093549.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.11.
|
|
2223
|
+
const version = "3.11.36";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2793,7 +2793,7 @@ function isNodeElement(elem) {
|
|
|
2793
2793
|
const {
|
|
2794
2794
|
log: log_log
|
|
2795
2795
|
} = core_.VxeUI;
|
|
2796
|
-
const log_version = `table v${"3.11.
|
|
2796
|
+
const log_version = `table v${"3.11.36"}`;
|
|
2797
2797
|
const warnLog = log_log.create('warn', log_version);
|
|
2798
2798
|
const errLog = log_log.create('error', log_version);
|
|
2799
2799
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -13681,7 +13681,7 @@ const Methods = {
|
|
|
13681
13681
|
}
|
|
13682
13682
|
};
|
|
13683
13683
|
// Module methods
|
|
13684
|
-
const funcs = 'setFilter,openFilter,clearFilter,saveFilterPanel,resetFilterPanel,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',');
|
|
13684
|
+
const funcs = 'setFilter,openFilter,clearFilter,saveFilterPanel,resetFilterPanel,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',');
|
|
13685
13685
|
funcs.forEach(name => {
|
|
13686
13686
|
Methods[name] = function (...args) {
|
|
13687
13687
|
if (true) {
|
|
@@ -18902,8 +18902,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
18902
18902
|
}
|
|
18903
18903
|
});
|
|
18904
18904
|
}
|
|
18905
|
-
function handleInsertRowAt(
|
|
18906
|
-
const $xeTable = _vm;
|
|
18905
|
+
function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
18907
18906
|
const props = $xeTable;
|
|
18908
18907
|
const reactData = $xeTable;
|
|
18909
18908
|
const internalData = $xeTable;
|
|
@@ -18931,14 +18930,14 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
18931
18930
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records)) {
|
|
18932
18931
|
records = [records];
|
|
18933
18932
|
}
|
|
18934
|
-
const newRecords =
|
|
18933
|
+
const newRecords = $xeTable.defineField(records.map(record => Object.assign(treeConfig && transform ? {
|
|
18935
18934
|
[mapChildrenField]: [],
|
|
18936
18935
|
[childrenField]: []
|
|
18937
18936
|
} : {}, record)));
|
|
18938
|
-
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(
|
|
18937
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(targetRow)) {
|
|
18939
18938
|
// 如果为虚拟树
|
|
18940
18939
|
if (treeConfig && transform) {
|
|
18941
|
-
insertTreeRow(
|
|
18940
|
+
insertTreeRow($xeTable, newRecords, false);
|
|
18942
18941
|
} else {
|
|
18943
18942
|
newRecords.forEach(item => {
|
|
18944
18943
|
const rowid = getRowid($xeTable, item);
|
|
@@ -18970,10 +18969,10 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
18970
18969
|
});
|
|
18971
18970
|
}
|
|
18972
18971
|
} else {
|
|
18973
|
-
if (
|
|
18972
|
+
if (targetRow === -1) {
|
|
18974
18973
|
// 如果为虚拟树
|
|
18975
18974
|
if (treeConfig && transform) {
|
|
18976
|
-
insertTreeRow(
|
|
18975
|
+
insertTreeRow($xeTable, newRecords, true);
|
|
18977
18976
|
} else {
|
|
18978
18977
|
newRecords.forEach(item => {
|
|
18979
18978
|
const rowid = getRowid($xeTable, item);
|
|
@@ -19008,7 +19007,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19008
19007
|
} else {
|
|
19009
19008
|
// 如果为虚拟树
|
|
19010
19009
|
if (treeConfig && transform) {
|
|
19011
|
-
const matchMapObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, item =>
|
|
19010
|
+
const matchMapObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, item => targetRow[rowField] === item[rowField], {
|
|
19012
19011
|
children: mapChildrenField
|
|
19013
19012
|
});
|
|
19014
19013
|
if (matchMapObj) {
|
|
@@ -19016,10 +19015,10 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19016
19015
|
parent: parentRow
|
|
19017
19016
|
} = matchMapObj;
|
|
19018
19017
|
const parentMapChilds = parentRow ? parentRow[mapChildrenField] : tableFullTreeData;
|
|
19019
|
-
const parentRest = fullAllDataRowIdData[getRowid(
|
|
19018
|
+
const parentRest = fullAllDataRowIdData[getRowid($xeTable, parentRow)];
|
|
19020
19019
|
const parentLevel = parentRest ? parentRest.level : 0;
|
|
19021
19020
|
newRecords.forEach((item, i) => {
|
|
19022
|
-
const rowid = getRowid(
|
|
19021
|
+
const rowid = getRowid($xeTable, item);
|
|
19023
19022
|
if (true) {
|
|
19024
19023
|
if (item[treeOpts.parentField]) {
|
|
19025
19024
|
if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
|
|
@@ -19052,7 +19051,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19052
19051
|
});
|
|
19053
19052
|
// 源
|
|
19054
19053
|
if (parentRow) {
|
|
19055
|
-
const matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, item =>
|
|
19054
|
+
const matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, item => targetRow[rowField] === item[rowField], {
|
|
19056
19055
|
children: childrenField
|
|
19057
19056
|
});
|
|
19058
19057
|
if (matchObj) {
|
|
@@ -19068,7 +19067,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19068
19067
|
if (true) {
|
|
19069
19068
|
warnLog('vxe.error.unableInsert');
|
|
19070
19069
|
}
|
|
19071
|
-
insertTreeRow(
|
|
19070
|
+
insertTreeRow($xeTable, newRecords, true);
|
|
19072
19071
|
}
|
|
19073
19072
|
} else {
|
|
19074
19073
|
if (treeConfig) {
|
|
@@ -19076,12 +19075,12 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19076
19075
|
}
|
|
19077
19076
|
let afIndex = -1;
|
|
19078
19077
|
// 如果是可视索引
|
|
19079
|
-
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(
|
|
19080
|
-
if (
|
|
19081
|
-
afIndex =
|
|
19078
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(targetRow)) {
|
|
19079
|
+
if (targetRow < afterFullData.length) {
|
|
19080
|
+
afIndex = targetRow;
|
|
19082
19081
|
}
|
|
19083
19082
|
} else {
|
|
19084
|
-
afIndex =
|
|
19083
|
+
afIndex = $xeTable.findRowIndexOf(afterFullData, targetRow);
|
|
19085
19084
|
}
|
|
19086
19085
|
// 如果是插入指定行的下一行
|
|
19087
19086
|
if (isInsertNextRow) {
|
|
@@ -19091,7 +19090,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19091
19090
|
throw new Error(errLog('vxe.error.unableInsert'));
|
|
19092
19091
|
}
|
|
19093
19092
|
afterFullData.splice(afIndex, 0, ...newRecords);
|
|
19094
|
-
tableFullData.splice(
|
|
19093
|
+
tableFullData.splice($xeTable.findRowIndexOf(tableFullData, targetRow), 0, ...newRecords);
|
|
19095
19094
|
// 刷新单元格合并
|
|
19096
19095
|
mergeList.forEach(mergeItem => {
|
|
19097
19096
|
const {
|
|
@@ -19114,20 +19113,20 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19114
19113
|
const rowid = getRowid($xeTable, newRow);
|
|
19115
19114
|
insertMaps[rowid] = newRow;
|
|
19116
19115
|
});
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19116
|
+
$xeTable.cacheRowMap();
|
|
19117
|
+
$xeTable.updateScrollYStatus();
|
|
19118
|
+
$xeTable.handleTableData(treeConfig && transform);
|
|
19120
19119
|
if (!(treeConfig && transform)) {
|
|
19121
|
-
|
|
19120
|
+
$xeTable.updateAfterDataIndex();
|
|
19122
19121
|
}
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
if (
|
|
19126
|
-
|
|
19122
|
+
$xeTable.updateFooter();
|
|
19123
|
+
$xeTable.checkSelectionStatus();
|
|
19124
|
+
if ($xeTable.scrollYLoad) {
|
|
19125
|
+
$xeTable.updateScrollYSpace();
|
|
19127
19126
|
}
|
|
19128
|
-
return
|
|
19129
|
-
|
|
19130
|
-
return
|
|
19127
|
+
return $xeTable.$nextTick().then(() => {
|
|
19128
|
+
$xeTable.updateCellAreas();
|
|
19129
|
+
return $xeTable.recalculate();
|
|
19131
19130
|
}).then(() => {
|
|
19132
19131
|
return {
|
|
19133
19132
|
row: newRecords.length ? newRecords[newRecords.length - 1] : null,
|
|
@@ -19135,6 +19134,32 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19135
19134
|
};
|
|
19136
19135
|
});
|
|
19137
19136
|
}
|
|
19137
|
+
function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInsertNextRow) {
|
|
19138
|
+
const props = $xeTable;
|
|
19139
|
+
const {
|
|
19140
|
+
treeConfig
|
|
19141
|
+
} = props;
|
|
19142
|
+
const treeOpts = $xeTable.computeTreeOpts;
|
|
19143
|
+
const {
|
|
19144
|
+
transform,
|
|
19145
|
+
rowField,
|
|
19146
|
+
parentField
|
|
19147
|
+
} = treeOpts;
|
|
19148
|
+
if (treeConfig && transform) {
|
|
19149
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records)) {
|
|
19150
|
+
records = [records];
|
|
19151
|
+
}
|
|
19152
|
+
return handleInsertRowAt($xeTable, records.map(item => Object.assign({}, item, {
|
|
19153
|
+
[parentField]: parentRow[rowField]
|
|
19154
|
+
})), targetRow, isInsertNextRow);
|
|
19155
|
+
} else {
|
|
19156
|
+
errLog('vxe.error.errProp', ['tree-config.treeConfig=false', 'tree-config.treeConfig=true']);
|
|
19157
|
+
}
|
|
19158
|
+
return Promise.resolve({
|
|
19159
|
+
row: null,
|
|
19160
|
+
rows: []
|
|
19161
|
+
});
|
|
19162
|
+
}
|
|
19138
19163
|
/* harmony default export */ var edit_mixin = ({
|
|
19139
19164
|
methods: {
|
|
19140
19165
|
/**
|
|
@@ -19151,14 +19176,23 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
19151
19176
|
* 如果 row 为 -1 则从插入到底部
|
|
19152
19177
|
* 如果 row 为有效行则插入到该行的位置
|
|
19153
19178
|
* @param {Object/Array} records 新的数据
|
|
19154
|
-
* @param {Row}
|
|
19179
|
+
* @param {Row} targetRow 指定行
|
|
19155
19180
|
* @returns
|
|
19156
19181
|
*/
|
|
19157
|
-
_insertAt(records,
|
|
19158
|
-
return handleInsertRowAt(this, records,
|
|
19182
|
+
_insertAt(records, targetRow) {
|
|
19183
|
+
return handleInsertRowAt(this, records, targetRow);
|
|
19184
|
+
},
|
|
19185
|
+
_insertNextAt(records, targetRow) {
|
|
19186
|
+
return handleInsertRowAt(this, records, targetRow, true);
|
|
19187
|
+
},
|
|
19188
|
+
_insertChild(records, parentRow) {
|
|
19189
|
+
return handleInsertChildRowAt(this, records, parentRow, null);
|
|
19190
|
+
},
|
|
19191
|
+
_insertChildAt(records, parentRow, targetRow) {
|
|
19192
|
+
return handleInsertChildRowAt(this, records, parentRow, targetRow);
|
|
19159
19193
|
},
|
|
19160
|
-
|
|
19161
|
-
return
|
|
19194
|
+
_insertChildNextAt(records, parentRow, targetRow) {
|
|
19195
|
+
return handleInsertChildRowAt(this, records, parentRow, targetRow, true);
|
|
19162
19196
|
},
|
|
19163
19197
|
/**
|
|
19164
19198
|
* 删除指定行数据
|
|
@@ -20005,7 +20039,10 @@ function toTableBorder(border) {
|
|
|
20005
20039
|
function toBooleanValue(cellValue) {
|
|
20006
20040
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(cellValue) ? cellValue ? 'TRUE' : 'FALSE' : cellValue;
|
|
20007
20041
|
}
|
|
20008
|
-
|
|
20042
|
+
const toStringValue = cellValue => {
|
|
20043
|
+
return eqEmptyValue(cellValue) ? '' : `${cellValue}`;
|
|
20044
|
+
};
|
|
20045
|
+
function getBodyLabelData($xeTable, opts, columns, datas) {
|
|
20009
20046
|
const {
|
|
20010
20047
|
isAllExpand,
|
|
20011
20048
|
mode
|
|
@@ -20016,7 +20053,7 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20016
20053
|
radioOpts,
|
|
20017
20054
|
checkboxOpts,
|
|
20018
20055
|
columnOpts
|
|
20019
|
-
} = $
|
|
20056
|
+
} = $xeTable;
|
|
20020
20057
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
20021
20058
|
if (!htmlCellElem) {
|
|
20022
20059
|
htmlCellElem = document.createElement('div');
|
|
@@ -20028,13 +20065,13 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20028
20065
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(datas, (item, $rowIndex, items, path, parent, nodes) => {
|
|
20029
20066
|
const row = item._row || item;
|
|
20030
20067
|
const parentRow = parent && parent._row ? parent._row : parent;
|
|
20031
|
-
if (isAllExpand || !parentRow || expandMaps.has(parentRow) && $
|
|
20032
|
-
const hasRowChild = hasTreeChildren($
|
|
20068
|
+
if (isAllExpand || !parentRow || expandMaps.has(parentRow) && $xeTable.isTreeExpandByRow(parentRow)) {
|
|
20069
|
+
const hasRowChild = hasTreeChildren($xeTable, row);
|
|
20033
20070
|
const item = {
|
|
20034
20071
|
_row: row,
|
|
20035
20072
|
_level: nodes.length - 1,
|
|
20036
20073
|
_hasChild: hasRowChild,
|
|
20037
|
-
_expand: hasRowChild && $
|
|
20074
|
+
_expand: hasRowChild && $xeTable.isTreeExpandByRow(row)
|
|
20038
20075
|
};
|
|
20039
20076
|
columns.forEach((column, $columnIndex) => {
|
|
20040
20077
|
let cellValue = '';
|
|
@@ -20051,7 +20088,7 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20051
20088
|
}
|
|
20052
20089
|
if (bodyExportMethod) {
|
|
20053
20090
|
cellValue = bodyExportMethod({
|
|
20054
|
-
$table: $
|
|
20091
|
+
$table: $xeTable,
|
|
20055
20092
|
row,
|
|
20056
20093
|
column,
|
|
20057
20094
|
options: opts
|
|
@@ -20061,18 +20098,18 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20061
20098
|
case 'seq':
|
|
20062
20099
|
{
|
|
20063
20100
|
const seqValue = path.map((num, i) => i % 2 === 0 ? Number(num) + 1 : '.').join('');
|
|
20064
|
-
cellValue = mode === 'all' ? seqValue : getSeq($
|
|
20101
|
+
cellValue = mode === 'all' ? seqValue : getSeq($xeTable, seqValue, row, $rowIndex, column, $columnIndex);
|
|
20065
20102
|
break;
|
|
20066
20103
|
}
|
|
20067
20104
|
case 'checkbox':
|
|
20068
|
-
cellValue = toBooleanValue($
|
|
20105
|
+
cellValue = toBooleanValue($xeTable.isCheckedByCheckboxRow(row));
|
|
20069
20106
|
item._checkboxLabel = checkboxOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkboxOpts.labelField) : '';
|
|
20070
20107
|
item._checkboxDisabled = checkboxOpts.checkMethod && !checkboxOpts.checkMethod({
|
|
20071
20108
|
row
|
|
20072
20109
|
});
|
|
20073
20110
|
break;
|
|
20074
20111
|
case 'radio':
|
|
20075
|
-
cellValue = toBooleanValue($
|
|
20112
|
+
cellValue = toBooleanValue($xeTable.isCheckedByRadioRow(row));
|
|
20076
20113
|
item._radioLabel = radioOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, radioOpts.labelField) : '';
|
|
20077
20114
|
item._radioDisabled = radioOpts.checkMethod && !radioOpts.checkMethod({
|
|
20078
20115
|
row
|
|
@@ -20082,12 +20119,12 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20082
20119
|
if (opts.original) {
|
|
20083
20120
|
cellValue = getCellValue(row, column);
|
|
20084
20121
|
} else {
|
|
20085
|
-
cellValue = $
|
|
20122
|
+
cellValue = $xeTable.getCellLabel(row, column);
|
|
20086
20123
|
if (column.type === 'html') {
|
|
20087
20124
|
htmlCellElem.innerHTML = cellValue;
|
|
20088
20125
|
cellValue = htmlCellElem.innerText.trim();
|
|
20089
20126
|
} else {
|
|
20090
|
-
const cell = $
|
|
20127
|
+
const cell = $xeTable.getCellElement(row, column);
|
|
20091
20128
|
if (cell) {
|
|
20092
20129
|
cellValue = cell.innerText.trim();
|
|
20093
20130
|
}
|
|
@@ -20095,7 +20132,7 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20095
20132
|
}
|
|
20096
20133
|
}
|
|
20097
20134
|
}
|
|
20098
|
-
item[column.id] =
|
|
20135
|
+
item[column.id] = toStringValue(cellValue);
|
|
20099
20136
|
});
|
|
20100
20137
|
expandMaps.set(row, 1);
|
|
20101
20138
|
rest.push(Object.assign(item, row));
|
|
@@ -20124,7 +20161,7 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20124
20161
|
}
|
|
20125
20162
|
if (bodyExportMethod) {
|
|
20126
20163
|
cellValue = bodyExportMethod({
|
|
20127
|
-
$table: $
|
|
20164
|
+
$table: $xeTable,
|
|
20128
20165
|
row,
|
|
20129
20166
|
column,
|
|
20130
20167
|
options: opts
|
|
@@ -20134,18 +20171,18 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20134
20171
|
case 'seq':
|
|
20135
20172
|
{
|
|
20136
20173
|
const seqValue = $rowIndex + 1;
|
|
20137
|
-
cellValue = mode === 'all' ? seqValue : getSeq($
|
|
20174
|
+
cellValue = mode === 'all' ? seqValue : getSeq($xeTable, seqValue, row, $rowIndex, column, $columnIndex);
|
|
20138
20175
|
break;
|
|
20139
20176
|
}
|
|
20140
20177
|
case 'checkbox':
|
|
20141
|
-
cellValue = toBooleanValue($
|
|
20178
|
+
cellValue = toBooleanValue($xeTable.isCheckedByCheckboxRow(row));
|
|
20142
20179
|
item._checkboxLabel = checkboxOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkboxOpts.labelField) : '';
|
|
20143
20180
|
item._checkboxDisabled = checkboxOpts.checkMethod && !checkboxOpts.checkMethod({
|
|
20144
20181
|
row
|
|
20145
20182
|
});
|
|
20146
20183
|
break;
|
|
20147
20184
|
case 'radio':
|
|
20148
|
-
cellValue = toBooleanValue($
|
|
20185
|
+
cellValue = toBooleanValue($xeTable.isCheckedByRadioRow(row));
|
|
20149
20186
|
item._radioLabel = radioOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, radioOpts.labelField) : '';
|
|
20150
20187
|
item._radioDisabled = radioOpts.checkMethod && !radioOpts.checkMethod({
|
|
20151
20188
|
row
|
|
@@ -20155,12 +20192,12 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20155
20192
|
if (opts.original) {
|
|
20156
20193
|
cellValue = getCellValue(row, column);
|
|
20157
20194
|
} else {
|
|
20158
|
-
cellValue = $
|
|
20195
|
+
cellValue = $xeTable.getCellLabel(row, column);
|
|
20159
20196
|
if (column.type === 'html') {
|
|
20160
20197
|
htmlCellElem.innerHTML = cellValue;
|
|
20161
20198
|
cellValue = htmlCellElem.innerText.trim();
|
|
20162
20199
|
} else {
|
|
20163
|
-
const cell = $
|
|
20200
|
+
const cell = $xeTable.getCellElement(row, column);
|
|
20164
20201
|
if (cell) {
|
|
20165
20202
|
cellValue = cell.innerText.trim();
|
|
20166
20203
|
}
|
|
@@ -20168,7 +20205,7 @@ function getBodyLabelData($xetable, opts, columns, datas) {
|
|
|
20168
20205
|
}
|
|
20169
20206
|
}
|
|
20170
20207
|
}
|
|
20171
|
-
item[column.id] =
|
|
20208
|
+
item[column.id] = toStringValue(cellValue);
|
|
20172
20209
|
});
|
|
20173
20210
|
return item;
|
|
20174
20211
|
});
|