bkui-vue 0.0.1-beta.62 → 0.0.1-beta.63

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.
Files changed (40) hide show
  1. package/dist/index.cjs.js +25 -25
  2. package/dist/index.esm.js +312 -184
  3. package/dist/index.umd.js +25 -25
  4. package/dist/style.css +1 -1
  5. package/lib/alert/index.js +1 -1
  6. package/lib/checkbox/checkbox.css +3 -2
  7. package/lib/checkbox/checkbox.less +3 -2
  8. package/lib/checkbox/checkbox.variable.css +3 -2
  9. package/lib/collapse/collapse.css +17 -1
  10. package/lib/collapse/collapse.d.ts +11 -14
  11. package/lib/collapse/collapse.less +24 -2
  12. package/lib/collapse/collapse.variable.css +116 -1
  13. package/lib/collapse/index.d.ts +31 -15
  14. package/lib/collapse/index.js +1 -1
  15. package/lib/collapse/utils.d.ts +11 -0
  16. package/lib/date-picker/date-picker.d.ts +11 -1
  17. package/lib/date-picker/index.d.ts +26 -4
  18. package/lib/date-picker/index.js +1 -1
  19. package/lib/date-picker/props.d.ts +4 -0
  20. package/lib/radio/radio.css +6 -6
  21. package/lib/radio/radio.less +7 -7
  22. package/lib/radio/radio.variable.css +7 -7
  23. package/lib/table/table.css +1 -0
  24. package/lib/table/table.less +1 -0
  25. package/lib/table/table.variable.css +1 -0
  26. package/lib/tree/constant.d.ts +22 -0
  27. package/lib/tree/index.d.ts +15 -7
  28. package/lib/tree/index.js +1 -1
  29. package/lib/tree/tree.css +1 -0
  30. package/lib/tree/tree.d.ts +5 -2
  31. package/lib/tree/tree.less +1 -0
  32. package/lib/tree/tree.variable.css +1 -0
  33. package/lib/tree/use-node-action.d.ts +2 -2
  34. package/lib/tree/use-node-attribute.d.ts +2 -1
  35. package/lib/tree/util.d.ts +0 -17
  36. package/lib/upload/index.js +1 -1
  37. package/lib/upload/upload.css +1 -1
  38. package/lib/upload/upload.less +1 -1
  39. package/lib/upload/upload.variable.css +1 -1
  40. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -2866,7 +2866,7 @@ var Component$A = defineComponent({
2866
2866
  "class": "bk-alert-title"
2867
2867
  }, [this.title]), createVNode("div", {
2868
2868
  "class": "bk-alert-description"
2869
- }, null)]), createVNode("span", {
2869
+ }, null)]), this.closable && createVNode("span", {
2870
2870
  "class": closeButtonClasses,
2871
2871
  "onClick": this.handleClose
2872
2872
  }, [this.closeText])])]);
@@ -9407,6 +9407,85 @@ var BkCheckboxGroup = defineComponent({
9407
9407
  }
9408
9408
  });
9409
9409
  const BkCheckbox = withInstallProps(Component$q, { Group: BkCheckboxGroup });
9410
+ const trimArr$1 = function(s2) {
9411
+ return (s2 || "").split(" ").filter((item) => !!item.trim());
9412
+ };
9413
+ function removeClass$1(el, cls) {
9414
+ if (!el || !cls)
9415
+ return;
9416
+ const classes2 = trimArr$1(cls);
9417
+ let curClass = el.getAttribute("class") || "";
9418
+ if (el.classList) {
9419
+ el.classList.remove(...classes2);
9420
+ return;
9421
+ }
9422
+ classes2.forEach((item) => {
9423
+ curClass = curClass.replace(` ${item} `, " ");
9424
+ });
9425
+ const className = trimArr$1(curClass).join(" ");
9426
+ el.setAttribute("class", className);
9427
+ }
9428
+ function addClass$1(el, cls) {
9429
+ if (!el)
9430
+ return;
9431
+ let className = el.getAttribute("class") || "";
9432
+ const curClass = trimArr$1(className);
9433
+ const classes2 = (cls || "").split(" ").filter((item) => !curClass.includes(item) && !!item.trim());
9434
+ if (el.classList) {
9435
+ el.classList.add(...classes2);
9436
+ } else {
9437
+ className += ` ${classes2.join(" ")}`;
9438
+ el.setAttribute("class", className);
9439
+ }
9440
+ }
9441
+ const collapseMotion$1 = (emit) => ({
9442
+ css: true,
9443
+ onBeforeEnter: (el) => {
9444
+ addClass$1(el, "collapse-transition");
9445
+ if (!el.dataset)
9446
+ el.dataset = {};
9447
+ el.style.height = "0px";
9448
+ },
9449
+ onEnter: (el) => {
9450
+ el.dataset.oldOverflow = el.style.overflow;
9451
+ if (el.scrollHeight !== 0) {
9452
+ el.style.height = `${el.scrollHeight}px`;
9453
+ el.style.maxHeight = `${el.scrollHeight}px`;
9454
+ } else {
9455
+ el.style.height = "0px";
9456
+ }
9457
+ el.style.overflow = "hidden";
9458
+ },
9459
+ onAfterEnter: (el) => {
9460
+ el.style.height = "";
9461
+ el.style.maxHeight = "";
9462
+ el.style.overflow = el.dataset.oldOverflow;
9463
+ removeClass$1(el, "collapse-transition");
9464
+ emit("before-enter");
9465
+ },
9466
+ onBeforeLeave: (el) => {
9467
+ if (!el.dataset)
9468
+ el.dataset = {};
9469
+ el.dataset.oldOverflow = el.style.overflow;
9470
+ el.style.height = `${el.scrollHeight}px`;
9471
+ el.style.maxHeight = `${el.scrollHeight}px`;
9472
+ el.style.overflow = "hidden";
9473
+ },
9474
+ onLeave: (el) => {
9475
+ if (el.scrollHeight !== 0) {
9476
+ addClass$1(el, "collapse-transition");
9477
+ el.style.transitionProperty = "height";
9478
+ el.style.height = "0px";
9479
+ }
9480
+ },
9481
+ onAfterLeave: (el) => {
9482
+ removeClass$1(el, "collapse-transition");
9483
+ el.style.height = "";
9484
+ el.style.maxHeight = "";
9485
+ el.style.overflow = el.dataset.oldOverflow;
9486
+ emit("after-leave");
9487
+ }
9488
+ });
9410
9489
  var Component$p = defineComponent({
9411
9490
  name: "Collapse",
9412
9491
  props: {
@@ -9414,16 +9493,27 @@ var Component$p = defineComponent({
9414
9493
  idFiled: PropTypes.string.def("$index"),
9415
9494
  titleField: PropTypes.string.def("name"),
9416
9495
  contentField: PropTypes.string.def("content"),
9417
- activeIndex: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number).def([]), PropTypes.number.def(-1)]),
9418
- activeName: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string).def([]), PropTypes.string.def("")]),
9419
- accordion: PropTypes.bool.def(true)
9496
+ modelValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number).def([]), PropTypes.arrayOf(PropTypes.string).def([]), PropTypes.number.def(-1)]),
9497
+ accordion: PropTypes.bool.def(false)
9420
9498
  },
