mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
style(toast): fix tslint errors
This commit is contained in:
@ -158,7 +158,9 @@ class ToastCmp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if there's a `duration` set, automatically dismiss.
|
// if there's a `duration` set, automatically dismiss.
|
||||||
this.dismissTimeout = setTimeout(() => this.dismiss('backdrop'), this.d.duration ? this.d.duration : 3000)
|
this.dismissTimeout = setTimeout(() =>
|
||||||
|
this.dismiss('backdrop'),
|
||||||
|
this.d.duration ? this.d.duration : 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
click(button, dismissDelay?) {
|
click(button, dismissDelay?) {
|
||||||
@ -197,7 +199,7 @@ export interface ToastOptions {
|
|||||||
title?: string;
|
title?: string;
|
||||||
cssClass?: string;
|
cssClass?: string;
|
||||||
buttons?: Array<any>;
|
buttons?: Array<any>;
|
||||||
duration?: number,
|
duration?: number;
|
||||||
showCloseButton?: boolean;
|
showCloseButton?: boolean;
|
||||||
closeButtonText?: string;
|
closeButtonText?: string;
|
||||||
enableBackdropDismiss?: boolean;
|
enableBackdropDismiss?: boolean;
|
||||||
@ -237,7 +239,7 @@ class ToastMdSlideIn extends Transition {
|
|||||||
|
|
||||||
backdrop.fromTo('opacity', 0, 0);
|
backdrop.fromTo('opacity', 0, 0);
|
||||||
wrapper.fromTo('translateY', '100%', '0%');
|
wrapper.fromTo('translateY', '100%', '0%');
|
||||||
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper)
|
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user