packages/okam-build/lib/processor/template/plugins/event/event-helper.js
function transformMiniProgramEventType(element, eventType, opts) {
    let {customComponentTags} = opts || {};
    let tagName = element.name.toLowerCase();
    let isClickEvent = eventType === 'click';
    if (customComponentTags) {
        let isCustomTag = customComponentTags.some(item => item === tagName);
        if (isCustomTag) {
            return eventType;
        }
    }

    return isClickEvent ? 'tap' : eventType;
}
function transformMiniProgramEventType(element, eventType, opts) {
    let {customComponentTags} = opts || {};
    let tagName = element.name.toLowerCase();
    let isClickEvent = eventType === 'click';
    if (customComponentTags) {
        let isCustomTag = customComponentTags.some(item => item === tagName);
        if (isCustomTag) {
            return eventType;
        }
    }

    return isClickEvent ? 'tap' : eventType;
}
function transformMiniProgramEventType ( element , eventType , opts ) { let { customComponentTags } = opts || { } ; let tagName = element . name . toLowerCase ( ) ; let isClickEvent = eventType === 'click' ; if ( customComponentTags ) { let isCustomTag = customComponentTags . some ( item => item === tagName ) ; if ( isCustomTag ) { return eventType ; } } return isClickEvent ? 'tap' : eventType ; }
Transform mini program event type:
`click` -> `tap` only for native component

@param {Object} element the element to transform
@param {string} eventType the event type to transform
@param {Object} opts the transform plugin options
@return {string}
Transform mini program event type : click - > tap only for native component