bkui-vue 0.0.1-beta.195 → 0.0.1-beta.196

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.esm.js CHANGED
@@ -15910,7 +15910,7 @@ var Component$g = defineComponent({
15910
15910
  })]);
15911
15911
  }
15912
15912
  });
15913
- const BkSteps$2 = withInstall(Component$g);
15913
+ const BkSteps = withInstall(Component$g);
15914
15914
  var Component$f = defineComponent({
15915
15915
  name: "Switcher",
15916
15916
  props: {
@@ -18999,7 +18999,10 @@ const tagProps = () => ({
18999
18999
  type: Boolean,
19000
19000
  default: true
19001
19001
  },
19002
- popoverProps: Object
19002
+ popoverProps: {
19003
+ type: Object,
19004
+ default: () => ({})
19005
+ }
19003
19006
  });
19004
19007
  var TagRender = defineComponent({
19005
19008
  name: "TagRender",
@@ -29906,7 +29909,7 @@ var Component$3 = defineComponent({
29906
29909
  })]);
29907
29910
  }
29908
29911
  });
29909
- const BkSteps$1 = withInstall(Component$3);
29912
+ const BkTimeline = withInstall(Component$3);
29910
29913
  const processProps = {
29911
29914
  list: PropTypes.array.def([]),
29912
29915
  controllable: PropTypes.bool.def(false),
@@ -29916,7 +29919,7 @@ const processProps = {
29916
29919
  extCls: PropTypes.string
29917
29920
  };
29918
29921
  var Component$2 = defineComponent({
29919
- name: "BKProcess",
29922
+ name: "Process",
29920
29923
  props: processProps,
29921
29924
  emits: ["update:curProcess", "click"],
29922
29925
  setup(props2, {
@@ -29934,8 +29937,6 @@ var Component$2 = defineComponent({
29934
29937
  content: "\u6B65\u9AA43"
29935
29938
  }, {
29936
29939
  content: "\u6B65\u9AA44"
29937
- }, {
29938
- content: "\u6B65\u9AA45"
29939
29940
  }]);
29940
29941
  if ((_a = props2.list) == null ? void 0 : _a.length) {
29941
29942
  defaultProcessList.value.splice(0, defaultProcessList.value.length, ...props2.list);
@@ -29973,19 +29974,21 @@ var Component$2 = defineComponent({
29973
29974
  "class": "bk-icon bk-process-icon icon-loading"
29974
29975
  }, null);
29975
29976
  }
29976
- if (isErrorStatus(item)) {
29977
+ if (index === this.curProcess - 1 && isErrorStatus(item)) {
29977
29978
  return createVNode(error, {
29978
29979
  "class": "bk-process-icon"
29979
29980
  }, null);
29980
29981
  }
29982
+ if (index === this.curProcess - 1 && isIcon(item)) {
29983
+ return createVNode("span", {
29984
+ "class": "bk-process-icon-custom"
29985
+ }, [createVNode(item.icon, null, null)]);
29986
+ }
29981
29987
  if (isDone(index)) {
29982
29988
  return createVNode(done, {
29983
29989
  "class": "bk-process-icon-done"
29984
29990
  }, null);
29985
29991
  }
29986
- return createVNode("span", {
29987
- "class": "number"
29988
- }, [isIcon(item)]);
29989
29992
  };
29990
29993
  return createVNode("div", {
29991
29994
  "class": processCls
@@ -30002,12 +30005,13 @@ var Component$2 = defineComponent({
30002
30005
  },
30003
30006
  "class": {
30004
30007
  success: this.curProcess >= index + 1,
30005
- current: isLoadingStatus(item) && index === this.curProcess - 1
30008
+ current: isLoadingStatus(item) && index === this.curProcess - 1,
30009
+ error: isErrorStatus(item) && index === this.curProcess - 1
30006
30010
  }
30007
30011
  }, [item[this.displayKey], renderIcon(index, item)]))])]);
30008
30012
  }
30009
30013
  });
30010
- const BkSteps = withInstall(Component$2);
30014
+ const BkProcess = withInstall(Component$2);
30011
30015
  const CLASS_PREFIX = "bk-upload";
30012
30016
  var EThemes = /* @__PURE__ */ ((EThemes2) => {
30013
30017
  EThemes2["BUTTON"] = "button";
@@ -36060,7 +36064,7 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
36060
36064
  Swiper: BkSwiper,
36061
36065
  Select: BkSelect,
36062
36066
  Sideslider: BkSideslider,
36063
- Steps: BkSteps$2,
36067
+ Steps: BkSteps,
36064
36068
  Switcher: BkSwitcher,
36065
36069
  Table: BkTable,
36066
36070
  TableColumn: BkTableColumn,
@@ -36085,8 +36089,8 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
36085
36089
  Cascader: BkCascader,
36086
36090
  Slider,
36087
36091
  ResizeLayout: BkResizeLayout,
36088
- TimeLine: BkSteps$1,
36089
- Process: BkSteps,
36092
+ TimeLine: BkTimeline,
36093
+ Process: BkProcess,
36090
36094
  Upload,
36091
36095
  CodeDiff: BkCodeDiff,
36092
36096
  ColorPicker: BkColorPicker,
@@ -36109,4 +36113,4 @@ var preset = {
36109
36113
  install: createInstall(),
36110
36114
  version: "0.0.1"
36111
36115
  };
36112
- export { createPopoverComponent as $bkPopover, BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkPopover2 as Popover2, BkSteps as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps$2 as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTableColumn as TableColumn, BkTag as Tag, TagInput, BkSteps$1 as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel };
36116
+ export { createPopoverComponent as $bkPopover, BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkPopover2 as Popover2, BkProcess as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTableColumn as TableColumn, BkTag as Tag, TagInput, BkTimeline as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel };