Skip to content

Commit

Permalink
fix(module:mune): 修正 overflow:hidden 样式导致的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maroon1 committed Sep 24, 2017
1 parent a2e07d0 commit 24aa8e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/menu/nz-submenu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ import { debounceTime } from 'rxjs/operator/debounceTime';
selector : '[nz-submenu]',
animations: [
trigger('fadeAnimation', [
state('*', style({ opacity: 1, overflow: 'hidden' })),
state('*', style({ opacity: 1 })),
transition('* => void', [
style({ overflow: 'hidden' }),
animate(150, style({ opacity: 0, display: 'none', height: 0 }))
]),
transition('void => *', [
style({ opacity: 0, height: 0 }),
style({ opacity: 0, height: 0, overflow: 'hidden' }),
animate(150, style({ opacity: 1, height: '*' }))
])
])
Expand Down Expand Up @@ -157,6 +158,7 @@ export class NzSubMenuComponent implements OnInit, OnDestroy, AfterViewInit {

ngOnInit() {
debounceTime.call(this._$mouseSubject, 300).subscribe((data: boolean) => {
console.log(data);
this.nzOpen = data;
});
}
Expand Down

0 comments on commit 24aa8e8

Please sign in to comment.