import { NgModule } from '@angular/core' ; import { SharedModule } from '@shared/shared.module' ; import { NzSchemaFormModule , WidgetRegistry } from 'nz-schema-form' ; import { UEditorWidget } from 'nz-schema-form/src/widgets-third/ueditor/ueditor.widget' ; export const SCHEMA_THIRDS_COMPONENTS = [ UEditorWidget ] ; @ NgModule ( { declarations : SCHEMA_THIRDS_COMPONENTS , entryComponents : SCHEMA_THIRDS_COMPONENTS , imports : [ SharedModule , NzSchemaFormModule . forRoot ( { } ) ] , exports : [ ... SCHEMA_THIRDS_COMPONENTS ] } ) export class JsonSchemaModule { constructor ( widgetRegistry ) { widgetRegistry . register ( UEditorWidget . KEY , UEditorWidget ) ; } }