code: function transfromAliapp(node) {
    const attrs = node.attrs || {}
    if (node.tag === 'icon') {
      const iconTypeNoSupport = ['circle', 'info_circle']
      if (iconTypeNoSupport.includes(attrs.type)) {
        console.warn(`支付宝小程序 <icon> 不支持 type: ${attrs.type}, 会导致页面不渲染。`)
      }
    }
    if (node.tag === 'scroll-view') {
      const nameMapping = {
        bindscrolltoupper: 'onScrollToUpper',
        bindscrolltolower: 'onScrollToLower'
      }
      replaceAttrNames(nameMapping)
    }
  
    if (node.tag === 'picker-view') {
      const nameMapping = {
        'indicator-style': 'indicatorStyle'
      }
      replaceAttrNames(nameMapping)
    }
  
    if (node.tag === 'slider') {
      const nameMapping = {
        'block-size': 'handleSize',
        'block-color': 'handleColor'
      }
      replaceAttrNames(nameMapping)
    }
  
    if (node.tag === 'image') {
      const nameMapping = {
        'lazy-load': 'lazyLoad'
      }
      replaceAttrNames(nameMapping)
    }
  
    if (node.tag === 'canvas') {
      const nameMapping = {
        'canvas-id': 'id'
      }
      replaceAttrNames(nameMapping)
    }
  
    if (node.tag === 'map') {
      const nameMapping = {
        'bindmarkertap': 'onMarkerTap',
        'bindcallouttap': 'onCalloutTap',
        'bindcontroltap': 'onControlTap',
        'bindregionchange': 'onRegionChange'
      }
      replaceAttrNames(nameMapping)
    }
  
    return node
  
    function replaceAttrNames(nameMapping) {
      Object.keys(nameMapping).forEach(name => {
        const value = attrs[name]
        if (value) {
          attrs[nameMapping[name]] = value;
          delete attrs[name];
        }
      })
    }
  }
docs: aliapp 转换器
  @param {*} node