fix: 限制事件触发位置,防止复用的位置误触发事件

This commit is contained in:
wangjiahao 2024-08-26 16:10:27 +08:00
parent 8016368f42
commit f99d075569

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 => {