利用饿了么的页面用vue3+typescript+tsx重写了一遍,写的比较粗糙,只是一些自己的理解, 大佬请忽略,入门可看看.常用的 vue API 都基本使用到了,例如emit,watch,computed,nextTick等等;
还有父子组件通讯,父调子组件方法等等.
tsx 的父子组件多饶了一步,大致跟 TPL 的写法相似
新增滚动加载 + 下拉刷新等操作.结合 BetterScroll 实现
yarn install
yarn serve
yarn build
yarn lint