From a37b0e44355dd5917618b6c1f6db680465862ccb Mon Sep 17 00:00:00 2001 From: GinHa <15201596918@163.com> Date: Mon, 22 Jun 2026 16:59:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=8F=90=E7=A4=BASCHEMA?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E9=85=8D=E7=BD=AE=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E4=BF=AE=E6=94=B9=20react=20=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AFBUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adminReplication/components/VideoPromptSchemaViewer.tsx | 4 +++- video-gen-app/src/components/VideoPromptSchemaEditor.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx b/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx index 0636560a..37a21115 100644 --- a/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx +++ b/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx @@ -2,9 +2,11 @@ import React from 'react'; import { Card, Collapse, Descriptions, Empty, Space, Table, Tag, Typography } from 'antd'; import type { ColumnsType } from 'antd/es/table'; import { JsonBlock } from './JsonCollapse'; -import { +import type { VideoPromptSchemaFieldConfig, VideoPromptSchemaSectionConfig, +} from '../../../utils/videoPromptSchema'; +import { hasSchemaConfigSnapshot, inferSchemaSections, normalizeSchemaSections, diff --git a/video-gen-app/src/components/VideoPromptSchemaEditor.tsx b/video-gen-app/src/components/VideoPromptSchemaEditor.tsx index dd3ed026..923b7b42 100644 --- a/video-gen-app/src/components/VideoPromptSchemaEditor.tsx +++ b/video-gen-app/src/components/VideoPromptSchemaEditor.tsx @@ -1,9 +1,11 @@ import React from 'react'; import { Alert, Input, Space, Tag, Typography } from 'antd'; -import { +import type { JsonValue, VideoPromptSchemaFieldConfig, VideoPromptSchemaSectionConfig, +} from '../utils/videoPromptSchema'; +import { clonePlain, hasSchemaConfigSnapshot, normalizeSchemaSections,