bkui-vue 0.0.3-beta.2 → 0.0.3-beta.4

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.
@@ -321,13 +321,10 @@ function _isSlot(s) {
321
321
  }
322
322
  }
323
323
  function getContent() {
324
- if (props.content) {
325
- return props.content;
326
- }
327
- if (typeof slots.content === 'function') {
324
+ if (slots.content) {
328
325
  return slots.content(external_vue_namespaceObject.h);
329
326
  }
330
- return slots.content;
327
+ return props.content;
331
328
  }
332
329
  function renderPanel() {
333
330
  if (props.renderDirective === 'if' && !isActive.value) {
@@ -521,7 +518,6 @@ function collapse_objectSpread(target) { for (var i = 1; i < arguments.length; i
521
518
  // 判定当前Item是否为激活状态
522
519
  var renderItems = function renderItems() {
523
520
  return collapseData.value.map(function (item, index) {
524
- var _slots$content, _slots$content2;
525
521
  var name = item[props.idFiled] || index;
526
522
  var title = item[props.titleField];
527
523
  var icon = props.headerIcon || 'angle-right';
@@ -543,9 +539,13 @@ function collapse_objectSpread(target) { for (var i = 1; i < arguments.length; i
543
539
  "name": name,
544
540
  "icon": icon,
545
541
  "isFormList": true,
546
- "title": title,
547
- "content": (_slots$content = (_slots$content2 = slots.content) === null || _slots$content2 === void 0 ? void 0 : _slots$content2.call(slots, item, index)) !== null && _slots$content !== void 0 ? _slots$content : item[props.contentField]
548
- }, null);
542
+ "title": title
543
+ }, {
544
+ content: function content() {
545
+ var _slots$content, _slots$content2;
546
+ return (_slots$content = (_slots$content2 = slots.content) === null || _slots$content2 === void 0 ? void 0 : _slots$content2.call(slots, item, index)) !== null && _slots$content !== void 0 ? _slots$content : item[props.contentField];
547
+ }
548
+ });
549
549
  });
550
550
  };
551
551
  return function () {
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<{
117
117
  } & {
118
118
  default: boolean;
119
119
  };
120
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
120
+ infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
121
121
  }, {
122
122
  data: {
123
123
  positionX: number;
@@ -259,7 +259,7 @@ declare const _default: import("vue").DefineComponent<{
259
259
  } & {
260
260
  default: boolean;
261
261
  };
262
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
262
+ infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
263
263
  }>> & {
264
264
  onConfirm?: (...args: any[]) => any;
265
265
  onPrev?: (...args: any[]) => any;
@@ -79,7 +79,7 @@ declare const BkDialog: {
79
79
  readonly size?: "small" | "medium" | "large" | "normal";
80
80
  readonly dialogType?: "show" | "process" | "operation" | "confirm";
81
81
  readonly beforeClose?: unknown;
82
- readonly infoType?: "success" | "warning" | "danger" | "primary";
82
+ readonly infoType?: "loading" | "success" | "warning" | "danger";
83
83
  onConfirm?: (...args: any[]) => any;
84
84
  onPrev?: (...args: any[]) => any;
85
85
  onNext?: (...args: any[]) => any;
@@ -219,7 +219,7 @@ declare const BkDialog: {
219
219
  } & {
220
220
  default: boolean;
221
221
  };
222
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
222
+ infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
223
223
  }>> & {
224
224
  onConfirm?: (...args: any[]) => any;
225
225
  onPrev?: (...args: any[]) => any;
@@ -418,7 +418,7 @@ declare const BkDialog: {
418
418
  } & {
419
419
  default: boolean;
420
420
  };
421
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
421
+ infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
422
422
  }>> & {
423
423
  onConfirm?: (...args: any[]) => any;
424
424
  onPrev?: (...args: any[]) => any;
@@ -571,7 +571,7 @@ declare const BkDialog: {
571
571
  } & {
572
572
  default: boolean;
573
573
  };
574
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
574
+ infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
575
575
  }>> & {
576
576
  onConfirm?: (...args: any[]) => any;
577
577
  onPrev?: (...args: any[]) => any;
@@ -117,6 +117,6 @@ declare const props: {
117
117
  } & {
118
118
  default: boolean;
119
119
  };
120
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
120
+ infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
121
121
  };
122
122
  export default props;
@@ -1,7 +1,6 @@
1
1
  declare const BkInfoBox: ((config: Partial<import("./info-box").ModalFuncProps>) => {
2
2
  show: () => void;
3
3
  hide: () => void;
4
- update: (config: Partial<import("./info-box").ModalFuncProps>) => void;
5
4
  destroy: () => void;
6
5
  }) & import("vue").Plugin<any[]>;
7
6
  export default BkInfoBox;