From 2add75111f2fb91313a7d441ec878021ee7e9178 Mon Sep 17 00:00:00 2001 From: silentcloud Date: Mon, 14 Aug 2017 17:17:41 +0800 Subject: [PATCH] feature: support auto width for swipe actions, close #1595 --- components/swipe-action/style/index.less | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/swipe-action/style/index.less b/components/swipe-action/style/index.less index cb313803623..efdcd341456 100644 --- a/components/swipe-action/style/index.less +++ b/components/swipe-action/style/index.less @@ -10,6 +10,7 @@ &-content { position: relative; z-index: 10; + background-color: #fff; } &-cover { @@ -17,6 +18,7 @@ z-index: 11; background: transparent; height: 100%; + width: 100%; top: 0; display: none; } @@ -30,7 +32,7 @@ position: absolute; top: 0; bottom: 0; - right: 0; + z-index: 9; display: flex; overflow: hidden; white-space: nowrap; @@ -38,12 +40,10 @@ &-left { left: 0; - width: 0; } &-right { right: 0; - width: 0; } } @@ -55,9 +55,9 @@ position: relative; overflow: hidden; z-index: 99; + } - &-text { - padding: 0 @h-spacing-sm; - } + &-text { + padding: 0 @h-spacing-md; } } diff --git a/package.json b/package.json index 6a138620d4a..c6a508b5441 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "rc-notification": "~2.0.0", "rc-slider": "~8.2.0", "rc-steps": "~2.5.1", - "rc-swipeout": "~1.3.0", + "rc-swipeout": "~1.4.0", "rc-table": "~5.4.0", "rc-tabs": "~9.1.0", "rc-tooltip": "~3.4.3",