forked from github/dataease
refactor(图表): 插件图表编辑调整
This commit is contained in:
parent
95602b0e37
commit
a2ae5496f6
@ -304,7 +304,7 @@ const boardMoveActive = computed(() => {
|
||||
'symbolic-map',
|
||||
'heat-map'
|
||||
]
|
||||
return CHARTS.includes(element.value.innerType)
|
||||
return element.value.isPlugin || CHARTS.includes(element.value.innerType)
|
||||
})
|
||||
|
||||
const dashboardActive = computed(() => {
|
||||
|
@ -94,7 +94,7 @@ const invokeMethod = param => {
|
||||
if (pluginProxy.value['invokeMethod']) {
|
||||
pluginProxy.value['invokeMethod'](param)
|
||||
} else {
|
||||
pluginProxy.value[param.methodName](param.args)
|
||||
pluginProxy.value[param.methodName]?.(param.args)
|
||||
}
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -242,7 +242,7 @@ watch([() => resultMode.value], () => {
|
||||
|
||||
watch([() => scale.value], () => {
|
||||
nextTick(() => {
|
||||
chartComponent?.value?.renderChart(view.value)
|
||||
chartComponent?.value?.renderChart?.(view.value)
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user