mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
chore(animation): fix ele querySelectorAll
This commit is contained in:
@ -72,7 +72,7 @@ export class Animation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (typeof ele === 'string') {
|
} else if (typeof ele === 'string') {
|
||||||
ele = doc.querySelector(ele);
|
ele = doc.querySelectorAll(ele);
|
||||||
for (i = 0; i < ele.length; i++) {
|
for (i = 0; i < ele.length; i++) {
|
||||||
this._addEle(ele[i]);
|
this._addEle(ele[i]);
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,8 @@ import {App, Page, Animation} from '../../../../../ionic/ionic';
|
|||||||
templateUrl: 'main.html'
|
templateUrl: 'main.html'
|
||||||
})
|
})
|
||||||
class E2EPage {
|
class E2EPage {
|
||||||
|
duration;
|
||||||
|
easing;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.duration = '1000';
|
this.duration = '1000';
|
||||||
@ -25,6 +27,8 @@ class E2EPage {
|
|||||||
template: '<ion-nav [root]="root"></ion-nav>'
|
template: '<ion-nav [root]="root"></ion-nav>'
|
||||||
})
|
})
|
||||||
class E2EApp {
|
class E2EApp {
|
||||||
|
root;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.root = E2EPage;
|
this.root = E2EPage;
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
<ion-item>
|
<ion-item>
|
||||||
<ion-label>Easing</ion-label>
|
<ion-label>Easing</ion-label>
|
||||||
<ion-select [(ngModel)]="easing">
|
<ion-select [(ngModel)]="easing">
|
||||||
<ion-option value="linear"></ion-option>
|
<ion-option>linear</ion-option>
|
||||||
<ion-option value="ease-in-out"></ion-option>
|
<ion-option>ease-in-out</ion-option>
|
||||||
<ion-option value="cubic-bezier(0.36,0.66,0.04,1)"></ion-option>
|
<ion-option>cubic-bezier(0.36,0.66,0.04,1</ion-option>
|
||||||
</ion-select>
|
</ion-select>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user