diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index 498e9fbb07..b86d8dab16 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -512,6 +512,19 @@ const labelStyle = computed(() => { } return style }) + +const paddingTop = computed(() => { + return { + paddingTop: customStyle.layout !== 'horizontal' ? customStyle.nameboxSpacing + 22 + 'px' : '0' + } +}) + +const marginRight = computed(() => { + return { + marginRight: customStyle.layout === 'horizontal' ? customStyle.nameboxSpacing + 'px' : '8px' + } +}) + const autoStyle = computed(() => { return { position: 'absolute', @@ -558,8 +571,8 @@ const autoStyle = computed(() => { :key="ele.id" v-for="(ele, index) in listVisible" > -
-
+
+
diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index 8b4bb188eb..4f0aea129d 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -1383,7 +1383,7 @@ defineExpose({ canvasViewInfo[field.componentId].title }} - {{ field.name }} + {{ field.name }} { } const title = computed(() => (state.curPosition === 'branch' ? '模板中心' : '使用模板新建')) -const isDataEaseBi = computed(() => appStore.getIsDataEaseBi) -const isIframe = computed(() => appStore.getIsIframe) +const isEmbedded = computed(() => appStore.getIsDataEaseBi || appStore.getIsIframe) const state = reactive({ initReady: true, curPosition: 'branch', @@ -472,7 +469,7 @@ const apply = template => { '&templateParams=' + encodeURIComponent(Base64.encode(JSON.stringify(templateTemplate))) let newWindow = null - if (isDataEaseBi.value) { + if (isEmbedded.value) { embeddedStore.clearState() embeddedStore.setCreateType('template') embeddedStore.setTemplateParams( @@ -491,11 +488,6 @@ const apply = template => { ) return } - - if (isIframe.value) { - router.push(parseUrl(state.pid ? baseUrl + `&pid=${state.pid}` : baseUrl)) - return - } if (state.pid) { newWindow = window.open(baseUrl + `&pid=${state.pid}`, '_blank') } else {