9499
+ emits: ["item-click", "update:modelValue", "after-leave", "before-enter"],
9421
9500
  setup(props, {
9501
+ emit,
9422
9502
  slots
9423
9503
  }) {
9424
- const localActiveItems = ref(null);
9425
- watch(() => [props.activeName, props.activeIndex], () => {
9426
- localActiveItems.value = null;
9504
+ const localActiveItems = ref([]);
9505
+ const transition = ref(collapseMotion$1(emit));
9506
+ watch(() => [props.modelValue], () => {
9507
+ const value = props.modelValue;
9508
+ if (Array.isArray(value)) {
9509
+ localActiveItems.value = [...value];
9510
+ } else if (typeof value !== "undefined") {
9511
+ localActiveItems.value = [value];
9512
+ } else {
9513
+ localActiveItems.value = [];
9514
+ }
9515
+ }, {
9516
+ immediate: true
9427
9517
  });
9428
9518
  const collapseData = computed(() => (props.list || []).map((item, index) => {
9429
9519
  if (typeof item === "string" || typeof item === "number" || typeof item === "boolean") {
@@ -9436,59 +9526,47 @@ var Component$p = defineComponent({
9436
9526
  $index: index
9437
9527
  }, item);
9438
9528
  }));
9439
- const activeItemIndexList = computed(() => {
9440
- var _a;
9441
- if (localActiveItems.value !== null) {
9442
- return localActiveItems.value.map((item) => item.$index);
9443
- }
9444
- if (props.activeName !== null && props.activeName !== void 0 && props.activeName !== "") {
9445
- const activeNames = resolvePropsActiveValue(props.activeName);
9446
- return activeNames.map((name2) => collapseData.value.findIndex((item) => item[props.idFiled] === name2));
9447
- }
9448
- return resolvePropsActiveValue((_a = props.activeIndex) != null ? _a : 0);
9449
- });
9450
- const resolvePropsActiveValue = (prop) => {
9451
- if (Array.isArray(prop)) {
9452
- return props.accordion ? resolvePropsActiveValue(prop[0]) : prop;
9453
- }
9454
- if (typeof prop === "string" || typeof prop === "number") {
9455
- return [prop];
9456
- }
9457
- return [];
9458
- };
9459
9529
  const handleItemClick = (item) => {
9460
- if (localActiveItems.value === null) {
9461
- localActiveItems.value = [item];
9530
+ if (item.disabled)
9531
+ return;
9532
+ if (props.accordion) {
9533
+ const activeItemIndex = localActiveItems.value.findIndex((local) => local === item[props.idFiled]);
9534
+ if (activeItemIndex >= 0) {
9535
+ localActiveItems.value.splice(activeItemIndex, 1);
9536
+ } else {
9537
+ localActiveItems.value = [item[props.idFiled]];
9538
+ }
9462
9539
  } else {
9463
- if (props.accordion) {
9464
- localActiveItems.value = [item];
9540
+ const activeItemIndex = localActiveItems.value.findIndex((local) => local === item[props.idFiled]);
9541
+ if (activeItemIndex >= 0) {
9542
+ localActiveItems.value.splice(activeItemIndex, 1);
9465
9543
  } else {
9466
- const activeItemIndex = localActiveItems.value.findIndex((local) => local.$index === item.$index);
9467
- if (activeItemIndex >= 0) {
9468
- localActiveItems.value.splice(activeItemIndex, 1);
9469
- } else {
9470
- localActiveItems.value.push(item);
9471
- }
9544
+ localActiveItems.value.push(item[props.idFiled]);
9472
9545
  }
9473
9546
  }
9547
+ emit("item-click", item);
9548
+ emit("update:modelValue", localActiveItems.value);
9474
9549
  };
9475
- const isItemActive = (item) => activeItemIndexList.value.some((activeIndex) => activeIndex === item.$index);
9550
+ const isItemActive = (item) => localActiveItems.value.includes(item[props.idFiled]);
9476
9551
  const renderItems = () => collapseData.value.map((item) => {
9477
- var _a, _b, _c, _d;
9552
+ var _a, _b;
9478
9553
  return createVNode("div", {
9479
- "class": "bk-collapse-item"
9554
+ "class": `bk-collapse-item ${item.disabled ? "is-disabled" : ""} ${isItemActive(item) ? "bk-collapse-item-active" : ""}`
9480
9555
  }, [createVNode("div", {
9481
9556
  "class": "bk-collapse-header",
9482
9557
  "onClick": () => handleItemClick(item)
9483
9558
  }, [createVNode("span", {
9484
9559
  "class": "bk-collapse-title"
9485
- }, [(_b = (_a = slots.default) == null ? void 0 : _a.call(slots, item)) != null ? _b : item[props.titleField]]), isItemActive(item) ? createVNode(angleDown, {
9486
- "class": "bk-collapse-icon"
9487
- }, null) : createVNode(angleRight, {
9488
- "class": "bk-collapse-icon"
9489
- }, null)]), createVNode("div", {
9490
- "class": `bk-collapse-content ${isItemActive(item) && "active" || ""}`
9491
- }, [(_d = (_c = slots.content) == null ? void 0 : _c.call(slots, item)) != null ? _d : item[props.contentField]])]);
9560
+ }, [(_b = (_a = slots.default) == null ? void 0 : _a.call(slots, item)) != null ? _b : item[props.titleField]]), createVNode(angleRight, {
9561
+ "class": `bk-collapse-icon ${isItemActive(item) && "rotate-icon" || ""}`
9562
+ }, null)]), createVNode(Transition, transition.value, {
9563
+ default: () => {
9564
+ var _a2, _b2;
9565
+ return [withDirectives(createVNode("div", {
9566
+ "class": `bk-collapse-content ${isItemActive(item) && "active" || ""}`
9567
+ }, [(_b2 = (_a2 = slots.content) == null ? void 0 : _a2.call(slots, item)) != null ? _b2 : item[props.contentField]]), [[vShow, isItemActive(item)]])];
9568
+ }
9569
+ })]);
9492
9570
  });
