vxe-table 3.23.0 → 3.23.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/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/methods.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/methods.js +5 -5
- package/lib/table/src/methods.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/methods.ts +7 -6
- package/packages/table/src/util.ts +2 -2
- package/styles/components/table.scss +3 -1
- /package/es/{iconfont.1787473155426.ttf → iconfont.1787542588120.ttf} +0 -0
- /package/es/{iconfont.1787473155426.woff → iconfont.1787542588120.woff} +0 -0
- /package/es/{iconfont.1787473155426.woff2 → iconfont.1787542588120.woff2} +0 -0
- /package/lib/{iconfont.1787473155426.ttf → iconfont.1787542588120.ttf} +0 -0
- /package/lib/{iconfont.1787473155426.woff → iconfont.1787542588120.woff} +0 -0
- /package/lib/{iconfont.1787473155426.woff2 → iconfont.1787542588120.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.1",
|
|
4
4
|
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -2634,9 +2634,10 @@ const calcCellHeight = ($xeTable: VxeTableConstructor) => {
|
|
|
2634
2634
|
if (!el || !el.clientWidth) {
|
|
2635
2635
|
return
|
|
2636
2636
|
}
|
|
2637
|
+
const cellOpts = $xeTable.computeCellOpts
|
|
2637
2638
|
const treeOpts = $xeTable.computeTreeOpts
|
|
2638
2639
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
2639
|
-
if (!isAllOverflow && (scrollYLoad || scrollXLoad || (treeConfig && treeOpts.showLine))) {
|
|
2640
|
+
if (!isAllOverflow && (scrollYLoad || scrollXLoad || cellOpts.maxHeight || (treeConfig && treeOpts.showLine))) {
|
|
2640
2641
|
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
2641
2642
|
el.setAttribute('data-calc-row', 'Y')
|
|
2642
2643
|
tableData.forEach(row => {
|
|
@@ -4467,7 +4468,7 @@ function updateRowOffsetTop ($xeTable: VxeTableConstructor & VxeTablePrivateMeth
|
|
|
4467
4468
|
const rowid = handleGetRowId(row)
|
|
4468
4469
|
const rowRest = fullAllDataRowIdData[rowid] || {}
|
|
4469
4470
|
rowRest.oTop = offsetTop
|
|
4470
|
-
offsetTop += rowRest
|
|
4471
|
+
offsetTop += getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
4471
4472
|
// 是否展开行
|
|
4472
4473
|
if (expandColumn && rowExpandedMaps[rowid]) {
|
|
4473
4474
|
offsetTop += rowRest.expandHeight || expandOpts.height || 0
|
|
@@ -4510,7 +4511,7 @@ function updateRowExpandStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
4510
4511
|
if (isScrollYBig && trEl) {
|
|
4511
4512
|
offsetTop = trEl.offsetTop + trEl.offsetHeight
|
|
4512
4513
|
} else {
|
|
4513
|
-
offsetTop = rowRest.oTop + (rowRest
|
|
4514
|
+
offsetTop = rowRest.oTop + getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
4514
4515
|
}
|
|
4515
4516
|
} else {
|
|
4516
4517
|
if (trEl) {
|
|
@@ -7384,7 +7385,7 @@ const tableMethods: any = {
|
|
|
7384
7385
|
return
|
|
7385
7386
|
}
|
|
7386
7387
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
7387
|
-
let currCellHeight = rowRest
|
|
7388
|
+
let currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
7388
7389
|
if (!showOverflow) {
|
|
7389
7390
|
currCellHeight = tdEl.clientHeight
|
|
7390
7391
|
}
|
|
@@ -7551,7 +7552,7 @@ const tableMethods: any = {
|
|
|
7551
7552
|
if (rowRest) {
|
|
7552
7553
|
const resizeHeight = rowRest.resizeHeight
|
|
7553
7554
|
if (resizeHeight || isFull) {
|
|
7554
|
-
const currCellHeight =
|
|
7555
|
+
const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
7555
7556
|
rest[rowid] = currCellHeight
|
|
7556
7557
|
}
|
|
7557
7558
|
}
|
|
@@ -7626,7 +7627,7 @@ const tableMethods: any = {
|
|
|
7626
7627
|
const rowid = XEUtils.isString(rowOrId) || XEUtils.isNumber(rowOrId) ? rowOrId : getRowid($xeTable, rowOrId)
|
|
7627
7628
|
const rowRest = fullAllDataRowIdData[rowid]
|
|
7628
7629
|
if (rowRest) {
|
|
7629
|
-
return rowRest
|
|
7630
|
+
return getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
7630
7631
|
}
|
|
7631
7632
|
return 0
|
|
7632
7633
|
},
|
|
@@ -735,10 +735,10 @@ export function handleRowidOrRow ($xeTable: VxeTableConstructor, rowidOrRow: any
|
|
|
735
735
|
export function getCellRestHeight (rowRest: VxeTableDefines.RowCacheItem, cellOpts: VxeTablePropTypes.CellConfig, rowOpts: VxeTablePropTypes.RowConfig, defaultRowHeight: number) {
|
|
736
736
|
const { height, minHeight, maxHeight } = cellOpts
|
|
737
737
|
let cellHeight = rowRest.resizeHeight || height || rowOpts.height || rowRest.height || defaultRowHeight
|
|
738
|
-
if (maxHeight && maxHeight
|
|
738
|
+
if (maxHeight && maxHeight <= cellHeight) {
|
|
739
739
|
cellHeight = maxHeight
|
|
740
740
|
}
|
|
741
|
-
if (minHeight && minHeight
|
|
741
|
+
if (minHeight && minHeight >= cellHeight) {
|
|
742
742
|
cellHeight = minHeight
|
|
743
743
|
}
|
|
744
744
|
return cellHeight
|
|
@@ -2188,7 +2188,6 @@ $btnThemeList: (
|
|
|
2188
2188
|
& > .vxe-cell {
|
|
2189
2189
|
display: flex;
|
|
2190
2190
|
flex-direction: row;
|
|
2191
|
-
align-items: center;
|
|
2192
2191
|
}
|
|
2193
2192
|
}
|
|
2194
2193
|
/*溢出列*/
|
|
@@ -2705,6 +2704,9 @@ $btnThemeList: (
|
|
|
2705
2704
|
}
|
|
2706
2705
|
}
|
|
2707
2706
|
|
|
2707
|
+
.vxe-cell--wrapper {
|
|
2708
|
+
margin: auto 0;
|
|
2709
|
+
}
|
|
2708
2710
|
.vxe-body--row {
|
|
2709
2711
|
.vxe-table--column {
|
|
2710
2712
|
.vxe-cell {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|