@yorkjs/hive-ui 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -82,6 +82,8 @@ export interface IProductCardProps {
|
|
|
82
82
|
combo? : string
|
|
83
83
|
/** 套餐描述最大显示行数 (默认3) */
|
|
84
84
|
comboMaxLines?: number
|
|
85
|
+
/** 售价前缀 */
|
|
86
|
+
salePricePrefix?: React.ReactNode
|
|
85
87
|
/** 售价 */
|
|
86
88
|
salePrice: string | number
|
|
87
89
|
/** 原价 (划线价) */
|
|
@@ -130,6 +132,7 @@ const ProductItem: React.FC<IProductCardProps> = (props) => {
|
|
|
130
132
|
customizationMaxLines = 3,
|
|
131
133
|
combo,
|
|
132
134
|
comboMaxLines = 3,
|
|
135
|
+
salePricePrefix,
|
|
133
136
|
salePrice,
|
|
134
137
|
originalPrice,
|
|
135
138
|
buyCount,
|
|
@@ -374,6 +377,11 @@ const ProductItem: React.FC<IProductCardProps> = (props) => {
|
|
|
374
377
|
</View>
|
|
375
378
|
<View className={styles['content-bottom']}>
|
|
376
379
|
<View className={styles['price-container']}>
|
|
380
|
+
{
|
|
381
|
+
salePricePrefix
|
|
382
|
+
? salePricePrefix
|
|
383
|
+
: undefined
|
|
384
|
+
}
|
|
377
385
|
<View className={styles['price-row']}>
|
|
378
386
|
<Text className={styles['price-symbol']}>
|
|
379
387
|
¥
|