octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(loading): fix enter animation
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 3 changed files with 3 additions and 5 deletions
2
packages/core/package-lock.json
generated
2
packages/core/package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ionic/core",
|
||||
"version": "0.0.2-1",
|
||||
"version": "0.0.2-2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ionic/core",
|
||||
"version": "0.0.2-1",
|
||||
"version": "0.0.2-2",
|
||||
"description": "Base components for Ionic",
|
||||
"main": "dist/collection/index.js",
|
||||
"types": "dist/collection/index.d.ts",
|
||||
|
||||
@@ -93,13 +93,12 @@ export class Loading {
|
||||
if (!animationBuilder) {
|
||||
// user did not provide a custom animation fn
|
||||
// decide from the config which animation to use
|
||||
// TODO!!
|
||||
animationBuilder = iOSEnterAnimation;
|
||||
}
|
||||
|
||||
// build the animation and kick it off
|
||||
Ionic.controller('animation').then(Animation => {
|
||||
this.animation = new Animation();
|
||||
this.animation = animationBuilder(Animation, this.el);
|
||||
|
||||
this.animation.onFinish((a: any) => {
|
||||
a.destroy();
|
||||
@@ -129,7 +128,6 @@ export class Loading {
|
||||
if (!animationBuilder) {
|
||||
// user did not provide a custom animation fn
|
||||
// decide from the config which animation to use
|
||||
// TODO!!
|
||||
animationBuilder = iOSLeaveAnimation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user