🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
安装快速 ``` 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> ```