mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
fix: 嵌入式去掉不支持的按钮
This commit is contained in:
parent
3dc6ce9e4c
commit
789992ce17
@ -80,6 +80,7 @@ const resourceGroupOpt = ref(null)
|
||||
const outerParamsSetRef = ref(null)
|
||||
const { wsCache } = useCache('localStorage')
|
||||
const userStore = useUserStoreWithOut()
|
||||
const isIframe = computed(() => appStore.getIsIframe)
|
||||
|
||||
const props = defineProps({
|
||||
createType: {
|
||||
@ -638,7 +639,7 @@ const initOpenHandler = newWindow => {
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu class="drop-style">
|
||||
<el-dropdown-item @click="previewInner">
|
||||
<el-dropdown-item @click="previewInner" v-if="!isIframe">
|
||||
<el-icon style="margin-right: 8px; font-size: 16px">
|
||||
<Icon name="icon_pc_fullscreen"><icon_pc_fullscreen class="svg-icon" /></Icon>
|
||||
</el-icon>
|
||||
|
@ -299,6 +299,7 @@ const multiplexingCanvasOpen = () => {
|
||||
multiplexingRef.value.dialogInit('dataV')
|
||||
}
|
||||
|
||||
const isIframe = computed(() => appStore.getIsIframe)
|
||||
const fullScreenPreview = () => {
|
||||
dvMainStore.canvasStateChange({ key: 'curPointArea', value: 'base' })
|
||||
fullScreeRef.value.toggleFullscreen()
|
||||
@ -436,7 +437,12 @@ const fullScreenPreview = () => {
|
||||
>
|
||||
{{ t('visualization.edit') }}
|
||||
</el-button>
|
||||
<el-button v-else class="preview-button" @click="fullScreenPreview" style="float: right">
|
||||
<el-button
|
||||
v-else-if="!isIframe"
|
||||
class="preview-button"
|
||||
@click="fullScreenPreview"
|
||||
style="float: right"
|
||||
>
|
||||
{{ t('visualization.preview') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
|
Loading…
Reference in New Issue
Block a user