mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
Merge pull request #13710 from dataease/pr@dev-v2@fix_canvas-size
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
fix(数据大屏): 修复尺寸较小的画布没有定位到中心点问题
This commit is contained in:
commit
976195fab6
@ -188,6 +188,7 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ruler-outer-scroll {
|
.ruler-outer-scroll {
|
||||||
|
min-width: 1600px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,6 @@ const onMouseMove = e => {
|
|||||||
const walkY = y - startY
|
const walkY = y - startY
|
||||||
canvasOut.value.wrapRef.scrollLeft = scrollLeft - walkX
|
canvasOut.value.wrapRef.scrollLeft = scrollLeft - walkX
|
||||||
canvasOut.value.wrapRef.scrollTop = scrollTop - walkY
|
canvasOut.value.wrapRef.scrollTop = scrollTop - walkY
|
||||||
console.log('====onMouseMove==walkX=' + walkX + ';walkY=' + walkY)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 禁用拖动
|
// 禁用拖动
|
||||||
@ -160,6 +159,7 @@ const contentStyle = computed(() => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
|
minWidth: '1600px',
|
||||||
width: width * 1.5 + 'px',
|
width: width * 1.5 + 'px',
|
||||||
height: height * 1.5 + 'px'
|
height: height * 1.5 + 'px'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user