Skip to content

Commit 6149d4c

Browse files
committed
chore: update fervid version
1 parent 372c2dd commit 6149d4c

File tree

6 files changed

+483
-48
lines changed

6 files changed

+483
-48
lines changed

examples/vite/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
},
1414
"devDependencies": {
1515
"unplugin-vue-fervid": "workspace:*",
16-
"vite": "^6.0.6",
16+
"vite": "npm:rolldown-vite@latest",
1717
"vite-plugin-inspect": "^10.0.6"
18+
},
19+
"pnpm": {
20+
"overrides": {
21+
"vite": "npm:rolldown-vite@latest"
22+
}
1823
}
1924
}

examples/vite/src/App.vue

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue'
32
import HelloWorld from './components/HelloWorld.vue'
4-
5-
const count = ref(0)
6-
function counter() {
7-
count.value++
8-
console.log("count1", count.value);
9-
}
103
</script>
114

125
<template>
13-
<div>Im testing</div>
14-
<img src="./assets/aaa.jpg" width="100" height="100" alt="logo" />
15-
<button type="button" @click="counter">count1 is {{ count }}</button>
16-
<HelloWorld />
6+
<div>
7+
<a href="https://vite.dev" target="_blank">
8+
<img src="/vite.svg" class="logo" alt="Vite logo" />
9+
</a>
10+
<a href="https://vuejs.org/" target="_blank">
11+
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
12+
</a>
13+
</div>
14+
<HelloWorld msg="Vite + Vue" />
1715
</template>
16+
17+
<style scoped>
18+
.logo {
19+
height: 6em;
20+
padding: 1.5em;
21+
will-change: filter;
22+
transition: filter 300ms;
23+
}
24+
.logo:hover {
25+
filter: drop-shadow(0 0 2em #646cffaa);
26+
}
27+
.logo.vue:hover {
28+
filter: drop-shadow(0 0 2em #42b883aa);
29+
}
30+
</style>

examples/vite/src/assets/aaa.jpg

-4.94 MB
Binary file not shown.
Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,41 @@
11
<script setup lang="ts">
22
import { ref } from 'vue'
33
4+
defineProps<{ msg: string }>()
5+
46
const count = ref(0)
5-
function counter() {
6-
count.value++
7-
console.log("count2", count.value);
8-
}
97
</script>
108

119
<template>
12-
<div>123</div>
13-
<div>
14-
<button type="button" @click="counter">count2 is {{ count }}</button>
10+
<h1>{{ msg }}</h1>
11+
12+
<div class="card">
13+
<button type="button" @click="count++">count is {{ count }}</button>
14+
<p>
15+
Edit
16+
<code>components/HelloWorld.vue</code> to test HMR
17+
</p>
1518
</div>
19+
20+
<p>
21+
Check out
22+
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
23+
>create-vue</a
24+
>, the official Vue + Vite starter
25+
</p>
26+
<p>
27+
Learn more about IDE Support for Vue in the
28+
<a
29+
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
30+
target="_blank"
31+
>Vue Docs Scaling up Guide</a
32+
>.
33+
</p>
34+
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
1635
</template>
36+
37+
<style scoped>
38+
.read-the-docs {
39+
color: #888;
40+
}
41+
</style>

examples/vite/src/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
2-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
2+
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
33
line-height: 1.5;
44
font-weight: 400;
55

0 commit comments

Comments
 (0)