mirror of
https://github.com/xsf0105/vue3-h5-template.git
synced 2025-04-06 04:00:04 +08:00
30 lines
584 B
Vue
30 lines
584 B
Vue
<template>
|
|
<h1>{{ msg }}</h1>
|
|
|
|
<p>
|
|
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite Documentation</a> |
|
|
<a href="https://v3.vuejs.org/" target="_blank">Vue 3 Documentation</a>
|
|
</p>
|
|
|
|
<button @click="state.count++">count is: {{ state.count }}</button>
|
|
<p>
|
|
Edit
|
|
<code>components/HelloWorld.vue</code> to test hot module replacement.
|
|
</p>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { defineProps, reactive } from 'vue'
|
|
|
|
defineProps({
|
|
msg: String
|
|
})
|
|
|
|
const state = reactive({ count: 0 })
|
|
</script>
|
|
|
|
<style scoped>
|
|
a {
|
|
color: #42b983;
|
|
}
|
|
</style> |