# ppt-editor-ui **Repository Path**: wanghe520/ppt-editor-ui ## Basic Information - **Project Name**: ppt-editor-ui - **Description**: PPT Editor UI - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-04-22 - **Last Updated**: 2026-07-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PPT Editor UI ## 快速开始(仅对象式接入) ```ts import { PptEditor } from '@wanghe1995/ppt-editor-ui' const editor = new PptEditor({ container: '#app', initialContent: null, documentName: '示例演示文稿.pptx', readOnly: false, onChange: (content) => { console.log('ppt change', content) } }) ``` ## 对外 API(仅对象式) ```ts interface Options { container: string | HTMLElement initialContent?: any documentName?: string readOnly?: boolean locale?: PptLocale i18n?: Partial onChange?: (content: { format: string; data: any }) => void } class PptEditor { constructor(options: Options) setContent(content: any): void setDocumentName(name: string): void setReadOnly(readOnly: boolean): void destroy(): void } ``` ## 说明 - 统一采用 `new PptEditor(...)` 接入。 - 宿主负责数据请求与持久化;编辑器仅负责渲染与变更回调。