refactor: 抽取共享 getFullFormValues 表单读取工具
CI / Browser smoke (pull_request) Successful in 47s
CI / Static checks (pull_request) Successful in 58s
CI / API integration (pull_request) Successful in 1m7s
CI / Production build (pull_request) Successful in 1m24s

This commit is contained in:
que01 committed 2026-10-29 14:24:23 +08:00
1 parent 29116678aa
commit aa2b6f35b0
7 files changed
+20 -8

No files matched your search

@@ -11,6 +11,7 @@ import {
} from "../../lib/presentation/presentation-bindings.js";
import { fieldTargetTitle } from "./presentation-editor-helpers.js";
import type { PreviewTarget } from "./preview-selection.js";
import { getFullFormValues } from "../../lib/form-values.js";
interface PresentationFormPanelProps {
form: FormInstance<PresentationValues>;
@@ -44,7 +45,7 @@ export function PresentationFormPanel({
layout="vertical"
initialValues={initialValues}
onValuesChange={onValuesChange}
onFinish={() => save.mutate(form.getFieldsValue(true) as PresentationValues)}
onFinish={() => save.mutate(getFullFormValues<PresentationValues>(form))}
className="presentation-editor__form"
>
<div className="presentation-editor__form-body">