bkui-vue 1.0.3-beta.15 → 1.0.3-beta.16

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.
@@ -380,10 +380,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
380
380
  };
381
381
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
382
382
  resolveClassName = _usePrefix.resolveClassName;
383
+ var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
384
+ return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
385
+ });
383
386
  return {
384
387
  style: style,
385
388
  refContent: refContent,
386
- resolveClassName: resolveClassName,
389
+ contentClassName: contentClassName,
387
390
  resetPointerEvent: resetPointerEvent,
388
391
  setContentPointerEvent: setContentPointerEvent
389
392
  };
@@ -398,7 +401,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
398
401
  _this$$slots$default2,
399
402
  _this$$slots$default3,
400
403
  _this$$slots3;
401
- var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
402
404
  var resolveContentStyle = function resolveContentStyle(slot) {
403
405
  var _slot$;
404
406
  if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
@@ -411,7 +413,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
411
413
  };
412
414
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
413
415
  return (0,external_vue_namespaceObject.createVNode)("div", {
414
- "class": className,
416
+ "class": this.contentClassName,
415
417
  "style": style,
416
418
  "ref": "refContent"
417
419
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
@@ -3628,7 +3630,7 @@ function _isSlot(s) {
3628
3630
  (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3629
3631
  (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3630
3632
  var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3631
- return !props.disableTeleport;
3633
+ return localIsShow.value && !props.disableTeleport;
3632
3634
  });
3633
3635
  var show = function show() {
3634
3636
  showFn();
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
34
34
  maxWidth: string | number;
35
35
  }>;
36
36
  refContent: import("vue").Ref<any>;
37
- resolveClassName: (cls: string) => string;
37
+ contentClassName: import("vue").ComputedRef<string[]>;
38
38
  resetPointerEvent: () => void;
39
39
  setContentPointerEvent: (val: string) => void;
40
40
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -383,10 +383,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
383
383
  };
384
384
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
385
385
  resolveClassName = _usePrefix.resolveClassName;
386
+ var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
387
+ return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
388
+ });
386
389
  return {
387
390
  style: style,
388
391
  refContent: refContent,
389
- resolveClassName: resolveClassName,
392
+ contentClassName: contentClassName,
390
393
  resetPointerEvent: resetPointerEvent,
391
394
  setContentPointerEvent: setContentPointerEvent
392
395
  };
@@ -401,7 +404,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
401
404
  _this$$slots$default2,
402
405
  _this$$slots$default3,
403
406
  _this$$slots3;
404
- var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
405
407
  var resolveContentStyle = function resolveContentStyle(slot) {
406
408
  var _slot$;
407
409
  if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
@@ -414,7 +416,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
414
416
  };
