{"id":29902759,"url":"https://github.com/boboooooo/gojsdesigner","last_synced_at":"2025-08-01T16:13:34.993Z","repository":{"id":57251825,"uuid":"330833463","full_name":"BoBoooooo/GoJsDesigner","owner":"BoBoooooo","description":"GoJs流程图设计器","archived":false,"fork":false,"pushed_at":"2022-01-26T09:38:21.000Z","size":113,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T03:22:10.456Z","etag":null,"topics":["gojs"],"latest_commit_sha":null,"homepage":"https://codepen.io/boboooooo/pen/VwKgNqM","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/BoBoooooo.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":"2021-01-19T01:46:10.000Z","updated_at":"2023-05-25T07:02:15.000Z","dependencies_parsed_at":"2022-09-04T21:12:21.555Z","dependency_job_id":null,"html_url":"https://github.com/BoBoooooo/GoJsDesigner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BoBoooooo/GoJsDesigner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoooooo%2FGoJsDesigner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoooooo%2FGoJsDesigner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoooooo%2FGoJsDesigner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoooooo%2FGoJsDesigner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BoBoooooo","download_url":"https://codeload.github.com/BoBoooooo/GoJsDesigner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoooooo%2FGoJsDesigner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268257465,"owners_count":24221059,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gojs"],"created_at":"2025-08-01T16:13:32.258Z","updated_at":"2025-08-01T16:13:34.984Z","avatar_url":"https://github.com/BoBoooooo.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoJsDesigner\n\n[在线 demo](https://codepen.io/boboooooo/pen/VwKgNqM)\n\n## 开始使用\n\n- npm 引入\n\n```javascript\nimport GoJsDesigner from 'gojs-flow-designer'\nimport 'gojs-flow-designer/lib/gojs-designer.css';\n\n\u003cGoJsDesigner\n  :preview=\"preview\"\n  @nodeOnClick=\"nodeOnClick\"\n  :data=\"data\"\n  ref=\"designer\"\n\u003e\n\u003c/GoJsDesigner\u003e\n```\n\n- 浏览器引入\n\n```html\n\u003cscript src=\"https://unpkg.com/gojs-flow-designer\"\u003e\u003c/script\u003e\n\u003clink href=\"https://unpkg.com/gojs-flow-designer/lib/gojs-designer.css\" /\u003e\n\n\u003cgo-js-designer\n  :preview=\"preview\"\n  @nodeOnClick=\"nodeOnClick\"\n  :data=\"data\"\n  ref=\"designer\"\n\u003e\n\u003c/go-js-designer\u003e\n```\n\n## 效果展示\n\n- 编辑模式\n  ![](./assets/demo1.png)\n\n- 预览模式\n  ![](./assets/demo2.png)\n\n## Props\n\n- data: Object // 流程图 json\n\n- preview: boolean // 是否为预览模式\n\n## Event\n\n- nodeOnClick: (node) =\u003e {} // 返回 node 节点信息\n\n## Methods\n\n- getJSON\n\n```javascript\n// 获取流程json\nthis.$refs.designer.getJSON();\n```\n\n- redraw\n\n```javascript\n// 重新渲染\nthis.$refs.designer.redraw();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboboooooo%2Fgojsdesigner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboboooooo%2Fgojsdesigner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboboooooo%2Fgojsdesigner/lists"}