bkui-vue 2.0.2-beta.74 → 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.
@@ -172,7 +172,9 @@ declare const _default: import("vue").DefineComponent<{
172
172
  alignmentAxis?: number;
173
173
  });
174
174
  };
175
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
175
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
176
+ default: string | (() => HTMLElement);
177
+ };
176
178
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
177
179
  default: number;
178
180
  } & {
@@ -547,7 +549,9 @@ declare const _default: import("vue").DefineComponent<{
547
549
  alignmentAxis?: number;
548
550
  });
549
551
  };
550
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
552
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
553
+ default: string | (() => HTMLElement);
554
+ };
551
555
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
552
556
  default: number;
553
557
  } & {
@@ -165,7 +165,9 @@ declare const BkCascader: {
165
165
  alignmentAxis?: number;
166
166
  });
167
167
  };
168
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
168
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
169
+ default: string | (() => HTMLElement);
170
+ };
169
171
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
170
172
  default: number;
171
173
  } & {
@@ -543,7 +545,9 @@ declare const BkCascader: {
543
545
  alignmentAxis?: number;
544
546
  });
545
547
  };
546
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
548
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
549
+ default: string | (() => HTMLElement);
550
+ };
547
551
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
548
552
  default: number;
549
553
  } & {
@@ -847,7 +851,9 @@ declare const BkCascader: {
847
851
  alignmentAxis?: number;
848
852
  });
849
853
  };
850
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
854
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
855
+ default: string | (() => HTMLElement);
856
+ };
851
857
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
852
858
  default: number;
853
859
  } & {
@@ -1256,7 +1262,9 @@ declare const BkCascader: {
1256
1262
  alignmentAxis?: number;
1257
1263
  });
1258
1264
  };
1259
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
1265
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
1266
+ default: string | (() => HTMLElement);
1267
+ };
1260
1268
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
1261
1269
  default: number;
1262
1270
  } & {
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.74";
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
  }
@@ -95,7 +95,9 @@ declare const _default: import("vue").DefineComponent<{
95
95
  alignmentAxis?: number;
96
96
  });
97
97
  };
98
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
98
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
99
+ default: string | (() => HTMLElement);
100
+ };
99
101
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
100
102
  default: number;
101
103
  } & {
@@ -265,7 +267,9 @@ declare const _default: import("vue").DefineComponent<{
265
267
  alignmentAxis?: number;
266
268
  });
267
269
  };
268
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
270
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
271
+ default: string | (() => HTMLElement);
272
+ };
269
273
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
270
274
  default: number;
271
275
  } & {
@@ -99,7 +99,9 @@ declare const BkOverflowTitle: {
99
99
  alignmentAxis?: number;
100
100
  });
101
101
  };
102
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
102
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
103
+ default: string | (() => HTMLElement);
104
+ };
103
105
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
104
106
  default: number;
105
107
  } & {
@@ -269,7 +271,9 @@ declare const BkOverflowTitle: {
269
271
  alignmentAxis?: number;
270
272
  });
271
273
  };
272
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
274
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
275
+ default: string | (() => HTMLElement);
276
+ };
273
277
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
274
278
  default: number;
275
279
  } & {
@@ -444,7 +448,9 @@ declare const BkOverflowTitle: {
444
448
  alignmentAxis?: number;
445
449
  });
446
450
  };
447
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
451
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
452
+ default: string | (() => HTMLElement);
453
+ };
448
454
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
449
455
  default: number;
450
456
  } & {
@@ -624,7 +630,9 @@ declare const BkOverflowTitle: {
624
630
  alignmentAxis?: number;
625
631
  });
626
632
  };
627
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
633
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
634
+ default: string | (() => HTMLElement);
635
+ };
628
636
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
629
637
  default: number;
630
638
  } & {
@@ -117,7 +117,9 @@ declare const _default: {
117
117
  alignmentAxis?: number;
118
118
  });
119
119
  };
120
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
120
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
121
+ default: string | (() => HTMLElement);
122
+ };
121
123
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
122
124
  default: number;
123
125
  } & {
@@ -116,7 +116,9 @@ declare const BKPopConfirm: {
116
116
  alignmentAxis?: number;
117
117
  });
118
118
  };
119
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
119
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
120
+ default: string | (() => HTMLElement);
121
+ };
120
122
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
121
123
  default: number;
122
124
  } & {
@@ -316,7 +318,9 @@ declare const BKPopConfirm: {
316
318
  alignmentAxis?: number;
317
319
  });