415
417
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
416
418
  return (0,external_vue_namespaceObject.createVNode)("div", {
417
- "class": className,
419
+ "class": this.contentClassName,
418
420
  "style": style,
419
421
  "ref": "refContent"
420
422
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
@@ -3631,7 +3633,7 @@ function _isSlot(s) {
3631
3633
  (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3632
3634
  (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3633
3635
  var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3634
- return !props.disableTeleport;
3636
+ return localIsShow.value && !props.disableTeleport;
3635
3637
  });
3636
3638
  var show = function show() {
3637
3639
  showFn();
@@ -1,6 +1,5 @@
1
1
  .bk-popover.bk-pop2-content {
2
2
  position: absolute;
3
- display: none;
4
3
  padding: 12px;
5
4
  font-size: 12px;
6
5
  color: #fff;
@@ -8,6 +7,9 @@
8
7
  border-radius: 4px;
9
8
  box-sizing: border-box;
10
9
  }
10
+ .bk-popover.bk-pop2-content.hidden {
11
+ display: none;
12
+ }
11
13
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
12
14
  position: absolute;
13
15
  z-index: -1;
@@ -4,7 +4,10 @@
4
4
  .@{bk-prefix}-popover {
5
5
  &.@{bk-prefix}-pop2-content {
6
6
  position: absolute;
7
- display: none;
7
+
8
+ &.hidden {
9
+ display: none;
10
+ }
8
11
 
9
12
  padding: 12px;
10
13
 
@@ -129,7 +129,6 @@
129
129
  }
130
130
  .bk-popover.bk-pop2-content {
131
131
  position: absolute;
132
- display: none;
133
132
  padding: 12px;
134
133
  font-size: 12px;
135
134
  color: #fff;
@@ -137,6 +136,9 @@
137
136
  border-radius: 4px;
138
137
  box-sizing: border-box;
139
138
  }
139
+ .bk-popover.bk-pop2-content.hidden {
140
+ display: none;
141
+ }
140
142
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
141
143
  position: absolute;
142
144
  z-index: -1;
@@ -92,12 +92,12 @@ declare const BkSideslider: {
92
92
  default: string;
93
93
  };
94
94
  }>> & {
95
- onShown?: (...args: any[]) => any;
96
95
  onHidden?: (...args: any[]) => any;
96
+ onShown?: (...args: any[]) => any;
97
97
  onClosed?: (...args: any[]) => any;
98
98
  "onUpdate:isShow"?: (...args: any[]) => any;
99
99
  "onAnimation-end"?: (...args: any[]) => any;
100
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
100
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
101
101
  direction: {
102
102
  type: StringConstructor;
103
103
  default: string;
@@ -190,8 +190,8 @@ declare const BkSideslider: {
190
190
  default: string;
191
191
  };
192
192
  }>> & {
193
- onShown?: (...args: any[]) => any;
194
193
  onHidden?: (...args: any[]) => any;
194
+ onShown?: (...args: any[]) => any;
195
195
  onClosed?: (...args: any[]) => any;
196
196
  "onUpdate:isShow"?: (...args: any[]) => any;
197
197
  "onAnimation-end"?: (...args: any[]) => any;
@@ -316,8 +316,8 @@ declare const BkSideslider: {
316
316
  default: string;
317
317
  };
318
318
  }>> & {
319
- onShown?: (...args: any[]) => any;
320
319
  onHidden?: (...args: any[]) => any;
320
+ onShown?: (...args: any[]) => any;
321
321
  onClosed?: (...args: any[]) => any;
322
322
  "onUpdate:isShow"?: (...args: any[]) => any;
323
323
  "onAnimation-end"?: (...args: any[]) => any;
@@ -439,12 +439,12 @@ declare const BkSideslider: {
439
439
  default: string;
440
440
  };
441
441
  }>> & {
442
- onShown?: (...args: any[]) => any;
443
442
  onHidden?: (...args: any[]) => any;
443
+ onShown?: (...args: any[]) => any;
444
444
  onClosed?: (...args: any[]) => any;
445
445
  "onUpdate:isShow"?: (...args: any[]) => any;
446
446
  "onAnimation-end"?: (...args: any[]) => any;
447
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], "shown" | "hidden" | "closed" | "update:isShow" | "animation-end", {
447
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], "hidden" | "shown" | "closed" | "update:isShow" | "animation-end", {
448
448
  title: string;
449
449
  width: string | number;
450
450
  height: string | number;
@@ -90,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
90
90
  top: import("vue-types").VueTypeValidableDef<string> & {
91
91
  default: string;
92
92
  };
93
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], "shown" | "hidden" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
93
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], "hidden" | "shown" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
94
94
  direction: {
95
95
  type: StringConstructor;
96
96
  default: string;
@@ -183,8 +183,8 @@ declare const _default: import("vue").DefineComponent<{
183
183
  default: string;
184
184
  };
185
185
  }>> & {
186
- onShown?: (...args: any[]) => any;
187
186
  onHidden?: (...args: any[]) => any;
187
+ onShown?: (...args: any[]) => any;
188
188
  onClosed?: (...args: any[]) => any;
189
189
  "onUpdate:isShow"?: (...args: any[]) => any;
190
190
  "onAnimation-end"?: (...args: any[]) => any;
@@ -736,7 +736,6 @@
736
736
  }
737
737
  .bk-popover.bk-pop2-content {
738
738
  position: absolute;
739
- display: none;
740
739
  padding: 12px;
741
740
  font-size: 12px;
742
741
  color: #fff;
@@ -744,6 +743,9 @@
744
743
  border-radius: 4px;
745
744
  box-sizing: border-box;
746
745
  }
746
+ .bk-popover.bk-pop2-content.hidden {
747
+ display: none;
748
+ }
747
749
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
748
750
  position: absolute;
749
751
  z-index: -1;
@@ -865,7 +865,6 @@
865
865
  }
866
866
  .bk-popover.bk-pop2-content {
867
867
  position: absolute;
868
- display: none;
869
868
  padding: 12px;
870
869
  font-size: 12px;
871
870
  color: #fff;
@@ -873,6 +872,9 @@
873
872
  border-radius: 4px;
874
873
  box-sizing: border-box;
875
874
  }
875
+ .bk-popover.bk-pop2-content.hidden {
876
+ display: none;
877
+ }
876
878
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
877
879
  position: absolute;
878
880
  z-index: -1;
@@ -275,6 +275,9 @@ declare const BkVirtualRender: {
275
275
  width: string | number;
276
276
  height: string | number;
277
277
  maxHeight: number;
278
+ contentClassName: string | {
279
+ [key: string]: any;
280
+ };
278
281
  enabled: boolean;
279
282
  list: unknown[];
280
283
  minHeight: number;
@@ -284,9 +287,6 @@ declare const BkVirtualRender: {
284
287
  };
285
288
  lineHeight: any;
286
289
  scrollEvent: boolean;
287
- contentClassName: string | {
288
- [key: string]: any;
289
- };
290
290
  contentStyle: {
291
291
  [key: string]: any;
292
292
  };
@@ -456,6 +456,9 @@ declare const BkVirtualRender: {
456
456
  width: string | number;
457
457
  height: string | number;
458
458
  maxHeight: number;
459
+ contentClassName: string | {
460
+ [key: string]: any;
461
+ };
459
462
  enabled: boolean;
460
463
  list: unknown[];
461
464
  minHeight: number;
@@ -465,9 +468,6 @@ declare const BkVirtualRender: {
465
468
  };
466
469
  lineHeight: any;
467
470
  scrollEvent: boolean;
468
- contentClassName: string | {
469
- [key: string]: any;
470
- };
471
471
  contentStyle: {
472
472
  [key: string]: any;
473
473
  };
@@ -629,6 +629,9 @@ declare const BkVirtualRender: {
629
629
  width: string | number;
630
630
  height: string | number;
631
631
  maxHeight: number;
632
+ contentClassName: string | {
633
+ [key: string]: any;
634
+ };
632
635
  enabled: boolean;
633
636
  list: unknown[];
634
637
  minHeight: number;
@@ -638,9 +641,6 @@ declare const BkVirtualRender: {
638
641
  };
639
642
  lineHeight: any;
640
643
  scrollEvent: boolean;
641
- contentClassName: string | {
642
- [key: string]: any;
643
- };
644
644
  contentStyle: {
645
645
  [key: string]: any;
646
646
  };
@@ -278,6 +278,9 @@ declare const _default: import("vue").DefineComponent<{
278
278
  width: string | number;
279
279
  height: string | number;
280
280
  maxHeight: number;
281
+ contentClassName: string | {
282
+ [key: string]: any;
283
+ };
281
284
  enabled: boolean;
282
285
  list: unknown[];
283
286
  minHeight: number;
@@ -287,9 +290,6 @@ declare const _default: import("vue").DefineComponent<{
287
290
  };
288
291
  lineHeight: any;
289
292
  scrollEvent: boolean;
290
- contentClassName: string | {
291
- [key: string]: any;
292
- };
293
293
  contentStyle: {
294
294
  [key: string]: any;
295
295
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.15",
3
+ "version": "1.0.3-beta.16",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",