Skip to content

Commit e57d1f1

Browse files
committed
releases 4.17.27
1 parent b1d7455 commit e57d1f1

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vxe-table",
3-
"version": "4.17.26",
3+
"version": "4.17.27",
44
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
55
"scripts": {
66
"update": "npm install --legacy-peer-deps",

packages/table/src/table.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,10 @@ export default defineVxeComponent({
527527
const cellOpts = computeCellOpts.value
528528
let headCellHeight = XEUtils.toNumber(getCalcHeight(headerCellOpts.height || cellOpts.height))
529529
if ($xeGantt) {
530-
const { computeTaskScaleConfs } = $xeGantt.getComputeMaps()
531-
const taskScaleConfs = computeTaskScaleConfs.value
532-
if (taskScaleConfs && taskScaleConfs.length > 2) {
533-
const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskScaleConfs.length
530+
const { computeTaskViewScales } = $xeGantt.getComputeMaps()
531+
const taskViewScales = computeTaskViewScales.value
532+
if (taskViewScales && taskViewScales.length > 2) {
533+
const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskViewScales.length
534534
headCellHeight = Math.max(ganttMinHeadCellHeight, headCellHeight)
535535
}
536536
}
@@ -4719,20 +4719,28 @@ export default defineVxeComponent({
47194719
$xeTable.analyColumnWidth()
47204720
$xeTable.recalculate().then(() => {
47214721
$xeTable.saveCustomStore('update:width')
4722-
$xeTable.updateCellAreas()
4722+
$xeTable.refreshScroll().then(() => {
4723+
$xeTable.updateCellAreas()
4724+
})
47234725
$xeTable.dispatchEvent('column-resizable-change', params, evnt)
47244726
// 已废弃 resizable-change
47254727
$xeTable.dispatchEvent('resizable-change', params, evnt)
4726-
setTimeout(() => $xeTable.recalculate(true), 300)
4728+
setTimeout(() => {
4729+
$xeTable.recalculate(true)
4730+
}, 300)
47274731
})
47284732
}
47294733

47304734
const handleUpdateRowResize = (evnt: MouseEvent, params: any) => {
47314735
reactData.resizeHeightFlag++
47324736
$xeTable.recalculate().then(() => {
4733-
$xeTable.updateCellAreas()
4737+
$xeTable.refreshScroll().then(() => {
4738+
$xeTable.updateCellAreas()
4739+
})
47344740
$xeTable.dispatchEvent('row-resizable-change', params, evnt)
4735-
setTimeout(() => $xeTable.recalculate(true), 300)
4741+
setTimeout(() => {
4742+
$xeTable.recalculate(true)
4743+
}, 300)
47364744
})
47374745
}
47384746

0 commit comments

Comments
 (0)