318
320
  };
319
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
321
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
322
+ default: string | (() => HTMLElement);
323
+ };
320
324
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
321
325
  default: number;
322
326
  } & {
@@ -520,7 +524,9 @@ declare const BKPopConfirm: {
520
524
  alignmentAxis?: number;
521
525
  });
522
526
  };
523
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
527
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
528
+ default: string | (() => HTMLElement);
529
+ };
524
530
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
525
531
  default: number;
526
532
  } & {
@@ -733,7 +739,9 @@ declare const BKPopConfirm: {
733
739
  alignmentAxis?: number;
734
740
  });
735
741
  };
736
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
742
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
743
+ default: string | (() => HTMLElement);
744
+ };
737
745
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
738
746
  default: number;
739
747
  } & {
@@ -115,7 +115,9 @@ declare const _default: import("vue").DefineComponent<{
115
115
  alignmentAxis?: number;
116
116
  });
117
117
  };
118
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
118
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
119
+ default: string | (() => HTMLElement);
120
+ };
119
121
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
120
122
  default: number;
121
123
  } & {
@@ -310,7 +312,9 @@ declare const _default: import("vue").DefineComponent<{
310
312
  alignmentAxis?: number;
311
313
  });
312
314
  };
313
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
315
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
316
+ default: string | (() => HTMLElement);
317
+ };
314
318
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
315
319
  default: number;
316
320
  } & {
@@ -140,7 +140,9 @@ export declare const PopConfirmProps: {
140
140
  alignmentAxis?: number;
141
141
  });
142
142
  };
143
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
143
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
144
+ default: string | (() => HTMLElement);
145
+ };
144
146
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
145
147
  default: number;
146
148
  } & {
@@ -79,7 +79,9 @@ declare const BkPopover: {
79
79
  alignmentAxis?: number;
80
80
  });
81
81
  };
82
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
82
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
83
+ default: string | (() => HTMLElement);
84
+ };
83
85
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
84
86
  default: number;
85
87
  } & {
@@ -270,7 +272,9 @@ declare const BkPopover: {
270
272
  alignmentAxis?: number;
271
273
  });
272
274
  };
273
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
275
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
276
+ default: string | (() => HTMLElement);
277
+ };
274
278
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
275
279
  default: number;
276
280
  } & {
@@ -372,6 +376,7 @@ declare const BkPopover: {
372
376
  crossAxis?: number;
373
377
  alignmentAxis?: number;
374
378
  };
379
+ boundary: string | HTMLElement;
375
380
  zIndex: number;
376
381
  disableTeleport: boolean;
377
382
  autoPlacement: boolean;
@@ -471,7 +476,9 @@ declare const BkPopover: {
471
476
  alignmentAxis?: number;
472
477
  });
473
478
  };
474
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
479
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
480
+ default: string | (() => HTMLElement);
481
+ };
475
482
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
476
483
  default: number;
477
484
  } & {
@@ -593,6 +600,7 @@ declare const BkPopover: {
593
600
  crossAxis?: number;
594
601
  alignmentAxis?: number;
595
602
  };
603
+ boundary: string | HTMLElement;
596
604
  zIndex: number;
597
605
  disableTeleport: boolean;
598
606
  autoPlacement: boolean;
@@ -689,7 +697,9 @@ declare const BkPopover: {
689
697
  alignmentAxis?: number;
690
698
  });
691
699
  };
692
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
700
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
701
+ default: string | (() => HTMLElement);
702
+ };
693
703
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
694
704
  default: number;
695
705
  } & {
@@ -824,6 +834,7 @@ declare const BkPopover: {
824
834
  crossAxis?: number;
825
835
  alignmentAxis?: number;
826
836
  };
837
+ boundary: string | HTMLElement;
827
838
  zIndex: number;
828
839
  disableTeleport: boolean;
829
840
  autoPlacement: boolean;
@@ -1662,7 +1662,7 @@ var PopoverProps = {
1662
1662
  /**
1663
1663
  * 弹出内容绑定元素
1664
1664
  */
1665
- boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]),
1665
+ boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]).def('body'),
1666
1666
  zIndex: shared_namespaceObject.PropTypes.number.def(undefined),
1667
1667
  disableTeleport: shared_namespaceObject.PropTypes.bool.def(false),
