@@ -2,7 +2,6 @@ import { Drawer, Popover } from 'antd';
22import classNames from 'classnames' ;
33import React , { FC , useContext , useMemo } from 'react' ;
44import { ConfigContext } from '../../models/context' ;
5- import { getAntdVersion } from '../../utils' ;
65import createIconFont from '../../utils/createIconFont' ;
76import IconView from '../IconView' ;
87import TitleMenuTooltip from '../NodeContainer/TitleMenuTooltip' ;
@@ -19,7 +18,7 @@ interface IPanelProps {
1918const PanelStatusLogContainer : FC < IPanelProps > = ( props : IPanelProps ) => {
2019 const { onClose, children, nodeType } = props ;
2120 // 1.获取节点配置信息
22- const { settingMap, iconFontUrl, globalConfig, logPanel, widgets } : any =
21+ const { settingMap, iconFontUrl, globalConfig, logPanel, widgets, antdVersion } : any =
2322 useContext ( ConfigContext ) ;
2423 const nodeSetting = settingMap [ nodeType ] || { } ;
2524 const { nodePanel, iconSvg } = nodeSetting ;
@@ -29,8 +28,7 @@ const PanelStatusLogContainer: FC<IPanelProps> = (props: IPanelProps) => {
2928 const isCustomWidget = ! Boolean ( logPanel ?. logWidget && CustomWidget ) ;
3029
3130 const drawerVersionProps = useMemo ( ( ) => {
32- const version = getAntdVersion ( ) ;
33- if ( version === 'V5' ) {
31+ if ( antdVersion === 'V5' ) {
3432 return {
3533 rootClassName : classNames ( 'node-log-panel' , {
3634 'no-header-line' : isCustomWidget ,
0 commit comments