Skip to content

Commit 2e3984f

Browse files
committed
chore: default code for sfc playground
1 parent 94e6461 commit 2e3984f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/sfc-playground/src/store.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,23 @@ import {
99
} from '@vue/compiler-sfc'
1010

1111
const storeKey = 'sfc-code'
12-
const saved = localStorage.getItem(storeKey) || ''
12+
const saved =
13+
localStorage.getItem(storeKey) ||
14+
`
15+
<template>
16+
<h1>{{ msg }}</h1>
17+
</template>
18+
19+
<script setup>
20+
const msg = 'Hello World!'
21+
</script>
22+
23+
<style scoped>
24+
h1 {
25+
color: #42b983;
26+
}
27+
</style>
28+
`.trim()
1329

1430
// @ts-ignore
1531
export const sandboxVueURL = import.meta.env.PROD

0 commit comments

Comments
 (0)