feat: 折线图禁止触发横向滚动

This commit is contained in:
hzm
2026-03-05 18:33:33 +08:00
parent 6d44803a27
commit 0a828f33bf
2 changed files with 2 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ export default function FundIntradayChart({ series = [], referenceNav, theme = '
</span> </span>
{displayDate && <span style={{ fontSize: 11 }}>估值日期 {displayDate}</span>} {displayDate && <span style={{ fontSize: 11 }}>估值日期 {displayDate}</span>}
</div> </div>
<div style={{ position: 'relative', height: 100, width: '100%' }}> <div style={{ position: 'relative', height: 100, width: '100%', touchAction: 'pan-y' }}>
<Line ref={chartRef} data={chartData} options={options} plugins={plugins} /> <Line ref={chartRef} data={chartData} options={options} plugins={plugins} />
</div> </div>
</div> </div>

View File

@@ -530,7 +530,7 @@ export default function FundTrendChart({ code, isExpanded, onToggleExpand, trans
transition={{ duration: 0.3, ease: 'easeInOut' }} transition={{ duration: 0.3, ease: 'easeInOut' }}
style={{ overflow: 'hidden' }} style={{ overflow: 'hidden' }}
> >
<div style={{ position: 'relative', height: 180, width: '100%' }}> <div style={{ position: 'relative', height: 180, width: '100%', touchAction: 'pan-y' }}>
{loading && ( {loading && (
<div className="chart-overlay" style={{ backdropFilter: 'blur(2px)' }}> <div className="chart-overlay" style={{ backdropFilter: 'blur(2px)' }}>
<span className="muted" style={{ fontSize: '12px' }}>加载中...</span> <span className="muted" style={{ fontSize: '12px' }}>加载中...</span>