[new feature] Sku: add add-cart-text prop (#3725)

This commit is contained in:
neverland
2019-07-02 17:00:05 +08:00
committed by GitHub
parent e7e015e9a4
commit 53e9468c2c
4 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -9,6 +9,7 @@ import { DefaultSlots } from '../../utils/types';
export type SkuActionsProps = {
buyText?: string;
skuEventBus: Vue;
addCartText?: string;
showAddCartBtn?: boolean;
};
@@ -31,7 +32,7 @@ function SkuActions(
square
size="large"
type="warning"
text="加入购物车"
text={props.addCartText || '加入购物车'}
onClick={createEmitter('sku:addCart')}
/>
)}
@@ -48,6 +49,7 @@ function SkuActions(
SkuActions.props = {
buyText: String,
addCartText: String,
skuEventBus: Object,
showAddCartBtn: Boolean
};