fix(图表): 修复富文本初始化可能未使用默认参数问题#11047 #11034

This commit is contained in:
wangjiahao 2024-07-22 18:14:35 +08:00
parent 1170e6c23a
commit 1ea578a09e
2 changed files with 9 additions and 3 deletions

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 => {
if (!state.firstRender) {
calcData(viewInfo)
} else {
state.firstRender = false
}
}
const conditionAdaptor = (chart: Chart) => {

View File

@ -347,7 +347,7 @@ watch(
v-model="chart.customAttr.label.show"
:change-model="chart.customAttr.label"
@modelChange="val => onLabelChange(val, 'show')"
:title="$t('chart.label') + '11'"
:title="$t('chart.label')"
name="label"
>
<label-selector