mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
fix(item): change ion-item-swiping to use .item-wrapper css instead
This commit is contained in:
@ -59,7 +59,7 @@ ion-card {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ ion-card {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ ion-card {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,6 +197,7 @@ export class ItemSliding {
|
|||||||
constructor(@Optional() private _list: List, private _renderer: Renderer, private _elementRef: ElementRef) {
|
constructor(@Optional() private _list: List, private _renderer: Renderer, private _elementRef: ElementRef) {
|
||||||
_list.enableSlidingItems(true);
|
_list.enableSlidingItems(true);
|
||||||
_elementRef.nativeElement.$ionComponent = this;
|
_elementRef.nativeElement.$ionComponent = this;
|
||||||
|
_renderer.setElementClass(_elementRef.nativeElement, 'item-wrapper', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ ion-item-group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item:last-child .item-inner,
|
.item:last-child .item-inner,
|
||||||
ion-item-sliding:last-child .item-inner {
|
.item-wrapper:last-child .item-inner {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,7 @@ ion-item-group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item:last-child .item-inner,
|
.item:last-child .item-inner,
|
||||||
ion-item-sliding:last-child .item-inner {
|
.item-wrapper:last-child .item-inner {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,12 +47,12 @@ ion-list {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom: 1px solid $list-ios-border-color;
|
border-bottom: 1px solid $list-ios-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child {
|
> .item-wrapper:last-child {
|
||||||
.item-inner {
|
.item-inner {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ ion-list + ion-list {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom-width: $hairlines-width;
|
border-bottom-width: $hairlines-width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -156,12 +156,12 @@ ion-list[inset] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:first-child,
|
> .item:first-child,
|
||||||
> ion-item-sliding:first-child .item {
|
> .item-wrapper:first-child .item {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,17 +42,17 @@ ion-list {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:first-child,
|
> .item:first-child,
|
||||||
> ion-item-sliding:first-child .item {
|
> .item-wrapper:first-child .item {
|
||||||
border-top: 1px solid $list-md-border-color;
|
border-top: 1px solid $list-md-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom: 1px solid $list-md-border-color;
|
border-bottom: 1px solid $list-md-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child {
|
> .item-wrapper:last-child {
|
||||||
ion-label,
|
ion-label,
|
||||||
.item-inner {
|
.item-inner {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
|
@ -42,17 +42,17 @@ ion-list {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:first-child,
|
> .item:first-child,
|
||||||
> ion-item-sliding:first-child .item {
|
> .item-wrapper:first-child .item {
|
||||||
border-top: 1px solid $list-wp-border-color;
|
border-top: 1px solid $list-wp-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> .item-wrapper:last-child .item {
|
||||||
border-bottom: 1px solid $list-wp-border-color;
|
border-bottom: 1px solid $list-wp-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child {
|
> .item-wrapper:last-child {
|
||||||
ion-label,
|
ion-label,
|
||||||
.item-inner {
|
.item-inner {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
|
Reference in New Issue
Block a user