Skip to content

Releases: inokawa/virtua

0.21.1

23 Jan 00:28
Compare
Choose a tag to compare

What's Changed

  • Fix Vue warn Expected Object, got Function by @MstrVLT in #338

New Contributors

Full Changelog: 0.21.0...0.21.1

0.21.0

18 Jan 13:05
Compare
Choose a tag to compare
  • BREAKING CHANGE: RTL support for horizontal virtualization in Chrome earlier than v85 was dropped. Use older version if needed.

What's Changed

Full Changelog: 0.20.5...0.21.0

0.20.5

14 Jan 05:16
Compare
Choose a tag to compare

What's Changed

  • Fix wrong minHeight/minWidth of Vue VList by @inokawa in #325

Full Changelog: 0.20.4...0.20.5

0.20.4

12 Jan 03:33
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.20.3...0.20.4

0.20.3

10 Jan 14:56
Compare
Choose a tag to compare

What's Changed

  • Improve touch handling in WindowVirtualizer by @inokawa in #321

Full Changelog: 0.20.2...0.20.3

0.20.2

08 Jan 17:31
Compare
Choose a tag to compare

What's Changed

  • Revert "Add contain: content to container element" by @inokawa in #318

Full Changelog: 0.20.1...0.20.2

0.20.1

08 Jan 11:12
Compare
Choose a tag to compare

What's Changed

  • Ignore inappropriate flex style by @inokawa in #316
  • Update style of Vue VList to be the same as React by @inokawa in #317

Full Changelog: 0.20.0...0.20.1

0.20.0

07 Jan 12:10
Compare
Choose a tag to compare

BREAKING CHANGES

  • Incomplete padding support was dropped from VList. Use Virtualizer and startMargin/endMargin prop instead.
// VList
<VList style={{ paddingTop:20, paddingBottom: 40 }}>
 {createRows(1000)}
</VList>

// Virtualizer
<div style={{ overflowY: 'auto', overflowAnchor: "none" }}>
  <div style={{ height: 20 }}/>
  <Virtualizer startMargin={20} endMargin={40}>
   {createRows(1000)}
  </Virtualizer>
  <div style={{ height: 40 }}/>
</div>
  • components.Root prop of VList was removed. Use Virtualizer instead. If you want to customize scrollable element, just pass props to wrapper div. If you want to customize inner element, use as prop of Virtualizer.
// VList
<VList components={{ Root: ViewportComponent }}>
 {createRows(1000)}
</VList>

// Virtualizer
<div style={{ overflowY: 'auto' }}>
  <Virtualizer as={ContainerComponent}>
   {createRows(1000)}
  </Virtualizer>
</div>
  • WVList was renamed and changed to WindowVirtualizer because it has similar usability to Virtualizer. It's wrapper div was removed so add it by yourself if you need to apply some styles.
// WVList
<div style={{ padding: 200 }}>
  <WVList style={{ border: "solid 1px gray" }}>
   {createRows(1000)}
  </WVList>
</div>

// WindowVirtualizer
<div style={{ padding: 200 }}>
  <div style={{ border: "solid 1px gray" }}>
    <WindowVirtualizer>{createRows(1000)}</WindowVirtualizer>
  </div>
</div>
  • components.Item prop of VList was renamed to item
  • initialItemSize prop was renamed to itemSize
  • onScrollStop prop was renamed to onScrollEnd

What's Changed

Full Changelog: 0.19.2...0.20.0

0.19.2

04 Jan 14:07
Compare
Choose a tag to compare

What's Changed

  • Fix bug that scrollOffset can become minus by filtering after scrolling by @inokawa in #314

Full Changelog: 0.19.1...0.19.2

0.19.1

04 Jan 11:01
Compare
Choose a tag to compare

What's Changed

  • Improve jump compensation after prepending by @inokawa in #313

Full Changelog: 0.19.0...0.19.1