feat: 补充估算收益说明

This commit is contained in:
hzm
2026-03-15 21:21:15 +08:00
parent 510bee53e3
commit 3dd11f961d
2 changed files with 16 additions and 2 deletions

View File

@@ -180,7 +180,14 @@ export default function MobileSettingModal({
> >
<DragIcon width="18" height="18" /> <DragIcon width="18" height="18" />
</div> </div>
<span style={{ flex: 1, fontSize: '14px' }}>{item.header}</span> <div style={{ flex: 1, fontSize: '14px', display: 'flex', flexDirection: 'column', gap: 2 }}>
<span>{item.header}</span>
{item.id === 'totalChangePercent' && (
<span className="muted" style={{ fontSize: '12px' }}>
估值涨幅与持有收益的汇总
</span>
)}
</div>
{onToggleColumnVisibility && ( {onToggleColumnVisibility && (
<Switch <Switch
checked={columnVisibility?.[item.id] !== false} checked={columnVisibility?.[item.id] !== false}

View File

@@ -206,7 +206,14 @@ export default function PcTableSettingModal({
> >
<DragIcon width="18" height="18" /> <DragIcon width="18" height="18" />
</div> </div>
<span style={{ flex: 1, fontSize: '14px' }}>{item.header}</span> <div style={{ flex: 1, fontSize: '14px', display: 'flex', flexDirection: 'column', gap: 2 }}>
<span>{item.header}</span>
{item.id === 'totalChangePercent' && (
<span className="muted" style={{ fontSize: '12px' }}>
估值涨幅与持有收益的汇总
</span>
)}
</div>
{onToggleColumnVisibility && ( {onToggleColumnVisibility && (
<button <button
type="button" type="button"