File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
2
- < div class ="page ">
2
+ < div class ="page tabbar js_show ">
3
3
< div class ="page__bd " style ="height: 100%; ">
4
4
< div class ="weui-tab ">
5
5
< div class ="weui-tab__panel ">
Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ import { AppState } from '../../app.service';
5
5
6
6
@Component ( {
7
7
selector : 'tab' ,
8
-
8
+ styles :[ `.page{
9
+ position: absolute;
10
+ top: 0;
11
+ right: 0;
12
+ bottom: 0;
13
+ left: 0;}` ] ,
9
14
templateUrl : './tab.component.html'
10
15
} )
11
16
export class TabComponent {
Original file line number Diff line number Diff line change @@ -29,9 +29,10 @@ export class HomeComponent {
29
29
items : Object [ ] ;
30
30
31
31
tap ( e :Object ) {
32
- this . _element . nativeElement . querySelector ( '.weui-tab__panel' ) . innerHTML = '<div>111</div>'
32
+ this . fill ( '啊' ) ;
33
33
}
34
-
34
+ initPage = ( ) => { this . fill ( `<div>asdasd</div>` ) } ;
35
+ fill = ( html :String ) => { this . _element . nativeElement . querySelector ( '.weui-tab__panel' ) . innerHTML = html } ;
35
36
ngOnInit ( ) {
36
37
this . items = [ {
37
38
src :'./assets/img/sc.png' ,
@@ -42,6 +43,6 @@ export class HomeComponent {
42
43
activeSrc :'./assets/img/mya.png' ,
43
44
text :'我的'
44
45
} ]
46
+ this . initPage ( ) ;
45
47
}
46
-
47
48
}
You can’t perform that action at this time.
0 commit comments