<script setup lang="ts">
  import { ref } from 'vue';

  defineProps<{ msg: string }>();

  const count = ref(0);
</script>

<template>
  <h1>{{ msg }}</h1>

  <button type="button" class="btn" @click="count++">功德 +{{ count }}</button>
</template>
