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