* 获取项目整体 schema
(
stage: IPublicEnumTransformStage = IPublicEnumTransformStage.Save,
)
| 177 | * 获取项目整体 schema |
| 178 | */ |
| 179 | getSchema( |
| 180 | stage: IPublicEnumTransformStage = IPublicEnumTransformStage.Save, |
| 181 | ): IPublicTypeProjectSchema { |
| 182 | return { |
| 183 | ...this.data, |
| 184 | componentsMap: this.getComponentsMap(), |
| 185 | componentsTree: this.documents |
| 186 | .filter((doc) => !doc.isBlank()) |
| 187 | .map((doc) => doc.export(stage) || {} as IPublicTypeRootSchema), |
| 188 | i18n: this.i18n, |
| 189 | }; |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * 替换当前 document 的 schema,并触发渲染器的 render |
nothing calls this directly
no test coverage detected