1668
1668
  /**
@@ -78,7 +78,9 @@ declare const _default: import("vue").DefineComponent<{
78
78
  alignmentAxis?: number;
79
79
  });
80
80
  };
81
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
81
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
82
+ default: string | (() => HTMLElement);
83
+ };
82
84
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
83
85
  default: number;
84
86
  } & {
@@ -256,7 +258,9 @@ declare const _default: import("vue").DefineComponent<{
256
258
  alignmentAxis?: number;
257
259
  });
258
260
  };
259
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
261
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
262
+ default: string | (() => HTMLElement);
263
+ };
260
264
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
261
265
  default: number;
262
266
  } & {
@@ -358,6 +362,7 @@ declare const _default: import("vue").DefineComponent<{
358
362
  crossAxis?: number;
359
363
  alignmentAxis?: number;
360
364
  };
365
+ boundary: string | HTMLElement;
361
366
  zIndex: number;
362
367
  disableTeleport: boolean;
363
368
  autoPlacement: boolean;
@@ -95,7 +95,9 @@ export declare const PopoverProps: {
95
95
  /**
96
96
  * 弹出内容绑定元素
97
97
  */
98
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
98
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
99
+ default: string | (() => HTMLElement);
100
+ };
99
101
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
100
102
  default: number;
101
103
  } & {
@@ -196,7 +196,9 @@ declare const BkSelect: {
196
196
  alignmentAxis?: number;
197
197
  });
198
198
  };
199
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
199
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
200
+ default: string | (() => HTMLElement);
201
+ };
200
202
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
201
203
  default: number;
202
204
  } & {
@@ -670,7 +672,9 @@ declare const BkSelect: {
670
672
  alignmentAxis?: number;
671
673
  });
672
674
  };
673
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
675
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
676
+ default: string | (() => HTMLElement);
677
+ };
674
678
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
675
679
  default: number;
676
680
  } & {
@@ -964,7 +968,9 @@ declare const BkSelect: {
964
968
  alignmentAxis?: number;
965
969
  });
966
970
  };
967
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
971
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
972
+ default: string | (() => HTMLElement);
973
+ };
968
974
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
969
975
  default: number;
970
976
  } & {
@@ -1380,7 +1386,9 @@ declare const BkSelect: {
1380
1386
  alignmentAxis?: number;
1381
1387
  });
1382
1388
  };
1383
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
1389
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
1390
+ default: string | (() => HTMLElement);
1391
+ };
1384
1392
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
1385
1393
  default: number;
1386
1394
  } & {
@@ -1854,7 +1862,9 @@ declare const BkSelect: {
1854
1862
  alignmentAxis?: number;
1855
1863
  });
1856
1864
  };
1857
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
1865
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
1866
+ default: string | (() => HTMLElement);
1867
+ };
1858
1868
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
1859
1869
  default: number;
1860
1870
  } & {
@@ -2199,7 +2209,9 @@ declare const BkSelect: {
2199
2209
  alignmentAxis?: number;
2200
2210
  });
2201
2211
  };
2202
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
2212
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
2213
+ default: string | (() => HTMLElement);
2214
+ };
2203
2215
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
2204
2216
  default: number;
2205
2217
  } & {
@@ -2673,7 +2685,9 @@ declare const BkSelect: {
2673
2685
  alignmentAxis?: number;
2674
2686
  });
2675
2687
  };
2676
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
2688
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
2689
+ default: string | (() => HTMLElement);
2690
+ };
2677
2691
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
2678
2692
  default: number;
2679
2693
  } & {
@@ -195,7 +195,9 @@ declare const _default: import("vue").DefineComponent<{
195
195
  alignmentAxis?: number;
196
196
  });
197
197
  };
198
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
198
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
199
+ default: string | (() => HTMLElement);
200
+ };
199
201
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
200
202
  default: number;
201
203
  } & {
@@ -657,7 +659,9 @@ declare const _default: import("vue").DefineComponent<{
657
659
  alignmentAxis?: number;
658
660
  });
659
661
  };
660
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
662
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
663
+ default: string | (() => HTMLElement);
664
+ };
661
665
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
662
666
  default: number;
663
667
  } & {
@@ -951,7 +955,9 @@ declare const _default: import("vue").DefineComponent<{
951
955
  alignmentAxis?: number;
952
956
  });
953
957
  };
954
- boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
958
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
959
+ default: string | (() => HTMLElement);
960
+ };
955
961
  zIndex: import("vue-types").VueTypeValidableDef<number> & {
956
962
  default: number;
957
963
  } & {