{"_id":"@axios-use/list-vue","name":"@axios-use/list-vue","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@axios-use/list-vue","version":"0.1.0","description":"A list component used to display items and control loading status.","type":"module","main":"./lib/index.cjs","module":"./esm/index.js","types":"./esm/index.d.ts","unpkg":"./dist/list-vue.umd.js","scripts":{"build":"rimraf dist lib esm; npm run build:js; npm run build:type","build:js":"vite build","build:type":"vue-tsc --project ./tsconfig.lib.json --outDir ./esm --emitDeclarationOnly","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore","format":"prettier --write src/"},"repository":{"type":"git","url":"git+ssh://git@github.com/@axios-use/list-vue.git"},"keywords":["vue","list","vue-list","infinite-list","scroll"],"author":{"name":"wangcch","email":"wangcch.cc@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/@axios-use/list-vue/issues"},"homepage":"https://github.com/@axios-use/list-vue#readme","peerDependencies":{"vue":">=3.0.0"},"devDependencies":{"@rushstack/eslint-patch":"^1.10.3","@tsconfig/node18":"^18.2.4","@types/node":"^20.14.12","@vitejs/plugin-vue":"^5.1.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^13.0.0","@vue/tsconfig":"^0.5.1","eslint":"^8.57.0","eslint-plugin-vue":"^9.27.0","prettier":"^3.3.3","rimraf":"^5.0.5","typescript":"^5.5.4","vue":"^3.4.31","vue-tsc":"^2.0.29"},"_id":"@axios-use/list-vue@0.1.0","gitHead":"406186683a05b42e4d8ad28fc36d095c407d055a","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-QGsLEtl9au/9EFB/J6MzYrlLkBSh/udFWSZnbj6cDPScYPAGGHfGYMt+PIvai83H8Ho76KTKX6a/Y5e1yHKjew==","shasum":"d987e59737e81886aebff6b64266abd8689a8143","tarball":"https://registry.npmjs.org/@axios-use/list-vue/-/list-vue-0.1.0.tgz","fileCount":19,"unpackedSize":23647,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVVJ8+itG36p2JiBsqZNV6/z6ozfWx1dKEe1ZTwkicTAiAUWn4dXdzhUXhEu5g+J7dv1ThdUchQVrg6lcqFoS7tzA=="}]},"_npmUser":{"name":"wangcch","email":"wangcch.cc@gmail.com"},"directories":{},"maintainers":[{"name":"wangcch","email":"wangcch.cc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/list-vue_0.1.0_1722182752869_0.9285043837904237"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-28T16:05:52.758Z","0.1.0":"2024-07-28T16:05:53.022Z","modified":"2024-07-28T16:05:53.288Z"},"maintainers":[{"name":"wangcch","email":"wangcch.cc@gmail.com"}],"description":"A list component used to display items and control loading status.","homepage":"https://github.com/@axios-use/list-vue#readme","keywords":["vue","list","vue-list","infinite-list","scroll"],"repository":{"type":"git","url":"git+ssh://git@github.com/@axios-use/list-vue.git"},"author":{"name":"wangcch","email":"wangcch.cc@gmail.com"},"bugs":{"url":"https://github.com/@axios-use/list-vue/issues"},"license":"MIT","readme":"# list-vue\n\nA list component used to display items and control loading status.\n\n```shell\nnpm i @axios-use/list-vue\n```\n\n```ts\nimport { ScrollList } from '@axios-use/list-vue'\n```\n\n## ScrollList\n\n### `ScrollList`.props\n\n| name           | type         | default      | desc                                                                                         |\n| -------------- | ------------ | ------------ | -------------------------------------------------------------------------------------------- |\n| prefixCls      | `string`     | --           | prefix classname. 自定义 class 前缀                                                          |\n| direction      | `up`\\|`down` | `down`       | Scroll direction. 滚动方向                                                                   |\n| offset         | `number`     | `300`        | Trigger `load` distance condition. 小于 offset 距离，触发 `load` 事件                        |\n| scroller       | `Element`    | --           | Custom the parent scroll node. 自定义父类滚动节点                                            |\n| loading        | `boolean`    | --           | Whether to show loading info. 展示加载中                                                     |\n| disabled       | `boolean`    | --           | Whether to disable the load event. 是否禁用滚动加载                                          |\n| finished       | `boolean`    | --           | Whether loading is finished                                                                  |\n| error          | `boolean`    | --           | Whether loading is error. 是否加载失败                                                       |\n| immediateCheck | `boolean`    | `true`       | Whether to check loading position immediately after mounted. 是否在 `onMounted` 检查滚动位置 |\n| finishedText   | `string`     | --           | Finished text. 加载完成后提示文案                                                            |\n| errorText      | `string`     | --           | Error loaded text. 加载失败后提示文案                                                        |\n| loadingText    | `string`     | `loading...` | Loading text. 加载过程中提示文案                                                             |\n\n### `ScrollList`.emits\n\n| name           | desc                                                                                                                                      |\n| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |\n| load           | Triggered when the distance between the scroll bar and the head or bottom is less than offset. 滚动条与头部或底部距离小于 `offset` 时触发 |\n| update:loading |                                                                                                                                           |\n| update:error   |                                                                                                                                           |\n\n### `ScrollList`.slot\n\n| name     | desc                                           |\n| -------- | ---------------------------------------------- |\n| default  | List content. 列表内容                         |\n| finished | Custom finished node. 自定义加载完成后提示模块 |\n| error    | Custom error node. 自定义加载失败后提示模块    |\n| loading  | Custom loading node. 自定义底部/头部加载中模块 |\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}