From 0daf9e6bcf7c223f37a8d35107e6bedea13c1e20 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 23 May 2020 15:14:53 +0800 Subject: [PATCH] fix(GoodsAction): incorrect single button radius (#6347) --- src/goods-action-button/index.less | 6 +++-- src/goods-action/README.md | 24 +++++++------------ src/goods-action/README.zh-CN.md | 6 +---- src/goods-action/demo/index.vue | 12 +++++----- .../test/__snapshots__/demo.spec.js.snap | 9 ++++--- 5 files changed, 25 insertions(+), 32 deletions(-) diff --git a/src/goods-action-button/index.less b/src/goods-action-button/index.less index e3fcc5bf6..0bb7bbbbb 100644 --- a/src/goods-action-button/index.less +++ b/src/goods-action-button/index.less @@ -9,12 +9,14 @@ &--first { margin-left: 5px; - border-radius: @border-radius-max 0 0 @border-radius-max; + border-top-left-radius: @border-radius-max; + border-bottom-left-radius: @border-radius-max; } &--last { margin-right: 5px; - border-radius: 0 @border-radius-max @border-radius-max 0; + border-top-right-radius: @border-radius-max; + border-bottom-right-radius: @border-radius-max; } &--warning { diff --git a/src/goods-action/README.md b/src/goods-action/README.md index 40ebb9d00..fe3c623cf 100644 --- a/src/goods-action/README.md +++ b/src/goods-action/README.md @@ -19,16 +19,8 @@ Vue.use(GoodsActionIcon); - - + + ``` @@ -56,8 +48,8 @@ Use `badge` prop to show badge in icon - - + + ``` @@ -68,8 +60,8 @@ Use `badge` prop to show badge in icon - - + + ``` @@ -79,8 +71,8 @@ Use `badge` prop to show badge in icon - - + + ``` diff --git a/src/goods-action/README.zh-CN.md b/src/goods-action/README.zh-CN.md index 6ec54edcd..5740dc931 100644 --- a/src/goods-action/README.zh-CN.md +++ b/src/goods-action/README.zh-CN.md @@ -19,11 +19,7 @@ Vue.use(GoodsActionIcon); - + - 购物车 -