#
luxiaotao1123
2024-02-29 61a6bda36494ebd99740b3a086a1255d8ca21fd8
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