Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i use demo (render tree with multiple parents) in vue3 it;s can not show the multiple parents #123

Open
wenzhenyu310 opened this issue Jul 20, 2022 · 4 comments

Comments

@wenzhenyu310
Copy link

the sandbox code like this, could you tell me what's wrong in this code
--------------------code---------------------------

能力值{{ node.name }}
<script> import VueTree from "@ssthouse/vue3-tree-chart"; import "@ssthouse/vue3-tree-chart/dist/vue3-tree-chart.css"; export default { name: "treemap", components :{ VueTree, }, data() { return { vehicules: { name: "Wheels", children: [ { name: "Wings", children: [ { name: "Plane", }, ], }, { name: "Piston", customID: 3, }, { name: "Carburetor", children: [ { name: "Truck", customID: 2, }, { name: "Car", customID: 2, }, ], }, { name: "Valve", customID: 4, }, { name: "Crankshaft", customID: 1, }, ], links: [ { parent: 1, child: 2 }, { parent: 3, child: 2 }, { parent: 4, child: 2 }, ], identifier: "customID", }, treeConfig: { nodeWidth: 120, nodeHeight: 80, levelHeight: 200 }, }; }, }; </script> <style scoped lang="less"> .container { display: flex; flex-direction: column; align-items: center; } .rich-media-node { width: 80px; padding: 8px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: white; background-color: #f7c616; border-radius: 4px; } </style>

@Nukeap
Copy link

Nukeap commented Oct 7, 2022

same problem vue2 too

@Eugene930
Copy link

Same problem, change the version of @ssthouse/vue-tree-chart to 0.5.4 works for me... @wenzhenyu310 @Nukeap

@cstrom10
Copy link

cstrom10 commented Aug 7, 2023

I have the same problem. @ssthouse/vue3-tree-chart@0.2.6 is not working. I downgraded to all 0.2.x and same problem.

image

Work with the @ssthouse/vue3-tree-chart@0.1.0

image

@chirag-acto
Copy link

Hi, I just wanted to know if this issue has been resolved or if there is any alternative way to fix it. I would be glad if anyone could share a solution (apart from downgrading the version). Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants