vxe-table 4.10.9 → 4.10.11
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/src/header.js +4 -2
- package/es/table/src/table.js +42 -6
- package/es/table/style.css +23 -0
- 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 +23 -0
- 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 +44 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/header.js +4 -2
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +38 -6
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +23 -0
- 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 +23 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/src/header.ts +4 -2
- package/packages/table/src/table.ts +44 -6
- package/styles/components/table.scss +21 -0
- /package/es/{iconfont.1739152200042.ttf → iconfont.1739164577907.ttf} +0 -0
- /package/es/{iconfont.1739152200042.woff → iconfont.1739164577907.woff} +0 -0
- /package/es/{iconfont.1739152200042.woff2 → iconfont.1739164577907.woff2} +0 -0
- /package/lib/{iconfont.1739152200042.ttf → iconfont.1739164577907.ttf} +0 -0
- /package/lib/{iconfont.1739152200042.woff → iconfont.1739164577907.woff} +0 -0
- /package/lib/{iconfont.1739152200042.woff2 → iconfont.1739164577907.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.10.
|
|
3141
|
+
const version = "4.10.11";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3585,7 +3585,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3585
3585
|
const {
|
|
3586
3586
|
log: log_log
|
|
3587
3587
|
} = core_.VxeUI;
|
|
3588
|
-
const log_version = `table v${"4.10.
|
|
3588
|
+
const log_version = `table v${"4.10.11"}`;
|
|
3589
3589
|
const warnLog = log_log.create('warn', log_version);
|
|
3590
3590
|
const errLog = log_log.create('error', log_version);
|
|
3591
3591
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -7229,8 +7229,10 @@ const header_renderType = 'header';
|
|
|
7229
7229
|
const showResizable = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
|
|
7230
7230
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
7231
7231
|
let isVNPreEmptyStatus = false;
|
|
7232
|
-
if (
|
|
7233
|
-
|
|
7232
|
+
if (!isGroup) {
|
|
7233
|
+
if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
7234
|
+
isVNPreEmptyStatus = true;
|
|
7235
|
+
}
|
|
7234
7236
|
}
|
|
7235
7237
|
const tcStyle = {};
|
|
7236
7238
|
if (hasEllipsis) {
|
|
@@ -10541,6 +10543,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
10541
10543
|
isHeader: false,
|
|
10542
10544
|
isFooter: false
|
|
10543
10545
|
},
|
|
10546
|
+
rowHeightStore: {
|
|
10547
|
+
default: 48,
|
|
10548
|
+
medium: 44,
|
|
10549
|
+
small: 40,
|
|
10550
|
+
mini: 36
|
|
10551
|
+
},
|
|
10544
10552
|
scrollVMLoading: false,
|
|
10545
10553
|
calcCellHeightFlag: 1,
|
|
10546
10554
|
resizeHeightFlag: 0,
|
|
@@ -10635,6 +10643,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
10635
10643
|
let tableMethods = {};
|
|
10636
10644
|
let tablePrivateMethods = {};
|
|
10637
10645
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
10646
|
+
const refVarElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
10638
10647
|
const refTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
10639
10648
|
const refCommTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
10640
10649
|
const refValidTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -10743,12 +10752,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
10743
10752
|
return 0;
|
|
10744
10753
|
});
|
|
10745
10754
|
const computeRowHeightMaps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
10746
|
-
return
|
|
10747
|
-
default: 48,
|
|
10748
|
-
medium: 44,
|
|
10749
|
-
small: 40,
|
|
10750
|
-
mini: 36
|
|
10751
|
-
};
|
|
10755
|
+
return reactData.rowHeightStore;
|
|
10752
10756
|
});
|
|
10753
10757
|
const computeDefaultRowHeight = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
10754
10758
|
const vSize = computeSize.value;
|
|
@@ -21055,6 +21059,17 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21055
21059
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21056
21060
|
class: 'vxe-table-slots'
|
|
21057
21061
|
}, slots.default ? slots.default({}) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21062
|
+
ref: refVarElem,
|
|
21063
|
+
class: 'vxe-table-vars'
|
|
21064
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21065
|
+
class: 'vxe-table-var-default'
|
|
21066
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21067
|
+
class: 'vxe-table-var-medium'
|
|
21068
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21069
|
+
class: 'vxe-table-var-small'
|
|
21070
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21071
|
+
class: 'vxe-table-var-mini'
|
|
21072
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21058
21073
|
key: 'tw',
|
|
21059
21074
|
class: 'vxe-table--render-wrapper'
|
|
21060
21075
|
}, scrollbarXToTop ? [renderScrollX(), renderBody()] : [renderBody(), renderScrollX()]),
|
|
@@ -21381,9 +21396,28 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21381
21396
|
});
|
|
21382
21397
|
});
|
|
21383
21398
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
21399
|
+
const {
|
|
21400
|
+
rowHeightStore
|
|
21401
|
+
} = reactData;
|
|
21402
|
+
const varEl = refVarElem.value;
|
|
21384
21403
|
const columnOpts = computeColumnOpts.value;
|
|
21385
21404
|
const rowOpts = computeRowOpts.value;
|
|
21386
21405
|
const customOpts = computeCustomOpts.value;
|
|
21406
|
+
if (varEl) {
|
|
21407
|
+
const [defEl, mediumEl, smallEl, miniEl] = varEl.children;
|
|
21408
|
+
if (defEl) {
|
|
21409
|
+
rowHeightStore.default = defEl.clientHeight;
|
|
21410
|
+
}
|
|
21411
|
+
if (mediumEl) {
|
|
21412
|
+
rowHeightStore.medium = mediumEl.clientHeight;
|
|
21413
|
+
}
|
|
21414
|
+
if (smallEl) {
|
|
21415
|
+
rowHeightStore.small = smallEl.clientHeight;
|
|
21416
|
+
}
|
|
21417
|
+
if (miniEl) {
|
|
21418
|
+
rowHeightStore.mini = miniEl.clientHeight;
|
|
21419
|
+
}
|
|
21420
|
+
}
|
|
21387
21421
|
if (columnOpts.drag || rowOpts.drag || customOpts.allowSort) {
|
|
21388
21422
|
initTpImg();
|
|
21389
21423
|
}
|