vue3-organization-chart
45,763
19
| Install | |
|---|---|
npm install vue3-organization-chart |
|
| Latest Version: | 1.9.4 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Nov 10, 2023 |
| Links: | GitHub · npm |
Maintainer: augustinrib

Foreword
- First of all, thank you very much for the excellent work of dabeng. I'm just adding my sauce to move the project to Vue3
- It work's with VueJS 3 !
Installation
npm install vue3-organization-chart --save
Demos
Since codesandbox and jsfiddle can't get vue3 to work properly. I am currently developing a doc.
Usage
<template>
<div>
<organization-chart :datasource="ds"></organization-chart>
</div>
</template>
<script>
import OrganizationChart from 'vue3-organization-chart'
import 'vue3-organization-chart/dist/orgchart.css'
export default {
components: {
OrganizationChart
},
data () {
return {
ds: {
'id': '1',
'name': 'Lao Lao',
'title': 'general manager',
'children': [
{ 'id': '2', 'name': 'Bo Miao', 'title': 'department manager' },
{ 'id': '3', 'name': 'Su Miao', 'title': 'department manager',
'children': [
{ 'id': '4', 'name': 'Tie Hua', 'title': 'senior engineer' },
{ 'id': '5', 'name': 'Hei Hei', 'title': 'senior engineer',
'children': [
{ 'id': '6', 'name': 'Pang Pang', 'title': 'engineer' },
{ 'id': '7', 'name': 'Xiang Xiang', 'title': 'UE engineer' }
]
}
]
},
{ 'id': '8', 'name': 'Hong Miao', 'title': 'department manager' },
{ 'id': '9', 'name': 'Chun Miao', 'title': 'department manager' }
]
}
}
}
}
</script>
Attributes
Events
Scoped Slots
<template slot-scope="{ nodeData }">
<!-- feel free to customize the internal structure of node --></template>
Author
👤 Augustin Ribreau
- Website: https://augustinribreau.com/
- GitHub: @augustinribreau
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 1.9.4 | MIT | |
| 1.9.3 | MIT | |
| 1.9.2 | MIT | |
| 1.9.1 | MIT | |
| 1.9.0 | MIT | |
| 1.8.5 | MIT | |
| 1.8.4 | MIT | |
| 1.8.3 | MIT | |
| 1.8.2 | MIT | |
| 1.8.1 | MIT | |
| 1.8.0 | MIT | |
| 1.7.0 | MIT | |
| 1.6.0 | MIT | |
| 1.5.0 | MIT | |
| 1.4.0 | MIT | |
| 1.3.0 | MIT | |
| 1.2.0 | MIT | |
| 1.1.0 | MIT |