import { Card, Descriptions, Empty, Typography } from 'antd'; import { GlobalOutlined } from '@ant-design/icons'; import { useStore } from '../store'; import { cardStyles } from '../components/CardStyles'; const { Title, Paragraph } = Typography; export default function WorldSetting() { const { currentProject } = useStore(); if (!currentProject) return null; // 检查是否有世界设定信息 const hasWorldSetting = currentProject.world_time_period || currentProject.world_location || currentProject.world_atmosphere || currentProject.world_rules; if (!hasWorldSetting) { return (
{/* 固定头部 */}

世界设定

{/* 可滚动内容区域 */}
世界设定信息在创建项目向导中生成,用于构建小说的世界观背景。
); } return (
{/* 固定头部 */}

世界设定

{/* 可滚动内容区域 */}
基础信息 } > {currentProject.title} {currentProject.description && ( {currentProject.description} )} {currentProject.theme || '未设定'} {currentProject.genre || '未设定'} {currentProject.narrative_perspective || '未设定'} {currentProject.target_words ? `${currentProject.target_words.toLocaleString()} 字` : '未设定'} 小说世界观 } >
{currentProject.world_time_period && (
时间设定 {currentProject.world_time_period}
)} {currentProject.world_location && (
地点设定 {currentProject.world_location}
)} {currentProject.world_atmosphere && (
氛围设定 {currentProject.world_atmosphere}
)} {currentProject.world_rules && (
规则设定 {currentProject.world_rules}
)}
); }