refactor(图表): 插件逻辑重构
This commit is contained in:
parent
fc0daad7ce
commit
91e3115faa
@ -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