function preTransformNode(el, options) {
  if (el.tag === 'template') {
    let name = el.attrsMap.name

    if (name) {
      el.attrsMap['slot'] = name
      el.attrsList.push({
        name: 'slot',
        value: name
      })
    }
  }
}
export default {
  preTransformNode
}

@@ -1,8 +1,71 @@
+import %7B normalizeElementName %7D from '../../element-registry'%0A%0A
 function
@@ -296,15 +296,388 @@
    %7D
+%0A%0A    let isListView = normalizeElementName(el.parent.tag) === 'listview'%0A    let scope = el.attrsMap.scope%0A    if (scope && isListView) %7B%0A      delete el.attrsMap.scope%0A      el.attrsList = el.attrsList.filter(attr =%3E attr.name !== 'scope')%0A%0A      el.attrsMap%5B'slot-scope'%5D = scope%0A      el.attrsList.push(%7B%0A        name: 'slot-scope',%0A        value: scope%0A      %7D)%0A    %7D
 %0A  %7D%0A
-
 %7D%0A
+%0A
 expo

Rename template scope to slot-scope internally, because scope is deprecated