vxe-table 4.21.0-beta.4 → 4.21.0-beta.6
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/dist/all.esm.js +27 -8
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- 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/export/export-panel.js +2 -0
- package/es/table/module/export/import-panel.js +2 -0
- package/es/table/src/body.js +12 -5
- package/es/table/src/util.js +9 -1
- package/es/table/style.css +3 -3
- 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 -3
- 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 +33 -8
- 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/export/export-panel.js +2 -0
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +2 -0
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/src/body.js +14 -5
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/util.js +13 -1
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +3 -3
- 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 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/export/export-panel.ts +2 -0
- package/packages/table/module/export/import-panel.ts +2 -0
- package/packages/table/src/body.ts +13 -5
- package/packages/table/src/util.ts +9 -1
- package/styles/components/table.scss +2 -1
- /package/es/{iconfont.1787216126332.ttf → iconfont.1787300517083.ttf} +0 -0
- /package/es/{iconfont.1787216126332.woff → iconfont.1787300517083.woff} +0 -0
- /package/es/{iconfont.1787216126332.woff2 → iconfont.1787300517083.woff2} +0 -0
- /package/lib/{iconfont.1787216126332.ttf → iconfont.1787300517083.ttf} +0 -0
- /package/lib/{iconfont.1787216126332.woff → iconfont.1787300517083.woff} +0 -0
- /package/lib/{iconfont.1787216126332.woff2 → iconfont.1787300517083.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -47,7 +47,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
47
47
|
return XEUtils.eqNull(val1) ? def1 : val1;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const version = "4.21.0-beta.
|
|
50
|
+
const version = "4.21.0-beta.6";
|
|
51
51
|
VxeUI.version = version;
|
|
52
52
|
VxeUI.tableVersion = version;
|
|
53
53
|
VxeUI.setConfig({
|
|
@@ -769,7 +769,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
const { log } = VxeUI;
|
|
772
|
-
const tableVersion = `table v${"4.21.0-beta.
|
|
772
|
+
const tableVersion = `table v${"4.21.0-beta.6"}`;
|
|
773
773
|
function createComponentLog(name) {
|
|
774
774
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
775
775
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -1621,7 +1621,15 @@ function handleRowidOrRow($xeTable, rowidOrRow) {
|
|
|
1621
1621
|
return null;
|
|
1622
1622
|
}
|
|
1623
1623
|
function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
|
|
1624
|
-
|
|
1624
|
+
const { height, minHeight, maxHeight } = cellOpts;
|
|
1625
|
+
let cellHeight = rowRest.resizeHeight || height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
1626
|
+
if (maxHeight && maxHeight < cellHeight) {
|
|
1627
|
+
cellHeight = maxHeight;
|
|
1628
|
+
}
|
|
1629
|
+
if (minHeight && minHeight > cellHeight) {
|
|
1630
|
+
cellHeight = minHeight;
|
|
1631
|
+
}
|
|
1632
|
+
return cellHeight;
|
|
1625
1633
|
}
|
|
1626
1634
|
function getPaddingLeftRightSize(elem) {
|
|
1627
1635
|
if (elem) {
|
|
@@ -4163,7 +4171,7 @@ var TableBodyComponent = defineVxeComponent({
|
|
|
4163
4171
|
const cellOffsetWidth = computeCellOffsetWidth.value;
|
|
4164
4172
|
const { selectCellToRow } = areaOpts;
|
|
4165
4173
|
const { field, type, cellRender, editRender, align, showOverflow, className, treeNode, rowResize, padding, verticalAlign, slots } = column;
|
|
4166
|
-
const { verticalAlign: allVerticalAlign } = cellOpts;
|
|
4174
|
+
const { verticalAlign: allVerticalAlign, minHeight, maxHeight } = cellOpts;
|
|
4167
4175
|
const { actived } = editStore;
|
|
4168
4176
|
const rowRest = fullAllDataRowIdData[rowid] || {};
|
|
4169
4177
|
const colid = column.id;
|
|
@@ -4345,6 +4353,9 @@ var TableBodyComponent = defineVxeComponent({
|
|
|
4345
4353
|
}
|
|
4346
4354
|
}
|
|
4347
4355
|
const tcStyle = {};
|
|
4356
|
+
if (maxHeight) {
|
|
4357
|
+
tcStyle.maxHeight = maxHeight + 'px';
|
|
4358
|
+
}
|
|
4348
4359
|
if (hasEllipsis && resizeWidthFlag) {
|
|
4349
4360
|
let mergeColWidth = 0;
|
|
4350
4361
|
if (mergeColspan > 1) {
|
|
@@ -4355,13 +4366,16 @@ var TableBodyComponent = defineVxeComponent({
|
|
|
4355
4366
|
}
|
|
4356
4367
|
}
|
|
4357
4368
|
}
|
|
4358
|
-
tcStyle.width =
|
|
4369
|
+
tcStyle.width = (column.renderWidth + mergeColWidth - cellOffsetWidth) + 'px';
|
|
4359
4370
|
}
|
|
4360
4371
|
if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
4361
|
-
tcStyle.height =
|
|
4372
|
+
tcStyle.height = cellHeight + 'px';
|
|
4362
4373
|
}
|
|
4363
4374
|
else {
|
|
4364
|
-
tcStyle.minHeight =
|
|
4375
|
+
tcStyle.minHeight = cellHeight + 'px';
|
|
4376
|
+
}
|
|
4377
|
+
if (minHeight) {
|
|
4378
|
+
tcStyle.minHeight = minHeight + 'px';
|
|
4365
4379
|
}
|
|
4366
4380
|
const tdVNs = [];
|
|
4367
4381
|
if (fixedHiddenColumn && isAllOverflow) {
|
|
@@ -4407,7 +4421,7 @@ var TableBodyComponent = defineVxeComponent({
|
|
|
4407
4421
|
class: ['vxe-cell--valid-error-tip', getPropClass(validOpts.className, validParams)],
|
|
4408
4422
|
style: errRule && errRule.maxWidth
|
|
4409
4423
|
? {
|
|
4410
|
-
width:
|
|
4424
|
+
width: errRule.maxWidth + 'px'
|
|
4411
4425
|
}
|
|
4412
4426
|
: null
|
|
4413
4427
|
}, [
|
|
@@ -4462,6 +4476,7 @@ var TableBodyComponent = defineVxeComponent({
|
|
|
4462
4476
|
'col--rs-height': isRsHeight,
|
|
4463
4477
|
'col--to-row': showAreaRowStatus,
|
|
4464
4478
|
'col--auto-height': isVNAutoHeight,
|
|
4479
|
+
'col--max-height': maxHeight,
|
|
4465
4480
|
'fixed--width': !isAutoCellWidth,
|
|
4466
4481
|
'fixed--hidden': fixedHiddenColumn,
|
|
4467
4482
|
'is--padding': isCellPadding,
|
|
@@ -7731,7 +7746,9 @@ var TableImportPanelComponent = defineVxeComponent({
|
|
|
7731
7746
|
showFooter: true,
|
|
7732
7747
|
escClosable: true,
|
|
7733
7748
|
maskClosable: true,
|
|
7749
|
+
position: modelOptions.position,
|
|
7734
7750
|
fullscreen: modelOptions.fullscreen,
|
|
7751
|
+
remember: modelOptions.remember,
|
|
7735
7752
|
showMinimize: modelOptions.showMinimize,
|
|
7736
7753
|
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
7737
7754
|
resize: getDefaultConfig(modelOptions.resize, true),
|
|
@@ -8095,7 +8112,9 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8095
8112
|
showFooter: true,
|
|
8096
8113
|
escClosable: true,
|
|
8097
8114
|
maskClosable: true,
|
|
8115
|
+
position: modelOptions.position,
|
|
8098
8116
|
fullscreen: modelOptions.fullscreen,
|
|
8117
|
+
remember: modelOptions.remember,
|
|
8099
8118
|
showMinimize: modelOptions.showMinimize,
|
|
8100
8119
|
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
8101
8120
|
resize: getDefaultConfig(modelOptions.resize, true),
|