@lancom/shared 0.0.136 → 0.0.137
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.
|
@@ -41,11 +41,11 @@ export default {
|
|
|
41
41
|
valid = currentIndex === targetIndex;
|
|
42
42
|
}
|
|
43
43
|
if (valid) {
|
|
44
|
-
return this.$slots.default;
|
|
44
|
+
return this.$slots.content || this.$slots.default;
|
|
45
45
|
}
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return this.$slots.shadow;
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
</script>
|
package/package.json
CHANGED
package/store/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export const state = () => ({
|
|
|
10
10
|
orderInfo: {},
|
|
11
11
|
pricing: {},
|
|
12
12
|
notificationBar: {},
|
|
13
|
+
discountPopup: {},
|
|
13
14
|
helpMessages: {},
|
|
14
15
|
depositInfo: {}
|
|
15
16
|
});
|
|
@@ -22,6 +23,7 @@ export const getters = {
|
|
|
22
23
|
helpMessages: ({ helpMessages }) => helpMessages || {},
|
|
23
24
|
contacts: ({ contacts }) => contacts || {},
|
|
24
25
|
notificationBar: ({ notificationBar }) => notificationBar || {},
|
|
26
|
+
discountPopup: ({ discountPopup }) => discountPopup || {},
|
|
25
27
|
pricingSettings: ({ pricing }) => pricing || {},
|
|
26
28
|
orderSettings: ({ orderInfo }) => orderInfo || {},
|
|
27
29
|
gstTax: ({ pricing }) => pricing?.gstTax || 0,
|
|
@@ -73,11 +75,12 @@ export const actions = {
|
|
|
73
75
|
};
|
|
74
76
|
|
|
75
77
|
export const mutations = {
|
|
76
|
-
setSettings(state, { contacts, pricing, notificationBar, order, depositInfo }) {
|
|
78
|
+
setSettings(state, { contacts, pricing, notificationBar, discountPopup, order, depositInfo }) {
|
|
77
79
|
state.contacts = contacts;
|
|
78
80
|
state.pricing = pricing;
|
|
79
81
|
state.orderInfo = order;
|
|
80
82
|
state.notificationBar = notificationBar;
|
|
83
|
+
state.discountPopup = discountPopup;
|
|
81
84
|
state.depositInfo = depositInfo;
|
|
82
85
|
},
|
|
83
86
|
setShop(state, shop) {
|