This repository has been archived by the owner on Aug 27, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
379 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Translations | ||
- [:cn: 中文](/zh-cn/) | ||
- [:uk: English](/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Export Picture OrgChart | ||
|
||
```html | ||
/*vue*/ | ||
<template> | ||
<vo-basic :data="chartData" :export-button=true export-filename="testpic"></vo-basic> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
created() { | ||
this.chartData = { | ||
name: 'JavaScript', | ||
children: [ | ||
{ name: 'Angular' }, | ||
{ | ||
name: 'React', | ||
children: [{ name: 'Preact' }] | ||
}, | ||
{ | ||
name: 'Vue', | ||
children: [{ name: 'Moon' }] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,7 @@ iframe { | |
text-align: center; | ||
} | ||
|
||
|
||
.markdown-section tr { | ||
border: 1px solid #fff; | ||
background:#fff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## vue-orgchart | ||
|
||
> A vue wrapper for OrgChart.js. | ||
### 前言 | ||
- 首先感谢dabeng的Orgchart.js -- [OrgChart.js](https://github.com/dabeng/OrgChart.js) | ||
- 如果你想用OrgChart.js的Vue封装,可以直接用 [我的项目](https://github.com/spiritree/vue-orgchart) | ||
|
||
### 功能 | ||
- JSON格式导入导出树形关系图 | ||
- 支持树形关系图导出图片 | ||
- 可拖拉树形关系图 | ||
- 可编辑树形关系图 | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Translations | ||
- [:cn: 中文](/zh-cn/) | ||
- [:uk: English](/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- 入门 | ||
- [快速开始](zh-cn/quickstart) | ||
- [图表属性](zh-cn/props) | ||
- 图表 | ||
- [基础组织树图](zh-cn/basic) | ||
- [缩放组织树图](zh-cn/panzoom) | ||
- [可拖拉组织树图](zh-cn/drag) | ||
- [可导出组织树形图图片](zh-cn/exportpic) | ||
- [可编辑组织树图](zh-cn/edit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## 基础组织树图 | ||
|
||
```html | ||
/*vue*/ | ||
<template> | ||
<vo-basic :data="chartData"></vo-basic> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
created() { | ||
this.chartData = { | ||
name: 'JavaScript', | ||
children: [ | ||
{ name: 'Angular' }, | ||
{ | ||
name: 'React', | ||
children: [{ name: 'Preact' }] | ||
}, | ||
{ | ||
name: 'Vue', | ||
children: [{ name: 'Moon' }] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## 可拖拉组织树图 | ||
|
||
```html | ||
/*vue*/ | ||
<template> | ||
<vo-basic :data="chartData" :draggable=true></vo-basic> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
created() { | ||
this.chartData = { | ||
name: 'JavaScript', | ||
children: [ | ||
{ name: 'Angular' }, | ||
{ name: 'React'}, | ||
{ | ||
name: 'Vue', | ||
children: [ | ||
{ name: 'Moon' }, | ||
{ name: 'San' } | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
## 可编辑组织树图 | ||
|
||
```html | ||
/*vue*/ | ||
<template> | ||
<div> | ||
<vo-edit :data="chartData"></vo-edit> | ||
<div id="edit-panel" class="view-state edit-container"> | ||
<div class="item item-half"> | ||
<div class="input-node-container"> | ||
<label class="selected-node-group">Selected Node</label> | ||
<input type="text" id="selected-node" class="selected-node-group new-node"> | ||
</div> | ||
<div> | ||
<label>New Node</label> | ||
<ul id="new-nodelist"> | ||
<li><input type="text" class="new-node"></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div id="node-type-panel" class="radio-panel item"> | ||
<input type="radio" name="node-type" id="rd-parent" value="parent" class=""><label for="rd-parent">Root</label> | ||
<input type="radio" name="node-type" id="rd-child" value="children"><label for="rd-child">Child</label> | ||
<input type="radio" name="node-type" id="rd-sibling" value="siblings"><label for="rd-sibling">Sibling</label> | ||
</div> | ||
<div class="item"> | ||
<button id="btn-add-nodes">Add</button> | ||
<button id="btn-delete-nodes">Delete</button> | ||
<button id="btn-reset">Reset</button> | ||
<button id="btn-export">ExportJSON</button> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
created() { | ||
this.chartData = { | ||
name: 'JavaScript', | ||
children: [ | ||
{ | ||
name: 'Angular', | ||
children: [{ name: '?' }] | ||
}, | ||
{ | ||
name: 'React', | ||
children: [{ name: 'Preact' }] | ||
}, | ||
{ | ||
name: 'Vue', | ||
children: [{ name: 'Moon' }] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
``` | ||
```json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## 可导出组织树图图片 | ||
|
||
```html | ||
/*vue*/ | ||
<template> | ||
<vo-basic :data="chartData" :export-button=true export-filename="testpic"></vo-basic> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
created() { | ||
this.chartData = { | ||
name: 'JavaScript', | ||
children: [ | ||
{ name: 'Angular' }, | ||
{ | ||
name: 'React', | ||
children: [{ name: 'Preact' }] | ||
}, | ||
{ | ||
name: 'Vue', | ||
children: [{ name: 'Moon' }] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## 缩放组织树图 | ||
|
||
|
||
```html | ||
/*vue*/ | ||
<template> | ||
<vo-basic :data="chartData" :pan=true :zoom=true></vo-basic> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
created() { | ||
this.chartData = { | ||
name: 'JavaScript', | ||
children: [ | ||
{ name: 'Angular' }, | ||
{ | ||
name: 'React', | ||
children: [{ name: 'Preact' }] | ||
}, | ||
{ | ||
name: 'Vue', | ||
children: [{ name: 'Moon' }] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
``` |
Oops, something went wrong.