Unverified Commit f9ff0aba authored by gaoyan's avatar gaoyan Committed by GitHub

[fix-#2777]Fix flink dag tooltip (#2803)

* fix log error * Fix flink dag tooltip
parent d1ad9c89
...@@ -17,17 +17,17 @@ ...@@ -17,17 +17,17 @@
* *
*/ */
import { Card, Typography } from 'antd'; import {Card, Typography} from 'antd';
const { Text, Paragraph } = Typography; const {Text, Paragraph} = Typography;
const DagPlanNode = (props: any) => { const DagPlanNode = (props: any) => {
const { node } = props; const {node} = props;
const data: any = node?.getData(); const data: any = node?.getData();
return ( return (
<Card <Card
style={{ width: 270, padding: 0, margin: 0, height: 140 }} style={{width: 270, padding: 0, margin: 0, height: 140}}
bordered={false} bordered={false}
size={'small'} size={'small'}
type={'inner'} type={'inner'}
...@@ -35,7 +35,11 @@ const DagPlanNode = (props: any) => { ...@@ -35,7 +35,11 @@ const DagPlanNode = (props: any) => {
title={data.description} title={data.description}
extra={<Text keyboard>{data.parallelism}</Text>} extra={<Text keyboard>{data.parallelism}</Text>}
> >
<Paragraph ellipsis={{ tooltip: data.description, rows: 3 }}> <Paragraph
ellipsis={{
tooltip: {title: data.description, zIndex: 2000},
rows: 3
}}>
<blockquote> <blockquote>
<Text>{data.description}</Text> <Text>{data.description}</Text>
</blockquote> </blockquote>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment