import { NgModule, ModuleWithProviders, InjectionToken } from '@angular/core'; import { NgZorroAntdModule } from 'ng-zorro-antd'; // 导出组件模块 import { ButtonModule } from './button/button.module'; import { BadgeModule } from './badge/badge.module'; import { BreadcrumbModule } from './breadcrumb/breadcrumb.module'; import { CardModule } from './card/card.module'; import { CarouselModule } from './carousel/carousel.module'; import { CascaderModule } from './cascader/cascader.module'; import { DropdownModule } from './dropdown/dropdown.module'; import { PaginationModule } from './pagination/pagination.module'; import { PopconfirmModule } from './popconfirm/popconfirm.module'; import { ProgressModule } from './progress/progress.module'; import { RadioModule } from './radio/radio.module'; import { SelectModule } from './select/select.module'; import { SliderModule } from './slider/slider.module'; import { SpinModule } from './spin/spin.module'; import { SwitchModule } from './switch/switch.module'; import { TimelineModule } from './timeline/timeline.module'; import { TimePickerModule } from './timePicker/timePicker.module'; import { TooltipModule } from './tooltip/tooltip.module'; import { TagModule } from './tag/tag.module'; import { TabsModule } from './tabs/tabs.module'; import { TableModule } from './table/table.module'; import { StepsModule } from './steps/steps.module'; import { RateModule } from './rate/rate.module'; import { PopoverModule } from './popover/popover.module'; import { ModalModule } from './modal/modal.module'; import { MessageModule } from './message/message.module'; import { MenuModule } from './menu/menu.module'; import { InputNumberModule } from './inputNumber/inputNumber.module'; import { InputModule } from './input/input.module'; import { FormModule } from './form/form.module'; import { datePickerModule } from './datePicker/datePicker.module'; import { CollapseModule } from './collapse/collapse.module'; import { CheckboxModule } from './checkbox/checkbox.module'; import { CalendarModule } from './calendar/calendar.module'; import { AvatarModule } from './avatar/avatar.module'; import { AlertModule } from './alert/alert.module'; import { AffixModule } from './affix/affix.module'; import { CodeHighlightModule } from './code-highlight/code-highlight.module'; import { cmtTableModule } from './cmtTable/cmtTable.module'; import { CmDatePickerShortcutModule } from './cmDatePickerShortcut/cmDatePickerShortcut.module'; import { cmFormModule } from './cmForm/cmForm.module'; import { cmMenuTreeModule} from './cmMenuTree/cmMenuTree.module'; import { UploadModule } from './upload/upload.module'; // 导出组件 export { AffixComponent } from './affix/affix.component'; export { AlertComponent } from './alert/alert.component'; export { AvatarComponent } from './avatar/avatar.component'; export { BadgeComponent } from './badge/badge.component'; export { BreadcrumbComponent } from './breadcrumb/breadcrumb.component'; export { ButtonComponent } from './button/button.component'; export { CalendarComponent } from './calendar/calendar.component'; export { CardComponent } from './card/card.component'; export { CarouselComponent } from './carousel/carousel.component'; export { CascaderComponent } from './cascader/cascader.component'; export { CheckboxComponent } from './checkbox/checkbox.component'; export { CollapseComponent } from './collapse/collapse.component'; export { datePickerComponent } from './datePicker/datePicker.component'; export { DropdownComponent } from './dropdown/dropdown.component'; export { FormComponent } from './form/form.component'; export { InputComponent } from './input/input.component'; export { InputNumberComponent } from './inputNumber/inputNumber.component'; export { MenuComponent } from './menu/menu.component'; export { MessageComponent } from './message/message.component'; export { ModalComponent } from './modal/modal.component'; export { PaginationComponent } from './pagination/pagination.component'; export { PopconfirmComponent } from './popconfirm/popconfirm.component'; export { PopoverComponent } from './popover/popover.component'; export { ProgressComponent } from './progress/progress.component'; export { RadioComponent } from './radio/radio.component'; export { RateComponent } from './rate/rate.component'; export { SelectComponent } from './select/select.component'; export { SliderComponent } from './slider/slider.component'; export { SpinComponent } from './spin/spin.component'; export { StepsComponent } from './steps/steps.component'; export { SwitchComponent } from './switch/switch.component'; export { TableComponent } from './table/table.component'; export { TabsComponent } from './tabs/tabs.component'; export { TagComponent } from './tag/tag.component'; export { TimelineComponent } from './timeline/timeline.component'; export { TimePickerComponent } from './timePicker/timePicker.component'; export { TooltipComponent } from './tooltip/tooltip.component'; export { TransferComponent } from './transfer/transfer.component'; export { CodeHighlightComponent } from './code-highlight/code-highlight.component'; export { cmtTableComponent } from './cmtTable/cmtTable.component'; export { CmDatePickerShortcutComponent } from './cmDatePickerShortcut/cmDatePickerShortcut.component'; export { cmFormComponent} from './cmForm/cmForm.component'; export { cmMenuTreeComponent} from './cmMenuTree/cmMenuTree.component'; export { UploadComponent } from './upload/upload.component'; // 导出组件模块 export { ButtonModule } from './button/button.module'; export { BadgeModule } from './badge/badge.module'; export { BreadcrumbModule } from './breadcrumb/breadcrumb.module'; export { CardModule } from './card/card.module'; export { CarouselModule } from './carousel/carousel.module'; export { CascaderModule } from './cascader/cascader.module'; export { DropdownModule } from './dropdown/dropdown.module'; export { PaginationModule } from './pagination/pagination.module'; export { PopconfirmModule } from './popconfirm/popconfirm.module'; export { ProgressModule } from './progress/progress.module'; export { RadioModule } from './radio/radio.module'; export { SelectModule } from './select/select.module'; export { SliderModule } from './slider/slider.module'; export { SpinModule } from './spin/spin.module'; export { SwitchModule } from './switch/switch.module'; export { TimelineModule } from './timeline/timeline.module'; export { TimePickerModule } from './timePicker/timePicker.module'; export { TooltipModule } from './tooltip/tooltip.module'; export { TagModule } from './tag/tag.module'; export { TabsModule } from './tabs/tabs.module'; export { TableModule } from './table/table.module'; export { StepsModule } from './steps/steps.module'; export { RateModule } from './rate/rate.module'; export { PopoverModule } from './popover/popover.module'; export { ModalModule } from './modal/modal.module'; export { MessageModule } from './message/message.module'; export { MenuModule } from './menu/menu.module'; export { InputNumberModule } from './inputNumber/inputNumber.module'; export { InputModule } from './input/input.module'; export { FormModule } from './form/form.module'; export { datePickerModule } from './datePicker/datePicker.module'; export { CollapseModule } from './collapse/collapse.module'; export { CheckboxModule } from './checkbox/checkbox.module'; export { CalendarModule } from './calendar/calendar.module'; export { AvatarModule } from './avatar/avatar.module'; export { AlertModule } from './alert/alert.module'; export { AffixModule } from './affix/affix.module'; export { CodeHighlightModule } from './code-highlight/code-highlight.module'; export { cmtTableModule } from './cmtTable/cmtTable.module'; export { CmDatePickerShortcutModule } from './cmDatePickerShortcut/cmDatePickerShortcut.module'; export { cmFormModule } from './cmForm/cmForm.module'; export { cmMenuTreeModule} from './cmMenuTree/cmMenuTree.module'; export { UploadModule } from './upload/upload.module'; // 导出antd export { zhCN, enUS, NzNotificationService as CmNotificationService, NzMessageService as CmMessageService, NzModalService as CmModalService } from 'ng-zorro-antd'; @NgModule({ imports: [ NgZorroAntdModule.forRoot() ] }) export class BaseComponentModule { static forRoot(): ModuleWithProviders { return { ngModule: BaseComponentModule } } } export const baseComponentModuleArray: any[] = [ AffixModule, AlertModule, AvatarModule, BadgeModule, BreadcrumbModule, ButtonModule, CalendarModule, CardModule, CarouselModule, CascaderModule, CheckboxModule, CollapseModule, datePickerModule, DropdownModule, FormModule, InputModule, InputNumberModule, MenuModule, MessageModule, ModalModule, PaginationModule, PopconfirmModule, PopoverModule, ProgressModule, RadioModule, RateModule, SelectModule, SliderModule, SpinModule, StepsModule, SwitchModule, TableModule, TabsModule, TagModule, TimelineModule, TimePickerModule, TooltipModule, CodeHighlightModule, cmtTableModule, CmDatePickerShortcutModule, cmFormModule, cmMenuTreeModule, UploadModule ];