摘要: import { useRouter, useRoute, ref } from 'vue-router'; const router = useRouter(); const route = useRoute() // 获取所有的路由 const routes = router.getRoutes 阅读全文
posted @ 2022-02-23 17:40 吃饭睡觉打痘痘 阅读(90) 评论(0) 推荐(1) 编辑
摘要: vue3.x中的渲染函数 https://v3.cn.vuejs.org/guide/migration/render-function-api.html#_2-x-%E8%AF%AD%E6%B3%95-4 使用div,img,p等html标签 样式写在style标签里面,其他的属性都单独写在外面 阅读全文
posted @ 2022-02-23 15:39 吃饭睡觉打痘痘 阅读(1195) 评论(0) 推荐(1) 编辑
摘要: 父组件 <template> <child :tableData="tableData"></child> </template> <script lang="ts" setup> import { reactive, toRefs } from 'vue' import axios from 'a 阅读全文
posted @ 2022-02-23 15:29 吃饭睡觉打痘痘 阅读(3367) 评论(1) 推荐(0) 编辑