mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(all): updated tslint rules to latest
This commit is contained in:
@ -4,13 +4,13 @@ import { Animation } from '../../../interface';
|
||||
/**
|
||||
* iOS Loading Enter Animation
|
||||
*/
|
||||
export function iosEnterAnimation(Animation: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new Animation();
|
||||
export function iosEnterAnimation(AnimationC: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new AnimationC();
|
||||
|
||||
const backdropAnimation = new Animation();
|
||||
const backdropAnimation = new AnimationC();
|
||||
backdropAnimation.addElement(baseEl.querySelector('ion-backdrop'));
|
||||
|
||||
const wrapperAnimation = new Animation();
|
||||
const wrapperAnimation = new AnimationC();
|
||||
wrapperAnimation.addElement(baseEl.querySelector('.loading-wrapper'));
|
||||
|
||||
backdropAnimation.fromTo('opacity', 0.01, 0.3);
|
||||
|
||||
@ -4,13 +4,13 @@ import { Animation } from '../../../interface';
|
||||
/**
|
||||
* iOS Loading Leave Animation
|
||||
*/
|
||||
export function iosLeaveAnimation(Animation: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new Animation();
|
||||
export function iosLeaveAnimation(AnimationC: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new AnimationC();
|
||||
|
||||
const backdropAnimation = new Animation();
|
||||
const backdropAnimation = new AnimationC();
|
||||
backdropAnimation.addElement(baseEl.querySelector('ion-backdrop'));
|
||||
|
||||
const wrapperAnimation = new Animation();
|
||||
const wrapperAnimation = new AnimationC();
|
||||
wrapperAnimation.addElement(baseEl.querySelector('.loading-wrapper'));
|
||||
|
||||
backdropAnimation.fromTo('opacity', 0.3, 0);
|
||||
|
||||
@ -3,13 +3,13 @@ import { Animation } from '../../../interface';
|
||||
/**
|
||||
* Md Loading Enter Animation
|
||||
*/
|
||||
export function mdEnterAnimation(Animation: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new Animation();
|
||||
export function mdEnterAnimation(AnimationC: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new AnimationC();
|
||||
|
||||
const backdropAnimation = new Animation();
|
||||
const backdropAnimation = new AnimationC();
|
||||
backdropAnimation.addElement(baseEl.querySelector('ion-backdrop'));
|
||||
|
||||
const wrapperAnimation = new Animation();
|
||||
const wrapperAnimation = new AnimationC();
|
||||
wrapperAnimation.addElement(baseEl.querySelector('.loading-wrapper'));
|
||||
|
||||
backdropAnimation.fromTo('opacity', 0.01, 0.5);
|
||||
|
||||
@ -3,13 +3,13 @@ import { Animation } from '../../../interface';
|
||||
/**
|
||||
* Md Loading Leave Animation
|
||||
*/
|
||||
export function mdLeaveAnimation(Animation: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new Animation();
|
||||
export function mdLeaveAnimation(AnimationC: Animation, baseEl: HTMLElement): Promise<Animation> {
|
||||
const baseAnimation = new AnimationC();
|
||||
|
||||
const backdropAnimation = new Animation();
|
||||
const backdropAnimation = new AnimationC();
|
||||
backdropAnimation.addElement(baseEl.querySelector('ion-backdrop'));
|
||||
|
||||
const wrapperAnimation = new Animation();
|
||||
const wrapperAnimation = new AnimationC();
|
||||
wrapperAnimation.addElement(baseEl.querySelector('.loading-wrapper'));
|
||||
|
||||
backdropAnimation.fromTo('opacity', 0.5, 0);
|
||||
|
||||
@ -78,7 +78,7 @@ export class Loading implements OverlayInterface {
|
||||
* The name of the spinner to display. Possible values are: `"lines"`, `"lines-small"`, `"dots"`,
|
||||
* `"bubbles"`, `"circles"`, `"crescent"`.
|
||||
*/
|
||||
@Prop({mutable: true}) spinner?: string;
|
||||
@Prop({ mutable: true }) spinner?: string;
|
||||
|
||||
/**
|
||||
* If true, the loading indicator will be translucent. Defaults to `false`.
|
||||
@ -144,7 +144,7 @@ export class Loading implements OverlayInterface {
|
||||
*/
|
||||
@Method()
|
||||
async present(): Promise<void> {
|
||||
await present( this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation, undefined);
|
||||
await present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation, undefined);
|
||||
|
||||
if (this.duration) {
|
||||
this.durationTimeout = setTimeout(
|
||||
|
||||
Reference in New Issue
Block a user