feat(sfc): remove <template inherit-attrs> support

This commit is contained in:
Evan You
2021-06-22 21:06:51 -04:00
parent 65f8c823aa
commit 6f6f0cf5dc
2 changed files with 10 additions and 32 deletions

View File

@@ -91,28 +91,6 @@ const myEmit = defineEmits(['foo', 'bar'])
emits: ['foo', 'bar'],`)
})
test('<template inherit-attrs="false">', () => {
const { content } = compile(`
<script>
export default {}
</script>
<template inherit-attrs="false">
{{ a }}
</template>
`)
assertCode(content)
const { content: content2 } = compile(`
<script setup>
const a = 1
</script>
<template inherit-attrs="false">
{{ a }}
</template>
`)
assertCode(content2)
})
describe('<script> and <script setup> co-usage', () => {
test('script first', () => {
const { content } = compile(`