vxe-table 4.10.6-beta.32 → 4.10.6-beta.34
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/body.js +16 -3
- package/es/table/src/footer.js +18 -3
- package/es/table/style.css +6 -5
- 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 +6 -5
- 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 +43 -6
- 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/body.js +21 -2
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +20 -2
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/style/style.css +6 -5
- 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 +6 -5
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/src/body.ts +22 -6
- package/packages/table/src/footer.ts +21 -4
- package/styles/components/table.scss +29 -30
- /package/es/{iconfont.1738648607811.ttf → iconfont.1738824485252.ttf} +0 -0
- /package/es/{iconfont.1738648607811.woff → iconfont.1738824485252.woff} +0 -0
- /package/es/{iconfont.1738648607811.woff2 → iconfont.1738824485252.woff2} +0 -0
- /package/lib/{iconfont.1738648607811.ttf → iconfont.1738824485252.ttf} +0 -0
- /package/lib/{iconfont.1738648607811.woff → iconfont.1738824485252.woff} +0 -0
- /package/lib/{iconfont.1738648607811.woff2 → iconfont.1738824485252.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.6-beta.
|
|
3141
|
+
const version = "4.10.6-beta.34";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3583,7 +3583,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3583
3583
|
const {
|
|
3584
3584
|
log: log_log
|
|
3585
3585
|
} = core_.VxeUI;
|
|
3586
|
-
const log_version = `table v${"4.10.6-beta.
|
|
3586
|
+
const log_version = `table v${"4.10.6-beta.34"}`;
|
|
3587
3587
|
const warnLog = log_log.create('warn', log_version);
|
|
3588
3588
|
const errLog = log_log.create('error', log_version);
|
|
3589
3589
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -6198,7 +6198,8 @@ const renderType = 'body';
|
|
|
6198
6198
|
computeRowDragOpts,
|
|
6199
6199
|
computeColumnDragOpts,
|
|
6200
6200
|
computeLeftFixedWidth,
|
|
6201
|
-
computeRightFixedWidth
|
|
6201
|
+
computeRightFixedWidth,
|
|
6202
|
+
computeResizableOpts
|
|
6202
6203
|
} = $xeTable.getComputeMaps();
|
|
6203
6204
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
6204
6205
|
const refBodyScroll = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -6274,6 +6275,8 @@ const renderType = 'body';
|
|
|
6274
6275
|
} = tableInternalData;
|
|
6275
6276
|
const {
|
|
6276
6277
|
columnKey,
|
|
6278
|
+
resizable: allResizable,
|
|
6279
|
+
border,
|
|
6277
6280
|
height,
|
|
6278
6281
|
cellClassName: allCellClassName,
|
|
6279
6282
|
cellStyle,
|
|
@@ -6308,6 +6311,11 @@ const renderType = 'body';
|
|
|
6308
6311
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
6309
6312
|
const editOpts = computeEditOpts.value;
|
|
6310
6313
|
const tooltipOpts = computeTooltipOpts.value;
|
|
6314
|
+
const resizableOpts = computeResizableOpts.value;
|
|
6315
|
+
const {
|
|
6316
|
+
isAllColumnDrag,
|
|
6317
|
+
isAllRowDrag
|
|
6318
|
+
} = resizableOpts;
|
|
6311
6319
|
const rowOpts = computeRowOpts.value;
|
|
6312
6320
|
const rowDragOpts = computeRowDragOpts.value;
|
|
6313
6321
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
@@ -6361,6 +6369,7 @@ const renderType = 'body';
|
|
|
6361
6369
|
const showTitle = cellOverflow === 'title';
|
|
6362
6370
|
const showTooltip = cellOverflow === true || cellOverflow === 'tooltip';
|
|
6363
6371
|
const hasEllipsis = isAllOverflow || showTitle || showTooltip || showEllipsis;
|
|
6372
|
+
const showResizable = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
|
|
6364
6373
|
const isCsHeight = !!customCellHeight;
|
|
6365
6374
|
const isRsHeight = resizeHeight > 0;
|
|
6366
6375
|
let isDirty;
|
|
@@ -6575,7 +6584,17 @@ const renderType = 'body';
|
|
|
6575
6584
|
showAreaRowStatus = true;
|
|
6576
6585
|
}
|
|
6577
6586
|
}
|
|
6578
|
-
if (
|
|
6587
|
+
if (!fixedHiddenColumn && showResizable && isAllColumnDrag) {
|
|
6588
|
+
tdVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6589
|
+
key: 'tcc',
|
|
6590
|
+
class: ['vxe-cell--col-resizable', {
|
|
6591
|
+
'is--line': !border || border === 'none'
|
|
6592
|
+
}],
|
|
6593
|
+
onMousedown: evnt => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
6594
|
+
onDblclick: evnt => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
6595
|
+
}));
|
|
6596
|
+
}
|
|
6597
|
+
if ((rowResize || isAllRowDrag) && rowOpts.resizable) {
|
|
6579
6598
|
tdVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6580
6599
|
key: 'tcr',
|
|
6581
6600
|
class: 'vxe-cell--row-resizable',
|
|
@@ -7552,7 +7571,8 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7552
7571
|
computeColumnDragOpts,
|
|
7553
7572
|
computeCellOpts,
|
|
7554
7573
|
computeFooterCellOpts,
|
|
7555
|
-
computeDefaultRowHeight
|
|
7574
|
+
computeDefaultRowHeight,
|
|
7575
|
+
computeResizableOpts
|
|
7556
7576
|
} = $xeTable.getComputeMaps();
|
|
7557
7577
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
7558
7578
|
const refFooterScroll = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -7565,6 +7585,8 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7565
7585
|
fixedType
|
|
7566
7586
|
} = props;
|
|
7567
7587
|
const {
|
|
7588
|
+
resizable: allResizable,
|
|
7589
|
+
border,
|
|
7568
7590
|
footerCellClassName,
|
|
7569
7591
|
footerCellStyle,
|
|
7570
7592
|
footerAlign: allFooterAlign,
|
|
@@ -7584,6 +7606,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7584
7606
|
scrollXStore
|
|
7585
7607
|
} = tableInternalData;
|
|
7586
7608
|
const tooltipOpts = computeTooltipOpts.value;
|
|
7609
|
+
const resizableOpts = computeResizableOpts.value;
|
|
7610
|
+
const {
|
|
7611
|
+
isAllColumnDrag
|
|
7612
|
+
} = resizableOpts;
|
|
7587
7613
|
const columnOpts = computeColumnOpts.value;
|
|
7588
7614
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
7589
7615
|
const cellOpts = computeCellOpts.value;
|
|
@@ -7612,6 +7638,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7612
7638
|
const showTitle = footOverflow === 'title';
|
|
7613
7639
|
const showTooltip = footOverflow === true || footOverflow === 'tooltip';
|
|
7614
7640
|
let hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
7641
|
+
const showResizable = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
|
|
7615
7642
|
const attrs = {
|
|
7616
7643
|
colid
|
|
7617
7644
|
};
|
|
@@ -7737,7 +7764,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7737
7764
|
}, isVNPreEmptyStatus ? [] : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7738
7765
|
colid,
|
|
7739
7766
|
class: 'vxe-cell--wrapper'
|
|
7740
|
-
}, column.renderFooter(cellParams))])
|
|
7767
|
+
}, column.renderFooter(cellParams))]),
|
|
7768
|
+
/**
|
|
7769
|
+
* 列宽拖动
|
|
7770
|
+
*/
|
|
7771
|
+
!fixedHiddenColumn && showResizable && isAllColumnDrag ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7772
|
+
class: ['vxe-cell--col-resizable', {
|
|
7773
|
+
'is--line': !border || border === 'none'
|
|
7774
|
+
}],
|
|
7775
|
+
onMousedown: evnt => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
7776
|
+
onDblclick: evnt => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
7777
|
+
}) : footer_renderEmptyElement($xeTable)]);
|
|
7741
7778
|
});
|
|
7742
7779
|
};
|
|
7743
7780
|
const renderHeads = renderColumnList => {
|