Skip to content

Commit 0fc20e4

Browse files
committed
chore: add test for #3340
1 parent e984392 commit 0fc20e4

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

test-workspace/tsc/vue3/#3311/main.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
</template>
99

1010
<script lang="ts" setup>
11-
import HelloWorld from './component.vue'
12-
</script>
11+
import HelloWorld from './component.vue';
12+
</script>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { h } from 'vue';
2+
3+
function FooBar(props: { stuffAndThings: number; }) {
4+
return h('div', `Made it: ${props.stuffAndThings}`);
5+
}
6+
7+
FooBar.props = {
8+
stuffAndThings: {
9+
type: Number,
10+
required: true,
11+
},
12+
};
13+
14+
export default FooBar;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script setup lang="ts">
2+
import FooBar from './FooBar';
3+
</script>
4+
5+
<template>
6+
<FooBar :stuff-and-things="7" class="foo-bar" />
7+
</template>
8+
9+
<style scoped>
10+
.foo-bar {
11+
color: blue;
12+
}
13+
</style>

0 commit comments

Comments
 (0)