style: 优化大纲管理页面UI展示,增加structure大纲完整结构展示

This commit is contained in:
xiamuceer-j
2026-02-06 16:43:40 +08:00
parent 9dab5c486a
commit 29fbb7cc0b
4 changed files with 899 additions and 105 deletions
+9 -4
View File
@@ -592,12 +592,17 @@ export default function Chapters() {
if (!currentProject) return null;
// 获取人称的中文显示文本
// 获取人称的中文显示文本(同时支持中英文值)
const getNarrativePerspectiveText = (perspective?: string): string => {
const texts: Record<string, string> = {
// 英文值映射(向后兼容)
'first_person': '第一人称(我)',
'third_person': '第三人称(他/她)',
'omniscient': '全知视角',
// 中文值映射(项目设置使用)
'第一人称': '第一人称(我)',
'第三人称': '第三人称(他/她)',
'全知视角': '全知视角',
};
return texts[perspective || ''] || '第三人称(默认)';
};
@@ -2419,9 +2424,9 @@ export default function Chapters() {
allowClear
disabled={isGenerating}
>
<Select.Option value="first_person">()</Select.Option>
<Select.Option value="third_person">(/)</Select.Option>
<Select.Option value="omniscient"></Select.Option>
<Select.Option value="第一人称">()</Select.Option>
<Select.Option value="第三人称">(/)</Select.Option>
<Select.Option value="全知视角"></Select.Option>
</Select>
{temporaryNarrativePerspective && (
<div style={{ color: 'var(--color-success)', fontSize: 12, marginTop: 4 }}>
File diff suppressed because it is too large Load Diff