mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(all): updated tslint rules to latest
This commit is contained in:
@ -4,13 +4,13 @@ import { Animation } from '../../../interface';
|
||||
/**
|
||||
* iOS Picker 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('.picker-wrapper'));
|
||||
|
||||
backdropAnimation.fromTo('opacity', 0.01, 0.26);
|
||||
|
@ -4,13 +4,13 @@ import { Animation } from '../../../interface';
|
||||
/**
|
||||
* iOS Picker 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('.picker-wrapper'));
|
||||
|
||||
backdropAnimation.fromTo('opacity', 0.26, 0.01);
|
||||
|
@ -3,7 +3,7 @@ export interface PickerButton {
|
||||
text?: string;
|
||||
role?: string;
|
||||
cssClass?: string | string[];
|
||||
handler?: (value: any) => boolean|void;
|
||||
handler?: (value: any) => boolean | void;
|
||||
}
|
||||
|
||||
export interface PickerOptions {
|
||||
|
@ -363,13 +363,10 @@ export class Picker implements OverlayInterface {
|
||||
}
|
||||
|
||||
function buttonWrapperClass(button: PickerButton): CssClassMap {
|
||||
const buttonClass: CssClassMap = {
|
||||
return {
|
||||
[`picker-toolbar-${button.role}`]: !!button.role,
|
||||
'picker-toolbar-button': true
|
||||
};
|
||||
if (button.role) {
|
||||
buttonClass[`picker-toolbar-${button.role}`] = true;
|
||||
}
|
||||
return buttonClass;
|
||||
}
|
||||
|
||||
function buttonClass(button: PickerButton): CssClassMap {
|
||||
|
Reference in New Issue
Block a user