Comments (5)
@Steveiwonder Thank you for your detailed report. I'll fix this soon.
from vuetify-draggable-treeview.
Label slot for children nodes seems to work well in the demo app.
vuetify-draggable-treeview/demo/src/components/HelloWorld.vue
Lines 60 to 62 in 4eb2295
Can you give me some example code or repository to reproduce your issue?
from vuetify-draggable-treeview.
Hi;
i have same issue ,
in demo ,label slot for children node does not work too.
from vuetify-draggable-treeview.
I also have this same issue.
<VuetifyDraggableTreeview v-model="items">
<template v-slot:label="{item}">{{item.name}} [TEST]</template>
</VuetifyDraggableTreeview>
All top level elements have [TEST] appended, but any child elements do not
EDIT:
After looking at the code
https://github.com/suusan2go/vuetify-draggable-treeview/blob/master/src/DraggableTreeviewNode.vue
Child elements don't support label slot?
<draggable
:group="group"
:value="value.children"
ghost-class="ghost"
@input="updateValue"
>
<treeview-node
v-for="child in value.children"
:key="child.id"
:group="group"
:value="child"
:level="level + 1"
@input="updateChildValue"
>
<template v-slot:prepend="{ item, open }">
<slot name="prepend" v-bind="{ item, open }" />
</template>
<template v-slot:append="{ item }">
<slot name="append" v-bind="{ item }" />
</template>
</treeview-node>
</draggable>
Should be
<draggable :group="group" :value="value.children" ghost-class="ghost" @input="updateValue">
<treeview-node
v-for="child in value.children"
:key="child.id"
:group="group"
:value="child"
:level="level + 1"
@input="updateChildValue"
>
<template v-slot:prepend="{ item, open }">
<slot name="prepend" v-bind="{ item, open }" />
</template>
<template v-slot:label="{ item, open }">
<slot name="label" v-bind="{ item, open }"></slot>
</template>
<template v-slot:append="{ item }">
<slot name="append" v-bind="{ item }" />
</template>
</treeview-node>
</draggable>
from vuetify-draggable-treeview.
this has been fixed and released as version 0.0.5. Thank you for your report 🍻
from vuetify-draggable-treeview.
Related Issues (14)
- With Vuetify 2.2 the alignment of children is working differently HOT 2
- Insert, children = null or empty HOT 5
- How to get the moved item and the item that was moved? HOT 1
- Possibility for an "open-all" prop HOT 1
- Looking bad after build HOT 2
- bad data emission
- Drag from data table and drop to tree node
- Support for Vuetify props ? HOT 2
- Is it possible to get what "level" the node is on?
- draggable item are disappear
- How to get vue draggable treeview without any level ?
- Draggable prop not working?
- Error: [vuex] do not mutate vuex store state outside mutation handlers. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuetify-draggable-treeview.