webcake-ui-kit 1.3.8 → 1.3.9
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/package.json
CHANGED
|
@@ -69,14 +69,11 @@ function open(config) {
|
|
|
69
69
|
const vm = ensureContainer()
|
|
70
70
|
if (!vm) return function () {}
|
|
71
71
|
|
|
72
|
-
//
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
offset: config.offset
|
|
78
|
-
})
|
|
79
|
-
}
|
|
72
|
+
// Always resolve placement/offset — per-call value wins, falls back to globalConfig.
|
|
73
|
+
vm.configure({
|
|
74
|
+
placement: config.placement != null ? config.placement : globalConfig.placement,
|
|
75
|
+
offset: config.offset != null ? config.offset : globalConfig.offset
|
|
76
|
+
})
|
|
80
77
|
|
|
81
78
|
const type = config.type || 'info'
|
|
82
79
|
const duration = config.duration !== undefined ? config.duration : type === 'loading' ? 0 : globalConfig.duration
|