File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< link rel ="icon " type ="image/svg " href ="/logo.svg " />
8
- < title > Vue SFC Playground</ title >
8
+ < title > Vue Vapor SFC Playground</ title >
9
9
< script >
10
10
const savedPreferDark = localStorage . getItem ( 'vue-sfc-playground-prefer-dark' )
11
11
if (
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function toggleDark() {
68
68
<nav >
69
69
<h1 >
70
70
<img alt =" logo" src =" /logo.svg" />
71
- <span >Vue SFC Playground</span >
71
+ <span >Vue Vapor SFC Playground</span >
72
72
</h1 >
73
73
<div class =" links" >
74
74
<VersionSelect
Original file line number Diff line number Diff line change 1
- <script setup>
1
+ <script setup lang="ts" >
2
2
import { ref , getCurrentInstance } from ' vue'
3
3
4
4
const msg = ref (' Hello World!' )
5
+ // @ts-expect-error
5
6
const isVapor = getCurrentInstance ().vapor
6
7
</script >
7
8
8
9
<template >
9
10
<h1 >{{ msg }}</h1 >
11
+ <p >
12
+ VAPOR <b >{{ isVapor ? 'ON' : 'OFF' }}</b >
13
+ </p >
10
14
<input v-model =" msg" />
11
- <b >VAPOR {{ isVapor ? 'ON' : 'OFF' }}</b >
12
15
</template >
You can’t perform that action at this time.
0 commit comments