Merge pull request #12216 from dataease/pr@dev-v2@fix_title_show

fix(图表): 标题未显示
This commit is contained in:
wisonic-s 2024-09-14 11:04:40 +08:00 committed by GitHub
commit 19cb7a6f80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,12 +119,13 @@ const props = defineProps({
const dynamicAreaId = ref('')
const { view, showPosition, element, active, searchCount, scale } = toRefs(props)
const titleShow = computed(
() =>
!['rich-text', 'Picture'].includes('rich-text') &&
const titleShow = computed(() => {
return (
!['rich-text', 'Picture'].includes(element.value.innerType) &&
state.title_show &&
showPosition.value !== 'viewDialog'
)
})
const snapshotStore = snapshotStoreWithOut()
const state = reactive({