API 참조

IDocumentData

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

A document snapshot containing its body, styles, page settings, and resources. Use FDocument to edit a live document and preserve its structure.

Import

TypeScript
import type { IDocumentData } from '@univerjs/core'

Definition

TypeScript
interface IDocumentData extends IReferenceSource {  id: string  rev?: number  locale?: LocaleType  title?: string  body?: IDocumentBody  notes?: Record<string, IDocumentNote>  noteSettings?: INoteSettings  documentStyle: IDocumentStyle  styles?: IDocStyles  settings?: IDocumentSettings  resources?: IResources  disabled?: boolean}

Fields

id

Required · string

unit ID

rev

Optional · number | undefined

Revision of this document. Would be used in collaborated editing. Starts with zero.

locale

Optional · LocaleType | undefined

title

Optional · string | undefined

body

Optional · IDocumentBody | undefined

notes

Optional · Record<string, IDocumentNote> | undefined

Independent rich-text segments addressed by footnote or endnote references in the main body.

noteSettings

Optional · INoteSettings | undefined

documentStyle

Required · IDocumentStyle

styles

Optional · IDocStyles | undefined

OOXML-compatible named document styles keyed by stable style id.

settings

Optional · IDocumentSettings | undefined

resources

Optional · IResources | undefined

disabled

Optional · boolean | undefined

tableSource

Optional · ITables | undefined

footers

Optional · IFooters | undefined

headers

Optional · IHeaders | undefined

footnotes

Optional · Record<string, IDocxNoteStory> | undefined

endnotes

Optional · Record<string, IDocxNoteStory> | undefined

lists

Optional · ILists | undefined

drawings

Optional · IDrawings | undefined

drawingsOrder

Optional · string[] | undefined

headerFooterDrawingsOrder

Optional · string[] | undefined

Package: @univerjs/core · Type definitions

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.