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