安装快速
```
npm install suwis-paths
```
or
```
yarn add suwis-paths
```
在vue项目中使用
```
<template lang="html">
<section id="app" class="suwis-flow">
<suwis-paths
ref="paths"
:options="options"
:from="data.from"
:land="data.land"
:towards="data.towards"
@lazyLoad="lazyLoad">
</suwis-paths>
</section>
</template>
<script type="text/javascript">
import paths from 'suwis-paths/components/paths'
export default {
components: {
'suwis-paths': paths
},
data() {
return {
data: {},
// 图表配置
options: {
horizontalInterval: 88
childkey: 'item'
}
}
}
};
</script>
<style lang="scss" scoped>
.suwis-flow {
position: relative;
}
</style>
```