Merge pull request #12566 from dataease/pr@dev-v2@refactor_adaptor

Pr@dev v2@refactor adaptor
This commit is contained in:
王嘉豪 2024-10-08 17:22:18 +08:00 committed by GitHub
commit dff754f0e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,6 +126,9 @@ const baseComponentData = computed(() =>
)
const canvasStyle = computed(() => {
let style = {}
if (isMainCanvas(canvasId.value) && !isDashboard()) {
style['overflowY'] = 'hidden !important'
}
if (canvasStyleData.value && canvasStyleData.value.width && isMainCanvas(canvasId.value)) {
style = {
...getCanvasStyle(canvasStyleData.value),
@ -383,7 +386,9 @@ const filterBtnShow = computed(
const datasetParamsInit = item => {
customDatasetParamsRef.value?.optInit(item)
}
const dataVPreview = computed(
() => dvInfo.value.type === 'dataV' && canvasId.value === 'canvas-main'
)
defineExpose({
restore
})
@ -394,7 +399,7 @@ defineExpose({
:id="domId"
class="canvas-container"
:style="canvasStyle"
:class="{ 'de-download-custom': downloadStatus }"
:class="{ 'de-download-custom': downloadStatus, 'datav-preview': dataVPreview }"
ref="previewCanvas"
@mousedown="handleMouseDown"
>
@ -467,4 +472,8 @@ defineExpose({
.fix-button {
position: fixed !important;
}
.datav-preview {
overflow-y: hidden !important;
}
</style>