import { Alert, Grid, Segmented, Select, Space } from "antd"; import type { AdminTemplateContent, BrandProfile, RuntimeWorkspace, } from "@personal-brand/api-client"; import { StatusTag } from "../../components/StatusTag.js"; import "./PresentationEditor.css"; import type { PreviewSelection } from "./preview-selection.js"; import { usePresentationEditorController } from "./presentation-editor-controller.js"; import { PresentationEditorInspector } from "./PresentationEditorInspector.js"; import { PresentationEditorPreview } from "./PresentationEditorPreview.js"; interface PresentationEditorProps { templateContent: AdminTemplateContent | null | undefined; previewWorkspace?: RuntimeWorkspace | undefined; config: Record | null | undefined; brand: BrandProfile; loading?: boolean; error?: unknown; initialSelection?: PreviewSelection; } export function PresentationEditor({ templateContent, previewWorkspace, config, brand, loading, error, initialSelection, }: PresentationEditorProps) { const breakpoints = Grid.useBreakpoint(); const controller = usePresentationEditorController({ templateContent, previewWorkspace, config, brand, ...(initialSelection ? { initialSelection } : {}), }); return (

小程序页面配置

按页面查找内容。这里修改的是草稿,发布后访客才会看到更新。

{templateContent ? : null}
{loading ? : null} {error ? ( ) : null} {!loading && !error && !templateContent ? ( ) : null} {templateContent ? ( <> {breakpoints.xs ? (