mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(): more type fixes
This commit is contained in:
@ -29,7 +29,7 @@ import {isDefined} from '../../util/util';
|
||||
'role': 'radio',
|
||||
'class': 'item',
|
||||
'tappable': '',
|
||||
'tabindex': 0,
|
||||
'tabindex': '0',
|
||||
'[attr.aria-disabled]': 'disabled'
|
||||
},
|
||||
template:
|
||||
@ -44,7 +44,7 @@ import {isDefined} from '../../util/util';
|
||||
})
|
||||
export class RadioButton {
|
||||
@Input() value: string = '';
|
||||
@Input() public checked: any = false;
|
||||
@Input() checked: any = false;
|
||||
@Input() disabled: boolean = false;
|
||||
@Input() id: string;
|
||||
@Output() select: EventEmitter<RadioButton> = new EventEmitter();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Component, ElementRef, onInit} from 'angular2/core';
|
||||
import {Component, ElementRef} from 'angular2/core';
|
||||
|
||||
import {Ion} from '../ion';
|
||||
import {Gesture} from '../../gestures/gesture';
|
||||
@ -45,12 +45,12 @@ import * as util from '../../util';
|
||||
'</scroll-content>'
|
||||
})
|
||||
export class Scroll extends Ion {
|
||||
private maxScale: number = 3;
|
||||
private zoomDuration: number = 250;
|
||||
private scrollElement: HTMLElement;
|
||||
|
||||
constructor(elementRef: ElementRef) {
|
||||
super(elementRef);
|
||||
|
||||
this.maxScale = 3;
|
||||
this.zoomDuration = 250;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Directive, ElementRef, Renderer, Optional, EventEmitter, Input, Output, HostListener, ContentChildren} from 'angular2/core';
|
||||
import {Directive, ElementRef, Renderer, Optional, EventEmitter, Input, Output, HostListener, ContentChildren, QueryList} from 'angular2/core';
|
||||
import {NgControl} from 'angular2/common';
|
||||
|
||||
import {isDefined} from '../../util/util';
|
||||
@ -131,16 +131,15 @@ export class SegmentButton {
|
||||
selector: 'ion-segment'
|
||||
})
|
||||
export class Segment {
|
||||
@ContentChildren(SegmentButton) _buttons;
|
||||
value: string;
|
||||
onChange = (_) => {};
|
||||
onTouched = (_) => {};
|
||||
|
||||
@Output() change: EventEmitter<SegmentButton> = new EventEmitter();
|
||||
value: any;
|
||||
|
||||
constructor(
|
||||
@Optional() ngControl: NgControl
|
||||
) {
|
||||
this.onChange = (_) => {};
|
||||
this.onTouched = (_) => {};
|
||||
@ContentChildren(SegmentButton) _buttons: QueryList<SegmentButton>;
|
||||
|
||||
constructor(@Optional() ngControl: NgControl) {
|
||||
if (ngControl) {
|
||||
ngControl.valueAccessor = this;
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ export class Select {
|
||||
*/
|
||||
@HostListener('click')
|
||||
_click() {
|
||||
let isMulti = (this.multiple === true || this.multiple === 'true');
|
||||
let isMulti = this.multiple === 'true';
|
||||
|
||||
// the user may have assigned some options specifically for the alert
|
||||
let alertOptions = merge({}, this.alertOptions);
|
||||
|
Reference in New Issue
Block a user