[breaking change] Button: remove bottom-action prop

This commit is contained in:
陈嘉涵
2019-04-29 14:31:13 +08:00
parent b8424f8de9
commit 0392db1817
9 changed files with 58 additions and 35 deletions
+10 -3
View File
@@ -27,11 +27,18 @@ function SkuActions(
return (
<div class={bem()} {...inherit(ctx)}>
{props.showAddCartBtn && (
<Button bottomAction text="加入购物车" onClick={emit('sku:addCart')} />
<Button
square
size="large"
type="warning"
text="加入购物车"
onClick={emit('sku:addCart')}
/>
)}
<Button
type="primary"
bottomAction
square
size="large"
type="danger"
text={props.buyText || '立即购买'}
onClick={emit('sku:buy')}
/>