chore: default code for sfc playground
This commit is contained in:
parent
94e6461808
commit
2e3984fd5b
@ -9,7 +9,23 @@ import {
|
||||
} from '@vue/compiler-sfc'
|
||||
|
||||
const storeKey = 'sfc-code'
|
||||
const saved = localStorage.getItem(storeKey) || ''
|
||||
const saved =
|
||||
localStorage.getItem(storeKey) ||
|
||||
`
|
||||
<template>
|
||||
<h1>{{ msg }}</h1>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const msg = 'Hello World!'
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
h1 {
|
||||
color: #42b983;
|
||||
}
|
||||
</style>
|
||||
`.trim()
|
||||
|
||||
// @ts-ignore
|
||||
export const sandboxVueURL = import.meta.env.PROD
|
||||
|
Loading…
Reference in New Issue
Block a user