实例
访问props
<template>
<div>
{{ word }}
</div>
</template>
<script lang="ts" setup>
import { defineProps } from "vue";
defineProps(["word"]);
</script>
<style></style>
<template>
<div>
{{ word }}
</div>
</template>
<script lang="ts" setup>
import { defineProps } from "vue";
defineProps(["word"]);
</script>
<style></style>