提交 c4b518a0 编写于 作者: H hdx

fix(view组件): 设置子 hover-stop-propagation 属性阻止父时不生效的问题

上级 7032a705
import { ref } from 'vue'
import { withWebEvent } from './useEvent'
interface UseHoverOptions {
disabled?: string | boolean
......@@ -110,11 +111,11 @@ export function useHover(props: UseHoverOptions) {
return {
hovering,
binding: {
onTouchstartPassive,
onMousedown,
onTouchend,
onMouseup,
onTouchcancel,
onTouchstartPassive: withWebEvent(onTouchstartPassive),
onMousedown: withWebEvent(onMousedown),
onTouchend: withWebEvent(onTouchend),
onMouseup: withWebEvent(onMouseup),
onTouchcancel: withWebEvent(onTouchcancel),
},
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册