forked from github/dataease
Merge pull request #12566 from dataease/pr@dev-v2@refactor_adaptor
Pr@dev v2@refactor adaptor
This commit is contained in:
commit
dff754f0e9
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user