| | |
| | | @click="viewChange(2)" |
| | | /> |
| | | </view> |
| | | <p style="position: absolute;bottom: -40px;font-size: 12px;width: 200px;color: #999;">注:箭头指向为当前“人物”的X关系</p> |
| | | </view> |
| | | </view> |
| | | <!-- echarts图 --> |
| | |
| | | }, |
| | | }; |
| | | }); |
| | | let that = this |
| | | let that = this; |
| | | const edgeType = |
| | | this.viewType == 1 ? "cubic-horizontal" : "cubic-vertical"; |
| | | this.graph.edge(function (node) { |
| | | return { |
| | | type: edgeType, |
| | | color: "#A3B1BF", |
| | | label: that.textStyle(node.target._cfg?.model.relationInfo) |
| | | label: |
| | | that.viewType == 1 |
| | | ? node.target._cfg?.model.relationInfo |
| | | : that.textStyle(node.target._cfg?.model.relationInfo), |
| | | }; |
| | | }); |
| | | this.graph.on("node:click", (e) => { |