Merge pull request #11750 from dataease/pr@dev-v2@fix_event

fix: 限制事件触发位置,防止复用的位置误触发事件
This commit is contained in:
王嘉豪 2024-08-26 16:11:33 +08:00 committed by GitHub
commit 908fe4f052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -232,12 +232,13 @@ const onPointClick = param => {
const eventEnable = computed(
() =>
['Picture', 'CanvasIcon', 'CircleShape', 'SvgTriangle', 'RectShape', 'ScrollText'].includes(
showPosition.value.includes('preview') &&
(['Picture', 'CanvasIcon', 'CircleShape', 'SvgTriangle', 'RectShape', 'ScrollText'].includes(
config.value.component
) ||
(['indicator', 'rich-text'].includes(config.value.innerType) &&
config.value.events &&
config.value.events.checked)
(['indicator', 'rich-text'].includes(config.value.innerType) &&
config.value.events &&
config.value.events.checked))
)
const onWrapperClick = e => {