mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
md transition
This commit is contained in:
@ -8,13 +8,9 @@ import {Platform} from '../../platform/platform';
|
||||
|
||||
/*
|
||||
|
||||
home: {
|
||||
ios: 'ion-ios-home',
|
||||
'home': {
|
||||
ios: ['ion-ios-home', 'ion-ios-home-outline'],
|
||||
md: 'ion-md-home'
|
||||
},
|
||||
star: {
|
||||
ios: 'ion-ios-star',
|
||||
md: 'ion-md-star',
|
||||
}
|
||||
|
||||
1-for-1 swap
|
||||
|
@ -81,6 +81,6 @@ export class FirstPage {
|
||||
// }
|
||||
|
||||
push() {
|
||||
this.nav.push(SecondPage, { id: 8675309, myData: [1,2,3,4] }, { animation: 'ios' });
|
||||
this.nav.push(SecondPage, { id: 8675309, myData: [1,2,3,4] } );
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,8 @@ export class ViewController extends Ion {
|
||||
injector: Injector,
|
||||
elementRef: ElementRef
|
||||
) {
|
||||
super(elementRef, injector.get(IonicConfig));
|
||||
let config = injector.get(IonicConfig);
|
||||
super(elementRef, config);
|
||||
|
||||
this.parent = parentViewCtrl;
|
||||
|
||||
@ -30,6 +31,7 @@ export class ViewController extends Ion {
|
||||
this.viewMngr = injector.get(AppViewManager);
|
||||
this.router = injector.get(IonicRouter);
|
||||
this.app = injector.get(IonicApp);
|
||||
this.config = config;
|
||||
|
||||
this.router.addViewController(this);
|
||||
|
||||
@ -203,6 +205,9 @@ export class ViewController extends Ion {
|
||||
|
||||
if (opts.animate === false) {
|
||||
opts.animation = 'none';
|
||||
|
||||
} else if (!opts.animation) {
|
||||
opts.animation = this.config.setting('viewTransition');
|
||||
}
|
||||
|
||||
opts.animate = (opts.animation !== 'none');
|
||||
|
Reference in New Issue
Block a user