mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge remote-tracking branch 'origin/master'
Conflicts: ionic/components/nav/nav-item.js ionic/components/view/view.scss
This commit is contained in:
14
ionic/components/view/lifecycle.js
Normal file
14
ionic/components/view/lifecycle.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export class Lifecycle {
|
||||
static viewLoaded(component) {
|
||||
component.viewLoaded && component.viewLoaded();
|
||||
}
|
||||
static viewWillShow(component) {
|
||||
component.viewWillShow && component.viewWillShow();
|
||||
}
|
||||
static viewEntered(component) {
|
||||
component.viewEntered && component.viewEntered();
|
||||
}
|
||||
static viewDestroyed(component) {
|
||||
component.viewDestroyed && component.viewDestroyed();
|
||||
}
|
||||
}
|
||||
30
ionic/components/view/view.scss.orig
Normal file
30
ionic/components/view/view.scss.orig
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
ion-view {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
background-color: white;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
// by default this is display: none;
|
||||
// and the transition animation will display it
|
||||
//display: none;
|
||||
flex-direction: column;
|
||||
|
||||
display: flex;
|
||||
|
||||
/*
|
||||
TODO: This is probably not the most common case,
|
||||
should be display flex first, then remove for special cases.
|
||||
&.show-view {
|
||||
display: flex;
|
||||
}
|
||||
*/
|
||||
|
||||
>>>>>>> origin/master
|
||||
}
|
||||
Reference in New Issue
Block a user