Skip to content

Commit

Permalink
Merge pull request #1322 from didi/fix_ali_rule
Browse files Browse the repository at this point in the history
fix: fix ali transfer rules
  • Loading branch information
hiyuki authored Nov 14, 2023
2 parents 968ecb0 + bdadb2b commit e11e1af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,7 @@ module.exports = function ({ print }) {
// 快应用通用事件有touchstart|touchmove|touchend|touchcancel|longpress|click|focus|blur
event: [
{
// 支付宝中的view组件额外支持了transitionEnd|animationStart|animationIteration|animationEnd,故在此声明了组件事件转换逻辑
test: /^(transitionend|animationstart|animationiteration|animationend)$/,
//
ali (eventName) {
const eventMap = {
transitionend: 'transitionEnd',
animationstart: 'animationStart',
animationiteration: 'animationIteration',
animationend: 'animationEnd'
}
return eventMap[eventName]
},
qa: qaEventLogError
}
]
Expand Down
6 changes: 5 additions & 1 deletion packages/webpack-plugin/lib/platform/template/wx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ module.exports = function getSpec ({ warn, error }) {
touchcancel: 'touchCancel',
tap: 'tap',
longtap: 'longTap',
longpress: 'longTap'
longpress: 'longTap',
transitionend: 'transitionEnd',
animationstart: 'animationStart',
animationiteration: 'animationIteration',
animationend: 'animationEnd'
}
if (eventMap[eventName]) {
return eventMap[eventName]
Expand Down

0 comments on commit e11e1af

Please sign in to comment.