test vite ssr
This commit is contained in:
1 parent
6725bf89ad
commit
066f94188a
20 files changed
+406
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<h1>About</h1>
|
||||
<p>A colored page.</p>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
h1,
|
||||
p {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,8 @@
|
||||
<template>
|
||||
<button type="button" @click="state.count++">Counter {{ state.count }}</button>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { reactive } from 'vue'
|
||||
const state = reactive({ count: 0 })
|
||||
</script>
|
||||
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<h1>Welcome</h1>
|
||||
This page is:
|
||||
<ul>
|
||||
<li>Rendered to HTML.</li>
|
||||
<li>Interactive. <Counter /></li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import Counter from './Counter.vue'
|
||||
</script>
|
||||
Reference in new issue
Block a user