@lancom/shared 0.0.389 → 0.0.390

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.
@@ -9,7 +9,9 @@
9
9
  </div>
10
10
  </div>
11
11
  <div class="ProductsKitCart__info">
12
- <div class="ProductsKitCart__price">
12
+ <div
13
+ v-if="isAllOptionsSelected"
14
+ class="ProductsKitCart__price">
13
15
  {{ totalPrice | price }}
14
16
  </div>
15
17
  <div>
@@ -13,6 +13,9 @@
13
13
  margin: 0 0 15px 15px;
14
14
  position: relative;
15
15
  z-index: 1;
16
+ &--without-price {
17
+ height: 440px;
18
+ }
16
19
  }
17
20
  &__select {
18
21
  padding: 0 20px 10px 20px;
@@ -4,11 +4,17 @@
4
4
  :class="{
5
5
  'ProductsKitOptionProduct__wrapper--active': isSelectedProduct
6
6
  }">
7
- <div class="ProductsKitOptionProduct__preview">
7
+ <div
8
+ class="ProductsKitOptionProduct__preview"
9
+ :class="{
10
+ 'ProductsKitOptionProduct__preview--without-price': option.required
11
+ }">
8
12
  <product-preview-main
9
13
  ref="preview"
10
14
  :product="product"
11
15
  :to-editor="false"
16
+ :visible-prices="!option.required"
17
+ @preview="onPreviewProduct($event)"
12
18
  @color="onProductSelectColor($event)" />
13
19
  </div>
14
20
  <div class="ProductsKitOptionProduct__select">
@@ -129,6 +135,12 @@ export default {
129
135
  },
130
136
  onProductSelectColor(color) {
131
137
  this.selectOptionColor({ option: this.option, color });
138
+ },
139
+ onPreviewProduct(e) {
140
+ e.preventDefault();
141
+ e.stopPropagation();
142
+
143
+ this.selectProduct();
132
144
  }
133
145
  }
134
146
  };
@@ -25,6 +25,10 @@ const productPreview = {
25
25
  lazy: {
26
26
  type: Boolean,
27
27
  default: true
28
+ },
29
+ visiblePrices: {
30
+ type: Boolean,
31
+ default: true
28
32
  }
29
33
  },
30
34
  data() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.389",
3
+ "version": "0.0.390",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {