1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| import React from 'react'
| import { useAppContext } from '@antv/xflow'
| import { Tooltip } from 'antd'
| import './edge1.css'
|
| const Edge1 = props => {
| const ctx = useAppContext()
| // console.log('edge useAppContext', ctx);
| // console.log('edge props:', props);
| return (
| <div className="edge1-container">
| <Tooltip
| title="这是连线上渲染的React内容"
| // defaultVisible={true}
| >
| <div>hover我</div>
| </Tooltip>
| </div>
| )
| }
| export default Edge1
|
|