first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
23
node_modules/bma-org-chart/README.md
generated
vendored
Normal file
23
node_modules/bma-org-chart/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Org Chart
|
||||
|
||||
## วิธีใช้
|
||||
|
||||
```
|
||||
// import Org Chart Component
|
||||
import { OrgChart } from 'org-chart'
|
||||
import 'org-chart/org-chart.css' // or import 'org-chart/dist/style.css'
|
||||
|
||||
// import Data from static file or API
|
||||
import chartData from '@/assets/orgChartData'
|
||||
const dataSource = ref(chartData)
|
||||
|
||||
// onClick Event
|
||||
const chartClick = (data: any) => {
|
||||
console.log(data.value)
|
||||
}
|
||||
|
||||
<OrgChart
|
||||
:dataSource="data"
|
||||
@onElementClick="chartClick"
|
||||
/>
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue