@iankibetsh/shframework 4.2.1 → 4.2.3
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 +10 -1
- package/dist/library.mjs +10 -1
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -186,7 +186,16 @@ function showToast(message, toastType, config){
|
|
|
186
186
|
toastType = 'success';
|
|
187
187
|
}
|
|
188
188
|
if (config) {
|
|
189
|
-
Object.keys(config).map(key =>
|
|
189
|
+
Object.keys(config).map(key =>{
|
|
190
|
+
let newKey = key;
|
|
191
|
+
if(key === 'duration'){
|
|
192
|
+
newKey = 'timer';
|
|
193
|
+
}
|
|
194
|
+
if(key === 'timeout'){
|
|
195
|
+
newKey = 'timer';
|
|
196
|
+
}
|
|
197
|
+
mixinConfig[newKey] = config[key];
|
|
198
|
+
});
|
|
190
199
|
}
|
|
191
200
|
console.log(mixinConfig);
|
|
192
201
|
const Toast = Swal__default["default"].mixin(mixinConfig);
|
package/dist/library.mjs
CHANGED
|
@@ -174,7 +174,16 @@ function showToast(message, toastType, config){
|
|
|
174
174
|
toastType = 'success';
|
|
175
175
|
}
|
|
176
176
|
if (config) {
|
|
177
|
-
Object.keys(config).map(key =>
|
|
177
|
+
Object.keys(config).map(key =>{
|
|
178
|
+
let newKey = key;
|
|
179
|
+
if(key === 'duration'){
|
|
180
|
+
newKey = 'timer';
|
|
181
|
+
}
|
|
182
|
+
if(key === 'timeout'){
|
|
183
|
+
newKey = 'timer';
|
|
184
|
+
}
|
|
185
|
+
mixinConfig[newKey] = config[key];
|
|
186
|
+
});
|
|
178
187
|
}
|
|
179
188
|
console.log(mixinConfig);
|
|
180
189
|
const Toast = Swal.mixin(mixinConfig);
|