vxe-table 4.21.0 → 4.21.1
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 +11 -10
- 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/src/table.js +7 -6
- package/es/table/src/util.js +2 -2
- package/es/table/style.css +3 -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 +3 -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 +9 -9
- 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/table.js +5 -5
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +2 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +3 -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 +3 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/table/src/table.ts +7 -6
- package/packages/table/src/util.ts +2 -2
- package/styles/components/table.scss +3 -1
- /package/es/{iconfont.1787473169817.ttf → iconfont.1787542597284.ttf} +0 -0
- /package/es/{iconfont.1787473169817.woff → iconfont.1787542597284.woff} +0 -0
- /package/es/{iconfont.1787473169817.woff2 → iconfont.1787542597284.woff2} +0 -0
- /package/lib/{iconfont.1787473169817.ttf → iconfont.1787542597284.ttf} +0 -0
- /package/lib/{iconfont.1787473169817.woff → iconfont.1787542597284.woff} +0 -0
- /package/lib/{iconfont.1787473169817.woff2 → iconfont.1787542597284.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.
|
|
50
|
+
const version = "4.21.1";
|
|
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.
|
|
772
|
+
const tableVersion = `table v${"4.21.1"}`;
|
|
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}` : '';
|
|
@@ -1623,10 +1623,10 @@ function handleRowidOrRow($xeTable, rowidOrRow) {
|
|
|
1623
1623
|
function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
|
|
1624
1624
|
const { height, minHeight, maxHeight } = cellOpts;
|
|
1625
1625
|
let cellHeight = rowRest.resizeHeight || height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
1626
|
-
if (maxHeight && maxHeight
|
|
1626
|
+
if (maxHeight && maxHeight <= cellHeight) {
|
|
1627
1627
|
cellHeight = maxHeight;
|
|
1628
1628
|
}
|
|
1629
|
-
if (minHeight && minHeight
|
|
1629
|
+
if (minHeight && minHeight >= cellHeight) {
|
|
1630
1630
|
cellHeight = minHeight;
|
|
1631
1631
|
}
|
|
1632
1632
|
return cellHeight;
|
|
@@ -17628,9 +17628,10 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
17628
17628
|
if (!el || !el.clientWidth) {
|
|
17629
17629
|
return;
|
|
17630
17630
|
}
|
|
17631
|
+
const cellOpts = computeCellOpts.value;
|
|
17631
17632
|
const treeOpts = computeTreeOpts.value;
|
|
17632
17633
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
17633
|
-
if (!isAllOverflow && (scrollYLoad || scrollXLoad || (treeConfig && treeOpts.showLine))) {
|
|
17634
|
+
if (!isAllOverflow && (scrollYLoad || scrollXLoad || cellOpts.maxHeight || (treeConfig && treeOpts.showLine))) {
|
|
17634
17635
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
17635
17636
|
el.setAttribute('data-calc-row', 'Y');
|
|
17636
17637
|
tableData.forEach(row => {
|
|
@@ -20274,7 +20275,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
20274
20275
|
const rowid = handleGetRowId(row);
|
|
20275
20276
|
const rowRest = fullAllDataRowIdData[rowid] || {};
|
|
20276
20277
|
rowRest.oTop = offsetTop;
|
|
20277
|
-
offsetTop += rowRest
|
|
20278
|
+
offsetTop += getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
20278
20279
|
// 是否展开行
|
|
20279
20280
|
if (expandColumn && rowExpandedMaps[rowid]) {
|
|
20280
20281
|
offsetTop += rowRest.expandHeight || expandOpts.height || 0;
|
|
@@ -20314,7 +20315,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
20314
20315
|
offsetTop = trEl.offsetTop + trEl.offsetHeight;
|
|
20315
20316
|
}
|
|
20316
20317
|
else {
|
|
20317
|
-
offsetTop = rowRest.oTop + (rowRest
|
|
20318
|
+
offsetTop = rowRest.oTop + getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
20318
20319
|
}
|
|
20319
20320
|
}
|
|
20320
20321
|
else {
|
|
@@ -21823,7 +21824,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
21823
21824
|
if (rowRest) {
|
|
21824
21825
|
const resizeHeight = rowRest.resizeHeight;
|
|
21825
21826
|
if (resizeHeight || isFull) {
|
|
21826
|
-
const currCellHeight =
|
|
21827
|
+
const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
21827
21828
|
rest[rowid] = currCellHeight;
|
|
21828
21829
|
}
|
|
21829
21830
|
}
|
|
@@ -21889,7 +21890,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
21889
21890
|
const rowid = XEUtils.isString(rowOrId) || XEUtils.isNumber(rowOrId) ? rowOrId : getRowid($xeTable, rowOrId);
|
|
21890
21891
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
21891
21892
|
if (rowRest) {
|
|
21892
|
-
return rowRest
|
|
21893
|
+
return getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
21893
21894
|
}
|
|
21894
21895
|
return 0;
|
|
21895
21896
|
},
|
|
@@ -25550,7 +25551,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
25550
25551
|
return;
|
|
25551
25552
|
}
|
|
25552
25553
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
25553
|
-
let currCellHeight = rowRest
|
|
25554
|
+
let currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
25554
25555
|
if (!showOverflow) {
|
|
25555
25556
|
currCellHeight = tdEl.clientHeight;
|
|
25556
25557
|
}
|