bkui-vue 2.0.2-beta.75 → 2.0.2-beta.76
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/index.cjs.js +15 -15
- package/dist/index.esm.js +531 -527
- package/dist/index.umd.js +23 -23
- package/lib/index.js +1 -1
- package/lib/loading/index.js +12 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/loading/index.js
CHANGED
|
@@ -316,21 +316,29 @@ var vBkloading = {
|
|
|
316
316
|
mounted: function mounted(el, binding) {
|
|
317
317
|
if (binding.value) {
|
|
318
318
|
createInstance(el, binding);
|
|
319
|
+
if (!binding.value.loading) {
|
|
320
|
+
var _instance$vm;
|
|
321
|
+
// 只要loading不为真,就必须隐藏loading遮罩层
|
|
322
|
+
var instance = el[INSTANCE_KEY];
|
|
323
|
+
if (instance !== null && instance !== void 0 && (_instance$vm = instance.vm) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.$el) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.parentNode) !== null && _instance$vm !== void 0 && _instance$vm.style) {
|
|
324
|
+
instance.vm.$el.parentNode.style.display = 'none';
|
|
325
|
+
}
|
|
326
|
+
}
|
|
319
327
|
}
|
|
320
328
|
},
|
|
321
329
|
updated: function updated(el, binding) {
|
|
322
|
-
var _instance$
|
|
330
|
+
var _instance$vm2;
|
|
323
331
|
var instance = el[INSTANCE_KEY];
|
|
324
332
|
var value = binding.value;
|
|
325
333
|
updateOptions(value, instance.options);
|
|
326
|
-
if (instance !== null && instance !== void 0 && (_instance$
|
|
334
|
+
if (instance !== null && instance !== void 0 && (_instance$vm2 = instance.vm) !== null && _instance$vm2 !== void 0 && (_instance$vm2 = _instance$vm2.$el) !== null && _instance$vm2 !== void 0 && (_instance$vm2 = _instance$vm2.parentNode) !== null && _instance$vm2 !== void 0 && _instance$vm2.style) {
|
|
327
335
|
instance.vm.$el.parentNode.style.display = value.loading ? '' : 'none';
|
|
328
336
|
}
|
|
329
337
|
},
|
|
330
338
|
unmounted: function unmounted(el) {
|
|
331
|
-
var _instance$
|
|
339
|
+
var _instance$vm3, _instance$instance;
|
|
332
340
|
var instance = el[INSTANCE_KEY];
|
|
333
|
-
el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$
|
|
341
|
+
el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$vm3 = instance.vm) === null || _instance$vm3 === void 0 || (_instance$vm3 = _instance$vm3.$el) === null || _instance$vm3 === void 0 ? void 0 : _instance$vm3.parentNode);
|
|
334
342
|
instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0 || _instance$instance.unmount();
|
|
335
343
|
el[INSTANCE_KEY] = null;
|
|
336
344
|
}
|