Skip to content

Commit

Permalink
[修复] 删除tab自动滚动条,改由用户自己添加
Browse files Browse the repository at this point in the history
  • Loading branch information
hpyou authored and rdkmaster committed Oct 15, 2018
1 parent e006899 commit 22d776d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/jigsaw/component/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import {JigsawTab} from './tab';
import {JigsawTabPane} from "./tab-pane";
import {CommonModule} from "@angular/common";
import {JigsawTabContent, JigsawTabLabel} from "./tab-item";
import {PerfectScrollbarModule} from "ngx-perfect-scrollbar";

@NgModule({
imports: [CommonModule, PerfectScrollbarModule],
imports: [CommonModule],
exports: [JigsawTab, JigsawTabPane],
declarations: [JigsawTab, JigsawTabPane, JigsawTabLabel, JigsawTabContent],
providers: [],
Expand Down
3 changes: 1 addition & 2 deletions src/jigsaw/component/tabs/tab.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
</div>
</div>
</div>
<div class="jigsaw-tabs-content" [perfectScrollbar]="{wheelSpeed: 0.5, wheelPropagation: true}"
[style.height]="_$contentHeight">
<div class="jigsaw-tabs-content" [style.height]="_$contentHeight">
<jigsaw-tab-content
*ngFor="let tab of _$tabPanes; let i = index;"
[key]="i"
Expand Down

0 comments on commit 22d776d

Please sign in to comment.