You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
490 B
Vue
28 lines
490 B
Vue
<script setup lang="ts">
|
|
import { ref } from 'vue';
|
|
|
|
defineProps<{ msg: string }>();
|
|
|
|
const count = ref(0);
|
|
</script>
|
|
|
|
<template>
|
|
<div style="width: 100%; height: 100%">
|
|
<h1>{{ msg }}</h1>
|
|
|
|
<div class="card">
|
|
<button type="button" @click="count++">count is {{ count }}</button>
|
|
<p>
|
|
Edit
|
|
<code>components/HelloWorld.vue</code> to test HMR
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.read-the-docs {
|
|
color: #888;
|
|
}
|
|
</style>
|