The file /home/project/src/routes/stock.$code.tsx has been updated. Made 1 replacement.
Here's the result of running `cat -n` on a snippet of the edited file:
288→
289→
290→
291→
292→ {/* Chart */}
293→
294→
295→
296→ K线图
297→
298→ ({chartData.length}个交易日)
299→
300→
301→
302→
303→
304→
305→
306→
307→ {
317→ const { x, y, payload } = props;
318→ // 查找该日期对应的数据点,判断是否为添加日期
319→ const dataPoint = chartData.find(d => d.date === payload.value);
320→ const isAddedDate = dataPoint?.isAddedDate;
321→
322→ return (
323→
332→ {payload.value}
333→
334→ );
335→ }}
336→ />
337→
345→
353→ `日期: ${label}`}
362→ formatter={(value: any, name: string) => {
363→ if (name === 'close') return [`¥${Number(value).toFixed(2)}`, '收盘价'];
364→ if (name === 'volume') return [Number(value).toLocaleString(), '成交量'];
365→ return [value, name];
366→ }}
367→ />
368→
374→
382→ {/* 高亮添加日期的K线点 */}
383→ {
388→ const { cx, cy, payload } = props;
389→ // 非添加日期返回透明小圆点(不可见)
390→ if (!payload.isAddedDate) {
391→ return ;
392→ }
393→ return (
394→
402→ );
403→ }}
404→ />
405→
406→
407→
408→
409→ {/* Legend */}
410→
424→
425→
426→
427→ {/* Price Details */}
428→
429→
430→