Skip to content

Commit

Permalink
chore: add test for #3340
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 13, 2024
1 parent e984392 commit 0fc20e4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-workspace/tsc/vue3/#3311/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import HelloWorld from './component.vue'
</script>
import HelloWorld from './component.vue';
</script>
14 changes: 14 additions & 0 deletions test-workspace/tsc/vue3/#3340/FooBar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { h } from 'vue';

function FooBar(props: { stuffAndThings: number; }) {
return h('div', `Made it: ${props.stuffAndThings}`);
}

FooBar.props = {
stuffAndThings: {
type: Number,
required: true,
},
};

export default FooBar;
13 changes: 13 additions & 0 deletions test-workspace/tsc/vue3/#3340/main.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script setup lang="ts">
import FooBar from './FooBar';
</script>

<template>
<FooBar :stuff-and-things="7" class="foo-bar" />
</template>

<style scoped>
.foo-bar {
color: blue;
}
</style>

0 comments on commit 0fc20e4

Please sign in to comment.