15 lines
951 B
Plaintext
Executable File
15 lines
951 B
Plaintext
Executable File
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:
|
|
550→ <th className="text-right py-2 px-2 font-medium text-muted-foreground">成交额</th>
|
|
551→ </tr>
|
|
552→ </thead>
|
|
553→ <tbody>
|
|
554→ {(() => {
|
|
555→ // 根据选择的天数截取最近N个交易日的数据并倒序(最新日期在前)
|
|
556→ const displayData = chartData.slice(-dailyTableDays).reverse();
|
|
557→
|
|
558→ return displayData.map((item, idx) => {
|
|
559→ // 计算涨幅:与后一天收盘价比较(因为已倒序,后一天是更早的日期)
|
|
560→ let changePercent = 0;
|
|
561→ if (idx < displayData.length - 1) { |