Skip to content

Commit

Permalink
fix:(mp-alipay): handleProps eventList forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Oct 24, 2022
1 parent 56769ee commit adcb22e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/platforms/mp-alipay/runtime/wrapper/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ function handleProps (ref) {
let refProps = ref.props
const eventList = (refProps['data-event-list'] || '').split(',')
// 初始化支付宝小程序组件事件
Object.keys(refProps).forEach(key => {
if (eventList.includes(key)) {
eventList.forEach(key => {
const handler = refProps[key]
const res = key.match(/^on([A-Z])(\S*)/)
const event = res && (res[1].toLowerCase() + res[2])
Expand All @@ -127,7 +126,6 @@ function handleProps (ref) {
__args__: [...arguments]
})
}
}
})
// 处理 props 重写
Object.defineProperty(ref, 'props', {
Expand Down

0 comments on commit adcb22e

Please sign in to comment.