MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / closeOthers

Method closeOthers

packages/designer/src/project/project.ts:358–364  ·  view source on GitHub ↗
(opened: DocumentModel)

Source from the content-addressed store, hash-verified

356 }
357
358 closeOthers(opened: DocumentModel) {
359 this.documents.forEach((doc) => {
360 if (doc !== opened) {
361 doc.close();
362 }
363 });
364 }
365
366 mountSimulator(simulator: ISimulatorHost) {
367 // TODO: 多设备 simulator 支持

Callers 1

Calls 2

forEachMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected