forked from github/dataease
fix(图表): 修复富文本初始化可能未使用默认参数问题#11047 #11034
This commit is contained in:
parent
1170e6c23a
commit
1ea578a09e
@ -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) => {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user