提交 c8476f73 编写于 作者: fxy060608's avatar fxy060608

fix(mp-alipay): emit (#3053)

上级 68e7c002
......@@ -183,12 +183,8 @@ export function triggerEvent(
return
}
const eventOpts = this.props['data-event-opts']
const target = {
dataset: {
eventOpts,
},
dataset: {},
}
handler({
......
......@@ -36,8 +36,7 @@ function createEmitFn(oldEmit: Function, ctx: Record<string, any>) {
}
}
if (__PLATFORM__ === 'mp-alipay') {
const vnode = this.$.vnode
const props = vnode && vnode.props
const props = scope.props as unknown as Record<string, unknown>
if (props && props[`on${capitalize(event)}`]) {
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册