MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / createDocument

Method createDocument

packages/shell/src/api/project.ts:105–108  ·  view source on GitHub ↗

* 创建一个 document * @param data * @returns

(data?: IPublicTypeRootSchema)

Source from the content-addressed store, hash-verified

103 * @returns
104 */
105 createDocument(data?: IPublicTypeRootSchema): IPublicModelDocumentModel | null {
106 const doc = this[projectSymbol].createDocument(data);
107 return ShellDocumentModel.create(doc);
108 }
109
110 /**
111 * 删除一个 document

Callers

nothing calls this directly

Calls 2

createDocumentMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected