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