Merge branch 'dev-3.3' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.4

This commit is contained in:
zhangyu
2022-06-27 09:52:53 +08:00
2 changed files with 8 additions and 2 deletions

View File

@@ -291,8 +291,11 @@ export function moveElementAwayFromCollision (layout, collidesWith, itemToMove,
// Previously this was optimized to move below the collision directly, but this can cause problems
// with cascading moves, as an item may actually leapflog a collision and cause a reversal in order.
return moveElement(layout, itemToMove, undefined, itemToMove.y + 0.15, preventCollision)
let addY = 0.15
if (itemToMove.groupId) {
addY = 1
}
return moveElement(layout, itemToMove, undefined, itemToMove.y + addY, preventCollision)
}
/**

View File

@@ -479,6 +479,9 @@ export default {
// } catch (e) {
// console.info(e)
// }
if (item.y < 0) {
item.y = 0
}
height = (item.type === 'group' && item.param.collapse) ? this.headerH : item.height
// param.showHeader = true
if (param.valueMapping) {