mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
style(item): fixes all gulp validate errors
This commit is contained in:
@ -110,7 +110,7 @@ export class Reorder {
|
|||||||
this.setCssClass('reorder-active', false);
|
this.setCssClass('reorder-active', false);
|
||||||
let transform = CSS.transform;
|
let transform = CSS.transform;
|
||||||
for (let i = 0; i < len; i++) {
|
for (let i = 0; i < len; i++) {
|
||||||
children[i].style[transform] = '';
|
(<any>children[i]).style[transform] = '';
|
||||||
}
|
}
|
||||||
this._lastToIndex = -1;
|
this._lastToIndex = -1;
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ export class Reorder {
|
|||||||
if (toIndex >= lastToIndex) {
|
if (toIndex >= lastToIndex) {
|
||||||
for (var i = lastToIndex; i <= toIndex; i++) {
|
for (var i = lastToIndex; i <= toIndex; i++) {
|
||||||
if (i !== fromIndex) {
|
if (i !== fromIndex) {
|
||||||
children[i].style[transform] = (i > fromIndex)
|
(<any>children[i]).style[transform] = (i > fromIndex)
|
||||||
? `translateY(${-itemHeight}px)` : '';
|
? `translateY(${-itemHeight}px)` : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -145,7 +145,7 @@ export class Reorder {
|
|||||||
if (toIndex <= lastToIndex) {
|
if (toIndex <= lastToIndex) {
|
||||||
for (var i = toIndex; i <= lastToIndex; i++) {
|
for (var i = toIndex; i <= lastToIndex; i++) {
|
||||||
if (i !== fromIndex) {
|
if (i !== fromIndex) {
|
||||||
children[i].style[transform] = (i < fromIndex)
|
(<any>children[i]).style[transform] = (i < fromIndex)
|
||||||
? `translateY(${itemHeight}px)` : '';
|
? `translateY(${itemHeight}px)` : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user