@lancom/shared 0.0.473 → 0.0.474
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/assets/js/api/index.js
CHANGED
|
@@ -72,6 +72,9 @@ const api = {
|
|
|
72
72
|
fetchBanners(shop, params) {
|
|
73
73
|
return _get(`shop/${shop}/banners`, params);
|
|
74
74
|
},
|
|
75
|
+
fetchShopCategories(shop, params) {
|
|
76
|
+
return _get(`shop/${shop}/categories`, params);
|
|
77
|
+
},
|
|
75
78
|
fetchProductsKits(shop, params) {
|
|
76
79
|
return _get(`shop/${shop}/products-kit`, params);
|
|
77
80
|
},
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
}">
|
|
8
8
|
<div class="NumberInput__field">
|
|
9
9
|
<div
|
|
10
|
+
v-if="visibleSideControls"
|
|
10
11
|
class="NumberInput__side-control NumberInput__side-control--left"
|
|
11
12
|
:class="{ disabled, 'NumberInput__side-control--double': doubleSize }"
|
|
12
13
|
@click="model -= step">
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
:disabled="disabled"
|
|
26
27
|
@change="$emit('change', model)" />
|
|
27
28
|
<div
|
|
29
|
+
v-if="visibleSideControls"
|
|
28
30
|
class="NumberInput__side-control NumberInput__side-control--right"
|
|
29
31
|
:class="{ disabled, 'NumberInput__side-control--double': doubleSize }"
|
|
30
32
|
@click="model += step">
|
|
@@ -59,6 +61,10 @@ export default {
|
|
|
59
61
|
type: Boolean,
|
|
60
62
|
default: true
|
|
61
63
|
},
|
|
64
|
+
visibleSideControls: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
},
|
|
62
68
|
doubleSize: {
|
|
63
69
|
type: Boolean,
|
|
64
70
|
default: false
|