9493
9571
  const className = "bk-collapse-wrapper";
9494
9572
  return () => createVNode("div", {
@@ -9496,7 +9574,7 @@ var Component$p = defineComponent({
9496
9574
  }, [renderItems()]);
9497
9575
  }
9498
9576
  });
9499
- const BkCollaspe = withInstall(Component$p);
9577
+ const BkCollapse = withInstall(Component$p);
9500
9578
  const propsMixin$1 = {
9501
9579
  isShow: PropTypes.bool.def(false),
9502
9580
  width: PropTypes.string.def("50%") || PropTypes.number,
@@ -13893,12 +13971,12 @@ var Settings = defineComponent({
13893
13971
  });
13894
13972
  }
13895
13973
  });
13896
- let EVENTS;
13974
+ let EVENTS$1;
13897
13975
  (function(EVENTS2) {
13898
13976
  EVENTS2["ON_SORT_BY_CLICK"] = "onSortByClick";
13899
13977
  EVENTS2["ON_FILTER_CLICK"] = "onFilterClick";
13900
13978
  EVENTS2["ON_SETTING_CHANGE"] = "onSettingChange";
13901
- })(EVENTS || (EVENTS = {}));
13979
+ })(EVENTS$1 || (EVENTS$1 = {}));
13902
13980
  class TableRender {
13903
13981
  constructor(props, ctx, reactiveProp, colgroups) {
13904
13982
  __publicField(this, "getRowHeight", (row, rowIndex) => {
@@ -13951,7 +14029,7 @@ class TableRender {
13951
14029
  col.isHidden = !(checked != null ? checked : []).includes(resolvePropVal(col, "field", [col]));
13952
14030
  });
13953
14031
  }
13954
- this.emitEvent(EVENTS.ON_SETTING_CHANGE, [arg]);
14032
+ this.emitEvent(EVENTS$1.ON_SETTING_CHANGE, [arg]);
13955
14033
  };
13956
14034
  return [this.props.settings ? createVNode(Settings, {
13957
14035
  "class": "table-head-settings",
@@ -14031,7 +14109,7 @@ class TableRender {
14031
14109
  }
14032
14110
  getSortCell(column, index) {
14033
14111
  const hanldeSortClick = (sortFn, type) => {
14034
- this.emitEvent(EVENTS.ON_SORT_BY_CLICK, [{
14112
+ this.emitEvent(EVENTS$1.ON_SORT_BY_CLICK, [{
14035
14113
  sortFn,
14036
14114
  column,
14037
14115
  index,
@@ -14046,7 +14124,7 @@ class TableRender {
14046
14124
  getFilterCell(column, index) {
14047
14125
  const handleFilterChange = (checked, filterFn) => {
14048
14126
  const filterFn0 = (row, index2) => filterFn(checked, row, index2);
14049
- this.emitEvent(EVENTS.ON_FILTER_CLICK, [{
14127
+ this.emitEvent(EVENTS$1.ON_FILTER_CLICK, [{
14050
14128
  filterFn: filterFn0,
14051
14129
  checked,
14052
14130
  column,
@@ -14298,19 +14376,19 @@ var Component$7 = defineComponent({
14298
14376
  watchEffect(() => {
14299
14377
  watchEffectFn(columnFilterFn, columnSortFn);
14300
14378
  });
14301
- tableRender.on(EVENTS.ON_SORT_BY_CLICK, (args) => {
14379
+ tableRender.on(EVENTS$1.ON_SORT_BY_CLICK, (args) => {
14302
14380
  const {
14303
14381
  sortFn
14304
14382
  } = args;
14305
14383
  columnSortFn = sortFn;
14306
14384
  pageData.sort(columnSortFn);
14307
- }).on(EVENTS.ON_FILTER_CLICK, (args) => {
14385
+ }).on(EVENTS$1.ON_FILTER_CLICK, (args) => {
14308
14386
  const {
14309
14387
  filterFn
14310
14388
  } = args;
14311
14389
  columnFilterFn = filterFn;
14312
14390
  resolvePageData(columnFilterFn, columnSortFn);
14313
- }).on(EVENTS.ON_SETTING_CHANGE, (args) => {
14391
+ }).on(EVENTS$1.ON_SETTING_CHANGE, (args) => {
14314
14392
  var _a, _b;
14315
14393
  const {
14316
14394
  checked = []
@@ -19932,6 +20010,10 @@ const datePickerProps = {
19932
20010
  type: Number,
19933
20011
  default: -1
19934
20012
  },
20013
+ headerSlotCls: {
20014
+ type: String,
20015
+ default: ""
20016
+ },
19935
20017
  footerSlotCls: {
19936
20018
  type: String,
19937
20019
  default: ""
@@ -20034,6 +20116,8 @@ var Component$3 = defineComponent({
20034
20116
  return visualValue.value;
20035
20117
  });
20036
20118
  const isConfirm = computed(() => !!slots.trigger || props.type === "datetime" || props.type === "datetimerange" || props.multiple);
20119
+ const hasHeader = computed(() => !!slots.header);
20120
+ const hasFooter = computed(() => !!slots.footer);
20037
20121
  const fontSizeCls = computed(() => {
20038
20122
  let cls = "";
20039
20123
  if (props.fontSize === "medium") {
@@ -20059,7 +20143,6 @@ var Component$3 = defineComponent({
20059
20143
  }
20060
20144
  return !props.editable || props.readonly;
20061
20145
  });
20062
- const hasFooter = computed(() => !!slots.footer);
20063
20146
  const allowCrossDayProp = computed(() => panel.value === "RangeTimePickerPanel" ? props.allowCrossDay : false);
20064
20147
  const inputRef = ref(null);
20065
20148
  const inputFocus = () => {
@@ -20315,10 +20398,11 @@ var Component$3 = defineComponent({
20315
20398
  visualValue,
20316
20399
  displayValue,
20317
20400
  isConfirm,
20401
+ hasHeader,
20402
+ hasFooter,
20318
20403
  fontSizeCls,
20319
20404
  longWidthCls,
20320
20405
  localReadonly,
20321
- hasFooter,
20322
20406
  allowCrossDayProp,
20323
20407
  pickerDropdownRef,
20324
20408
  inputRef,
@@ -20430,35 +20514,42 @@ var Component$3 = defineComponent({
20430
20514
  "appendToBody": this.appendToBody,
20431
20515
  "onClick": this.handleTransferClick
20432
20516
  }, {
20433
- default: () => [this.panel === "DateRangePanel" ? createVNode(DateRangePanel, {
20434
- "ref": "pickerPanelRef",
20435
- "type": this.type,
20436
- "confirm": this.isConfirm,
20437
- "shortcuts": this.shortcuts,
20438
- "modelValue": this.internalValue,
20439
- "selectionMode": this.selectionMode,
20440
- "startDate": this.startDate,
20441
- "disableDate": this.disableDate,
20442
- "focusedDate": this.focusedDate,
20443
- "onPick": this.onPick,
20444
- "onPick-success": this.onPickSuccess
20445
- }, null) : createVNode(DatePanel, {
20446
- "ref": "pickerPanelRef",
20447
- "clearable": this.clearable,
20448
- "showTime": this.type === "datetime" || this.type === "datetimerange",
20449
- "confirm": this.isConfirm,
20450
- "shortcuts": this.shortcuts,
20451
- "multiple": this.multiple,
20452
- "shortcutClose": this.shortcutClose,
20453
- "selectionMode": this.selectionMode,
20454
- "modelValue": this.internalValue,
20455
- "startDate": this.startDate,
20456
- "disableDate": this.disableDate,
20457
- "focusedDate": this.focusedDate,
20458
- "onPick": this.onPick,
20459
- "onPick-clear": this.handleClear,
20460
- "onPick-success": this.onPickSuccess
20461
- }, null)]
20517
+ default: () => {
20518
+ var _a2, _b2, _c2, _d, _e, _f;
20519
+ return [this.hasHeader ? createVNode("div", {
20520
+ "class": ["bk-date-picker-top-wrapper", this.headerSlotCls]
20521
+ }, [(_c2 = (_b2 = (_a2 = this.$slots).header) == null ? void 0 : _b2.call(_a2)) != null ? _c2 : null]) : null, this.panel === "DateRangePanel" ? createVNode(DateRangePanel, {
20522
+ "ref": "pickerPanelRef",
20523
+ "type": this.type,
20524
+ "confirm": this.isConfirm,
20525
+ "shortcuts": this.shortcuts,
20526
+ "modelValue": this.internalValue,
20527
+ "selectionMode": this.selectionMode,
20528
+ "startDate": this.startDate,
20529
+ "disableDate": this.disableDate,
20530
+ "focusedDate": this.focusedDate,
20531
+ "onPick": this.onPick,
20532
+ "onPick-success": this.onPickSuccess
20533
+ }, null) : createVNode(DatePanel, {
20534
+ "ref": "pickerPanelRef",
20535
+ "clearable": this.clearable,
20536
+ "showTime": this.type === "datetime" || this.type === "datetimerange",
20537
+ "confirm": this.isConfirm,
20538
+ "shortcuts": this.shortcuts,
20539
+ "multiple": this.multiple,
20540
+ "shortcutClose": this.shortcutClose,
20541
+ "selectionMode": this.selectionMode,
20542
+ "modelValue": this.internalValue,
20543
+ "startDate": this.startDate,
20544
+ "disableDate": this.disableDate,
20545
+ "focusedDate": this.focusedDate,
20546
+ "onPick": this.onPick,
20547
+ "onPick-clear": this.handleClear,
20548
+ "onPick-success": this.onPickSuccess
20549
+ }, null), this.hasFooter ? createVNode("div", {
20550
+ "class": ["bk-date-picker-footer-wrapper", this.footerSlotCls]
20551
+ }, [(_f = (_e = (_d = this.$slots).footer) == null ? void 0 : _e.call(_d)) != null ? _f : null]) : null];
20552
+ }
20462
20553
  }), [[vShow, this.opened]])]
20463
20554
  })]
20464
20555
  })]), [[resolveDirective("clickoutside"), this.handleClose]]);
@@ -20888,6 +20979,27 @@ var Component$2 = defineComponent({
20888
20979
  }
20889
20980
  });
20890
20981
  const Transfer = withInstall(Component$2);
20982
+ var EVENTS = /* @__PURE__ */ ((EVENTS2) => {
20983
+ EVENTS2["NODE_CLICK"] = "node-click";
20984
+ EVENTS2["NODE_COLLAPSE"] = "node-collapse";
20985
+ EVENTS2["NODE_EXPAND"] = "node-expand";
20986
+ return EVENTS2;
20987
+ })(EVENTS || {});
20988
+ var NODE_ATTRIBUTES = /* @__PURE__ */ ((NODE_ATTRIBUTES2) => {
20989
+ NODE_ATTRIBUTES2["DEPTH"] = "__depth";
20990
+ NODE_ATTRIBUTES2["INDEX"] = "__index";
20991
+ NODE_ATTRIBUTES2["UUID"] = "__uuid";
20992
+ NODE_ATTRIBUTES2["PARENT_ID"] = "__parentId";
20993
+ NODE_ATTRIBUTES2["HAS_CHILD"] = "__hasChild";
20994
+ NODE_ATTRIBUTES2["PATH"] = "__path";
20995
+ NODE_ATTRIBUTES2["IS_ROOT"] = "__isRoot";
20996
+ NODE_ATTRIBUTES2["ORDER"] = "__order";
20997
+ NODE_ATTRIBUTES2["IS_OPEN"] = "__isOpen";
20998
+ NODE_ATTRIBUTES2["CHECKED"] = "__checked";
20999
+ NODE_ATTRIBUTES2["IS_ASYNC_INIT"] = "__isAsyncInit";
21000
+ NODE_ATTRIBUTES2["IS_MATCH"] = "__isMatch";
21001
+ return NODE_ATTRIBUTES2;
21002
+ })(NODE_ATTRIBUTES || {});
20891
21003
  const treeProps = {
20892
21004
  data: PropTypes.arrayOf(PropTypes.any).def([]),
20893
21005
  label: PropTypes.oneOfType([PropTypes.func.def(void 0), PropTypes.string.def("label")]),
@@ -20945,6 +21057,48 @@ var useEmpty = (props, {
20945
21057
  }
20946
21058
  })
20947
21059
  });
21060
+ var useNodeAttribute = (flatData) => {
21061
+ const schemaValues = computed(() => Array.from(flatData.schema.values()));
21062
+ const getSchemaVal2 = (key) => flatData.schema.get(key);
21063
+ const getNodeAttr2 = (node, attr) => {
21064
+ var _a;
21065
+ return (_a = getSchemaVal2(node[NODE_ATTRIBUTES.UUID])) == null ? void 0 : _a[attr];
21066
+ };
21067
+ const setNodeAttr = (node, attr, val) => flatData.schema.set(node[NODE_ATTRIBUTES.UUID], __spreadProps(__spreadValues({}, getSchemaVal2(node[NODE_ATTRIBUTES.UUID])), {
21068
+ [attr]: val
21069
+ }));
21070
+ const getNodePath = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.PATH);
21071
+ const isRootNode = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.IS_ROOT);
21072
+ const isNodeOpened = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.IS_OPEN);
21073
+ const hasChildNode = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.HAS_CHILD);
21074
+ const isNodeMatched = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.IS_MATCH);
21075
+ const isNodeChecked = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.CHECKED);
21076
+ const isItemOpen = (item) => {
21077
+ var _a;
21078
+ if (typeof item === "object") {
21079
+ return isNodeOpened(item);
21080
+ }
21081
+ if (typeof item === "string") {
21082
+ return (_a = getSchemaVal2(item)) == null ? void 0 : _a[NODE_ATTRIBUTES.IS_OPEN];
21083
+ }
21084
+ return false;
21085
+ };
21086
+ const checkNodeIsOpen = (node) => isRootNode(node) || isItemOpen(node) || isItemOpen(getNodeAttr2(node, NODE_ATTRIBUTES.PARENT_ID));
21087
+ return {
21088
+ schemaValues,
21089
+ getSchemaVal: getSchemaVal2,
21090
+ getNodeAttr: getNodeAttr2,
21091
+ setNodeAttr,
21092
+ getNodePath,
21093
+ isRootNode,
21094
+ isNodeOpened,
21095
+ hasChildNode,
21096
+ isItemOpen,
21097
+ isNodeChecked,
21098
+ isNodeMatched,
21099
+ checkNodeIsOpen
21100
+ };
21101
+ };
20948
21102
  var rngBrowser = { exports: {} };
20949
21103
  var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof window.msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
20950
21104
  if (getRandomValues) {
@@ -21084,21 +21238,6 @@ uuid.v1 = v1;
21084
21238
  uuid.v4 = v4;
21085
21239
  var uuid_1 = uuid;
21086
21240
  const DEFAULT_LEVLE_LINE = "1px dashed #c3cdd7";
21087
- var NODE_ATTRIBUTES = /* @__PURE__ */ ((NODE_ATTRIBUTES2) => {
21088
- NODE_ATTRIBUTES2["DEPTH"] = "__depth";
21089
- NODE_ATTRIBUTES2["INDEX"] = "__index";
21090
- NODE_ATTRIBUTES2["UUID"] = "__uuid";
21091
- NODE_ATTRIBUTES2["PARENT_ID"] = "__parentId";
21092
- NODE_ATTRIBUTES2["HAS_CHILD"] = "__hasChild";
21093
- NODE_ATTRIBUTES2["PATH"] = "__path";
21094
- NODE_ATTRIBUTES2["IS_ROOT"] = "__isRoot";
21095
- NODE_ATTRIBUTES2["ORDER"] = "__order";
21096
- NODE_ATTRIBUTES2["IS_OPEN"] = "__isOpen";
21097
- NODE_ATTRIBUTES2["CHECKED"] = "__checked";
21098
- NODE_ATTRIBUTES2["IS_ASYNC_INIT"] = "__isAsyncInit";
21099
- NODE_ATTRIBUTES2["IS_MATCH"] = "__isMatch";
21100
- return NODE_ATTRIBUTES2;
21101
- })(NODE_ATTRIBUTES || {});
21102
21241
  const getFlatdata = (props, treeData = void 0, cachedSchema = []) => {
21103
21242
  const { data: data2, children } = props;
21104
21243
  const outputData = [];
@@ -21109,10 +21248,10 @@ const getFlatdata = (props, treeData = void 0, cachedSchema = []) => {
21109
21248
  if (typeof props.nodeKey === "string") {
21110
21249
  uid = item[props.nodeKey];
21111
21250
  }
21112
- return uid || item["__uuid"] || uuid_1.v4();
21251
+ return uid || item[NODE_ATTRIBUTES.UUID] || uuid_1.v4();
21113
21252
  }
21114
21253
  function getCachedTreeNodeAttr(uuid2, node, attr, cachedAttr, defaultValue = void 0) {
21115
- const cached = (cachedSchema || []).find((item) => item["__uuid"] === uuid2);
21254
+ const cached = (cachedSchema || []).find((item) => item[NODE_ATTRIBUTES.UUID] === uuid2);
21116
21255
  let result = void 0;
21117
21256
  if (cached) {
21118
21257
  result = cached[cachedAttr];
@@ -21125,13 +21264,13 @@ const getFlatdata = (props, treeData = void 0, cachedSchema = []) => {
21125
21264
  return result;
21126
21265
  }
21127
21266
  function isCachedTreeNodeOpened(uuid2, node) {
21128
- return getCachedTreeNodeAttr(uuid2, node, "isOpen", "__isOpen", false);
21267
+ return getCachedTreeNodeAttr(uuid2, node, "isOpen", NODE_ATTRIBUTES.IS_OPEN, false);
21129
21268
  }
21130
21269
  function isCachedTreeNodeChecked(uuid2, node) {
21131
- return getCachedTreeNodeAttr(uuid2, node, "checked", "__checked", false);
21270
+ return getCachedTreeNodeAttr(uuid2, node, "checked", NODE_ATTRIBUTES.CHECKED, false);
21132
21271
  }
21133
21272
  function isCachedTreeNodeMatch(uuid2, node) {
21134
- return getCachedTreeNodeAttr(uuid2, node, "isMatch", "__isMatch", true);
21273
+ return getCachedTreeNodeAttr(uuid2, node, "isMatch", NODE_ATTRIBUTES.IS_MATCH, true);
21135
21274
  }
21136
21275
  function flatten(array, depth = 0, parent = null, path = null) {
21137
21276
  const arrLength = array.length;
@@ -21145,20 +21284,20 @@ const getFlatdata = (props, treeData = void 0, cachedSchema = []) => {
21145
21284
  const currentPath = path !== null ? `${path}-${i}` : `${i}`;
21146
21285
  const hasChildren = !!(item[children] || []).length;
21147
21286
  const attrs = {
21148
- ["__depth"]: depth,
21149
- ["__index"]: i,
21150
- ["__uuid"]: uuid2,
21151
- ["__parentId"]: parent,
21152
- ["__hasChild"]: hasChildren,
21153
- ["__path"]: currentPath,
21154
- ["__isRoot"]: parent === null,
21155
- ["__order"]: order2,
21156
- ["__isMatch"]: isCachedTreeNodeMatch(uuid2, item),
21157
- ["__isOpen"]: isCachedTreeNodeOpened(uuid2, item),
21158
- ["__checked"]: isCachedTreeNodeChecked(uuid2, item),
21287
+ [NODE_ATTRIBUTES.DEPTH]: depth,
21288
+ [NODE_ATTRIBUTES.INDEX]: i,
21289
+ [NODE_ATTRIBUTES.UUID]: uuid2,
21290
+ [NODE_ATTRIBUTES.PARENT_ID]: parent,
21291
+ [NODE_ATTRIBUTES.HAS_CHILD]: hasChildren,
21292
+ [NODE_ATTRIBUTES.PATH]: currentPath,
21293
+ [NODE_ATTRIBUTES.IS_ROOT]: parent === null,
21294
+ [NODE_ATTRIBUTES.ORDER]: order2,
21295
+ [NODE_ATTRIBUTES.IS_MATCH]: isCachedTreeNodeMatch(uuid2, item),
21296
+ [NODE_ATTRIBUTES.IS_OPEN]: isCachedTreeNodeOpened(uuid2, item),
21297
+ [NODE_ATTRIBUTES.CHECKED]: isCachedTreeNodeChecked(uuid2, item),
21159
21298
  [children]: null
21160
21299
  };
21161
- Object.assign(item, { ["__uuid"]: uuid2 });
21300
+ Object.assign(item, { [NODE_ATTRIBUTES.UUID]: uuid2 });
21162
21301
  schema.set(uuid2, attrs);
21163
21302
  order2 += 1;
21164
21303
  outputData.push(__spreadProps(__spreadValues({}, item), {
@@ -21219,7 +21358,7 @@ const getTreeStyle = (item, props) => {
21219
21358
  };
21220
21359
  const getNodeItemStyle = (item, props, flatData = {}) => {
21221
21360
  const { schema } = flatData;
21222
- const depth = getNodeAttr(schema, item["__uuid"], "__depth");
21361
+ const depth = getNodeAttr(schema, item[NODE_ATTRIBUTES.UUID], NODE_ATTRIBUTES.DEPTH);
21223
21362
  return __spreadValues({
21224
21363
  "--depth": depth
21225
21364
  }, typeof props.levelLine === "function" ? {
@@ -21229,7 +21368,7 @@ const getNodeItemStyle = (item, props, flatData = {}) => {
21229
21368
  } : {});
21230
21369
  };
21231
21370
  const getNodeItemClass = (item, schema, props) => {
21232
- const { __isRoot, __isOpen } = getSchemaVal(schema, item["__uuid"]) || {};
21371
+ const { __isRoot, __isOpen } = getSchemaVal(schema, item[NODE_ATTRIBUTES.UUID]) || {};
21233
21372
  return {
21234
21373
  "is-root": __isRoot,
21235
21374
  "bk-tree-node": true,
@@ -21239,7 +21378,7 @@ const getNodeItemClass = (item, schema, props) => {
21239
21378
  };
21240
21379
  };
21241
21380
  const getNodeRowClass = (item, schema) => {
21242
- const { __checked } = getSchemaVal(schema, item["__uuid"]) || {};
21381
+ const { __checked } = getSchemaVal(schema, item[NODE_ATTRIBUTES.UUID]) || {};
21243
21382
  return {
21244
21383
  "is-checked": __checked,
21245
21384
  [resolveClassName("node-row")]: true
@@ -21256,46 +21395,6 @@ const assignTreeNode = (path, treeData, childKey, assignVal) => {
21256
21395
  }, treeData);
21257
21396
  Object.assign(targetNode, assignVal || {});
21258
21397
  };
21259
- var useNodeAttribute = (flatData) => {
21260
- const schemaValues = computed(() => Array.from(flatData.schema.values()));
21261
- const getSchemaVal2 = (key) => flatData.schema.get(key);
21262
- const getNodeAttr2 = (node, attr) => {
21263
- var _a;
21264
- return (_a = getSchemaVal2(node[NODE_ATTRIBUTES.UUID])) == null ? void 0 : _a[attr];
21265
- };
21266
- const setNodeAttr = (node, attr, val) => flatData.schema.set(node[NODE_ATTRIBUTES.UUID], __spreadProps(__spreadValues({}, getSchemaVal2(node[NODE_ATTRIBUTES.UUID])), {
21267
- [attr]: val
21268
- }));
21269
- const getNodePath = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.PATH);
21270
- const isRootNode = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.IS_ROOT);
21271
- const isNodeOpened = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.IS_OPEN);
21272
- const hasChildNode = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.HAS_CHILD);
21273
- const isChecked = (node) => getNodeAttr2(node, NODE_ATTRIBUTES.CHECKED);
21274
- const isItemOpen = (item) => {
21275
- var _a;
21276
- if (typeof item === "object") {
21277
- return isNodeOpened(item);
21278
- }
21279
- if (typeof item === "string") {
21280
- return (_a = getSchemaVal2(item)) == null ? void 0 : _a[NODE_ATTRIBUTES.IS_OPEN];
21281
- }
21282
- return false;
21283
- };
21284
- const checkNodeIsOpen = (node) => isRootNode(node) || isItemOpen(node) || isItemOpen(getNodeAttr2(node, NODE_ATTRIBUTES.PARENT_ID));
21285
- return {
21286
- schemaValues,
21287
- getSchemaVal: getSchemaVal2,
21288
- getNodeAttr: getNodeAttr2,
21289
- setNodeAttr,
21290
- getNodePath,
21291
- isRootNode,
21292
- isNodeOpened,
21293
- hasChildNode,
21294
- isItemOpen,
21295
- isChecked,
21296
- checkNodeIsOpen
21297
- };
21298
- };
21299
21398
  var useAsync = (props, flatData) => {
21300
21399
  const {
21301
21400
  setNodeAttr,
@@ -21360,6 +21459,8 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21360
21459
  hasChildNode,
21361
21460
  isItemOpen,
21362
21461
  isNodeOpened,
21462
+ isNodeChecked,
21463
+ isNodeMatched,
21363
21464
  schemaValues
21364
21465
  } = useNodeAttribute(flatData);
21365
21466
  const {
@@ -21393,9 +21494,12 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21393
21494
  return null;
21394
21495
  };
21395
21496
  const getActionIcon = (item) => {
21497
+ if (ctx.slots.nodeAction) {
21498
+ return ctx.slots.nodeAction(resolveScopedSlotParam(item));
21499
+ }
21396
21500
  let prefixFnVal = null;
21397
21501
  if (typeof props.prefixIcon === "function") {
21398
- prefixFnVal = props.prefixIcon(isRootNode(item), hasChildNode(item) || item.async, isItemOpen(item), "action", item);
21502
+ prefixFnVal = props.prefixIcon(resolveScopedSlotParam(item), "node_action");
21399
21503
  if (prefixFnVal !== "default") {
21400
21504
  return renderPrefixVal(prefixFnVal);
21401
21505
  }
@@ -21408,9 +21512,12 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21408
21512
  return null;
21409
21513
  };
21410
21514
  const getNodePrefixIcon = (item) => {
21515
+ if (ctx.slots.nodeType) {
21516
+ return ctx.slots.nodeType(resolveScopedSlotParam(item));
21517
+ }
21411
21518
  let prefixFnVal = null;
21412
21519
  if (typeof props.prefixIcon === "function") {
21413
- prefixFnVal = props.prefixIcon(isRootNode(item), hasChildNode(item) || item.async, isItemOpen(item), "node_type", item);
21520
+ prefixFnVal = props.prefixIcon(resolveScopedSlotParam(item), "node_type");
21414
21521
  if (prefixFnVal !== "default") {
21415
21522
  return renderPrefixVal(prefixFnVal);
21416
21523
  }
@@ -21422,28 +21529,33 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21422
21529
  }
21423
21530
  return null;
21424
21531
  };
21425
- const getLoadingIcon = (item) => item.loading ? createVNode(spinner, null, null) : "";
21426
- const setNodeOpened = (item, isOpen = null) => {
21532
+ const getLoadingIcon = (item) => {
21533
+ var _a, _b, _c;
21534
+ return ((_c = (_b = (_a = ctx.slots).nodeLoading) == null ? void 0 : _b.call(_a, resolveScopedSlotParam(item))) != null ? _c : item.loading) ? createVNode(spinner, null, null) : "";
21535
+ };
21536
+ const setNodeOpened = (item, isOpen = null, e = null, fireEmit = true) => {
21427
21537
  const newVal = isOpen === null ? !isItemOpen(item) : !!isOpen;
21428
21538
  setNodeAttr(item, NODE_ATTRIBUTES.IS_OPEN, newVal);
21539
+ if (fireEmit) {
21540
+ const emitEvent = isItemOpen(item) ? EVENTS.NODE_EXPAND : EVENTS.NODE_COLLAPSE;
21541
+ ctx.emit(emitEvent, resolveScopedSlotParam(item), getSchemaVal2(item[NODE_ATTRIBUTES.UUID]), e);
21542
+ }
21429
21543
  if (newVal) {
21430
21544
  return;
21431
21545
  }
21432
21546
  renderData.value.filter((node) => String.prototype.startsWith.call(getNodePath(node), getNodePath(item))).forEach((filterNode) => setNodeAttr(filterNode, NODE_ATTRIBUTES.IS_OPEN, newVal));
21433
21547
  };
21434
- const hanldeTreeNodeClick = (item) => {
21548
+ const hanldeTreeNodeClick = (item, e) => {
21435
21549
  asyncNodeClick(item);
21436
- if (hasChildNode(item)) {
21437
- setNodeOpened(item);
21438
- }
21550
+ setNodeOpened(item, null, e);
21439
21551
  };
21440
21552
  const handleNodeActionClick = (e, node) => {
21441
21553
  e.stopImmediatePropagation();
21442
21554
  e.stopPropagation();
21443
21555
  e.preventDefault();
21444
- hanldeTreeNodeClick(node);
21556
+ hanldeTreeNodeClick(node, e);
21445
21557
  };
21446
- const handleNodeContentClick = (item) => {
21558
+ const handleNodeContentClick = (item, e) => {
21447
21559
  if (!checkedNodes.includes(item[NODE_ATTRIBUTES.UUID])) {
21448
21560
  checkedNodes.forEach((__uuid) => setNodeAttr({
21449
21561
  __uuid
@@ -21452,10 +21564,10 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21452
21564
  setNodeAttr(item, NODE_ATTRIBUTES.CHECKED, true);
21453
21565
  checkedNodes.push(item[NODE_ATTRIBUTES.UUID]);
21454
21566
  if (!isNodeOpened(item)) {
21455
- hanldeTreeNodeClick(item);
21567
+ hanldeTreeNodeClick(item, e);
21456
21568
  }
21457
- ctx.emit("check", item, getSchemaVal2(item[NODE_ATTRIBUTES.UUID]));
21458
21569
  }
21570
+ ctx.emit(EVENTS.NODE_CLICK, resolveScopedSlotParam(item), getSchemaVal2(item[NODE_ATTRIBUTES.UUID]), e);
21459
21571
  };
21460
21572
  const filterNextNode = (depth, node) => {
21461
21573
  if (isRootNode(node)) {
@@ -21486,6 +21598,13 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21486
21598
  "style": getNodeLineStyle(maxDeep - index)
21487
21599
  }, null));
21488
21600
  };
21601
+ const resolveScopedSlotParam = (item) => __spreadProps(__spreadValues({}, item), {
21602
+ hasChildNode: hasChildNode(item),
21603
+ isMatched: isNodeMatched(item),
21604
+ isChecked: isNodeChecked(item),
21605
+ isOpened: isNodeOpened(item),
21606
+ isRoot: isRootNode(item)
21607
+ });
21489
21608
  const renderTreeNode = (item) => {
21490
21609
  var _a, _b, _c, _d, _e;
21491
21610
  return createVNode("div", {
@@ -21493,7 +21612,7 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21493
21612
  }, [createVNode("div", {
21494
21613
  "class": getNodeItemClass(item, flatData.schema, props),
21495
21614
  "style": getNodeItemStyle(item, props, flatData),
21496
- "onClick": () => handleNodeContentClick(item)
21615
+ "onClick": (e) => handleNodeContentClick(item, e)
21497
21616
  }, [createVNode("span", {
21498
21617
  "class": resolveClassName("node-action"),
21499
21618
  "onClick": (e) => handleNodeActionClick(e, item)
@@ -21501,7 +21620,7 @@ var useNodeAction = (props, ctx, flatData, renderData) => {
21501
21620
  "class": resolveClassName("node-content")
21502
21621
  }, [[getNodePrefixIcon(item), getLoadingIcon(item)], createVNode("span", {
21503
21622
  "class": resolveClassName("node-text")
21504
- }, [(_e = (_b = (_a = ctx.slots).node) == null ? void 0 : _b.call(_a, item)) != null ? _e : [getLabel(item, props), (_d = (_c = ctx.slots).nodeAppend) == null ? void 0 : _d.call(_c, item)]])]), getVirtualLines(item)])]);
21623
+ }, [(_c = (_b = (_a = ctx.slots).node) == null ? void 0 : _b.call(_a, resolveScopedSlotParam(item))) != null ? _c : [getLabel(item, props)]]), (_e = (_d = ctx.slots).nodeAppend) == null ? void 0 : _e.call(_d, resolveScopedSlotParam(item))]), getVirtualLines(item)])]);
21505
21624
  };
21506
21625
  return {
21507
21626
  renderTreeNode,
@@ -21555,7 +21674,7 @@ var useSearch = (props) => {
21555
21674
  var Component$1 = defineComponent({
21556
21675
  name: "Tree",
21557
21676
  props: treeProps,
21558
- emits: ["check"],
21677
+ emits: [EVENTS.NODE_CLICK, EVENTS.NODE_COLLAPSE, EVENTS.NODE_EXPAND],
21559
21678
  setup(props, ctx) {
21560
21679
  var _a;
21561
21680
  const formatData = getFlatdata(props);
@@ -21571,7 +21690,10 @@ var Component$1 = defineComponent({
21571
21690
  getNodeAttr: getNodeAttr2,
21572
21691
  getNodePath,
21573
21692
  isRootNode,
21574
- isChecked
21693
+ isNodeOpened,
21694
+ isNodeChecked,
21695
+ isNodeMatched,
21696
+ hasChildNode
21575
21697
  } = useNodeAttribute(flatData);
21576
21698
  const {
21577
21699
  searchFn,
@@ -21649,7 +21771,7 @@ var Component$1 = defineComponent({
21649
21771
  setOpen(parentId, true, true);
21650
21772
  }
21651
21773
  } else {
21652
- setNodeOpened(resolvedItem, false);
21774
+ setNodeOpened(resolvedItem, false, null, false);
21653
21775
  }
21654
21776
  } else {
21655
21777
  setNodeAction(resolvedItem, NODE_ATTRIBUTES.IS_OPEN, isOpen);
@@ -21658,19 +21780,25 @@ var Component$1 = defineComponent({
21658
21780
  const setChecked = (item, checked = true) => {
21659
21781
  setNodeAction(resolveNodeItem(item), NODE_ATTRIBUTES.CHECKED, checked);
21660
21782
  };
21661
- const select2 = (item, fireOther = true) => {
21783
+ const setSelect = (item, fireOther = true) => {
21662
21784
  var _a2;
21663
21785
  if (fireOther) {
21664
- setChecked((_a2 = schemaValues.value.filter((item2) => isChecked(item2))) != null ? _a2 : [], false);
21786
+ setChecked((_a2 = schemaValues.value.filter((item2) => isNodeChecked(item2))) != null ? _a2 : [], false);
21665
21787
  }
21666
21788
  setChecked(item, true);
21667
21789
  };
21668
21790
  ctx.expose({
21669
21791
  hanldeTreeNodeClick,
21792
+ isNodeChecked,
21793
+ isRootNode,
21794
+ isNodeOpened,
21795
+ isNodeMatched,
21796
+ hasChildNode,
21670
21797
  setOpen,
21671
21798
  setChecked,
21672
21799
  setNodeAction,
21673
- select: select2
21800
+ setNodeOpened,
21801
+ setSelect
21674
21802
  });
21675
21803
  const root = ref();
21676
21804
  const {
@@ -22706,7 +22834,7 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
22706
22834
  Button: BkButton,
22707
22835
  Card: BkCard,
22708
22836
  Checkbox: BkCheckbox,
22709
- Collapse: BkCollaspe,
22837
+ Collapse: BkCollapse,
22710
22838
  Dialog: BkDialog,
22711
22839
  Exception: BkException,
22712
22840
  FixedNavbar: BkFixedNavbar,
@@ -22759,4 +22887,4 @@ var preset = {
22759
22887
  install: createInstall(),
22760
22888
  version: "0.0.1"
22761
22889
  };
22762
- export { 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, BkCollaspe as Collapse, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkSelect as Select, BkSideslider as Sideslider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTag as Tag, TagInput, Transfer, BkTree as Tree, BkVirtualRender as VirtualRender, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel };
22890
+ export { 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, BkCollapse as Collapse, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkSelect as Select, BkSideslider as Sideslider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTag as Tag, TagInput, Transfer, BkTree as Tree, BkVirtualRender as VirtualRender, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel };