virtua 0.51.0 → 0.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -217,8 +217,8 @@ const data = Array.from({ length: 1000 }).map((_, i) => sizes[i % 4]);
217
217
  :key="index"
218
218
  :style="{
219
219
  height: item + 'px',
220
- background: 'white',
221
220
  borderBottom: 'solid 1px #ccc',
221
+ background: 'white',
222
222
  }"
223
223
  >
224
224
  {{ index }}
@@ -245,7 +245,7 @@ export const App = () => {
245
245
  style={{
246
246
  height: d + "px",
247
247
  "border-bottom": "solid 1px #ccc",
248
- background: "#fff",
248
+ background: "white",
249
249
  }}
250
250
  >
251
251
  {i()}
@@ -269,13 +269,13 @@ export const App = () => {
269
269
  const data = Array.from({ length: 1000 }).map((_, i) => sizes[i % 4]);
270
270
  </script>
271
271
 
272
- <VList {data} style="height: 100vh;" getKey={(_, i) => i}>
272
+ <VList {data} style="height: 800px;" getKey={(_, i) => i}>
273
273
  {#snippet children(item, index)}
274
274
  <div
275
275
  style="
276
276
  height: {item}px;
277
- background: white;
278
277
  border-bottom: solid 1px #ccc;
278
+ background: white;
279
279
  "
280
280
  >
281
281
  {index}