{"id":17035888,"url":"https://github.com/dabeng/vue-orgchart","last_synced_at":"2025-04-04T11:12:39.853Z","repository":{"id":33813207,"uuid":"153965904","full_name":"dabeng/vue-orgchart","owner":"dabeng","description":"It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.","archived":false,"fork":false,"pushed_at":"2022-12-09T05:34:24.000Z","size":754,"stargazers_count":298,"open_issues_count":51,"forks_count":89,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-28T10:07:11.070Z","etag":null,"topics":["chart","organization","orgchart","tree","tree-like","tree-view","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dabeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-21T02:17:45.000Z","updated_at":"2025-03-18T12:31:40.000Z","dependencies_parsed_at":"2023-01-15T02:42:19.150Z","dependency_job_id":null,"html_url":"https://github.com/dabeng/vue-orgchart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabeng%2Fvue-orgchart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabeng%2Fvue-orgchart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabeng%2Fvue-orgchart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabeng%2Fvue-orgchart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dabeng","download_url":"https://codeload.github.com/dabeng/vue-orgchart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chart","organization","orgchart","tree","tree-like","tree-view","vue","vuejs"],"created_at":"2024-10-14T08:48:28.123Z","updated_at":"2025-04-04T11:12:39.810Z","avatar_url":"https://github.com/dabeng.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"![OrgChart](http://dabeng.github.io/OrgChart/img/heading.svg)\n\n# [jQuery Version](https://github.com/dabeng/OrgChart)\n# [ES6 Version](http://github.com/dabeng/OrgChart.js)\n# [Web Components Version](http://github.com/dabeng/OrgChart-Webcomponents)\n# [Angular Version -- the most space-saving solution](https://github.com/dabeng/ng-orgchart)\n# [React Version](https://github.com/dabeng/react-orgchart)\n\n## Foreword\n- First of all, thanks a lot for [wesnolte](https://github.com/wesnolte)'s great work:blush: -- [jOrgChart](https://github.com/wesnolte/jOrgChart). The thought that using nested tables to build out the tree-like orgonization chart is amazing. This idea is more simple and direct than its counterparts based on svg\n- Unfortunately, it's long time not to see the update of jOrgChart. on the other hand, I got some interesting ideas to add, so I choose to create a new repo.\n\n## Features\n- For now, just static organization chart\n\n# Installation\n```\nnpm install vue-organization-chart -S\n```\n# [Demos](https://codesandbox.io/dashboard/sandboxes/Vue%20OrgChart)\n\n# Usage\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003corganization-chart :datasource=\"ds\"\u003e\u003c/organization-chart\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  import Vue from 'vue'\n  import OrganizationChart from 'vue-organization-chart'\n  import 'vue-organization-chart/dist/orgchart.css'\n\n  export default {\n    components: {\n      OrganizationChart\n    },\n    data () {\n      return {\n        ds: {\n          'id': '1',\n          'name': 'Lao Lao',\n          'title': 'general manager',\n          'children': [\n            { 'id': '2', 'name': 'Bo Miao', 'title': 'department manager' },\n            { 'id': '3', 'name': 'Su Miao', 'title': 'department manager',\n              'children': [\n                { 'id': '4', 'name': 'Tie Hua', 'title': 'senior engineer' },\n                { 'id': '5', 'name': 'Hei Hei', 'title': 'senior engineer',\n                  'children': [\n                    { 'id': '6', 'name': 'Pang Pang', 'title': 'engineer' },\n                    { 'id': '7', 'name': 'Xiang Xiang', 'title': 'UE engineer' }\n                  ]\n                 }\n               ]\n             },\n            { 'id': '8', 'name': 'Hong Miao', 'title': 'department manager' },\n            { 'id': '9', 'name': 'Chun Miao', 'title': 'department manager' }\n          ]\n        }\n      }\n    }\n  }\n\u003c/script\u003e\n```\n\n# Attributes\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\u003cth\u003eName\u003c/th\u003e\u003cth\u003eType\u003c/th\u003e\u003cth\u003eRequired\u003c/th\u003e\u003cth\u003eDefault\u003c/th\u003e\u003cth\u003eDescription\u003c/th\u003e\u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003edatasource\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003eyes\u003c/td\u003e\u003ctd\u003e\u003c/td\u003e\u003ctd\u003edatasource usded to build out structure of orgchart. It could be a json object.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003epan\u003c/td\u003e\u003ctd\u003eboolean\u003c/td\u003e\u003ctd\u003eno\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003eUsers could pan the orgchart by mouse drag\u0026drop if they enable this attribute.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ezoom\u003c/td\u003e\u003ctd\u003eboolean\u003c/td\u003e\u003ctd\u003eno\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003eUsers could zoomin/zoomout the orgchart by mouse wheel if they enable this attribute.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ezoomin-limit\u003c/td\u003e\u003ctd\u003enumber\u003c/td\u003e\u003ctd\u003eno\u003c/td\u003e\u003ctd\u003e7\u003c/td\u003e\u003ctd\u003eUsers are allowed to set a zoom-in limit.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ezoomout-limit\u003c/td\u003e\u003ctd\u003enumber\u003c/td\u003e\u003ctd\u003eno\u003c/td\u003e\u003ctd\u003e0.5\u003c/td\u003e\u003ctd\u003eUsers are allowed to set a zoom-out limit.\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n# Events\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\u003cth\u003eName\u003c/th\u003e\u003cth\u003eParameters\u003c/th\u003e\u003cth\u003eDescription\u003c/th\u003e\u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003enode-click\u003c/td\u003e\u003ctd\u003enode data\u003c/td\u003e\u003ctd\u003etriggers when user clicks the node.\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n# Scoped Slots\n```html\n\u003ctemplate slot-scope=\"{ nodeData }\"\u003e\n  \u003c!-- feel free to customize the internal structure of node --\u003e\n\u003c/template\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabeng%2Fvue-orgchart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdabeng%2Fvue-orgchart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabeng%2Fvue-orgchart/lists"}