#
luxiaotao1123
2024-03-04 df1c45d77732cb7c9f3e593380ba72b5d55794f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react'
import { NsGraph } from '@antv/xflow'
import { useAppContext } from '@antv/xflow'
import { Tooltip } from 'antd'
import './edge1.less'
 
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