David-Desmaisons / Vue.D3.tree

Vue component to display tree based on D3.js layout.
https://david-desmaisons.github.io/Vue.D3.tree/tree
MIT License
874 stars 136 forks source link

not able to add the popup for adding the child from the node and deleting node #77

Open surendrapaluikey opened 3 years ago

surendrapaluikey commented 3 years ago

I have used the slot in this format but whenever I click on the text of the node it won't pop up.

code :

` <template #popUp="{data,node}">

                </template>
            </tree>`

any suggestion ?

dnzmsc commented 3 years ago

Same problem, did you solve it?

MarkoArsic commented 3 years ago

This works for me,

`<tree :data="tree" node-text="name" layoutType="vertical" type="tree" :duration="700" linkLayout="bezier" :zoomable="true" :minZoom="0.01" :maxZoom="35" :radius="6"

<template #popUp="{data,node}">

`

Sakthi002 commented 2 years ago

Solution Found.

use this <template slot="popUp" slot-scope="{data,node}"> instead of this <template #popUp="{data,node}">