1. 页面加载后应停留在顶部
  2. 点击搜索框,页面应平滑滚动到"实时事件时间轴"区域
  3. 再次点击搜索框不会重复滚动
This commit is contained in:
zdl
2025-10-27 16:37:36 +08:00
parent f4b483fc25
commit 31706c756c
3 changed files with 18 additions and 19 deletions

View File

@@ -21,6 +21,7 @@ const { Option } = AntSelect;
const UnifiedSearchBox = ({
onSearch,
onSearchFocus,
popularKeywords = [],
filters = {}
}) => {
@@ -519,6 +520,7 @@ const UnifiedSearchBox = ({
onChange={handleInputChange}
onSearch={handleSearch}
onSelect={handleStockSelect}
onFocus={onSearchFocus}
options={stockOptions}
placeholder="请输入股票代码/股票名称/相关话题"
onPressEnter={handleMainSearch}