mirror of
https://github.com/dataease/dataease.git
synced 2026-05-17 06:50:45 +08:00
refactor: 过滤组件冻结位置样式调整
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
<template>
|
||||
<div
|
||||
class="shape"
|
||||
:class="{ 'shape-group-area': isGroupArea, 'freeze-component': freezeFlag }"
|
||||
:class="{
|
||||
'shape-group-area': isGroupArea,
|
||||
'freeze-component': freezeFlag,
|
||||
'freeze-component-fullscreen': freezeFlag && fullscreenFlag
|
||||
}"
|
||||
ref="shapeInnerRef"
|
||||
:id="domId"
|
||||
v-loading="downLoading"
|
||||
@@ -177,7 +181,8 @@ const {
|
||||
tabMoveOutComponentId,
|
||||
mobileInPc,
|
||||
mainScrollTop,
|
||||
hiddenListStatus
|
||||
hiddenListStatus,
|
||||
fullscreenFlag
|
||||
} = storeToRefs(dvMainStore)
|
||||
const { editorMap, areaData, isCtrlOrCmdDown } = storeToRefs(composeStore)
|
||||
const emit = defineEmits([
|
||||
@@ -1333,4 +1338,8 @@ onMounted(() => {
|
||||
z-index: 1;
|
||||
top: 66px !important;
|
||||
}
|
||||
|
||||
.freeze-component-fullscreen {
|
||||
top: 5px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -329,7 +329,7 @@ export function refreshOtherComponent(dvId, busiFlag) {
|
||||
}
|
||||
|
||||
export function initCanvasDataPrepare(dvId, params, callBack) {
|
||||
const busiFlag = params.busiFlg
|
||||
const busiFlag = params.busiFlag
|
||||
const copyFlag = busiFlag != null && busiFlag.includes('-copy')
|
||||
const busiFlagCustom = copyFlag ? busiFlag.split('-')[0] : busiFlag
|
||||
const method = copyFlag ? findCopyResource : findById
|
||||
|
||||
@@ -15,6 +15,7 @@ import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import BackgroundOverallCommon from '@/components/visualization/component-background/BackgroundOverallCommon.vue'
|
||||
import { isDashboard, isMainCanvas } from '@/utils/canvasUtils'
|
||||
const { t } = useI18n()
|
||||
const styleActiveNames = ref(['basicStyle'])
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
@@ -331,6 +332,7 @@ const onTitleChange = () => {
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="!mobileInPc && isDashboard() && isMainCanvas(element.canvasId)"
|
||||
class="form-item margin-bottom-8"
|
||||
:class="'form-item-' + themes"
|
||||
:label="t('visualization.query_position')"
|
||||
|
||||
@@ -161,8 +161,8 @@ const doUseCache = flag => {
|
||||
|
||||
const initLocalCanvasData = callBack => {
|
||||
const { resourceId, opt, sourcePid } = state
|
||||
const busiFlg = opt === 'copy' ? 'dashboard-copy' : 'dashboard'
|
||||
initCanvasData(resourceId, { busiFlg, resourceTable: 'snapshot' }, function () {
|
||||
const busiFlag = opt === 'copy' ? 'dashboard-copy' : 'dashboard'
|
||||
initCanvasData(resourceId, { busiFlag, resourceTable: 'snapshot' }, function () {
|
||||
dataInitState.value = true
|
||||
if (dvInfo.value && opt === 'copy') {
|
||||
dvInfo.value.dataState = 'prepare'
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: e0371cba72...c3d100fb07
Reference in New Issue
Block a user