compileScript.spec.ts (vue-2.7.13) | : | compileScript.spec.ts (vue-2.7.14) | ||
---|---|---|---|---|
skipping to change at line 1574 | skipping to change at line 1574 | |||
}) | }) | |||
// #12591 | // #12591 | |||
test('should not error when performing ts expression check for v-on inline s tatement', () => { | test('should not error when performing ts expression check for v-on inline s tatement', () => { | |||
compile(` | compile(` | |||
<script setup lang="ts"> | <script setup lang="ts"> | |||
import { foo } from './foo' | import { foo } from './foo' | |||
</script> | </script> | |||
<template> | <template> | |||
<div @click="$emit('update:a');"></div> | <div @click="$emit('update:a');"></div> | |||
</tempalte> | </template> | |||
`) | ||||
}) | ||||
// #12841 | ||||
test('should not error when performing ts expression check for v-slot destru | ||||
ctured default value', () => { | ||||
compile(` | ||||
<script setup lang="ts"> | ||||
import FooComp from './Foo.vue' | ||||
</script> | ||||
<template> | ||||
<FooComp> | ||||
<template #bar="{ bar = { baz: '' } }"> | ||||
{{ bar.baz }} | ||||
</template> | ||||
</FooComp> | ||||
</template> | ||||
`) | `) | |||
}) | }) | |||
}) | }) | |||
}) | }) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 18 lines changed or added |