mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix: sku测试用例
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</slot>
|
||||
<div class="van-sku-body scroller" :style="bodyStyle">
|
||||
<slot name="sku-group" :selectedSku="selectedSku">
|
||||
<div class="van-sku-group-container">
|
||||
<div v-if="hasSku" class="van-sku-group-container">
|
||||
<div v-for="(skutreeItem, index) in skuTree"
|
||||
class="van-sku-row-group"
|
||||
:key="index">
|
||||
@@ -171,8 +171,11 @@ export default {
|
||||
isSkuCombSelected() {
|
||||
return isAllSelected(this.sku.tree, this.selectedSku);
|
||||
},
|
||||
hasSku() {
|
||||
return !this.sku.none_sku;
|
||||
},
|
||||
selectedSkuComb() {
|
||||
if (this.sku.none_sku) {
|
||||
if (!this.hasSku) {
|
||||
return {
|
||||
id: this.sku.collection_id,
|
||||
price: Math.round(this.sku.price * 100),
|
||||
|
Reference in New Issue
Block a user