import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { NcAdaptiveFormModule } from '@ng-cortex/core';<% if (formDatetimePickerFieldList.length > 0 || formDatePickerFieldList.length > 0) { %>
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';<% } %>
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzGridModule } from 'ng-zorro-antd/grid';<% if (formInputFieldList.length > 0) { %>
import { NzInputModule } from 'ng-zorro-antd/input';<% } %><% if (formInputNumberFieldList.length > 0) { %>
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';<% } %>
import { NzNotificationModule } from 'ng-zorro-antd/notification';<% if (formSelectFieldList.length > 0 || formSelectMultipleFieldList.length > 0) { %>
import { NzSelectModule } from 'ng-zorro-antd/select';<% } %><% if (formSwitchFieldList.length > 0) { %>
import { NzSwitchModule } from 'ng-zorro-antd/switch';<% } %>
import { <%= getPascalCase(name) %>EditorComponent } from './<%= getSeparatorCase(name) %>-editor.component';

/** <%= description %>编辑器模块 */
@NgModule({
  declarations: [<%= getPascalCase(name) %>EditorComponent],
  imports: [
    CommonModule,
    ReactiveFormsModule,
    NcAdaptiveFormModule<% if (formDatetimePickerFieldList.length > 0 || formDatePickerFieldList.length > 0) { %>,
    NzDatePickerModule<% } %>,
    NzFormModule,
    NzGridModule<% if (formInputFieldList.length > 0) { %>,
    NzInputModule<% } %><% if (formInputNumberFieldList.length > 0) { %>,
    NzInputNumberModule<% } %>,
    NzNotificationModule<% if (formSelectFieldList.length > 0 || formSelectMultipleFieldList.length > 0) { %>,
    NzSelectModule<% } %><% if (formSwitchFieldList.length > 0) { %>,
    NzSwitchModule<% } %>
  ],
  exports: [<%= getPascalCase(name) %>EditorComponent]
})
export class <%= getPascalCase(name) %>EditorModule { }
