{"id":15760566,"url":"https://github.com/hellowuxin/vue3-mindmap","last_synced_at":"2025-03-13T19:32:01.642Z","repository":{"id":38406959,"uuid":"325496688","full_name":"hellowuxin/vue3-mindmap","owner":"hellowuxin","description":"Mindmap component for Vue3","archived":true,"fork":false,"pushed_at":"2023-05-13T14:36:23.000Z","size":6249,"stargazers_count":423,"open_issues_count":23,"forks_count":103,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-02-20T08:47:46.328Z","etag":null,"topics":["d3","mindmap","typescript","vue-component","vue3"],"latest_commit_sha":null,"homepage":"https://5xin.xyz/vue3-mindmap/","language":"TypeScript","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/hellowuxin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.afdian.net/@hellowuxin"}},"created_at":"2020-12-30T08:28:24.000Z","updated_at":"2025-02-20T02:58:03.000Z","dependencies_parsed_at":"2024-06-20T00:08:45.950Z","dependency_job_id":"8ce5c1ef-eeec-4d4b-980f-d10ad4a28059","html_url":"https://github.com/hellowuxin/vue3-mindmap","commit_stats":{"total_commits":236,"total_committers":1,"mean_commits":236.0,"dds":0.0,"last_synced_commit":"9bed9eec0ff9a2ba5dcc59c6cd54177d39721760"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellowuxin%2Fvue3-mindmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellowuxin%2Fvue3-mindmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellowuxin%2Fvue3-mindmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellowuxin%2Fvue3-mindmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellowuxin","download_url":"https://codeload.github.com/hellowuxin/vue3-mindmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243469246,"owners_count":20295715,"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":["d3","mindmap","typescript","vue-component","vue3"],"created_at":"2024-10-04T10:58:54.112Z","updated_at":"2025-03-13T19:32:00.296Z","avatar_url":"https://github.com/hellowuxin.png","language":"TypeScript","readme":"# vue3-mindmap\n\n[![npm](https://img.shields.io/npm/v/vue3-mindmap)](https://www.npmjs.com/package/vue3-mindmap)\n[![build](https://github.com/hellowuxin/vue3-mindmap/actions/workflows/blank.yml/badge.svg)](https://github.com/hellowuxin/vue3-mindmap/actions)\n[![coveralls](https://img.shields.io/coveralls/github/hellowuxin/vue3-mindmap)](https://coveralls.io/github/hellowuxin/vue3-mindmap)\n\n\u003e Mindmap component for Vue3 inspired by [MindNode](https://mindnode.com)\n\n[live demo / 演示页面](https://5xin.xyz/vue3-mindmap)  \n[Directory Description / 目录说明](./Directory.md)\n\n## Install\n\n```sh\nnpm install vue3-mindmap\n```\n\n## PROPS\n\n| Name         | Type                     | Default    | Description          |\n| ---          | ---                      | ---        | ---                  |\n| v-model      | Data[]                   | undefined  | 设置思维导图数据        |\n| x-gap        | Number                   | 84         | 设置节点横向间隔        |\n| y-gap        | Number                   | 18         | 设置节点纵向间隔        |\n| branch       | Number                   | 4          | 设置连线的宽度          |\n| scale-extent | [Number, Number]         | [0.1, 0.8] | 设置缩放范围           |\n| timetravel   | Boolean                  | false      | 是否显示撤销重做按钮     |\n| drag         | Boolean                  | false      | 设置节点是否可拖拽      |\n| zoom         | Boolean                  | false      | 是否可缩放、拖移        |\n| edit         | Boolean                  | false      | 是否可编辑             |\n| center-btn   | Boolean                  | false      | 是否显示居中按钮        |\n| fit-btn      | Boolean                  | false      | 是否显示缩放按钮        |\n| add-node-btn | Boolean                  | false      | 是否显示添加节点按钮     |\n| download-btn | Boolean                  | false      | 是否显示下载按钮        |\n| sharp-corner | Boolean                  | false      | 设置分支为圆角或直角     |\n| ctm          | Boolean                  | false      | 是否响应右键菜单        |\n| locale       | 'zh' \\| 'en' \\| 'ptBR'   | 'zh'       | i18n                  |\n\n## Example\n\n```html\n\u003ctemplate\u003e\n  \u003cmindmap v-model=\"data\"\u003e\u003c/mindmap\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport mindmap from 'vue3-mindmap'\nimport 'vue3-mindmap/dist/style.css'\n\nexport default defineComponent({\n  components: { mindmap },\n  setup () =\u003e {\n    const data = [{\n      \"name\":\"如何学习D3\",\n      \"children\": [\n        {\n          \"name\":\"预备知识\",\n          \"children\": [\n            { \"name\":\"HTML \u0026 CSS\" },\n            { \"name\":\"JavaScript\" },\n            ...\n          ]\n        },\n        {\n          \"name\":\"安装\",\n          \"collapse\": true,\n          \"children\": [ { \"name\": \"折叠节点\" } ]\n        },\n        { \"name\":\"进阶\", \"left\": true },\n        ...\n      ]\n    }]\n\n    return { data }\n  }\n})\n\u003c/script\u003e\n```\n\n## 注意\n\n- 当xGap小于一定数值，父节点的trigger由于添加按钮的存在可能遮挡住子节点的trigger，无法响应子节点的点击\n\n## 待解决\n\n- 直角分支radius\n\n## Todo\n\n- 多选节点\n- 多主节点\n- 更多节点样式\n","funding_links":["https://www.afdian.net/@hellowuxin"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellowuxin%2Fvue3-mindmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellowuxin%2Fvue3-mindmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellowuxin%2Fvue3-mindmap/lists"}