mirror of https://github.com/vuejs/core.git
chore: update playground vapor welcome
This commit is contained in:
parent
e60ec9f399
commit
f6f3f14a3e
|
@ -1,15 +1,9 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, getCurrentInstance } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const msg = ref('Hello World!')
|
||||
// @ts-expect-error
|
||||
const isVapor = getCurrentInstance().vapor
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>{{ msg }}</h1>
|
||||
<p>
|
||||
VAPOR <b>{{ isVapor ? 'ON' : 'OFF' }}</b>
|
||||
</p>
|
||||
<input v-model="msg" />
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue