refactor(图表): 指标卡同时使用联动和外部事件时,在非编辑界面可以使用弹框选择执行事件 (#15763)

This commit is contained in:
王嘉豪
2025-04-10 16:14:06 +08:00
committed by GitHub
parent ef4b71b6ab
commit b0a0066942
7 changed files with 98 additions and 34 deletions

View File

@@ -4,6 +4,11 @@ import Chart from '@/views/chart/components/views/index.vue'
import { isISOMobile } from '@/utils/utils'
const props = defineProps({
// 公共参数集
commonParams: {
type: Object,
required: false
},
active: {
type: Boolean,
default: false
@@ -90,7 +95,7 @@ const autoStyle = computed(() => {
return {}
}
})
const emits = defineEmits(['onPointClick'])
const emits = defineEmits(['onPointClick', 'onComponentEvent'])
const onPointClick = param => {
emits('onPointClick', param)
@@ -109,7 +114,9 @@ const onPointClick = param => {
:disabled="disabled"
:suffixId="suffixId"
:font-family="fontFamily"
:common-params="commonParams"
@onPointClick="onPointClick"
@onComponentEvent="() => emits('onComponentEvent')"
:opt-type="optType"
></chart>
</div>