import { FormsModule, ReactiveFormsModule, } from '@angular/forms'; import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {NgZorroAntdModule} from 'ng-zorro-antd'; import {NgxNeditorModule} from '@notadd/ngx-neditor'; // 管道 import { TimesPipe, TextareaPipe, SystemPipe, CouponStatusPipe, CouponCodePipe, AuditTypePipe, AuditStatusPipe, PaymodelPipe, PaytypePipe, DiscountTypePipe, OrderCouponStatusPipe, DiscountStatusPipe, DisplayAreaPipe, DiscountCodeStatusPipe, RechargePricePipe, RechargeStatusPipe, ChannelMarkPipe, TypePipe, StatusPipe, RechargePayTypePipe, RefundSourcePipe, RefundStatusPipe, PreOrderStatusPipe, ButtonPipe, DiscountPackageStatusPipe, PriceShowPipe, ShowTypePipe, EnergyTypePipe, CompanyAmountRecordTypePipe, CompanyAmountRecordSourceTypePipe, OilCardBindStatusPipe, OilCardRecordTypePipe, OilCardRecordSourceTypePipe } from './pipes'; import {OilCardStatusPipe} from './pipes/oil-card/oil-card-status.pipe'; import { OilTypePipe } from './pipes/store/oil-type.pipe'; import {GasStaffStatusPipe} from './pipes/gas-staff/gas-staff-status.pipe'; const PIPES = [ TimesPipe, TextareaPipe, SystemPipe, CouponStatusPipe, CouponCodePipe, AuditTypePipe, AuditStatusPipe, OrderCouponStatusPipe, PaymodelPipe, PaytypePipe, DiscountTypePipe, DiscountStatusPipe, DisplayAreaPipe, DiscountCodeStatusPipe, RechargePricePipe, RechargeStatusPipe, ChannelMarkPipe, ChannelMarkPipe, TypePipe, StatusPipe, RechargePayTypePipe, RefundSourcePipe, RefundStatusPipe, PreOrderStatusPipe, ButtonPipe, DiscountPackageStatusPipe, ShowTypePipe, PriceShowPipe, EnergyTypePipe, CompanyAmountRecordTypePipe, CompanyAmountRecordSourceTypePipe, OilCardStatusPipe, OilCardBindStatusPipe, OilCardRecordTypePipe, OilCardRecordSourceTypePipe, GasStaffStatusPipe, ]; @NgModule({ imports: [ CommonModule, FormsModule, ReactiveFormsModule, NgZorroAntdModule, NgxNeditorModule ], declarations: [ ...PIPES, OilTypePipe, ], exports: [ ...PIPES, ], }) export class AppCommonModule { static forRoot() { return { ngModule: AppCommonModule, providers: [], }; } }