Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Jul 21:21

5.0.0 (2024-07-05)

  • feat!: replace components by scoped slots for customization

BREAKING CHANGES

This release introduces scoped slots allowing to customize some parts of the UI. They replace previous custom components passed as props : itemComponent, arrowComponent and undocumented dragImageComponent, dropZoneComponent.

- <Finder :tree="tree" :item-component="itemComponent" />
+ <Finder :tree="tree">
+   <template #item="{ item }">
+     <div style="color: blue">
+       <em>Name:</em> <strong>{{ item.label }}</strong>
+     </div>
+  </template>
+ </Finder>
- itemComponent: {
-   props: ["item"],
-   template: '<div style="color: blue"><em>Name:</em> <strong>{{ item.label }}</strong></div>',
- }

See https://vue-finder.netlify.app/customization.html#custom-slots