mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +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 outerParamsSetRef = ref(null)
|
||||||
const { wsCache } = useCache('localStorage')
|
const { wsCache } = useCache('localStorage')
|
||||||
const userStore = useUserStoreWithOut()
|
const userStore = useUserStoreWithOut()
|
||||||
|
const isIframe = computed(() => appStore.getIsIframe)
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
createType: {
|
createType: {
|
||||||
@ -638,7 +639,7 @@ const initOpenHandler = newWindow => {
|
|||||||
</el-button>
|
</el-button>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu class="drop-style">
|
<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">
|
<el-icon style="margin-right: 8px; font-size: 16px">
|
||||||
<Icon name="icon_pc_fullscreen"><icon_pc_fullscreen class="svg-icon" /></Icon>
|
<Icon name="icon_pc_fullscreen"><icon_pc_fullscreen class="svg-icon" /></Icon>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
@ -299,6 +299,7 @@ const multiplexingCanvasOpen = () => {
|
|||||||
multiplexingRef.value.dialogInit('dataV')
|
multiplexingRef.value.dialogInit('dataV')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isIframe = computed(() => appStore.getIsIframe)
|
||||||
const fullScreenPreview = () => {
|
const fullScreenPreview = () => {
|
||||||
dvMainStore.canvasStateChange({ key: 'curPointArea', value: 'base' })
|
dvMainStore.canvasStateChange({ key: 'curPointArea', value: 'base' })
|
||||||
fullScreeRef.value.toggleFullscreen()
|
fullScreeRef.value.toggleFullscreen()
|
||||||
@ -436,7 +437,12 @@ const fullScreenPreview = () => {
|
|||||||
>
|
>
|
||||||
{{ t('visualization.edit') }}
|
{{ t('visualization.edit') }}
|
||||||
</el-button>
|
</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') }}
|
{{ t('visualization.preview') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
Loading…
Reference in New Issue
Block a user