sortablejs-vue3
sortablejs-vue3 copied to clipboard
Provide Props for wrapper Component `:component-data={...}`
When the Sortable
Component is used along with a root component to wrapper the items.
For instance, I need to render a TimelineView:
<Sortable tag="TimelineView" :component-data={density: 'compact', truncateLine: 'both'}"> <template #item="{element: node,index}"> <TimelineViewItem> {{ node.address.company }} </TimelineViewItem> </template> </Sortable>
This seems to always fail cause there is no way to pass ComponentData
to the wrapper Tag,Element or Component