diff --git a/src/views/Community/components/DynamicNewsDetail/DynamicNewsDetailPanel.js b/src/views/Community/components/DynamicNewsDetail/DynamicNewsDetailPanel.js index d80d4643..295a281d 100644 --- a/src/views/Community/components/DynamicNewsDetail/DynamicNewsDetailPanel.js +++ b/src/views/Community/components/DynamicNewsDetail/DynamicNewsDetailPanel.js @@ -221,8 +221,6 @@ const DynamicNewsDetailPanel = ({ event }) => { quotes={quotes} eventTime={event.created_at} watchlistSet={watchlistSet} - isOpen={true} // 内部始终展开 - onToggle={() => {}} // 空函数 onWatchlistToggle={handleWatchlistToggle} /> )} diff --git a/src/views/Community/components/DynamicNewsDetail/RelatedStocksSection.js b/src/views/Community/components/DynamicNewsDetail/RelatedStocksSection.js index fc1bd53a..e660ce49 100644 --- a/src/views/Community/components/DynamicNewsDetail/RelatedStocksSection.js +++ b/src/views/Community/components/DynamicNewsDetail/RelatedStocksSection.js @@ -1,24 +1,19 @@ // src/views/Community/components/DynamicNewsDetail/RelatedStocksSection.js -// 相关股票列表区组件(可折叠,网格布局) +// 相关股票列表区组件(纯内容,不含标题) import React from 'react'; import { - Box, SimpleGrid, - Collapse, } from '@chakra-ui/react'; -import CollapsibleHeader from './CollapsibleHeader'; import StockListItem from './StockListItem'; /** - * 相关股票列表区组件 + * 相关股票列表区组件(纯内容部分) * @param {Object} props * @param {Array} props.stocks - 股票数组 * @param {Object} props.quotes - 股票行情字典 { [stockCode]: { change: number } } * @param {string} props.eventTime - 事件时间 * @param {Set} props.watchlistSet - 自选股代码集合 - * @param {boolean} props.isOpen - 是否展开 - * @param {Function} props.onToggle - 切换展开/收起的回调 * @param {Function} props.onWatchlistToggle - 切换自选股回调 */ const RelatedStocksSection = ({ @@ -26,8 +21,6 @@ const RelatedStocksSection = ({ quotes = {}, eventTime = null, watchlistSet = new Set(), - isOpen, - onToggle, onWatchlistToggle }) => { // 如果没有股票数据,不渲染 @@ -36,30 +29,18 @@ const RelatedStocksSection = ({ } return ( - - - - - - {stocks.map((stock, index) => ( - - ))} - - - - + + {stocks.map((stock, index) => ( + + ))} + ); };