MaxLeiter / MaxLeiter/sortablejs-vue3
Provide Props for wrapper Component `:component-data={...}`
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 413
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Sortable component's wrapper rendering path and trace how the tag, Element, or Component wrapper is selected and receives data. Verify the TimelineView example and its density and truncateLine values, with completion defined as those values reaching the root wrapper without the current failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100