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/lib/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.75";
6
+ export const version = "2.0.2-beta.76";
7
7
  window.__bkui_vue_version__ = version;
@@ -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$vm;
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$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) {
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$vm2, _instance$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$vm2 = instance.vm) === null || _instance$vm2 === void 0 || (_instance$vm2 = _instance$vm2.$el) === null || _instance$vm2 === void 0 ? void 0 : _instance$vm2.parentNode);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.75",
3
+ "version": "2.0.2-beta.76",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",