-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/lb-components/src/views/MainView/annotationTips/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Annotation Tips Showing | ||
* @Author: Laoluo [email protected] | ||
* @Date: 2022-05-11 17:15:30 | ||
* @LastEditors: Laoluo [email protected] | ||
* @LastEditTime: 2022-05-12 19:34:32 | ||
*/ | ||
import React from 'react'; | ||
import { Tooltip } from 'antd'; | ||
import { prefix } from '@/constant'; | ||
|
||
interface IProps { | ||
tips: string; | ||
} | ||
|
||
const AnnotationTips = ({ tips }: IProps) => { | ||
if (!tips) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className={`${prefix}-tips`}> | ||
<div className=''> | ||
<Tooltip placement='bottomRight' title={tips}> | ||
<span className=''>{tips}</span> | ||
</Tooltip> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AnnotationTips; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters