fix: 🐛 #72
This commit is contained in:
@@ -31,7 +31,12 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-slot:treeNodeIcon="slotProps">
|
<template v-slot:treeNodeIcon="slotProps">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
{{ (slotProps.model.children && slotProps.model.children.length > 0 && !slotProps.expanded) ? '🌲' : '' }}</span>
|
{{
|
||||||
|
slotProps.model.children && slotProps.model.children.length > 0 && !slotProps.expanded
|
||||||
|
? '🌲'
|
||||||
|
: ''
|
||||||
|
}}</span
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</vue-tree-list>
|
</vue-tree-list>
|
||||||
<button @click="getNewTree">Get new tree</button>
|
<button @click="getNewTree">Get new tree</button>
|
||||||
|
@@ -221,7 +221,8 @@ export default {
|
|||||||
this.rootNode.$emit('change-name', {
|
this.rootNode.$emit('change-name', {
|
||||||
id: this.model.id,
|
id: this.model.id,
|
||||||
oldName: oldName,
|
oldName: oldName,
|
||||||
newName: e.target.value
|
newName: e.target.value,
|
||||||
|
node: this.model
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -295,6 +296,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
dragEnter() {
|
dragEnter() {
|
||||||
|
if (!compInOperation) return
|
||||||
if (compInOperation.model.id === this.model.id || !compInOperation || this.model.isLeaf)
|
if (compInOperation.model.id === this.model.id || !compInOperation || this.model.isLeaf)
|
||||||
return
|
return
|
||||||
this.isDragEnterNode = true
|
this.isDragEnterNode = true
|
||||||
|
Reference in New Issue
Block a user