4989bc07d7850a607a1f98894cf3aa3108640bf1
- 实现了一个可滚动的列表组件,支持无限加载功能 - 组件包含加载中、加载完成、加载失败等状态的显示 - 支持自定义列表内容和各种状态下的显示内容 - 采用 Intersection Observer API 实现高效的滚动加载检测 -组件属性包括 loading、finished、errorText、finishedText、error、threshold、immediateCheck、height - 提供 load 和 update:loading事件
vue3-template
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur).
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
Description
Languages
Vue
57.1%
JavaScript
20.1%
TypeScript
12.2%
SCSS
4.3%
HTML
3.7%
Other
2.5%