可能需要前置学习【TypeScript】小满TypeScript基础教程全集(完结)

TypeScripts配置文件参数讲解:
https://www.bilibili.com/video/BV1wR4y1377K?p=19

B站:小满 《 Vue3 + vite + Ts + pinia + 实战 + 源码 +electron》

23章:css里面也可以使用v-bind绑定setup中定义的变量

<script setup>
import {ref} from 'vue'
const color = ref('red')
</script>
<style>
.a {
 background: v-bind(color)
}
</style>

21章-2:animate.css 动画CSS类库
https://animate.style/

21章-3:gsap动画插件:
https://greensock.com/gsap/

24章:mitt插件可实现事件派发与订阅功能,实现兄弟节点通信

npm install mitt -S

26章:自动import
https://github.com/antfu/unplugin-auto-import

28章:自定义hooks
提到 VUEUSE库,已经做好了很多的功能
https://vueuse.org/

这个代码可以生成一个81的对象数组

Array.apply(null, {length: 81}).map((_,index)=>{return {id: index, number: (index % 9) + 1} })

标签: none

添加新评论