mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): fix tabs demo
This commit is contained in:
@ -1,13 +1,33 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Component, ViewEncapsulation } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
template: '<div>johnny utah</div>',
|
||||
selector: 'tab-page'
|
||||
})
|
||||
export class TabPage {}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page.html'
|
||||
templateUrl: 'page.html',
|
||||
selector: 'api-demo-page',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
styles: [
|
||||
`
|
||||
ion-tabs {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
`,
|
||||
`
|
||||
ion-tabs,
|
||||
ion-tabs .tabbar {
|
||||
position: relative;
|
||||
top: auto;
|
||||
height: auto;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
`
|
||||
]
|
||||
})
|
||||
export class ApiDemoPage {
|
||||
root = TabPage;
|
||||
@ -15,7 +35,8 @@ export class ApiDemoPage {
|
||||
|
||||
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
template: '<ion-nav [root]="root"></ion-nav>',
|
||||
selector: 'api-demo-app'
|
||||
})
|
||||
export class ApiDemoApp {
|
||||
root = ApiDemoPage;
|
||||
|
@ -1,16 +1,14 @@
|
||||
ion-tabs:first-child {
|
||||
margin-top: 60px;
|
||||
}
|
||||
|
||||
ion-tabs {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
ion-tabs,
|
||||
ion-tabs .tabbar {
|
||||
position: relative;
|
||||
top: auto;
|
||||
height: auto;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
ion-tabs:first-child {
|
||||
margin-top: 60px;
|
||||
}
|
||||
ion-tabs {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
ion-tabs,
|
||||
ion-tabs .tabbar {
|
||||
position: relative;
|
||||
top: auto;
|
||||
height: auto;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user