chore: backend description

This commit is contained in:
jialin
2025-04-14 14:08:59 +08:00
parent 58e979bc45
commit d8ea86fde1
9 changed files with 69 additions and 31 deletions
+20 -17
View File
@@ -1,6 +1,7 @@
import { useIntl } from '@umijs/max';
import React from 'react';
import styled from 'styled-components';
import OverlayScroller from '../overlay-scroller';
const UL = styled.ul`
list-style: none;
@@ -30,23 +31,25 @@ const TooltipList: React.FC<TooltipListProps> = (props) => {
const intl = useIntl();
const { list } = props;
return (
<UL>
{list.map((item, index: number) => {
return (
<li key={index}>
<span className="title">
{item.title?.locale
? intl.formatMessage({ id: item.title?.text || '' })
: item.title}
:
</span>
<span className="content">
{intl.formatMessage({ id: item.tips })}
</span>
</li>
);
})}
</UL>
<OverlayScroller style={{ padding: 0 }}>
<UL>
{list.map((item, index: number) => {
return (
<li key={index}>
<span className="title">
{item.title?.locale
? intl.formatMessage({ id: item.title?.text || '' })
: item.title}
:
</span>
<span className="content">
{intl.formatMessage({ id: item.tips })}
</span>
</li>
);
})}
</UL>
</OverlayScroller>
);
};