摘要:
1.组件数据懒加载--到可视区域再发请求(vue3) 关键:如何判断组件进入视口 useIntersectionObserver 技术方案: 我们可以使用 @vueuse/core 中的 useIntersectionObserver 来实现监听组件进入可视区域行为,需要配合vue3.0的组合API 阅读全文
posted @ 2021-12-08 20:38
崛起崛起
阅读(1698)
评论(0)
推荐(0)
摘要:
1)定义基础骨架组件结构 components/Skeleton/index.vue <template> <div class="xtx-skeleton shan" :style="{ width: '60px', height: '30px' }" > <!-- 1 盒子--> <div cl 阅读全文
posted @ 2021-12-08 16:06
崛起崛起
阅读(262)
评论(0)
推荐(0)