mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +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)` : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ ion-item-sliding.active-slide {
|
|||||||
z-index: $z-index-item-options + 1;
|
z-index: $z-index-item-options + 1;
|
||||||
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transition: transform 500ms cubic-bezier(.36, .66, .04, 1);
|
transition: transform 500ms cubic-bezier(.36, .66, .04, 1);
|
||||||
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user