feat:隐藏持仓的时候同时隐藏颜色
This commit is contained in:
@@ -244,6 +244,7 @@ export default function GroupSummary({
|
|||||||
<span style={{ fontSize: '16px', marginRight: 2 }}>¥</span>
|
<span style={{ fontSize: '16px', marginRight: 2 }}>¥</span>
|
||||||
{isMasked ? (
|
{isMasked ? (
|
||||||
<span
|
<span
|
||||||
|
className="mask-text"
|
||||||
style={{ fontSize: assetSize, position: 'relative', top: 4 }}
|
style={{ fontSize: assetSize, position: 'relative', top: 4 }}
|
||||||
>
|
>
|
||||||
******
|
******
|
||||||
@@ -278,7 +279,9 @@ export default function GroupSummary({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isMasked ? (
|
{isMasked ? (
|
||||||
<span style={{ fontSize: metricSize }}>******</span>
|
<span className="mask-text" style={{ fontSize: metricSize }}>
|
||||||
|
******
|
||||||
|
</span>
|
||||||
) : summary.hasAnyTodayData ? (
|
) : summary.hasAnyTodayData ? (
|
||||||
<>
|
<>
|
||||||
<span style={{ marginRight: 1 }}>
|
<span style={{ marginRight: 1 }}>
|
||||||
@@ -331,7 +334,9 @@ export default function GroupSummary({
|
|||||||
title="点击切换金额/百分比"
|
title="点击切换金额/百分比"
|
||||||
>
|
>
|
||||||
{isMasked ? (
|
{isMasked ? (
|
||||||
<span style={{ fontSize: metricSize }}>******</span>
|
<span className="mask-text" style={{ fontSize: metricSize }}>
|
||||||
|
******
|
||||||
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<span style={{ marginRight: 1 }}>
|
<span style={{ marginRight: 1 }}>
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ export default function MobileFundTable({
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{masked ? '******' : holdingAmountDisplay}
|
{masked ? <span className="mask-text">******</span> : holdingAmountDisplay}
|
||||||
{hasDca && <span className="dca-indicator">定</span>}
|
{hasDca && <span className="dca-indicator">定</span>}
|
||||||
{isUpdated && <span className="updated-indicator">✓</span>}
|
{isUpdated && <span className="updated-indicator">✓</span>}
|
||||||
</span>
|
</span>
|
||||||
@@ -759,7 +759,7 @@ export default function MobileFundTable({
|
|||||||
<div style={{ width: '100%' }}>
|
<div style={{ width: '100%' }}>
|
||||||
<span className={cls} style={{ display: 'block', width: '100%', fontWeight: 700 }}>
|
<span className={cls} style={{ display: 'block', width: '100%', fontWeight: 700 }}>
|
||||||
<FitText maxFontSize={14} minFontSize={10}>
|
<FitText maxFontSize={14} minFontSize={10}>
|
||||||
{masked && hasProfit ? '******' : amountStr}
|
{masked && hasProfit ? <span className="mask-text">******</span> : amountStr}
|
||||||
</FitText>
|
</FitText>
|
||||||
</span>
|
</span>
|
||||||
{hasProfit && percentStr && !masked ? (
|
{hasProfit && percentStr && !masked ? (
|
||||||
@@ -789,7 +789,7 @@ export default function MobileFundTable({
|
|||||||
<div style={{ width: '100%' }}>
|
<div style={{ width: '100%' }}>
|
||||||
<span className={cls} style={{ display: 'block', width: '100%', fontWeight: 700 }}>
|
<span className={cls} style={{ display: 'block', width: '100%', fontWeight: 700 }}>
|
||||||
<FitText maxFontSize={14} minFontSize={10}>
|
<FitText maxFontSize={14} minFontSize={10}>
|
||||||
{masked && hasProfit ? '******' : amountStr}
|
{masked && hasProfit ? <span className="mask-text">******</span> : amountStr}
|
||||||
</FitText>
|
</FitText>
|
||||||
</span>
|
</span>
|
||||||
{percentStr && !isUpdated && !masked ? (
|
{percentStr && !isUpdated && !masked ? (
|
||||||
@@ -818,7 +818,7 @@ export default function MobileFundTable({
|
|||||||
<div style={{ width: '100%' }}>
|
<div style={{ width: '100%' }}>
|
||||||
<span className={cls} style={{ display: 'block', width: '100%', fontWeight: 700 }}>
|
<span className={cls} style={{ display: 'block', width: '100%', fontWeight: 700 }}>
|
||||||
<FitText maxFontSize={14} minFontSize={10}>
|
<FitText maxFontSize={14} minFontSize={10}>
|
||||||
{masked && hasTotal ? '******' : amountStr}
|
{masked && hasTotal ? <span className="mask-text">******</span> : amountStr}
|
||||||
</FitText>
|
</FitText>
|
||||||
</span>
|
</span>
|
||||||
{percentStr && !masked ? (
|
{percentStr && !masked ? (
|
||||||
|
|||||||
@@ -692,7 +692,7 @@ export default function PcFundTable({
|
|||||||
return (
|
return (
|
||||||
<div style={{ width: '100%' }}>
|
<div style={{ width: '100%' }}>
|
||||||
<FitText className={cls} style={{ fontWeight: 700, display: 'block' }} maxFontSize={14} minFontSize={10}>
|
<FitText className={cls} style={{ fontWeight: 700, display: 'block' }} maxFontSize={14} minFontSize={10}>
|
||||||
{masked && hasProfit ? '******' : amountStr}
|
{masked && hasProfit ? <span className="mask-text">******</span> : amountStr}
|
||||||
</FitText>
|
</FitText>
|
||||||
{hasProfit && percentStr && !masked ? (
|
{hasProfit && percentStr && !masked ? (
|
||||||
<span className={`${cls} estimate-profit-percent`} style={{ display: 'block', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
|
<span className={`${cls} estimate-profit-percent`} style={{ display: 'block', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
|
||||||
@@ -750,7 +750,7 @@ export default function PcFundTable({
|
|||||||
>
|
>
|
||||||
<div style={{ flex: '1 1 0', minWidth: 0 }}>
|
<div style={{ flex: '1 1 0', minWidth: 0 }}>
|
||||||
<FitText style={{ fontWeight: 700 }} maxFontSize={14} minFontSize={10}>
|
<FitText style={{ fontWeight: 700 }} maxFontSize={14} minFontSize={10}>
|
||||||
{masked ? '******' : (info.getValue() ?? '—')}
|
{masked ? <span className="mask-text">******</span> : (info.getValue() ?? '—')}
|
||||||
</FitText>
|
</FitText>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
@@ -788,7 +788,7 @@ export default function PcFundTable({
|
|||||||
return (
|
return (
|
||||||
<div style={{ width: '100%' }}>
|
<div style={{ width: '100%' }}>
|
||||||
<FitText className={cls} style={{ fontWeight: 700, display: 'block' }} maxFontSize={14} minFontSize={10}>
|
<FitText className={cls} style={{ fontWeight: 700, display: 'block' }} maxFontSize={14} minFontSize={10}>
|
||||||
{masked && hasProfit ? '******' : amountStr}
|
{masked && hasProfit ? <span className="mask-text">******</span> : amountStr}
|
||||||
</FitText>
|
</FitText>
|
||||||
{percentStr && !isUpdated && !masked ? (
|
{percentStr && !isUpdated && !masked ? (
|
||||||
<span className={`${cls} today-profit-percent`} style={{ display: 'block', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
|
<span className={`${cls} today-profit-percent`} style={{ display: 'block', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
|
||||||
@@ -820,7 +820,7 @@ export default function PcFundTable({
|
|||||||
return (
|
return (
|
||||||
<div style={{ width: '100%' }}>
|
<div style={{ width: '100%' }}>
|
||||||
<FitText className={cls} style={{ fontWeight: 700, display: 'block' }} maxFontSize={14} minFontSize={10}>
|
<FitText className={cls} style={{ fontWeight: 700, display: 'block' }} maxFontSize={14} minFontSize={10}>
|
||||||
{masked && hasTotal ? '******' : amountStr}
|
{masked && hasTotal ? <span className="mask-text">******</span> : amountStr}
|
||||||
</FitText>
|
</FitText>
|
||||||
{percentStr && !masked ? (
|
{percentStr && !masked ? (
|
||||||
<span className={`${cls} holding-profit-percent`} style={{ display: 'block', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
|
<span className={`${cls} holding-profit-percent`} style={{ display: 'block', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
|
||||||
|
|||||||
@@ -1025,6 +1025,12 @@ input[type="number"] {
|
|||||||
color: var(--success);
|
color: var(--success);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mask-text,
|
||||||
|
.up .mask-text,
|
||||||
|
.down .mask-text {
|
||||||
|
color: var(--text) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
|||||||
Reference in New Issue
Block a user