-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixture.js
58 lines (49 loc) · 779 Bytes
/
fixture.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
export const mvp = `
<script>
import { ref } from 'vue'
export default {
setup() {
const msg = ref('Hello World!')
return { msg }
}
}
</script>
<template>
<h1>{{ msg }}</h1>
<input v-model="msg">
</template>
<style>
h1 { color: red }
</style>
`;
export const setup = `
<script setup>
import { ref } from 'vue'
const msg = ref('Hello World!')
</script>
<template>
<h1>{{ msg }}</h1>
<input v-model="msg">
</template>
<style>
h1 { color: red }
</style>
`;
export const scoped = `
<script>
import { ref } from 'vue'
export default {
setup() {
const msg = ref('Hello World!')
return { msg }
}
}
</script>
<template>
<h1 class="title">{{ msg }}</h1>
<input v-model="msg">
</template>
<style scoped>
.title { color: red }
</style>
`;