chore(DeepAnalysisTab): 更新类型定义和组件引用
- types.ts: 扩展类型定义支持新组件结构 - index.tsx: 更新组件 props 传递 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -59,10 +59,7 @@ const DeepAnalysisTab: React.FC<DeepAnalysisTabProps> = ({
|
||||
|
||||
{/* 竞争地位分析 */}
|
||||
{comprehensiveData?.competitive_position && (
|
||||
<CompetitiveAnalysisCard
|
||||
comprehensiveData={comprehensiveData}
|
||||
cardBg={cardBg}
|
||||
/>
|
||||
<CompetitiveAnalysisCard comprehensiveData={comprehensiveData} />
|
||||
)}
|
||||
|
||||
{/* 业务结构分析 */}
|
||||
|
||||
@@ -44,9 +44,48 @@ export interface CompetitivePosition {
|
||||
|
||||
// ==================== 核心定位类型 ====================
|
||||
|
||||
/** 特性项(用于核心定位下方的两个区块:零售业务/综合金融) */
|
||||
export interface FeatureItem {
|
||||
/** 图标名称,如 'bank', 'fire' */
|
||||
icon: string;
|
||||
/** 标题,如 '零售业务' */
|
||||
title: string;
|
||||
/** 描述文字 */
|
||||
description: string;
|
||||
}
|
||||
|
||||
/** 投资亮点项(结构化) */
|
||||
export interface InvestmentHighlightItem {
|
||||
/** 图标名称,如 'users', 'trending-up' */
|
||||
icon: string;
|
||||
/** 标题,如 '综合金融优势' */
|
||||
title: string;
|
||||
/** 描述文字 */
|
||||
description: string;
|
||||
}
|
||||
|
||||
/** 商业模式板块 */
|
||||
export interface BusinessModelSection {
|
||||
/** 标题,如 '零售银行核心驱动' */
|
||||
title: string;
|
||||
/** 描述文字 */
|
||||
description: string;
|
||||
/** 可选的标签,如 ['AI应用深化', '大数据分析'] */
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface CorePositioning {
|
||||
/** 一句话介绍 */
|
||||
one_line_intro?: string;
|
||||
investment_highlights?: string;
|
||||
/** 核心特性(2个,显示在核心定位区域下方) */
|
||||
features?: FeatureItem[];
|
||||
/** 投资亮点 - 支持结构化数组(新格式)或字符串(旧格式) */
|
||||
investment_highlights?: InvestmentHighlightItem[] | string;
|
||||
/** 结构化商业模式数组 */
|
||||
business_model_sections?: BusinessModelSection[];
|
||||
/** 原 investment_highlights 文本格式(兼容旧数据,优先级低于 investment_highlights) */
|
||||
investment_highlights_text?: string;
|
||||
/** 商业模式描述(兼容旧数据) */
|
||||
business_model_desc?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user