wip: update directive scope variable mapping
This commit is contained in:
@@ -224,7 +224,7 @@ exports[`SFC compile <script setup> inlineTemplate mode referencing scope compon
|
||||
|
||||
import ChildComp from './Child.vue'
|
||||
import SomeOtherComp from './Other.vue'
|
||||
import vMyDir from './my-dir'
|
||||
import myDir from './my-dir'
|
||||
|
||||
export default {
|
||||
expose: [],
|
||||
@@ -234,7 +234,7 @@ export default {
|
||||
return (_ctx, _cache) => {
|
||||
return (_openBlock(), _createBlock(_Fragment, null, [
|
||||
_withDirectives(_createVNode(\\"div\\", null, null, 512 /* NEED_PATCH */), [
|
||||
[_unref(vMyDir)]
|
||||
[_unref(myDir)]
|
||||
]),
|
||||
_createVNode(ChildComp),
|
||||
_createVNode(SomeOtherComp)
|
||||
|
||||
@@ -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)')
|
||||
|
||||
Reference in New Issue
Block a user