forked from vuejs/language-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c734ee9
commit 5a89862
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
test-workspace/tsc/passedFixtures/vue3_strictTemplate/#4699/HelloWorld.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
msg?: string | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div class="greetings"> | ||
<h1 class="green">{{ msg }}</h1> | ||
<h3> | ||
You’ve successfully created a project with | ||
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> + | ||
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>. | ||
</h3> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
h1 { | ||
font-weight: 500; | ||
font-size: 2.6rem; | ||
position: relative; | ||
top: -10px; | ||
} | ||
h3 { | ||
font-size: 1.2rem; | ||
} | ||
.greetings h1, | ||
.greetings h3 { | ||
text-align: center; | ||
} | ||
@media (min-width: 1024px) { | ||
.greetings h1, | ||
.greetings h3 { | ||
text-align: left; | ||
} | ||
} | ||
</style> |
9 changes: 9 additions & 0 deletions
9
test-workspace/tsc/passedFixtures/vue3_strictTemplate/#4699/main.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script setup lang="ts"> | ||
import HelloWorld from './HelloWorld.vue' | ||
</script> | ||
|
||
<template> | ||
<HelloWorld msg="You did it!" id="4" /> | ||
<HelloWorld msg="You did it!" title="my html title" /> | ||
<HelloWorld msg="You did it!" aria-label="label" /> | ||
</template> |