fix:修复类型提示错误
This commit is contained in:
@@ -696,18 +696,20 @@ const DataBrowser: React.FC = () => {
|
||||
p={3}
|
||||
cursor="pointer"
|
||||
bg="transparent"
|
||||
_hover={{ bg: themeColors.bg.cardHover }}
|
||||
_hover={{
|
||||
bg: themeColors.bg.cardHover,
|
||||
borderLeftColor: themeColors.primary.gold,
|
||||
}}
|
||||
borderRadius="md"
|
||||
borderLeftWidth="3px"
|
||||
borderLeftColor="transparent"
|
||||
_hover={{ borderLeftColor: themeColors.primary.gold }}
|
||||
transition="all 0.2s"
|
||||
onClick={() => {
|
||||
// 转换搜索结果为 TreeMetric 格式
|
||||
const metric: TreeMetric = {
|
||||
metric_id: result.metric_id,
|
||||
metric_name: result.metric_name,
|
||||
source: result.source,
|
||||
source: result.source as 'SMM' | 'Mysteel',
|
||||
frequency: result.frequency,
|
||||
unit: result.unit,
|
||||
description: result.description,
|
||||
|
||||
Reference in New Issue
Block a user