mirror of
https://github.com/dataease/dataease.git
synced 2026-05-24 06:18:10 +08:00
feat(数据大屏、仪表板): 嵌入式单图表渲染优化,支持增加图表id后缀等操作
This commit is contained in:
@@ -37,6 +37,12 @@ const props = defineProps({
|
||||
terminal: {
|
||||
type: String,
|
||||
default: 'pc'
|
||||
},
|
||||
//图表渲染id后缀
|
||||
suffixId: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'common'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -103,10 +103,16 @@ const props = defineProps({
|
||||
themes: {
|
||||
type: String as PropType<EditorTheme>,
|
||||
default: 'dark'
|
||||
},
|
||||
//图表渲染id后缀
|
||||
suffixId: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'common'
|
||||
}
|
||||
})
|
||||
|
||||
const { element, editMode, active, disabled, showPosition } = toRefs(props)
|
||||
const { element, editMode, active, disabled, showPosition, suffixId } = toRefs(props)
|
||||
|
||||
const state = reactive({
|
||||
emptyValue: '-',
|
||||
@@ -124,7 +130,7 @@ const initReady = ref(false)
|
||||
const editShow = ref(true)
|
||||
const canEdit = ref(false)
|
||||
// 初始化配置
|
||||
const tinymceId = 'tinymce-view-' + element.value.id
|
||||
const tinymceId = 'tinymce-view-' + element.value.id + '-' + suffixId.value
|
||||
const myValue = ref('')
|
||||
|
||||
const systemFontFamily = appearanceStore.fontList.map(item => item.name)
|
||||
|
||||
@@ -53,6 +53,11 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
suffixId: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'common'
|
||||
}
|
||||
})
|
||||
|
||||
@@ -89,6 +94,7 @@ const onPointClick = param => {
|
||||
:show-position="showPosition"
|
||||
:search-count="searchCount"
|
||||
:disabled="disabled"
|
||||
:suffixId="suffixId"
|
||||
@onPointClick="onPointClick"
|
||||
></chart>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user