项目
在 GitHub 查看
gwenaelp/vue-diagrams
关于
Diagram component for vue.js, inspired by react-diagrams
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文vue-diagrams
Diagram component for vue.js, inspired by react-diagrams

See the website for documentation and demos
Installation
npm install vue-diagrams
yarn add vue-diagrams
After that, you can use it in your Vue components:
<template>
<diagram :model="model"></diagram>
</template>
<script>
import { Diagram } from 'vue-diagrams';
export default {
data() {
const diagramModel = new Diagram.Model();
const node1 = diagramModel.addNode("test2", 300, 200);
const inPort = node1.addInPort("test");
const node2 = diagramModel.addNode("test", 10, 300, 144, 80);
const node2OutPort = node2.addOutPort("testOut");
node2.addOutPort("testOut2");
node2.color = "#00cc66";
const node3 = diagramModel.addNode("test3", 10, 100, 72, 100);
const node3OutPort = node3.addOutPort("testOut3");
node3.color = "#cc6600";
diagramModel.addLink(node2OutPort, inPort);
diagramModel.addLink(node3OutPort, inPort);
return {
model: diagramModel
};
},
components: {
Diagram
},
};
</script>
Changelog
See the GitHub release history.
Contributing
See CONTRIBUTING.md.
探索相关项目
加载中…