nl_tokens: parse event name eg : @click - > bindtap @click . stop - > catchtap @click . capture - > capture - bindtap @click . capture . stop - > capture - catchtap
pl_tokens: function parseWxSwanEventName ( name , element , tplOpts , opts ) { let eventAttrName = name . replace ( EVENT_REGEXP , '' ) ; let [ eventType , ... eventModifiers ] = eventAttrName . <mask> ( '.' ) ; let eventMode = 'bind' ; eventType = transformMiniProgramEventType ( element , eventType , opts ) ; const includesStop = eventModifiers . includes ( 'stop' ) ; const includesCapture = eventModifiers . includes ( 'capture' ) ; if ( includesCapture ) { eventMode = includesStop ? 'capture-catch:' : 'capture-bind:' ; } else if ( includesStop ) { eventMode = 'catch' ; } eventAttrName = eventMode + eventType ; return { eventType , eventAttrName , eventModifiers } ; }