{"id":23854888,"url":"https://github.com/junqiuzhang/vue-virtualized","last_synced_at":"2025-07-10T12:10:52.964Z","repository":{"id":126768979,"uuid":"374949522","full_name":"junqiuzhang/vue-virtualized","owner":"junqiuzhang","description":"vue virtualized render","archived":false,"fork":false,"pushed_at":"2022-05-13T14:15:06.000Z","size":185,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T23:13:08.086Z","etag":null,"topics":["list","virtual","virtualized","vue","vue3","vuejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junqiuzhang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-08T09:07:59.000Z","updated_at":"2022-02-09T07:49:51.000Z","dependencies_parsed_at":"2023-04-25T21:24:37.205Z","dependency_job_id":null,"html_url":"https://github.com/junqiuzhang/vue-virtualized","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"2ec4f8c7abd2e6e49b7fbd967105a224d1f26005"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqiuzhang%2Fvue-virtualized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqiuzhang%2Fvue-virtualized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqiuzhang%2Fvue-virtualized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqiuzhang%2Fvue-virtualized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junqiuzhang","download_url":"https://codeload.github.com/junqiuzhang/vue-virtualized/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232272358,"owners_count":18497826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["list","virtual","virtualized","vue","vue3","vuejs"],"created_at":"2025-01-03T00:18:23.398Z","updated_at":"2025-01-03T00:18:23.998Z","avatar_url":"https://github.com/junqiuzhang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-virtualized\n\n[中文文档](https://github.com/junqiuzhang/vue-virtualized/blob/master/README_zh-CN.md)\n\nvue-virtualized is a virtual rendering library, it can help you achieve virtual rendering of long lists, thereby improving the performance of list rendering.\n\n## Feature\n\n1. vue-virtualized is lightweight, only 100 lines of code, 2 KB in size.\n2. vue-virtualized has very good performance, no matter how long the list is, it can be easy 60 fps.\n3. vue-virtualized is written using vue3 composition api, and full support for typescript.\n\n## Install\n\n```\n# Yarn\nyarn add vue-virtualized\n\n# NPM\nnpm install --save vue-virtualized\n```\n\n## Usage\n\nSee example for usage, there are some announcements:\n\n1. vue-virtualized only support vue3, using jsx grammar.\n2. vue-virtualized only support one-dimension list, not support two-dimension table.\n3. vue-virtualized use renderItem function to render list items.\n4. vue-virtualized use reRenderCount to determine if list updates are needed.\n5. vue-virtualized use preRenderPageCount to control the number of pre-rendered pages.\n\n### Example\n\n```tsx\nimport List from \"vue-virtualized\";\n\u003cList\n  height={400}\n  width={600}\n  itemCount={props.dataSource.length} // Used to traverse a list, usually the length of the data source\n  itemSize={(index) =\u003e {\n    // used to get the height of a list item, numbers or functions can be passed\n    return 100;\n  }}\n  reRenderCount={1} // if your change list item‘s height, you must change this value\n  preRenderPageCount={1} // number of pre-rendered pages, the larger the number, the more list items will be pre-rendered\n  renderItem={({ index, style }) =\u003e {\n    // used to render list items\n    const data = props.dataSource[index];\n    return \u003cdiv style={style}\u003e{data}\u003c/div\u003e;\n  }}\n/\u003e;\n```\n\n### Interface\n\n```ts\ninterface IProps {\n  width: number;\n  height: number;\n  itemCount: number;\n  itemSize: (index: number) =\u003e number;\n  renderItem: (params: { index: number; style: CSSProperties }) =\u003e JSX.Element;\n  reRenderCount?: number;\n  preRenderPageCount?: number;\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunqiuzhang%2Fvue-virtualized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunqiuzhang%2Fvue-virtualized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunqiuzhang%2Fvue-virtualized/lists"}