vxe-table 4.11.0-beta.11 → 4.11.0-beta.3
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/README.md +13 -18
- 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/hook.js +7 -1
- package/es/table/render/index.js +0 -10
- package/es/table/src/cell.js +0 -3
- package/es/table/src/header.js +2 -2
- package/es/table/src/table.js +25 -47
- package/es/table/style.css +1 -1
- 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 +1 -1
- 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 +38 -72
- 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/hook.js +9 -1
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/render/index.js +0 -10
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/cell.js +0 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +25 -54
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- 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 +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/edit/hook.ts +7 -1
- package/packages/table/render/index.ts +0 -10
- package/packages/table/src/cell.ts +0 -3
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/table.ts +26 -51
- package/styles/components/table.scss +1 -1
- package/es/locale/lang/id-ID.js +0 -695
- package/lib/locale/lang/id-ID.js +0 -701
- package/lib/locale/lang/id-ID.min.js +0 -1
- package/packages/locale/lang/id-ID.ts +0 -695
- /package/es/{iconfont.1739840929802.ttf → iconfont.1739513039826.ttf} +0 -0
- /package/es/{iconfont.1739840929802.woff → iconfont.1739513039826.woff} +0 -0
- /package/es/{iconfont.1739840929802.woff2 → iconfont.1739513039826.woff2} +0 -0
- /package/lib/{iconfont.1739840929802.ttf → iconfont.1739513039826.ttf} +0 -0
- /package/lib/{iconfont.1739840929802.woff → iconfont.1739513039826.woff} +0 -0
- /package/lib/{iconfont.1739840929802.woff2 → iconfont.1739513039826.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.11.0-beta.
|
|
3141
|
+
const version = "4.11.0-beta.3";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3586,7 +3586,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3586
3586
|
const {
|
|
3587
3587
|
log: log_log
|
|
3588
3588
|
} = core_.VxeUI;
|
|
3589
|
-
const log_version = `table v${"4.11.0-beta.
|
|
3589
|
+
const log_version = `table v${"4.11.0-beta.3"}`;
|
|
3590
3590
|
const warnLog = log_log.create('warn', log_version);
|
|
3591
3591
|
const errLog = log_log.create('error', log_version);
|
|
3592
3592
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5612,9 +5612,6 @@ const Cell = {
|
|
|
5612
5612
|
class: ['vxe-table--expanded', {
|
|
5613
5613
|
'is--active': isActive
|
|
5614
5614
|
}],
|
|
5615
|
-
onMousedown(evnt) {
|
|
5616
|
-
evnt.stopPropagation();
|
|
5617
|
-
},
|
|
5618
5615
|
onClick(evnt) {
|
|
5619
5616
|
$table.triggerRowExpandEvent(evnt, params);
|
|
5620
5617
|
}
|
|
@@ -7268,8 +7265,8 @@ const header_renderType = 'header';
|
|
|
7268
7265
|
'is--sortable': column.sortable,
|
|
7269
7266
|
'col--filter': !!filters,
|
|
7270
7267
|
'is--filter-active': hasFilter,
|
|
7271
|
-
'is--drag-active':
|
|
7272
|
-
'is--drag-disabled':
|
|
7268
|
+
'is--drag-active': !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
7269
|
+
'is--drag-disabled': isDisabledDrag,
|
|
7273
7270
|
'col--current': currentColumn === column
|
|
7274
7271
|
}, headerClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : '', headerCellClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ''],
|
|
7275
7272
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
|
|
@@ -11601,7 +11598,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11601
11598
|
const fullColumnIdData = internalData.fullColumnIdData = {};
|
|
11602
11599
|
const fullColumnFieldData = internalData.fullColumnFieldData = {};
|
|
11603
11600
|
const mouseOpts = computeMouseOpts.value;
|
|
11604
|
-
const expandOpts = computeExpandOpts.value;
|
|
11605
11601
|
const columnOpts = computeColumnOpts.value;
|
|
11606
11602
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
11607
11603
|
const {
|
|
@@ -11707,8 +11703,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11707
11703
|
} else {
|
|
11708
11704
|
tableFullColumn.forEach(handleFunc);
|
|
11709
11705
|
}
|
|
11710
|
-
if (
|
|
11711
|
-
|
|
11706
|
+
if (true) {
|
|
11707
|
+
if (expandColumn && mouseOpts.area) {
|
|
11708
|
+
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
11709
|
+
}
|
|
11712
11710
|
}
|
|
11713
11711
|
if (true) {
|
|
11714
11712
|
if (htmlColumn) {
|
|
@@ -11975,9 +11973,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11975
11973
|
};
|
|
11976
11974
|
};
|
|
11977
11975
|
const updateAfterListIndex = () => {
|
|
11978
|
-
const {
|
|
11979
|
-
treeConfig
|
|
11980
|
-
} = props;
|
|
11981
11976
|
const {
|
|
11982
11977
|
afterFullData,
|
|
11983
11978
|
fullDataRowIdData,
|
|
@@ -11989,9 +11984,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11989
11984
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
11990
11985
|
const seq = index + 1;
|
|
11991
11986
|
if (rowRest) {
|
|
11992
|
-
|
|
11993
|
-
rowRest.seq = seq;
|
|
11994
|
-
}
|
|
11987
|
+
rowRest.seq = seq;
|
|
11995
11988
|
rowRest._index = index;
|
|
11996
11989
|
} else {
|
|
11997
11990
|
const rest = {
|
|
@@ -13230,7 +13223,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13230
13223
|
delete rExpandLazyLoadedMaps[rowid];
|
|
13231
13224
|
}
|
|
13232
13225
|
reactData.rowExpandLazyLoadedMaps = rExpandLazyLoadedMaps;
|
|
13233
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() =>
|
|
13226
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => tableMethods.recalculate()).then(() => resolve());
|
|
13234
13227
|
});
|
|
13235
13228
|
} else {
|
|
13236
13229
|
resolve();
|
|
@@ -13761,7 +13754,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13761
13754
|
});
|
|
13762
13755
|
};
|
|
13763
13756
|
const handleColumn = collectColumn => {
|
|
13764
|
-
const expandOpts = computeExpandOpts.value;
|
|
13765
13757
|
internalData.collectColumn = collectColumn;
|
|
13766
13758
|
const tableFullColumn = getColumnList(collectColumn);
|
|
13767
13759
|
internalData.tableFullColumn = tableFullColumn;
|
|
@@ -13769,11 +13761,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13769
13761
|
reactData.isDragColMove = false;
|
|
13770
13762
|
initColumnSort();
|
|
13771
13763
|
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
13772
|
-
const {
|
|
13773
|
-
scrollXLoad,
|
|
13774
|
-
scrollYLoad,
|
|
13775
|
-
expandColumn
|
|
13776
|
-
} = reactData;
|
|
13777
13764
|
cacheColumnMap();
|
|
13778
13765
|
parseColumns(true).then(() => {
|
|
13779
13766
|
if (reactData.scrollXLoad) {
|
|
@@ -13783,9 +13770,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13783
13770
|
$xeTable.clearMergeCells();
|
|
13784
13771
|
$xeTable.clearMergeFooterItems();
|
|
13785
13772
|
$xeTable.handleTableData(true);
|
|
13786
|
-
if (
|
|
13787
|
-
|
|
13788
|
-
|
|
13773
|
+
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
13774
|
+
// if ((reactData.scrollXLoad || reactData.scrollYLoad) && reactData.expandColumn) {
|
|
13775
|
+
// warnLog('vxe.error.scrollErrProp', ['column.type=expand'])
|
|
13776
|
+
// }
|
|
13777
|
+
// }
|
|
13789
13778
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
13790
13779
|
if ($xeToolbar) {
|
|
13791
13780
|
$xeToolbar.syncUpdate({
|
|
@@ -14228,16 +14217,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14228
14217
|
}
|
|
14229
14218
|
}
|
|
14230
14219
|
};
|
|
14231
|
-
const handleRowExpandScroll = () => {
|
|
14232
|
-
const {
|
|
14233
|
-
elemStore
|
|
14234
|
-
} = internalData;
|
|
14235
|
-
const rowExpandEl = refRowExpandElem.value;
|
|
14236
|
-
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
14237
|
-
if (rowExpandEl && bodyScrollElem) {
|
|
14238
|
-
rowExpandEl.scrollTop = bodyScrollElem.scrollTop;
|
|
14239
|
-
}
|
|
14240
|
-
};
|
|
14241
14220
|
tableMethods = {
|
|
14242
14221
|
dispatchEvent,
|
|
14243
14222
|
/**
|
|
@@ -16225,7 +16204,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16225
16204
|
const {
|
|
16226
16205
|
rowExpandedMaps,
|
|
16227
16206
|
rowExpandLazyLoadedMaps,
|
|
16228
|
-
expandColumn
|
|
16207
|
+
expandColumn: column
|
|
16229
16208
|
} = reactData;
|
|
16230
16209
|
const {
|
|
16231
16210
|
fullAllDataRowIdData
|
|
@@ -16241,8 +16220,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16241
16220
|
toggleMethod
|
|
16242
16221
|
} = expandOpts;
|
|
16243
16222
|
const lazyRests = [];
|
|
16244
|
-
const columnIndex =
|
|
16245
|
-
const $columnIndex =
|
|
16223
|
+
const columnIndex = tableMethods.getColumnIndex(column);
|
|
16224
|
+
const $columnIndex = tableMethods.getVMColumnIndex(column);
|
|
16246
16225
|
if (rows) {
|
|
16247
16226
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
|
|
16248
16227
|
rows = [rows];
|
|
@@ -16255,7 +16234,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16255
16234
|
const validRows = toggleMethod ? rows.filter(row => toggleMethod({
|
|
16256
16235
|
$table: $xeTable,
|
|
16257
16236
|
expanded,
|
|
16258
|
-
column
|
|
16237
|
+
column,
|
|
16259
16238
|
columnIndex,
|
|
16260
16239
|
$columnIndex,
|
|
16261
16240
|
row,
|
|
@@ -16288,13 +16267,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16288
16267
|
}
|
|
16289
16268
|
}
|
|
16290
16269
|
reactData.rowExpandedMaps = rExpandedMaps;
|
|
16291
|
-
return Promise.all(lazyRests).then(() =>
|
|
16292
|
-
if (expandColumn) {
|
|
16293
|
-
updateRowExpandStyle();
|
|
16294
|
-
handleRowExpandScroll();
|
|
16295
|
-
}
|
|
16296
|
-
return $xeTable.updateCellAreas();
|
|
16297
|
-
});
|
|
16270
|
+
return Promise.all(lazyRests).then(() => tableMethods.recalculate());
|
|
16298
16271
|
},
|
|
16299
16272
|
/**
|
|
16300
16273
|
* 判断行是否为展开状态
|
|
@@ -16334,7 +16307,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16334
16307
|
if (expList.length) {
|
|
16335
16308
|
tableMethods.recalculate();
|
|
16336
16309
|
}
|
|
16337
|
-
})
|
|
16310
|
+
});
|
|
16338
16311
|
},
|
|
16339
16312
|
clearRowExpandReserve() {
|
|
16340
16313
|
internalData.rowExpandedReserveRowMap = {};
|
|
@@ -16815,8 +16788,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16815
16788
|
mouseConfig
|
|
16816
16789
|
} = props;
|
|
16817
16790
|
const mouseOpts = computeMouseOpts.value;
|
|
16818
|
-
if (mouseConfig && mouseOpts.area && $xeTable.
|
|
16819
|
-
return $xeTable.
|
|
16791
|
+
if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
|
|
16792
|
+
return $xeTable.handleRecalculateCellAreas();
|
|
16820
16793
|
}
|
|
16821
16794
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
16822
16795
|
},
|
|
@@ -18644,7 +18617,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
18644
18617
|
const isSelected = sLen >= vLen;
|
|
18645
18618
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
|
|
18646
18619
|
if (checkField) {
|
|
18647
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().
|
|
18620
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField, isSelected);
|
|
18648
18621
|
}
|
|
18649
18622
|
if (isSelected) {
|
|
18650
18623
|
if (!checkField) {
|
|
@@ -18722,7 +18695,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
18722
18695
|
}
|
|
18723
18696
|
vLen++;
|
|
18724
18697
|
});
|
|
18725
|
-
const isSelected =
|
|
18698
|
+
const isSelected = vLen > 0 ? sLen >= vLen : sLen >= rootList.length;
|
|
18726
18699
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
|
|
18727
18700
|
reactData.isAllSelected = isSelected;
|
|
18728
18701
|
reactData.isIndeterminate = halfSelect;
|
|
@@ -21562,12 +21535,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21562
21535
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
21563
21536
|
}
|
|
21564
21537
|
loadTableData(value, true).then(() => {
|
|
21565
|
-
const {
|
|
21566
|
-
scrollXLoad,
|
|
21567
|
-
scrollYLoad,
|
|
21568
|
-
expandColumn
|
|
21569
|
-
} = reactData;
|
|
21570
|
-
const expandOpts = computeExpandOpts.value;
|
|
21538
|
+
// const { scrollXLoad, scrollYLoad, expandColumn } = reactData
|
|
21571
21539
|
internalData.inited = true;
|
|
21572
21540
|
internalData.initStatus = true;
|
|
21573
21541
|
if (!initStatus) {
|
|
@@ -21578,9 +21546,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21578
21546
|
// if (checkboxColumn && internalData.tableFullData.length > 300 && !checkboxOpts.checkField) {
|
|
21579
21547
|
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
21580
21548
|
// }
|
|
21581
|
-
if ((scrollXLoad || scrollYLoad) && expandColumn
|
|
21582
|
-
|
|
21583
|
-
}
|
|
21549
|
+
// if ((scrollXLoad || scrollYLoad) && expandColumn) {
|
|
21550
|
+
// warnLog('vxe.error.scrollErrProp', ['column.type=expand'])
|
|
21551
|
+
// }
|
|
21584
21552
|
return tableMethods.recalculate();
|
|
21585
21553
|
});
|
|
21586
21554
|
});
|
|
@@ -23310,6 +23278,9 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23310
23278
|
});
|
|
23311
23279
|
};
|
|
23312
23280
|
const handleClearEdit = (evnt, targetRow) => {
|
|
23281
|
+
const {
|
|
23282
|
+
mouseConfig
|
|
23283
|
+
} = props;
|
|
23313
23284
|
const {
|
|
23314
23285
|
editStore
|
|
23315
23286
|
} = reactData;
|
|
@@ -23322,6 +23293,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23322
23293
|
column
|
|
23323
23294
|
} = actived;
|
|
23324
23295
|
const validOpts = computeValidOpts.value;
|
|
23296
|
+
const mouseOpts = computeMouseOpts.value;
|
|
23325
23297
|
if (row || column) {
|
|
23326
23298
|
if (targetRow && getRowid($xeTable, targetRow) !== getRowid($xeTable, row)) {
|
|
23327
23299
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -23349,7 +23321,11 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23349
23321
|
}
|
|
23350
23322
|
}
|
|
23351
23323
|
}
|
|
23352
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() =>
|
|
23324
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
23325
|
+
if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
|
|
23326
|
+
return $xeTable.handleRecalculateCellAreas();
|
|
23327
|
+
}
|
|
23328
|
+
});
|
|
23353
23329
|
};
|
|
23354
23330
|
const handleEditActive = (params, evnt, isFocus) => {
|
|
23355
23331
|
const {
|
|
@@ -28315,11 +28291,6 @@ render_renderer.mixin({
|
|
|
28315
28291
|
tableFilterDefaultMethod: handleFilterMethod,
|
|
28316
28292
|
tableExportMethod: handleExportSelectMethod
|
|
28317
28293
|
},
|
|
28318
|
-
formatOption: {
|
|
28319
|
-
renderTableDefault(renderOpts, params) {
|
|
28320
|
-
return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
28321
|
-
}
|
|
28322
|
-
},
|
|
28323
28294
|
VxeTreeSelect: {
|
|
28324
28295
|
tableAutoFocus: 'input',
|
|
28325
28296
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
@@ -28328,11 +28299,6 @@ render_renderer.mixin({
|
|
|
28328
28299
|
},
|
|
28329
28300
|
tableExportMethod: handleExportTreeSelectMethod
|
|
28330
28301
|
},
|
|
28331
|
-
formatTree: {
|
|
28332
|
-
renderTableDefault(renderOpts, params) {
|
|
28333
|
-
return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
|
|
28334
|
-
}
|
|
28335
|
-
},
|
|
28336
28302
|
VxeTableSelect: {
|
|
28337
28303
|
tableAutoFocus: 'input',
|
|
28338
28304
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|