svelte-virtual-list-viewport{ position:relative; overflow-y:auto; -webkit-overflow-scrolling:touch; display:block; } svelte-virtual-list-contents,svelte-virtual-list-row{ display:block; } svelte-virtual-list-row{ overflow:hidden; } <svelte-virtual...
yarn add @sveltejs/svelte-virtual-list Usage importVirtualListfrom'@sveltejs/svelte-virtual-list';constthings=[// these can be any values you like{name:'one',number:1},{name:'two',number:2},{name:'three',number:3},// ...{name:'six thousand and ninety-two',number:6092}];<Virtual...
yarn add @sveltejs/svelte-virtual-list Usage importVirtualListfrom'@sveltejs/svelte-virtual-list';constthings=[// these can be any values you like{name:'one',number:1},{name:'two',number:2},{name:'three',number:3},// ...{name:'six thousand and ninety-two',number:6092}];<Virtual...
svelte-tiny-virtual-list/types/index.d.ts Version: 4.58 kBTypeScriptView Raw 1/// <reference types="svelte" /> 2import{ SvelteComponentTyped }from'svelte'; 3 4exporttypeAlignment ="auto"|"start"|"center"|"end"; 5exporttypeScrollBehaviour ="auto"|"smooth"|"instant"; ...
我使用过svelte-infinite-loading,一开始它工作得很好,但随着列表变得很长,我的web应用程序开始使用大量的内存,使用了多达2 2gb的内存。 所以,我需要虚拟化这个无限列表。我按照svelte-infinite-loading的作者的建议使用了svelte-tiny-virtual-list: 代码语言:javascript 复制 ... function onInfinite({ detail }) ...
A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid and Svelte. If you want to check the difference with the alternatives right away, see comparison section. Motivation This project is a challenge to rethink virtualization. The goals are... Zero-...
A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid and Svelte. If you want to check the difference with the alternatives right away, see comparison section. Motivation This project is a challenge to rethink virtualization. The goals are... Zero-...