Skip to content

Commit

Permalink
fix(module:theme-drawer): should be import in forChild
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 7, 2018
1 parent ef341e8 commit 09516ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/theme/src/services/drawer/drawer.helper.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { Injectable } from '@angular/core';
import { Observable, Observer } from 'rxjs';
import { NzDrawerService, NzDrawerPlacement, NzDrawerOptions } from 'ng-zorro-antd';
import { NzDrawerService, NzDrawerOptions } from 'ng-zorro-antd';

export interface DrawerHelperOptions {
/**
* 大小;例如:lg、600,默认:`md`
*
*
* | 类型 | 默认大小 |
* | --- | ------ |
* | `sm` | `300` |
* | `md` | `600` |
* | `lg` | `900` |
* | `xl` | `1200` |
*
*
* > 以上值,可通过覆盖相应的LESS参数自行调整
*/
size?: 'sm' | 'md' | 'lg' | 'xl' | number;
Expand All @@ -30,9 +30,9 @@ export interface DrawerHelperOptions {

/**
* 抽屉辅助类
*
*
* **注意:** 构建结果都可被订阅,但永远都不会触发 `observer.error`
*
*
* 示例:
```ts
this.drawerHelper.create('Edit', FormEditComponent, { i }).subscribe(res => this.load());
Expand Down
3 changes: 2 additions & 1 deletion packages/theme/src/theme.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { DelonLocaleModule } from './locale/locale.module';
import { ALAIN_I18N_TOKEN, AlainI18NServiceFake } from './services/i18n/i18n';

import { ModalHelper } from './services/modal/modal.helper';
const HELPERS = [ModalHelper];
import { DrawerHelper } from './services/drawer/drawer.helper';
const HELPERS = [ModalHelper, DrawerHelper];

// components
const COMPONENTS = [];
Expand Down

0 comments on commit 09516ea

Please sign in to comment.