wip: update directive scope variable mapping

This commit is contained in:
Evan You
2020-11-24 19:04:03 -05:00
parent bdc66c7ea4
commit 69d5c6887e
3 changed files with 14 additions and 25 deletions

View File

@@ -192,7 +192,7 @@ const myEmit = defineEmit(['foo', 'bar'])
<script setup>
import ChildComp from './Child.vue'
import SomeOtherComp from './Other.vue'
import vMyDir from './my-dir'
import myDir from './my-dir'
</script>
<template>
<div v-my-dir></div>
@@ -202,7 +202,7 @@ const myEmit = defineEmit(['foo', 'bar'])
`,
{ inlineTemplate: true }
)
expect(content).toMatch('[_unref(vMyDir)]')
expect(content).toMatch('[_unref(myDir)]')
expect(content).toMatch('_createVNode(ChildComp)')
// kebab-case component support
expect(content).toMatch('_createVNode(SomeOtherComp)')