Skip to content

Commit 3f55a3c

Browse files
author
高宇桥
committed
添加布局文件
1 parent ef087ed commit 3f55a3c

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/app/Components/Tab/tab.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<div class="page">
2+
<div class="page tabbar js_show">
33
<div class="page__bd" style="height: 100%;">
44
<div class="weui-tab">
55
<div class="weui-tab__panel">

src/app/Components/Tab/tab.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import { AppState } from '../../app.service';
55

66
@Component({
77
selector: 'tab',
8-
8+
styles:[`.page{
9+
position: absolute;
10+
top: 0;
11+
right: 0;
12+
bottom: 0;
13+
left: 0;}`],
914
templateUrl: './tab.component.html'
1015
})
1116
export class TabComponent {

src/app/View/home/home.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export class HomeComponent {
2929
items : Object[];
3030

3131
tap(e:Object){
32-
this._element.nativeElement.querySelector('.weui-tab__panel').innerHTML= '<div>111</div>'
32+
this.fill('啊') ;
3333
}
34-
34+
initPage = ()=>{this.fill(`<div>asdasd</div>`)};
35+
fill = (html:String)=>{this._element.nativeElement.querySelector('.weui-tab__panel').innerHTML = html};
3536
ngOnInit() {
3637
this.items = [{
3738
src:'./assets/img/sc.png',
@@ -42,6 +43,6 @@ export class HomeComponent {
4243
activeSrc:'./assets/img/mya.png',
4344
text:'我的'
4445
}]
46+
this.initPage();
4547
}
46-
4748
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy