@iankibetsh/shframework 1.9.5 → 1.9.6
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/dist/library.js +5 -4
- package/dist/library.mjs +5 -4
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -202,12 +202,13 @@ function showToast (message, toastType, config) {
|
|
|
202
202
|
}
|
|
203
203
|
if(config){
|
|
204
204
|
// alert(config.position)
|
|
205
|
-
Object.keys(config).map(key=>mixinConfig[key] = config
|
|
205
|
+
Object.keys(config).map(key=>mixinConfig[key] = config[key]);
|
|
206
206
|
}
|
|
207
|
+
console.log(mixinConfig);
|
|
207
208
|
const Toast = Swal__default["default"].mixin(mixinConfig);
|
|
208
|
-
Toast.mixin({
|
|
209
|
-
|
|
210
|
-
})
|
|
209
|
+
// Toast.mixin({
|
|
210
|
+
// position: 'top'
|
|
211
|
+
// })
|
|
211
212
|
Toast.fire({
|
|
212
213
|
icon: toastType,
|
|
213
214
|
title: message,
|
package/dist/library.mjs
CHANGED
|
@@ -172,12 +172,13 @@ function showToast (message, toastType, config) {
|
|
|
172
172
|
}
|
|
173
173
|
if(config){
|
|
174
174
|
// alert(config.position)
|
|
175
|
-
Object.keys(config).map(key=>mixinConfig[key] = config
|
|
175
|
+
Object.keys(config).map(key=>mixinConfig[key] = config[key]);
|
|
176
176
|
}
|
|
177
|
+
console.log(mixinConfig);
|
|
177
178
|
const Toast = Swal.mixin(mixinConfig);
|
|
178
|
-
Toast.mixin({
|
|
179
|
-
|
|
180
|
-
})
|
|
179
|
+
// Toast.mixin({
|
|
180
|
+
// position: 'top'
|
|
181
|
+
// })
|
|
181
182
|
Toast.fire({
|
|
182
183
|
icon: toastType,
|
|
183
184
|
title: message,
|