Merge pull request #11089 from dataease/pr@dev-v2@fix_richtext

fix(图表): 修复富文本初始化可能未使用默认参数问题#11047 #11034
This commit is contained in:
王嘉豪 2024-07-22 18:17:58 +08:00 committed by GitHub
commit bcbe0ced0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,7 +106,8 @@ const { element, editMode, active, disabled, showPosition } = toRefs(props)
const state = reactive({
data: null,
viewDataInfo: null,
totalItems: 0
totalItems: 0,
firstRender: true
})
const dataRowSelect = ref({})
const dataRowNameSelect = ref({})
@ -453,8 +454,13 @@ const initCurFields = chartDetails => {
}
}
//
const renderChart = viewInfo => {
calcData(viewInfo)
if (!state.firstRender) {
calcData(viewInfo)
} else {
state.firstRender = false
}
}
const conditionAdaptor = (chart: Chart) => {