This repository was archived by the owner on Apr 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathOrgChart.vue
52 lines (51 loc) · 2.04 KB
/
OrgChart.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<docs-content title='OrgChart'>
<div slot='Overview' v-html='overviewContent'></div>
<div slot='Variants'>
<docs-code-block title='Default OrgChart' :code='defaultCode'>
<ou-org-chart>
<ou-org-chart-group>
<ou-org-chart-group-item>
<ou-persona src='docs/assets/img/avatar.png' primaryText='Russel Miller' secondaryText='Sales' />
</ou-org-chart-group-item>
<ou-org-chart-group-item>
<ou-persona src='docs/assets/img/avatar.png' primaryText='Douglas Fielder' secondaryText='Public Relations' />
</ou-org-chart-group-item>
</ou-org-chart-group>
<ou-org-chart-group title='Manager'>
<ou-org-chart-group-item>
<ou-persona src='docs/assets/img/avatar.png' primaryText='Grant Steel' secondaryText='Sales' />
</ou-org-chart-group-item>
</ou-org-chart-group>
<ou-org-chart-group title='Staff'>
<ou-org-chart-group-item>
<ou-persona src='docs/assets/img/avatar.png' primaryText='Harvey Wallin' secondaryText='Public Relations' />
</ou-org-chart-group-item>
</ou-org-chart-group>
</ou-org-chart>
</docs-code-block>
</div>
<div slot='Implementation'>
<docs-table type='props' :data='orgChartGroupProps' name='OrgChartGroup' />
<docs-table type='events' :data='orgChartGroupItemEvents' name='OrgChartGroupItem' />
</div>
</docs-content>
</template>
<script>
import overviewContent from '../markdown/org_chart/overview.md';
import defaultCode from '../markdown/org_chart/defaultCode.md';
export default {
data() {
return {
overviewContent,
defaultCode,
orgChartGroupProps: [
{ name: 'title', type: 'String', required: 'false', description: 'the title of the org chart group' }
],
orgChartGroupItemEvents: [
{ name: 'click', description: 'the callback function when clicked the org chart group item' }
]
};
}
};
</script>