mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
Slight yerk ypdate
This commit is contained in:
@ -7,7 +7,56 @@ import {IonicView} from 'ionic/ionic';
|
||||
@IonicView({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class IonicApp {}
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
this.root = TabsPage;
|
||||
}
|
||||
}
|
||||
|
||||
@Component({selector: 'ion-view'})
|
||||
@IonicView({
|
||||
template: '' +
|
||||
'<ion-navbar *navbar>' +
|
||||
'<ion-title>Home</ion-title>' +
|
||||
'</ion-navbar>' +
|
||||
'<ion-content class="padding">' +
|
||||
'</ion-content>'
|
||||
})
|
||||
class HomeTabPage {
|
||||
constructor(nav: NavController) {
|
||||
this.nav = nav;
|
||||
console.log('Initi');
|
||||
}
|
||||
push() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Component({selector: 'ion-view'})
|
||||
@IonicView({
|
||||
template: `<ion-tabs id="tabs">
|
||||
<ion-tab tab-title="Home" tab-icon="ion-earth"></ion-tab>
|
||||
<ion-tab tab-title="Peek" tab-icon="ion-ios-glasses">
|
||||
<ion-content class="padding">
|
||||
</ion-content>
|
||||
</ion-tab>
|
||||
<ion-tab tab-title="Me" tab-icon="ion-ios-person">
|
||||
<ion-content class="padding">
|
||||
</ion-content>
|
||||
</ion-tab>
|
||||
<ion-tab tab-title="More" tab-icon="ion-ios-more">
|
||||
<ion-content class="padding">
|
||||
</ion-content>
|
||||
</ion-tab>
|
||||
|
||||
</ion-tabs>
|
||||
`
|
||||
})
|
||||
class TabsPage {
|
||||
constructor() {
|
||||
this.firstTabPage = HomeTabPage;
|
||||
}
|
||||
}
|
||||
|
||||
export function main(ionicBootstrap) {
|
||||
ionicBootstrap(IonicApp);
|
||||
|
@ -1,31 +1,9 @@
|
||||
<ion-tabs id="tabs">
|
||||
|
||||
<ion-tab tab-title="Home" tab-icon="ion-earth">
|
||||
<ion-content class="padding">
|
||||
</ion-content>
|
||||
</ion-tab>
|
||||
<ion-tab tab-title="Peek" tab-icon="ion-ios-glasses">
|
||||
<ion-content class="padding">
|
||||
</ion-content>
|
||||
</ion-tab>
|
||||
<ion-tab tab-title="Me" tab-icon="ion-ios-person">
|
||||
<ion-content class="padding">
|
||||
</ion-content>
|
||||
</ion-tab>
|
||||
<ion-tab tab-title="More" tab-icon="ion-ios-more">
|
||||
<ion-content class="padding">
|
||||
</ion-content>
|
||||
</ion-tab>
|
||||
|
||||
</ion-tabs>
|
||||
|
||||
<ion-nav [root]="root"></ion-nav>
|
||||
|
||||
<style>
|
||||
|
||||
#toolbar {
|
||||
background-color: #00E2BE;
|
||||
ion-nav {
|
||||
background-color: #00E2BE !important;
|
||||
}
|
||||
|
||||
#tabs .tab-bar {
|
||||
background-color: #FEFEFE;
|
||||
}
|
||||
@ -42,9 +20,7 @@
|
||||
transform-origin: 50% 0%;
|
||||
background-color: #00ECC4;
|
||||
content: '';
|
||||
|
||||
}
|
||||
|
||||
#tabs .tab-button {
|
||||
color: #C7C7C7;
|
||||
}
|
||||
|
Reference in New Issue
Block a user