stellar-ui-plus 1.20.3 → 1.20.4
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
3
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
4
|
| `data` | 商品数据 | `{ image: string; title: string; tag?: string; barCode: string; code: string; price: string / number; originalPrice?: string / number }` | `{}` | - | - |
|
|
5
|
+
| `hidePrice` | 隐藏价格 | `boolean` | `false` | - | - |
|
|
5
6
|
| `tagBg` | 标签背景色 | `string` | `主题色` | - | - |
|
|
6
7
|
| `checkbox` | 选择框位置 | `string` | `none` | `none`:不显示选择框<br/>`left`:选择框在左侧<br/>`right`:选择框在右侧 | - |
|
|
7
8
|
| `checkboxDisabled` | 是否禁用选择框 | `boolean` | `false` | - | - |
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
"type": "{ image: string; title: string; tag?: string; barCode: string; code: string; price: string | number; originalPrice?: string | number }",
|
|
11
11
|
"default": "{}"
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
"name": "hidePrice",
|
|
15
|
+
"description": "隐藏价格",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": "false"
|
|
18
|
+
},
|
|
13
19
|
{
|
|
14
20
|
"name": "tagBg",
|
|
15
21
|
"description": "标签背景色",
|
|
@@ -89,8 +89,8 @@ const _tagBg = computed(() => (props.tagBg ? props.tagBg : getColor().steThemeCo
|
|
|
89
89
|
<view class="ste-goods-info-slot">
|
|
90
90
|
<slot></slot>
|
|
91
91
|
</view>
|
|
92
|
-
<view class="ste-goods-info-price">
|
|
93
|
-
<view class="ste-goods-info-price-left">
|
|
92
|
+
<view class="ste-goods-info-price" v-if="!hidePrice || stepper">
|
|
93
|
+
<view class="ste-goods-info-price-left" v-if="!hidePrice">
|
|
94
94
|
<setPrice :value="data.price" :digits="2" bold :styleType="3" fontSize="26" @click="onClick('price')" />
|
|
95
95
|
<setPrice
|
|
96
96
|
v-if="data.originalPrice"
|