1234567891011121314 |
- <template>
- <div>孙
- <h3>祖父给了我{{ carNum }}辆车</h3>
- <button @click="addCar(10)">增加</button>
- </div>
- </template>
- <script lang="ts" setup>
- import {ref,reactive} from "vue"
- defineProps(['carNum','addCar'])
- </script>
- <style lang="scss" scoped>
- </style>
|