Skip to content

Commit

Permalink
fix(module:dropdown): fix the style of CDK conflicts (NG-ZORRO#3133)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Mar 27, 2019
1 parent 30bc86b commit d15e7dd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/dropdown/nz-dropdown-button.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<i nz-icon type="ellipsis"></i>
</button>
</div>
<ng-template cdkConnectedOverlay
<ng-template
cdkConnectedOverlay
nzConnectedOverlay
[cdkConnectedOverlayHasBackdrop]="nzTrigger === 'click'"
[cdkConnectedOverlayPositions]="positions"
[cdkConnectedOverlayOrigin]="nzDropDownDirective"
Expand Down
4 changes: 3 additions & 1 deletion components/dropdown/nz-dropdown.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<ng-content select="[nz-dropdown]"></ng-content>
<ng-template cdkConnectedOverlay
<ng-template
cdkConnectedOverlay
nzConnectedOverlay
[cdkConnectedOverlayHasBackdrop]="nzTrigger === 'click'"
[cdkConnectedOverlayPositions]="positions"
[cdkConnectedOverlayOrigin]="nzDropDownDirective"
Expand Down
12 changes: 11 additions & 1 deletion components/dropdown/nz-dropdown.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { FormsModule } from '@angular/forms';
import { NzNoAnimationModule } from '../core/no-animation/nz-no-animation.module';

import { NzButtonModule } from '../button/nz-button.module';
import { NzOverlayModule } from '../core/overlay/nz-overlay.module';
import { NzIconModule } from '../icon/nz-icon.module';
import { NzMenuModule } from '../menu/nz-menu.module';
import { NzDropDownADirective } from './nz-dropdown-a.directive';
Expand All @@ -15,7 +16,16 @@ import { NzDropDownComponent } from './nz-dropdown.component';
import { NzDropDownDirective } from './nz-dropdown.directive';

@NgModule({
imports: [CommonModule, OverlayModule, FormsModule, NzButtonModule, NzMenuModule, NzIconModule, NzNoAnimationModule],
imports: [
CommonModule,
OverlayModule,
FormsModule,
NzButtonModule,
NzMenuModule,
NzIconModule,
NzNoAnimationModule,
NzOverlayModule
],
entryComponents: [NzDropdownContextComponent],
declarations: [
NzDropDownComponent,
Expand Down

0 comments on commit d15e7dd

Please sign in to comment.