mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
Slight yerk ypdate
This commit is contained in:
@ -7,7 +7,56 @@ import {IonicView} from 'ionic/ionic';
|
|||||||
@IonicView({
|
@IonicView({
|
||||||
templateUrl: 'main.html'
|
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) {
|
export function main(ionicBootstrap) {
|
||||||
ionicBootstrap(IonicApp);
|
ionicBootstrap(IonicApp);
|
||||||
|
@ -1,31 +1,9 @@
|
|||||||
<ion-tabs id="tabs">
|
<ion-nav [root]="root"></ion-nav>
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
ion-nav {
|
||||||
#toolbar {
|
background-color: #00E2BE !important;
|
||||||
background-color: #00E2BE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabs .tab-bar {
|
#tabs .tab-bar {
|
||||||
background-color: #FEFEFE;
|
background-color: #FEFEFE;
|
||||||
}
|
}
|
||||||
@ -42,9 +20,7 @@
|
|||||||
transform-origin: 50% 0%;
|
transform-origin: 50% 0%;
|
||||||
background-color: #00ECC4;
|
background-color: #00ECC4;
|
||||||
content: '';
|
content: '';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabs .tab-button {
|
#tabs .tab-button {
|
||||||
color: #C7C7C7;
|
color: #C7C7C7;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user