{"_id":"@aurora-design/my-scroll-infinity","name":"@aurora-design/my-scroll-infinity","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@aurora-design/my-scroll-infinity","version":"0.0.0","description":"The ability to inject a infinity load for BetterScroll.","author":{"name":"fengweiyao","email":"fengweiyao0317@hotmail.com"},"main":"dist/infinity.min.js","module":"dist/infinity.esm.js","typings":"dist/types/index.d.ts","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/ustbhuangyi/better-scroll/issues"},"homepage":"https://github.com/ustbhuangyi/better-scroll","keywords":["scroll","iscroll","javascript","typescript","ios","infinity"],"repository":{"type":"git","url":"git+ssh://git@github.com/ustbhuangyi/better-scroll.git","directory":"packages/infinity"},"dependencies":{"@better-scroll/core":"^2.5.1"},"gitHead":"e6c0b1d78e877cba446945ed21514ea8f5201fb4","_id":"@aurora-design/my-scroll-infinity@0.0.0","_nodeVersion":"23.8.0","_npmVersion":"lerna/3.22.1/node@v23.8.0+x64 (win32)","dist":{"integrity":"sha512-zin1SaMFgZuveGk32D1NSav1nfy5MuF7GbF0Yc9V89r2AGP8VchzEiD3BakT0Ue9wtmeutrbjXCEcEkLMC7e2A==","shasum":"264093a93b6d8d82f745ef418564eb4f2572e11f","tarball":"https://registry.npmjs.org/@aurora-design/my-scroll-infinity/-/my-scroll-infinity-0.0.0.tgz","fileCount":21,"unpackedSize":93413,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEXvptr7yuG8aVWQOWzD8POFyctbjCRdpfhA2P9wtDn6AiEAkN4g8IcTr4D8wo5hnZgGnQsWCiN78YZtNT573lOWfBk="}]},"_npmUser":{"name":"akirarika","email":"i@nito.ink"},"directories":{},"maintainers":[{"name":"akirarika","email":"i@nito.ink"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/my-scroll-infinity_0.0.0_1747806108907_0.8951671944506774"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-21T05:41:48.821Z","0.0.0":"2025-05-21T05:41:49.089Z","modified":"2025-05-21T05:41:49.357Z"},"maintainers":[{"name":"akirarika","email":"i@nito.ink"}],"description":"The ability to inject a infinity load for BetterScroll.","homepage":"https://github.com/ustbhuangyi/better-scroll","keywords":["scroll","iscroll","javascript","typescript","ios","infinity"],"repository":{"type":"git","url":"git+ssh://git@github.com/ustbhuangyi/better-scroll.git","directory":"packages/infinity"},"author":{"name":"fengweiyao","email":"fengweiyao0317@hotmail.com"},"bugs":{"url":"https://github.com/ustbhuangyi/better-scroll/issues"},"readme":"# @better-scroll/infinity\r\n\r\n[中文文档](https://github.com/ustbhuangyi/better-scroll/blob/master/packages/infinity/README_zh-CN.md)\r\n\r\nThe ability to inject a infinity load for BetterScroll.\r\n\r\n## Usage\r\n\r\n```js\r\nimport BScroll from '@better-scroll/core'\r\nimport InfinityScroll from '@better-scroll/infinity'\r\nBScroll.use(InfinityScroll)\r\n\r\nconst bs = new BScroll('.wrapper', {\r\n  infinity: {\r\n    fetch(count) {\r\n      // Fetch data that is larger than count, the function is asynchronous, and it needs to return a Promise.。\r\n      // After you have successfully fetch the data, you need resolve an array of data (or resolve Promise).\r\n      // Each element of the array is list data, which will be rendered when the render method executes。\r\n      // If there is no data, you can resolve (false) to tell the infinite scroll list that there is no more data。\r\n    }\r\n    render(item, div) {\r\n      // Rendering each element node, item is data, and div is a container for wrapping element nodes.\r\n      // The function needs to return to the rendered DOM node.\r\n    },\r\n    createTombstone() {\r\n      // Returns a tombstone DOM node.。\r\n    }\r\n  }\r\n})\r\n```\r\n","readmeFilename":"README.md","_rev":"1-58f877c1da77b63953643bfc5c0984a1"}