lew-ui 2.7.56 → 2.7.59

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.js CHANGED
@@ -4852,7 +4852,7 @@ const X = createLucideIcon("x", [
4852
4852
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
4853
4853
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
4854
4854
  ]);
4855
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
4855
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
4856
4856
  __name: "CommonIcon",
4857
4857
  props: {
4858
4858
  type: {
@@ -4961,7 +4961,7 @@ const _export_sfc = (sfc, props) => {
4961
4961
  }
4962
4962
  return target;
4963
4963
  };
4964
- const CommonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-85d27a24"]]);
4964
+ const CommonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-85d27a24"]]);
4965
4965
  function dragmove({
4966
4966
  el,
4967
4967
  parentEl,
@@ -5831,7 +5831,7 @@ const collapseItemProps = {
5831
5831
  })
5832
5832
  }
5833
5833
  };
5834
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5834
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
5835
5835
  __name: "LewCollapse",
5836
5836
  props: /* @__PURE__ */ mergeModels(collapseProps, {
5837
5837
  "modelValue": {},
@@ -5865,7 +5865,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5865
5865
  };
5866
5866
  }
5867
5867
  });
5868
- const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-1f5affe9"]]);
5868
+ const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-1f5affe9"]]);
5869
5869
  const collapseTransitionEmits = {
5870
5870
  beforeAppear: (el) => el,
5871
5871
  appear: (el) => el,
@@ -5880,7 +5880,7 @@ const collapseTransitionEmits = {
5880
5880
  afterLeave: (el) => el,
5881
5881
  leaveCancelled: (el) => el
5882
5882
  };
5883
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
5883
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
5884
5884
  __name: "LewCollapseTransition",
5885
5885
  props: {
5886
5886
  name: { default: "collapse" },
@@ -6079,12 +6079,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
6079
6079
  };
6080
6080
  }
6081
6081
  });
6082
- const _hoisted_1$T = { class: "lew-collapse-item" };
6083
- const _hoisted_2$A = {
6082
+ const _hoisted_1$S = { class: "lew-collapse-item" };
6083
+ const _hoisted_2$z = {
6084
6084
  key: 0,
6085
6085
  class: "lew-collapse-item-main"
6086
6086
  };
6087
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6087
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6088
6088
  __name: "LewCollapseItem",
6089
6089
  props: /* @__PURE__ */ mergeModels(collapseItemProps, {
6090
6090
  "modelValue": { type: Boolean, ...{ default: false } },
@@ -6122,7 +6122,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6122
6122
  watch(() => expandKeys?.value, setModelValue, { deep: true });
6123
6123
  setModelValue();
6124
6124
  return (_ctx, _cache) => {
6125
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
6125
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
6126
6126
  createVNode(unref(LewFlex), {
6127
6127
  x: "start",
6128
6128
  y: "center",
@@ -6151,9 +6151,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6151
6151
  ]),
6152
6152
  _: 3
6153
6153
  }, 8, ["class", "style"]),
6154
- createVNode(_sfc_main$1b, null, {
6154
+ createVNode(_sfc_main$1a, null, {
6155
6155
  default: withCtx(() => [
6156
- modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
6156
+ modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
6157
6157
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
6158
6158
  ])) : createCommentVNode("", true)
6159
6159
  ]),
@@ -6163,7 +6163,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6163
6163
  };
6164
6164
  }
6165
6165
  });
6166
- const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-9aad9f0c"]]);
6166
+ const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-9aad9f0c"]]);
6167
6167
  const formProps = {
6168
6168
  options: {
6169
6169
  type: Array,
@@ -6442,8 +6442,8 @@ const formTypeAsMap = {
6442
6442
  "rate": "number",
6443
6443
  "tree-select": "string"
6444
6444
  };
6445
- const _hoisted_1$S = ["width", "height"];
6446
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6445
+ const _hoisted_1$R = ["width", "height"];
6446
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6447
6447
  __name: "RequiredIcon",
6448
6448
  props: {
6449
6449
  size: {
@@ -6468,11 +6468,11 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6468
6468
  fill: "#DF3F52",
6469
6469
  "p-id": "10883"
6470
6470
  }, null, -1)
6471
- ])], 8, _hoisted_1$S);
6471
+ ])], 8, _hoisted_1$R);
6472
6472
  };
6473
6473
  }
6474
6474
  });
6475
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6475
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6476
6476
  __name: "LewGetLabelWidth",
6477
6477
  props: {
6478
6478
  size: {
@@ -6511,7 +6511,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6511
6511
  })
6512
6512
  }, {
6513
6513
  default: withCtx(() => [
6514
- unref(getFormItemRequired)(item) && item.label ? (openBlock(), createBlock(_sfc_main$19, {
6514
+ unref(getFormItemRequired)(item) && item.label ? (openBlock(), createBlock(_sfc_main$18, {
6515
6515
  key: 0,
6516
6516
  size: unref(requiredIconSizeMap)[__props.size]
6517
6517
  }, null, 8, ["size"])) : createCommentVNode("", true),
@@ -6530,7 +6530,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6530
6530
  };
6531
6531
  }
6532
6532
  });
6533
- const LewGetLabelWidth = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-8c6b75bb"]]);
6533
+ const LewGetLabelWidth = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-8c6b75bb"]]);
6534
6534
  function detectComponentType(componentSource) {
6535
6535
  if (componentSource === null || componentSource === void 0 || componentSource === "") {
6536
6536
  return "unknown";
@@ -6637,7 +6637,7 @@ function formatComponent(componentSource) {
6637
6637
  return void 0;
6638
6638
  }
6639
6639
  }
6640
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6640
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6641
6641
  __name: "RenderComponent",
6642
6642
  props: {
6643
6643
  renderFn: {
@@ -6895,7 +6895,7 @@ const lewDescSizePaddingMap = {
6895
6895
  medium: 20,
6896
6896
  large: 26
6897
6897
  };
6898
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6898
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6899
6899
  __name: "LewDescItem",
6900
6900
  props: descItemProps,
6901
6901
  setup(__props) {
@@ -7001,7 +7001,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
7001
7001
  label: _ctx.label,
7002
7002
  dataSource: _ctx.dataSource,
7003
7003
  value: showTextAndEmpty()
7004
- }, void 0, true) : _ctx.customRender ? (openBlock(), createBlock(_sfc_main$17, {
7004
+ }, void 0, true) : _ctx.customRender ? (openBlock(), createBlock(_sfc_main$16, {
7005
7005
  key: 1,
7006
7006
  "render-fn": _ctx.customRender({ field: _ctx.field, label: _ctx.label, dataSource: _ctx.dataSource })
7007
7007
  }, null, 8, ["render-fn"])) : _ctx.type === "text-trim" ? (openBlock(), createBlock(unref(LewTextTrim), {
@@ -7017,8 +7017,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
7017
7017
  };
7018
7018
  }
7019
7019
  });
7020
- const LewDescItem = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-5711d988"]]);
7021
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
7020
+ const LewDescItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-5711d988"]]);
7021
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
7022
7022
  __name: "LewDesc",
7023
7023
  props: descProps,
7024
7024
  setup(__props) {
@@ -7099,7 +7099,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
7099
7099
  };
7100
7100
  }
7101
7101
  });
7102
- const LewDesc = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-d41a708e"]]);
7102
+ const LewDesc = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-d41a708e"]]);
7103
7103
  const expandEmits = {
7104
7104
  expand: () => true,
7105
7105
  collapse: () => true
@@ -7113,7 +7113,7 @@ const expandProps = {
7113
7113
  })
7114
7114
  }
7115
7115
  };
7116
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
7116
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
7117
7117
  __name: "LewExpand",
7118
7118
  props: expandProps,
7119
7119
  setup(__props) {
@@ -7163,7 +7163,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
7163
7163
  };
7164
7164
  }
7165
7165
  });
7166
- const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-8ec9692e"]]);
7166
+ const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-8ec9692e"]]);
7167
7167
  const paginationEmits = {
7168
7168
  change: (data) => data
7169
7169
  };
@@ -7225,8 +7225,8 @@ const paginationProps = {
7225
7225
  })
7226
7226
  }
7227
7227
  };
7228
- const _hoisted_1$R = ["onClick"];
7229
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
7228
+ const _hoisted_1$Q = ["onClick"];
7229
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
7230
7230
  __name: "LewPagination",
7231
7231
  props: /* @__PURE__ */ mergeModels(paginationProps, {
7232
7232
  "total": { default: 0 },
@@ -7299,7 +7299,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
7299
7299
  emit(
7300
7300
  "change",
7301
7301
  toRaw({
7302
- currentPage: currentPage.value,
7302
+ currentPage: page,
7303
7303
  pageSize: state.pageSize
7304
7304
  })
7305
7305
  );
@@ -7405,7 +7405,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
7405
7405
  active: Number(page) === Number(currentPage.value)
7406
7406
  }]),
7407
7407
  onClick: ($event) => changePage(page)
7408
- }, toDisplayString$1(page), 11, _hoisted_1$R);
7408
+ }, toDisplayString$1(page), 11, _hoisted_1$Q);
7409
7409
  }), 128)),
7410
7410
  unref(endEllipsis) ? (openBlock(), createElementBlock("div", {
7411
7411
  key: 3,
@@ -7470,7 +7470,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
7470
7470
  };
7471
7471
  }
7472
7472
  });
7473
- const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-ed4ad664"]]);
7473
+ const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-bd2827bf"]]);
7474
7474
  const tableEmits = {
7475
7475
  sortChange: (sortValue) => sortValue || typeof sortValue === "undefined",
7476
7476
  selectChange: (selectedKeys) => selectedKeys || typeof selectedKeys === "undefined",
@@ -8404,7 +8404,7 @@ const tableProps = {
8404
8404
  })
8405
8405
  }
8406
8406
  };
8407
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8407
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8408
8408
  __name: "SortIcon",
8409
8409
  props: {
8410
8410
  sortValue: {
@@ -8465,11 +8465,11 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8465
8465
  };
8466
8466
  }
8467
8467
  });
8468
- const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-5c6a5503"]]);
8469
- const _hoisted_1$Q = { class: "lew-table-header" };
8470
- const _hoisted_2$z = { class: "lew-table-tr" };
8471
- const _hoisted_3$s = { class: "lew-table-main" };
8472
- const _hoisted_4$j = { class: "lew-table-tr" };
8468
+ const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-5c6a5503"]]);
8469
+ const _hoisted_1$P = { class: "lew-table-header" };
8470
+ const _hoisted_2$y = { class: "lew-table-tr" };
8471
+ const _hoisted_3$r = { class: "lew-table-main" };
8472
+ const _hoisted_4$i = { class: "lew-table-tr" };
8473
8473
  const _hoisted_5$g = { class: "lew-table-tr" };
8474
8474
  const _hoisted_6$b = {
8475
8475
  key: 0,
@@ -8493,7 +8493,7 @@ const SCROLL_THRESHOLD = 10;
8493
8493
  const THROTTLE_DELAY = 120;
8494
8494
  const TOOLTIP_THROTTLE_DELAY = 16;
8495
8495
  const DRAG_END_DELAY = 250;
8496
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8496
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8497
8497
  __name: "LewTable",
8498
8498
  props: /* @__PURE__ */ mergeModels(tableProps, {
8499
8499
  "selectedKeys": {},
@@ -9356,7 +9356,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9356
9356
  style: normalizeStyle({ right: unref(any2px)(unref(state).fixedRightWidth) }),
9357
9357
  class: normalizeClass([unref(getScrollLineRightClassName), "lew-table-scroll-line-right"])
9358
9358
  }, null, 6),
9359
- createElementVNode("div", _hoisted_1$Q, [
9359
+ createElementVNode("div", _hoisted_1$P, [
9360
9360
  renderSlot(_ctx.$slots, "table-header")
9361
9361
  ]),
9362
9362
  createElementVNode("div", {
@@ -9385,7 +9385,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9385
9385
  ref: fixedLeftRef,
9386
9386
  class: "lew-table-fixed-left"
9387
9387
  }, [
9388
- createElementVNode("div", _hoisted_2$z, [
9388
+ createElementVNode("div", _hoisted_2$y, [
9389
9389
  _ctx.sortable ? (openBlock(), createBlock(unref(LewFlex), {
9390
9390
  key: 0,
9391
9391
  class: "lew-table-td",
@@ -9441,8 +9441,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9441
9441
  }), 128))
9442
9442
  ])
9443
9443
  ], 512)) : createCommentVNode("", true),
9444
- createElementVNode("div", _hoisted_3$s, [
9445
- createElementVNode("div", _hoisted_4$j, [
9444
+ createElementVNode("div", _hoisted_3$r, [
9445
+ createElementVNode("div", _hoisted_4$i, [
9446
9446
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(nonFixedHeaderColumns), (column) => {
9447
9447
  return openBlock(), createBlock(readerHeaderTd, {
9448
9448
  key: column.field,
@@ -9567,7 +9567,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9567
9567
  }, null, 8, ["text"])
9568
9568
  ]),
9569
9569
  _: 2
9570
- }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(_sfc_main$17, {
9570
+ }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(_sfc_main$16, {
9571
9571
  key: 1,
9572
9572
  "render-fn": getCachedRenderResult(column, row)
9573
9573
  }, null, 8, ["render-fn"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
@@ -9621,7 +9621,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9621
9621
  }, null, 8, ["text"])
9622
9622
  ]),
9623
9623
  _: 2
9624
- }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(_sfc_main$17, {
9624
+ }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(_sfc_main$16, {
9625
9625
  key: 1,
9626
9626
  "render-fn": getCachedRenderResult(column, row)
9627
9627
  }, null, 8, ["render-fn"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
@@ -9674,7 +9674,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9674
9674
  }, null, 8, ["text"])
9675
9675
  ]),
9676
9676
  _: 2
9677
- }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(_sfc_main$17, {
9677
+ }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(_sfc_main$16, {
9678
9678
  key: 1,
9679
9679
  "render-fn": getCachedRenderResult(column, row)
9680
9680
  }, null, 8, ["render-fn"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
@@ -9697,7 +9697,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9697
9697
  class: "lew-table-drag-tooltip",
9698
9698
  style: normalizeStyle(unref(state).tooltipStyle)
9699
9699
  }, [
9700
- createVNode(_sfc_main$17, { "render-fn": unref(tooltipComponent) }, null, 8, ["render-fn"])
9700
+ createVNode(_sfc_main$16, { "render-fn": unref(tooltipComponent) }, null, 8, ["render-fn"])
9701
9701
  ], 4), [
9702
9702
  [vShow, unref(state).showTooltip]
9703
9703
  ])
@@ -10054,11 +10054,11 @@ const treeItemEmits = {
10054
10054
  change: () => true,
10055
10055
  expand: () => true
10056
10056
  };
10057
- const _hoisted_1$P = {
10057
+ const _hoisted_1$O = {
10058
10058
  key: 0,
10059
10059
  class: "lew-tree-item-main"
10060
10060
  };
10061
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
10061
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10062
10062
  __name: "LewTreeItem",
10063
10063
  props: treeItemProps,
10064
10064
  emits: treeItemEmits,
@@ -10250,8 +10250,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
10250
10250
  certain: unref(isNodePartiallySelected)
10251
10251
  }
10252
10252
  }, void 0, true) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
10253
- createVNode(_sfc_main$17, { "render-fn": _ctx.icon }, null, 8, ["render-fn"]),
10254
- createVNode(_sfc_main$17, {
10253
+ createVNode(_sfc_main$16, { "render-fn": _ctx.icon }, null, 8, ["render-fn"]),
10254
+ createVNode(_sfc_main$16, {
10255
10255
  "render-fn": _ctx.label,
10256
10256
  type: "text-trim",
10257
10257
  "component-props": {
@@ -10262,9 +10262,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
10262
10262
  ], 64))
10263
10263
  ])
10264
10264
  ], 2),
10265
- !_ctx.isLeaf ? (openBlock(), createBlock(unref(_sfc_main$1b), { key: 0 }, {
10265
+ !_ctx.isLeaf ? (openBlock(), createBlock(unref(_sfc_main$1a), { key: 0 }, {
10266
10266
  default: withCtx(() => [
10267
- (unref(expandKeys) || []).length > 0 && unref(expandKeys).includes(_ctx.__key) || unref(expandAll) ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
10267
+ (unref(expandKeys) || []).length > 0 && unref(expandKeys).includes(_ctx.__key) || unref(expandAll) ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
10268
10268
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
10269
10269
  ])) : createCommentVNode("", true)
10270
10270
  ]),
@@ -10274,13 +10274,13 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
10274
10274
  };
10275
10275
  }
10276
10276
  });
10277
- const LewTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-c9c35953"]]);
10278
- const _hoisted_1$O = {
10277
+ const LewTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-c9c35953"]]);
10278
+ const _hoisted_1$N = {
10279
10279
  key: 0,
10280
10280
  class: "lew-result-count"
10281
10281
  };
10282
10282
  const DEBOUNCE_TIME = 250;
10283
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10283
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10284
10284
  __name: "LewTree",
10285
10285
  props: /* @__PURE__ */ mergeModels(treeProps, {
10286
10286
  "modelValue": {},
@@ -10423,7 +10423,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10423
10423
  placeholder: unref(locale).t("tree.searchPlaceholder"),
10424
10424
  onInput: _cache[1] || (_cache[1] = ($event) => search(unref(keyword)))
10425
10425
  }, null, 8, ["modelValue", "placeholder"]),
10426
- _ctx.searchable && unref(getResultText) ? (openBlock(), createElementBlock("div", _hoisted_1$O, toDisplayString$1(unref(getResultText)), 1)) : createCommentVNode("", true)
10426
+ _ctx.searchable && unref(getResultText) ? (openBlock(), createElementBlock("div", _hoisted_1$N, toDisplayString$1(unref(getResultText)), 1)) : createCommentVNode("", true)
10427
10427
  ]),
10428
10428
  _: 1
10429
10429
  })) : createCommentVNode("", true),
@@ -10469,7 +10469,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10469
10469
  };
10470
10470
  }
10471
10471
  });
10472
- const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-cad21cb7"]]);
10472
+ const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-cad21cb7"]]);
10473
10473
  const alertEmits = {
10474
10474
  close: () => true
10475
10475
  };
@@ -10507,16 +10507,16 @@ const alertProps = {
10507
10507
  })
10508
10508
  }
10509
10509
  };
10510
- const _hoisted_1$N = { class: "lew-alert-message" };
10511
- const _hoisted_2$y = {
10510
+ const _hoisted_1$M = { class: "lew-alert-message" };
10511
+ const _hoisted_2$x = {
10512
10512
  key: 0,
10513
10513
  class: "lew-alert-title"
10514
10514
  };
10515
- const _hoisted_3$r = {
10515
+ const _hoisted_3$q = {
10516
10516
  key: 1,
10517
10517
  class: "lew-alert-title"
10518
10518
  };
10519
- const _hoisted_4$i = {
10519
+ const _hoisted_4$h = {
10520
10520
  key: 2,
10521
10521
  class: "lew-alert-content"
10522
10522
  };
@@ -10528,7 +10528,7 @@ const _hoisted_6$a = {
10528
10528
  key: 4,
10529
10529
  class: "lew-alert-footer"
10530
10530
  };
10531
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10531
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10532
10532
  __name: "LewAlert",
10533
10533
  props: alertProps,
10534
10534
  emits: alertEmits,
@@ -10551,11 +10551,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10551
10551
  size: 18,
10552
10552
  type: props.type
10553
10553
  }, null, 8, ["type"]),
10554
- createElementVNode("div", _hoisted_1$N, [
10555
- _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
10554
+ createElementVNode("div", _hoisted_1$M, [
10555
+ _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
10556
10556
  renderSlot(_ctx.$slots, "title", {}, void 0, true)
10557
- ])) : props.title ? (openBlock(), createElementBlock("div", _hoisted_3$r, toDisplayString$1(props.title), 1)) : createCommentVNode("", true),
10558
- _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
10557
+ ])) : props.title ? (openBlock(), createElementBlock("div", _hoisted_3$q, toDisplayString$1(props.title), 1)) : createCommentVNode("", true),
10558
+ _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_4$h, [
10559
10559
  renderSlot(_ctx.$slots, "content", {}, void 0, true)
10560
10560
  ])) : props.content ? (openBlock(), createElementBlock("div", _hoisted_5$f, toDisplayString$1(props.content), 1)) : createCommentVNode("", true),
10561
10561
  _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
@@ -10572,7 +10572,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10572
10572
  };
10573
10573
  }
10574
10574
  });
10575
- const LewAlert = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-cb5288ad"]]);
10575
+ const LewAlert = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-cb5288ad"]]);
10576
10576
  const drawerEmits = {
10577
10577
  close: () => true
10578
10578
  };
@@ -10744,7 +10744,6 @@ function useTreeSelection() {
10744
10744
  flush();
10745
10745
  }
10746
10746
  function addKey(key) {
10747
- console.log(parentMap, childrenMap, key);
10748
10747
  if (!parentMap.has(key) && !childrenMap.has(key)) {
10749
10748
  return;
10750
10749
  }
@@ -10791,11 +10790,12 @@ function useTreeSelection() {
10791
10790
  const findInTree = (nodes, targetValues) => {
10792
10791
  for (const node of nodes) {
10793
10792
  if (targetValues.includes(node.key)) {
10794
- foundItems.push({
10795
- key: node.key,
10796
- disabled: node.disabled,
10793
+ const item = {
10794
+ ...node,
10797
10795
  isLeaf: !node.children || node.children.length === 0
10798
- });
10796
+ };
10797
+ delete item.children;
10798
+ foundItems.push(item);
10799
10799
  }
10800
10800
  if (node.children && node.children.length > 0) {
10801
10801
  findInTree(node.children, targetValues);
@@ -10927,17 +10927,17 @@ const drawerProps = {
10927
10927
  })
10928
10928
  }
10929
10929
  };
10930
- const _hoisted_1$M = {
10930
+ const _hoisted_1$L = {
10931
10931
  key: 0,
10932
10932
  class: "lew-drawer-header-slot"
10933
10933
  };
10934
- const _hoisted_2$x = { class: "lew-drawer-title" };
10935
- const _hoisted_3$q = { class: "lew-drawer-body-slot" };
10936
- const _hoisted_4$h = {
10934
+ const _hoisted_2$w = { class: "lew-drawer-title" };
10935
+ const _hoisted_3$p = { class: "lew-drawer-body-slot" };
10936
+ const _hoisted_4$g = {
10937
10937
  key: 2,
10938
10938
  class: "lew-drawer-footer-slot"
10939
10939
  };
10940
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10940
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10941
10941
  __name: "LewDrawer",
10942
10942
  props: /* @__PURE__ */ mergeModels(drawerProps, {
10943
10943
  "visible": {},
@@ -11080,7 +11080,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
11080
11080
  style: normalizeStyle(`${getStyle(props.position, props.width, props.height)}; z-index:${props.zIndex}`),
11081
11081
  class: normalizeClass(["lew-drawer-body", `${unref(object2class)("lew-drawer-body", { position: props.position })} ${visible.value ? "lew-drawer-body-show" : ""}`])
11082
11082
  }, [
11083
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
11083
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
11084
11084
  renderSlot(_ctx.$slots, "header")
11085
11085
  ])) : props.title ? (openBlock(), createBlock(unref(LewFlex), {
11086
11086
  key: 1,
@@ -11089,7 +11089,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
11089
11089
  class: "lew-drawer-header"
11090
11090
  }, {
11091
11091
  default: withCtx(() => [
11092
- createElementVNode("div", _hoisted_2$x, toDisplayString$1(props.title), 1),
11092
+ createElementVNode("div", _hoisted_2$w, toDisplayString$1(props.title), 1),
11093
11093
  createVNode(unref(LewButton), {
11094
11094
  type: "light",
11095
11095
  color: "gray",
@@ -11110,10 +11110,10 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
11110
11110
  ]),
11111
11111
  _: 1
11112
11112
  })) : createCommentVNode("", true),
11113
- createElementVNode("div", _hoisted_3$q, [
11113
+ createElementVNode("div", _hoisted_3$p, [
11114
11114
  renderSlot(_ctx.$slots, "default")
11115
11115
  ]),
11116
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4$h, [
11116
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4$g, [
11117
11117
  renderSlot(_ctx.$slots, "footer")
11118
11118
  ])) : !props.hideFooter ? (openBlock(), createBlock(unref(LewFlex), {
11119
11119
  key: 3,
@@ -11207,8 +11207,8 @@ const emptyProps = {
11207
11207
  })
11208
11208
  }
11209
11209
  };
11210
- const _hoisted_1$L = ["src", "alt"];
11211
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11210
+ const _hoisted_1$K = ["src", "alt"];
11211
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11212
11212
  __name: "LewEmpty",
11213
11213
  props: emptyProps,
11214
11214
  setup(__props) {
@@ -11236,7 +11236,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11236
11236
  src: iconSrc.value,
11237
11237
  alt: _ctx.title,
11238
11238
  class: "lew-empty-icon"
11239
- }, null, 8, _hoisted_1$L),
11239
+ }, null, 8, _hoisted_1$K),
11240
11240
  _ctx.title ? (openBlock(), createElementBlock("div", {
11241
11241
  key: 0,
11242
11242
  style: normalizeStyle(titleStyle.value),
@@ -11247,7 +11247,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11247
11247
  };
11248
11248
  }
11249
11249
  });
11250
- const LewEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-e73d3263"]]);
11250
+ const LewEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-e73d3263"]]);
11251
11251
  const modalEmits = {
11252
11252
  close: () => true
11253
11253
  };
@@ -11355,15 +11355,15 @@ const modalProps = {
11355
11355
  })
11356
11356
  }
11357
11357
  };
11358
- const _hoisted_1$K = {
11358
+ const _hoisted_1$J = {
11359
11359
  key: 0,
11360
11360
  class: "lew-modal-header-slot"
11361
11361
  };
11362
- const _hoisted_2$w = {
11362
+ const _hoisted_2$v = {
11363
11363
  key: 2,
11364
11364
  class: "lew-modal-footer-slot"
11365
11365
  };
11366
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
11366
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
11367
11367
  __name: "LewModal",
11368
11368
  props: /* @__PURE__ */ mergeModels(modalProps, {
11369
11369
  "visible": {},
@@ -11506,7 +11506,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11506
11506
  style: normalizeStyle(getModalStyle.value),
11507
11507
  class: "lew-modal-body"
11508
11508
  }, [
11509
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
11509
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
11510
11510
  renderSlot(_ctx.$slots, "header", {}, void 0, true)
11511
11511
  ])) : props.title ? (openBlock(), createBlock(unref(LewFlex), {
11512
11512
  key: 1,
@@ -11545,7 +11545,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11545
11545
  }, [
11546
11546
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
11547
11547
  ], 4),
11548
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
11548
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11549
11549
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
11550
11550
  ])) : !props.hideFooter ? (openBlock(), createBlock(unref(LewFlex), {
11551
11551
  key: 3,
@@ -11580,7 +11580,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11580
11580
  };
11581
11581
  }
11582
11582
  });
11583
- const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-6c686b17"]]);
11583
+ const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-6c686b17"]]);
11584
11584
  const popokButtonProps = {
11585
11585
  icon: {
11586
11586
  type: null,
@@ -11673,15 +11673,15 @@ const popokButtonProps = {
11673
11673
  })
11674
11674
  }
11675
11675
  };
11676
- const _hoisted_1$J = {
11676
+ const _hoisted_1$I = {
11677
11677
  key: 0,
11678
11678
  class: "lew-popok-box-left"
11679
11679
  };
11680
- const _hoisted_2$v = { class: "lew-popok-box-right" };
11681
- const _hoisted_3$p = { class: "lew-popok-box-right-header" };
11682
- const _hoisted_4$g = { class: "lew-popok-box-right-main" };
11680
+ const _hoisted_2$u = { class: "lew-popok-box-right" };
11681
+ const _hoisted_3$o = { class: "lew-popok-box-right-header" };
11682
+ const _hoisted_4$f = { class: "lew-popok-box-right-main" };
11683
11683
  const _hoisted_5$e = { class: "lew-popok-box-footer" };
11684
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
11684
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
11685
11685
  __name: "LewPopok",
11686
11686
  props: popokButtonProps,
11687
11687
  setup(__props) {
@@ -11715,7 +11715,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
11715
11715
  });
11716
11716
  return (_ctx, _cache) => {
11717
11717
  const _component_LewFlex = resolveComponent("LewFlex");
11718
- return openBlock(), createBlock(unref(_sfc_main$V), {
11718
+ return openBlock(), createBlock(unref(_sfc_main$U), {
11719
11719
  ref_key: "lewPopoverRef",
11720
11720
  ref: lewPopoverRef,
11721
11721
  class: "lew-popok",
@@ -11742,22 +11742,22 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
11742
11742
  default: withCtx(() => [
11743
11743
  createVNode(_component_LewFlex, { y: "start" }, {
11744
11744
  default: withCtx(() => [
11745
- !_ctx.hideIcon ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
11745
+ !_ctx.hideIcon ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
11746
11746
  !_ctx.icon ? (openBlock(), createBlock(CommonIcon, {
11747
11747
  key: 0,
11748
11748
  type: _ctx.type,
11749
11749
  size: 24
11750
- }, null, 8, ["type"])) : (openBlock(), createBlock(_sfc_main$17, {
11750
+ }, null, 8, ["type"])) : (openBlock(), createBlock(_sfc_main$16, {
11751
11751
  key: 1,
11752
11752
  "render-fn": _ctx.icon
11753
11753
  }, null, 8, ["render-fn"]))
11754
11754
  ])) : createCommentVNode("", true),
11755
- createElementVNode("div", _hoisted_2$v, [
11756
- createElementVNode("div", _hoisted_3$p, [
11757
- createVNode(_sfc_main$17, { "render-fn": _ctx.title }, null, 8, ["render-fn"])
11755
+ createElementVNode("div", _hoisted_2$u, [
11756
+ createElementVNode("div", _hoisted_3$o, [
11757
+ createVNode(_sfc_main$16, { "render-fn": _ctx.title }, null, 8, ["render-fn"])
11758
11758
  ]),
11759
- createElementVNode("div", _hoisted_4$g, [
11760
- createVNode(_sfc_main$17, { "render-fn": _ctx.content }, null, 8, ["render-fn"])
11759
+ createElementVNode("div", _hoisted_4$f, [
11760
+ createVNode(_sfc_main$16, { "render-fn": _ctx.content }, null, 8, ["render-fn"])
11761
11761
  ])
11762
11762
  ])
11763
11763
  ]),
@@ -11793,7 +11793,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
11793
11793
  };
11794
11794
  }
11795
11795
  });
11796
- const LewPopok = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-6ea072ca"]]);
11796
+ const LewPopok = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-6ea072ca"]]);
11797
11797
  const popoverEmits = {
11798
11798
  show: () => true,
11799
11799
  hide: () => true
@@ -14517,8 +14517,8 @@ const popoverProps = {
14517
14517
  })
14518
14518
  }
14519
14519
  };
14520
- const _hoisted_1$I = { class: "lew-popover" };
14521
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
14520
+ const _hoisted_1$H = { class: "lew-popover" };
14521
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
14522
14522
  __name: "LewPopover",
14523
14523
  props: popoverProps,
14524
14524
  emits: popoverEmits,
@@ -14651,7 +14651,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
14651
14651
  __expose({ show, hide: hide2, refresh });
14652
14652
  return (_ctx, _cache) => {
14653
14653
  const _directive_loading = resolveDirective("loading");
14654
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
14654
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
14655
14655
  createElementVNode("div", {
14656
14656
  ref_key: "triggerRef",
14657
14657
  ref: triggerRef,
@@ -14687,16 +14687,16 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
14687
14687
  }
14688
14688
  });
14689
14689
  const cascaderEmits = {
14690
- change: (value) => value,
14690
+ change: (value, items) => ({ value, items }),
14691
14691
  clear: () => true,
14692
14692
  delete: (value, deletedItem) => ({ value, deletedItem })
14693
14693
  };
14694
- const _hoisted_1$H = {
14694
+ const _hoisted_1$G = {
14695
14695
  key: 0,
14696
14696
  class: "lew-icon-loading-box"
14697
14697
  };
14698
- const _hoisted_2$u = ["value", "title", "readonly", "placeholder"];
14699
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
14698
+ const _hoisted_2$t = ["value", "title", "readonly", "placeholder"];
14699
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14700
14700
  __name: "CommonInput",
14701
14701
  props: /* @__PURE__ */ mergeModels({
14702
14702
  size: {
@@ -14887,10 +14887,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
14887
14887
  function focus() {
14888
14888
  if (props.multiple) {
14889
14889
  setTimeout(() => {
14890
- searchInputRef.value.focus();
14890
+ searchInputRef.value?.focus();
14891
14891
  }, 100);
14892
14892
  } else {
14893
- inputRef.value.focus();
14893
+ inputRef.value?.focus();
14894
14894
  }
14895
14895
  }
14896
14896
  const selectIconClass = computed(() => {
@@ -14910,7 +14910,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
14910
14910
  style: normalizeStyle({ width: unref(any2px)(__props.width) }),
14911
14911
  onClick: focus
14912
14912
  }, [
14913
- __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
14913
+ __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
14914
14914
  createVNode(CommonIcon, {
14915
14915
  size: unref(getIconSize),
14916
14916
  loading: __props.loading,
@@ -14945,7 +14945,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
14945
14945
  readonly: !__props.searchable,
14946
14946
  placeholder: unref(placeholderText),
14947
14947
  onInput: inputHandle
14948
- }, null, 44, _hoisted_2$u),
14948
+ }, null, 44, _hoisted_2$t),
14949
14949
  withDirectives(createElementVNode("div", { class: "lew-placeholder" }, toDisplayString$1(unref(placeholderText)), 513), [
14950
14950
  [vShow, unref(showPlaceholder)]
14951
14951
  ])
@@ -14996,7 +14996,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
14996
14996
  };
14997
14997
  }
14998
14998
  });
14999
- const CommonInput = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-0c5ae7d7"]]);
14999
+ const CommonInput = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-f8a0c098"]]);
15000
15000
  function vue3h(ele, props, children) {
15001
15001
  const { attrs, on, ...rest } = props;
15002
15002
  let event = {};
@@ -15946,6 +15946,7 @@ function formatTree(tree, parentValuePaths = [], parentLabelPaths = []) {
15946
15946
  const level = valuePaths.length - 1;
15947
15947
  const formattedNode = {
15948
15948
  ...node,
15949
+ key: value,
15949
15950
  valuePaths,
15950
15951
  labelPaths,
15951
15952
  level,
@@ -16145,13 +16146,13 @@ const cascaderProps = {
16145
16146
  })
16146
16147
  }
16147
16148
  };
16148
- const _hoisted_1$G = {
16149
+ const _hoisted_1$F = {
16149
16150
  key: 0,
16150
16151
  class: "lew-cascader-options-box"
16151
16152
  };
16152
- const _hoisted_2$t = ["onClick"];
16153
- const _hoisted_3$o = ["title"];
16154
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
16153
+ const _hoisted_2$s = ["onClick"];
16154
+ const _hoisted_3$n = ["title"];
16155
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
16155
16156
  __name: "LewCascader",
16156
16157
  props: /* @__PURE__ */ mergeModels(cascaderProps, {
16157
16158
  "modelValue": {},
@@ -16214,7 +16215,6 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16214
16215
  return props.multiple ? [] : "";
16215
16216
  }
16216
16217
  if (!props.multiple && modelValue.value) {
16217
- console.log(state.optionsTree, modelValue.value);
16218
16218
  const result = findObjectByValue(
16219
16219
  state.optionsTree,
16220
16220
  modelValue.value,
@@ -16261,28 +16261,25 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16261
16261
  toggleKey,
16262
16262
  findItemsByValues
16263
16263
  } = useTreeSelection();
16264
- function convertToTreeNodes(options) {
16265
- return options.map((option) => ({
16266
- key: option.value,
16267
- children: option.children ? convertToTreeNodes(option.children) : void 0,
16268
- disabled: option.disabled
16269
- }));
16270
- }
16271
16264
  function updateTreeStructure() {
16272
16265
  if (state.optionsTree.length > 0 && !props.free) {
16273
- const tree = convertToTreeNodes(state.optionsTree);
16274
16266
  const currentKeys = modelValue.value && Array.isArray(modelValue.value) ? modelValue.value : [];
16275
- initTreeSelection({ tree, keys: currentKeys });
16267
+ initTreeSelection({ tree: state.optionsTree, keys: currentKeys });
16276
16268
  }
16277
16269
  }
16278
16270
  function updateModelValue() {
16279
16271
  isInternalUpdate = true;
16272
+ let _value;
16273
+ let _items;
16280
16274
  if (props.onlyLeafSelectable) {
16281
- modelValue.value = findItemsByValues(selectedKeys.value).filter((item) => item.isLeaf).map((item) => item.key);
16275
+ _items = findItemsByValues(selectedKeys.value).filter((item) => item.isLeaf);
16276
+ _value = _items.map((item) => item.key);
16282
16277
  } else {
16283
- modelValue.value = cloneDeep(selectedKeys.value);
16278
+ _value = cloneDeep(selectedKeys.value);
16279
+ _items = findItemsByValues(selectedKeys.value);
16284
16280
  }
16285
- emit("change", modelValue.value);
16281
+ modelValue.value = _value;
16282
+ emit("change", _value, _items);
16286
16283
  nextTick(() => {
16287
16284
  isInternalUpdate = false;
16288
16285
  });
@@ -16325,8 +16322,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16325
16322
  state.optionsGroup = [formattedTree];
16326
16323
  state.optionsTree = formattedTree;
16327
16324
  if (formattedTree.length > 0 && !props.free) {
16328
- const tree = convertToTreeNodes(formattedTree);
16329
- initTreeSelection({ tree, keys: modelValue.value });
16325
+ initTreeSelection({ tree: formattedTree, keys: modelValue.value });
16330
16326
  }
16331
16327
  } catch (error) {
16332
16328
  console.error("Cascader initialization failed:", error);
@@ -16343,15 +16339,18 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16343
16339
  }
16344
16340
  const itemValue = item.value;
16345
16341
  if (props.free) {
16342
+ let _value = modelValue.value;
16346
16343
  const isSelected2 = modelValue.value?.includes(itemValue);
16347
16344
  if (isSelected2) {
16348
- modelValue.value = (modelValue.value || []).filter(
16345
+ _value = (modelValue.value || []).filter(
16349
16346
  (value) => value !== itemValue
16350
16347
  );
16351
16348
  } else {
16352
- modelValue.value = [...modelValue.value || [], itemValue];
16349
+ _value = [...modelValue.value || [], itemValue];
16353
16350
  }
16354
- emit("change", modelValue.value);
16351
+ const _items = findItemsByValues(_value);
16352
+ modelValue.value = _value;
16353
+ emit("change", _value, _items);
16355
16354
  } else {
16356
16355
  toggleKey(itemValue);
16357
16356
  updateModelValue();
@@ -16360,6 +16359,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16360
16359
  lewPopoverRef.value && lewPopoverRef.value.refresh();
16361
16360
  }, 100);
16362
16361
  }
16362
+ function getSelected() {
16363
+ if (props.multiple) {
16364
+ return findItemsByValues(modelValue.value);
16365
+ } else {
16366
+ return findObjectByValue(state.optionsTree, modelValue.value, nodeCache);
16367
+ }
16368
+ }
16363
16369
  async function selectItem(item, level) {
16364
16370
  if (item.disabled) return;
16365
16371
  if (!item.isLeaf && !isEqual(item.valuePaths, state.activeValues)) {
@@ -16439,7 +16445,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16439
16445
  initTreeSelection({ keys: [] });
16440
16446
  isInternalUpdate = true;
16441
16447
  modelValue.value = void 0;
16442
- emit("change", modelValue.value);
16448
+ emit("change", void 0, void 0);
16443
16449
  emit("clear");
16444
16450
  nextTick(() => {
16445
16451
  isInternalUpdate = false;
@@ -16501,9 +16507,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16501
16507
  state.optionsGroup = [formattedTree];
16502
16508
  state.optionsTree = formattedTree;
16503
16509
  if (formattedTree.length > 0) {
16504
- const tree = convertToTreeNodes(formattedTree);
16505
16510
  if (modelValue.value && Array.isArray(modelValue.value) && modelValue.value.length > 0 && !props.free) {
16506
- initTreeSelection({ tree, keys: modelValue.value });
16511
+ initTreeSelection({ tree: formattedTree, keys: modelValue.value });
16507
16512
  }
16508
16513
  }
16509
16514
  }
@@ -16535,10 +16540,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16535
16540
  init();
16536
16541
  __expose({
16537
16542
  show,
16538
- hide: hide2
16543
+ hide: hide2,
16544
+ getSelected
16539
16545
  });
16540
16546
  return (_ctx, _cache) => {
16541
- return openBlock(), createBlock(unref(_sfc_main$V), {
16547
+ return openBlock(), createBlock(unref(_sfc_main$U), {
16542
16548
  ref_key: "lewPopoverRef",
16543
16549
  ref: lewPopoverRef,
16544
16550
  class: "lew-cascader-view",
@@ -16577,7 +16583,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16577
16583
  renderSlot(_ctx.$slots, "header", {}, void 0, true),
16578
16584
  createVNode(Transition, { name: "fade" }, {
16579
16585
  default: withCtx(() => [
16580
- unref(state).optionsGroup.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
16586
+ unref(state).optionsGroup.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
16581
16587
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(state).optionsGroup, (oItem, oIndex) => {
16582
16588
  return openBlock(), createElementBlock("div", {
16583
16589
  key: oIndex,
@@ -16616,7 +16622,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16616
16622
  style: normalizeStyle({
16617
16623
  width: props.multiple ? "calc(100% - 36px)" : "100%"
16618
16624
  })
16619
- }, toDisplayString$1(templateProps.label), 13, _hoisted_3$o),
16625
+ }, toDisplayString$1(templateProps.label), 13, _hoisted_3$n),
16620
16626
  withDirectives(createVNode(CommonIcon, {
16621
16627
  size: 14,
16622
16628
  loading: "",
@@ -16633,7 +16639,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16633
16639
  [vShow, !templateProps.loading && !templateProps.isLeaf]
16634
16640
  ])
16635
16641
  ], 2)
16636
- ], 8, _hoisted_2$t)
16642
+ ], 8, _hoisted_2$s)
16637
16643
  ]),
16638
16644
  _: 2
16639
16645
  }, 1032, ["list"]))
@@ -16650,7 +16656,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
16650
16656
  };
16651
16657
  }
16652
16658
  });
16653
- const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-bf45522f"]]);
16659
+ const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-7f2ab0af"]]);
16654
16660
  const cascaderModel = {
16655
16661
  modelValue: {
16656
16662
  type: String
@@ -16805,16 +16811,16 @@ const checkboxGroupProps = {
16805
16811
  })
16806
16812
  }
16807
16813
  };
16808
- const _hoisted_1$F = {
16814
+ const _hoisted_1$E = {
16809
16815
  key: 0,
16810
16816
  class: "lew-checkbox-icon-box"
16811
16817
  };
16812
- const _hoisted_2$s = { class: "lew-checkbox-icon-certain" };
16813
- const _hoisted_3$n = {
16818
+ const _hoisted_2$r = { class: "lew-checkbox-icon-certain" };
16819
+ const _hoisted_3$m = {
16814
16820
  key: 1,
16815
16821
  class: "lew-checkbox-label"
16816
16822
  };
16817
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
16823
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
16818
16824
  __name: "LewCheckbox",
16819
16825
  props: /* @__PURE__ */ mergeModels(checkboxProps, {
16820
16826
  "modelValue": {
@@ -16859,7 +16865,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
16859
16865
  return props.iconable || !props.iconable && !props.block;
16860
16866
  });
16861
16867
  function setChecked() {
16862
- if (props.disabled || props.readonly) return;
16868
+ if (props.disabled || props.readonly)
16869
+ return;
16863
16870
  const _value = cloneDeep(!modelValue.value);
16864
16871
  modelValue.value = _value;
16865
16872
  emit("change", _value);
@@ -16875,8 +16882,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
16875
16882
  class: normalizeClass(["lew-checkbox", unref(getCheckboxClassName)]),
16876
16883
  onClick: withModifiers(setChecked, ["stop"])
16877
16884
  }, [
16878
- unref(shouldShowIconBox) ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
16879
- withDirectives(createElementVNode("i", _hoisted_2$s, null, 512), [
16885
+ unref(shouldShowIconBox) ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
16886
+ withDirectives(createElementVNode("i", _hoisted_2$r, null, 512), [
16880
16887
  [vShow, _ctx.certain]
16881
16888
  ]),
16882
16889
  createVNode(CommonIcon, {
@@ -16886,13 +16893,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
16886
16893
  size: unref(getIconSize)
16887
16894
  }, null, 8, ["size"])
16888
16895
  ])) : createCommentVNode("", true),
16889
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString$1(_ctx.label), 1)) : createCommentVNode("", true)
16896
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString$1(_ctx.label), 1)) : createCommentVNode("", true)
16890
16897
  ], 2);
16891
16898
  };
16892
16899
  }
16893
16900
  });
16894
- const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-10be95a6"]]);
16895
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
16901
+ const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-624c4156"]]);
16902
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
16896
16903
  __name: "LewCheckboxGroup",
16897
16904
  props: /* @__PURE__ */ mergeModels(checkboxGroupProps, {
16898
16905
  "modelValue": {
@@ -16980,7 +16987,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
16980
16987
  };
16981
16988
  }
16982
16989
  });
16983
- const LewCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-af58b094"]]);
16990
+ const LewCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-af58b094"]]);
16984
16991
  const checkboxModel = {
16985
16992
  modelValue: {
16986
16993
  type: Boolean,
@@ -17041,8 +17048,8 @@ const colorPickerProps = {
17041
17048
  })
17042
17049
  }
17043
17050
  };
17044
- const _hoisted_1$E = ["placeholder"];
17045
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
17051
+ const _hoisted_1$D = ["placeholder"];
17052
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
17046
17053
  __name: "LewColorPicker",
17047
17054
  props: /* @__PURE__ */ mergeModels(colorPickerProps, {
17048
17055
  "modelValue": { required: true },
@@ -17159,7 +17166,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
17159
17166
  placeholder: unref(getDisplayPlaceholder),
17160
17167
  onFocus: focus,
17161
17168
  onBlur: blur
17162
- }, null, 44, _hoisted_1$E), [
17169
+ }, null, 44, _hoisted_1$D), [
17163
17170
  [vModelText, modelValue.value]
17164
17171
  ])
17165
17172
  ], 6)
@@ -17167,7 +17174,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
17167
17174
  };
17168
17175
  }
17169
17176
  });
17170
- const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-2dd5922b"]]);
17177
+ const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-2dd5922b"]]);
17171
17178
  const colorPickerModel = {
17172
17179
  modelValue: {
17173
17180
  type: String
@@ -17774,10 +17781,10 @@ function getMonthDate(year, month) {
17774
17781
  }
17775
17782
  return ret;
17776
17783
  }
17777
- const _hoisted_1$D = { class: "lew-date" };
17778
- const _hoisted_2$r = { class: "lew-date-control-left" };
17779
- const _hoisted_3$m = { class: "cur-date" };
17780
- const _hoisted_4$f = { class: "lew-date-control-right" };
17784
+ const _hoisted_1$C = { class: "lew-date" };
17785
+ const _hoisted_2$q = { class: "lew-date-control-left" };
17786
+ const _hoisted_3$l = { class: "cur-date" };
17787
+ const _hoisted_4$e = { class: "lew-date-control-right" };
17781
17788
  const _hoisted_5$d = { class: "lew-date-box" };
17782
17789
  const _hoisted_6$9 = { class: "lew-date-num" };
17783
17790
  const _hoisted_7$7 = ["onClick"];
@@ -17787,7 +17794,7 @@ const _hoisted_9$6 = {
17787
17794
  class: "lew-date-item-today"
17788
17795
  };
17789
17796
  const _hoisted_10$4 = { class: "lew-date-value" };
17790
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
17797
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
17791
17798
  __name: "LewDate",
17792
17799
  props: {
17793
17800
  valueFormat: {
@@ -17901,14 +17908,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
17901
17908
  }
17902
17909
  __expose({ init, getValue: getValue2 });
17903
17910
  return (_ctx, _cache) => {
17904
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
17911
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
17905
17912
  createVNode(unref(LewFlex), {
17906
17913
  x: "start",
17907
17914
  mode: "between",
17908
17915
  class: "lew-date-control"
17909
17916
  }, {
17910
17917
  default: withCtx(() => [
17911
- createElementVNode("div", _hoisted_2$r, [
17918
+ createElementVNode("div", _hoisted_2$q, [
17912
17919
  createVNode(unref(LewButton), {
17913
17920
  type: "light",
17914
17921
  color: "gray",
@@ -17934,8 +17941,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
17934
17941
  _: 1
17935
17942
  })
17936
17943
  ]),
17937
- createElementVNode("div", _hoisted_3$m, toDisplayString$1(unref(dayjs)(`${unref(dateState).year}-${unref(dateState).month}`).format("YYYY-MM")), 1),
17938
- createElementVNode("div", _hoisted_4$f, [
17944
+ createElementVNode("div", _hoisted_3$l, toDisplayString$1(unref(dayjs)(`${unref(dateState).year}-${unref(dateState).month}`).format("YYYY-MM")), 1),
17945
+ createElementVNode("div", _hoisted_4$e, [
17939
17946
  createVNode(unref(LewButton), {
17940
17947
  type: "light",
17941
17948
  color: "gray",
@@ -17990,11 +17997,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
17990
17997
  };
17991
17998
  }
17992
17999
  });
17993
- const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-0e16ffbf"]]);
17994
- const _hoisted_1$C = { class: "lew-time-control" };
17995
- const _hoisted_2$q = { class: "cur-time" };
17996
- const _hoisted_3$l = { class: "lew-time-container" };
17997
- const _hoisted_4$e = { class: "lew-time-column" };
18000
+ const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-0e16ffbf"]]);
18001
+ const _hoisted_1$B = { class: "lew-time-control" };
18002
+ const _hoisted_2$p = { class: "cur-time" };
18003
+ const _hoisted_3$k = { class: "lew-time-container" };
18004
+ const _hoisted_4$d = { class: "lew-time-column" };
17998
18005
  const _hoisted_5$c = ["data-value", "onClick"];
17999
18006
  const _hoisted_6$8 = ["data-text"];
18000
18007
  const _hoisted_7$6 = { class: "lew-time-column" };
@@ -18008,7 +18015,7 @@ const _hoisted_11$3 = ["data-value", "onClick"];
18008
18015
  const _hoisted_12$2 = ["data-text"];
18009
18016
  const _hoisted_13$1 = { class: "lew-time-actions" };
18010
18017
  const ITEM_HEIGHT = 28;
18011
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
18018
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
18012
18019
  __name: "LewTime",
18013
18020
  props: {
18014
18021
  valueFormat: {
@@ -18282,8 +18289,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
18282
18289
  width: unref(showSeconds) ? "220px" : "160px"
18283
18290
  })
18284
18291
  }, [
18285
- createElementVNode("div", _hoisted_1$C, [
18286
- createElementVNode("div", _hoisted_2$q, toDisplayString$1(unref(_timeValue) || "00:00:00"), 1),
18292
+ createElementVNode("div", _hoisted_1$B, [
18293
+ createElementVNode("div", _hoisted_2$p, toDisplayString$1(unref(_timeValue) || "00:00:00"), 1),
18287
18294
  createVNode(unref(LewButton), {
18288
18295
  type: "light",
18289
18296
  color: "gray",
@@ -18296,11 +18303,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
18296
18303
  _: 1
18297
18304
  })
18298
18305
  ]),
18299
- createElementVNode("div", _hoisted_3$l, [
18306
+ createElementVNode("div", _hoisted_3$k, [
18300
18307
  _cache[16] || (_cache[16] = createElementVNode("div", { class: "lew-time-center-mask" }, null, -1)),
18301
18308
  _cache[17] || (_cache[17] = createElementVNode("div", { class: "lew-time-gradient-top" }, null, -1)),
18302
18309
  _cache[18] || (_cache[18] = createElementVNode("div", { class: "lew-time-gradient-bottom" }, null, -1)),
18303
- createElementVNode("div", _hoisted_4$e, [
18310
+ createElementVNode("div", _hoisted_4$d, [
18304
18311
  createElementVNode("div", {
18305
18312
  ref_key: "hourRef",
18306
18313
  ref: hourRef,
@@ -18407,15 +18414,15 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
18407
18414
  };
18408
18415
  }
18409
18416
  });
18410
- const LewTime = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-ce0dbc81"]]);
18411
- const _hoisted_1$B = { class: "lew-datetime" };
18412
- const _hoisted_2$p = { class: "lew-datetime-content" };
18413
- const _hoisted_3$k = { class: "lew-datetime-panel lew-datetime-date-panel" };
18414
- const _hoisted_4$d = { class: "lew-datetime-panel lew-datetime-time-panel" };
18417
+ const LewTime = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-ce0dbc81"]]);
18418
+ const _hoisted_1$A = { class: "lew-datetime" };
18419
+ const _hoisted_2$o = { class: "lew-datetime-content" };
18420
+ const _hoisted_3$j = { class: "lew-datetime-panel lew-datetime-date-panel" };
18421
+ const _hoisted_4$c = { class: "lew-datetime-panel lew-datetime-time-panel" };
18415
18422
  const _hoisted_5$b = { class: "lew-datetime-actions" };
18416
18423
  const _hoisted_6$7 = { class: "lew-datetime-actions-left" };
18417
18424
  const _hoisted_7$5 = { class: "lew-datetime-actions-right" };
18418
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
18425
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
18419
18426
  __name: "LewDateTime",
18420
18427
  props: {
18421
18428
  valueFormat: {
@@ -18487,16 +18494,16 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
18487
18494
  }
18488
18495
  __expose({ init });
18489
18496
  return (_ctx, _cache) => {
18490
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
18491
- createElementVNode("div", _hoisted_2$p, [
18492
- createElementVNode("div", _hoisted_3$k, [
18497
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
18498
+ createElementVNode("div", _hoisted_2$o, [
18499
+ createElementVNode("div", _hoisted_3$j, [
18493
18500
  createVNode(LewDate, {
18494
18501
  ref_key: "dateRef",
18495
18502
  ref: dateRef,
18496
18503
  "value-format": unref(dateFormat)
18497
18504
  }, null, 8, ["value-format"])
18498
18505
  ]),
18499
- createElementVNode("div", _hoisted_4$d, [
18506
+ createElementVNode("div", _hoisted_4$c, [
18500
18507
  createVNode(LewTime, {
18501
18508
  ref_key: "timeRef",
18502
18509
  ref: timeRef,
@@ -18550,11 +18557,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
18550
18557
  };
18551
18558
  }
18552
18559
  });
18553
- const LewDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-de4090a5"]]);
18554
- const _hoisted_1$A = { class: "lew-month" };
18555
- const _hoisted_2$o = { class: "lew-month-control-left" };
18556
- const _hoisted_3$j = { class: "cur-year" };
18557
- const _hoisted_4$c = { class: "lew-month-control-right" };
18560
+ const LewDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-de4090a5"]]);
18561
+ const _hoisted_1$z = { class: "lew-month" };
18562
+ const _hoisted_2$n = { class: "lew-month-control-left" };
18563
+ const _hoisted_3$i = { class: "cur-year" };
18564
+ const _hoisted_4$b = { class: "lew-month-control-right" };
18558
18565
  const _hoisted_5$a = { class: "lew-month-list" };
18559
18566
  const _hoisted_6$6 = ["onClick"];
18560
18567
  const _hoisted_7$4 = { class: "lew-month-label" };
@@ -18563,7 +18570,7 @@ const _hoisted_8$4 = {
18563
18570
  class: "lew-month-item-current"
18564
18571
  };
18565
18572
  const _hoisted_9$4 = { class: "lew-month-value" };
18566
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
18573
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
18567
18574
  __name: "LewMonth",
18568
18575
  props: {
18569
18576
  valueFormat: {
@@ -18638,14 +18645,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
18638
18645
  }
18639
18646
  __expose({ init });
18640
18647
  return (_ctx, _cache) => {
18641
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
18648
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
18642
18649
  createVNode(unref(LewFlex), {
18643
18650
  x: "start",
18644
18651
  mode: "between",
18645
18652
  class: "lew-month-control"
18646
18653
  }, {
18647
18654
  default: withCtx(() => [
18648
- createElementVNode("div", _hoisted_2$o, [
18655
+ createElementVNode("div", _hoisted_2$n, [
18649
18656
  createVNode(unref(LewButton), {
18650
18657
  type: "light",
18651
18658
  color: "gray",
@@ -18659,8 +18666,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
18659
18666
  _: 1
18660
18667
  })
18661
18668
  ]),
18662
- createElementVNode("div", _hoisted_3$j, toDisplayString$1(unref(monthState).year), 1),
18663
- createElementVNode("div", _hoisted_4$c, [
18669
+ createElementVNode("div", _hoisted_3$i, toDisplayString$1(unref(monthState).year), 1),
18670
+ createElementVNode("div", _hoisted_4$b, [
18664
18671
  createVNode(unref(LewButton), {
18665
18672
  type: "light",
18666
18673
  color: "gray",
@@ -18695,11 +18702,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
18695
18702
  };
18696
18703
  }
18697
18704
  });
18698
- const LewMonth = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-0cdc6c13"]]);
18699
- const _hoisted_1$z = { class: "lew-quarter" };
18700
- const _hoisted_2$n = { class: "lew-quarter-control-left" };
18701
- const _hoisted_3$i = { class: "cur-year" };
18702
- const _hoisted_4$b = { class: "lew-quarter-control-right" };
18705
+ const LewMonth = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-0cdc6c13"]]);
18706
+ const _hoisted_1$y = { class: "lew-quarter" };
18707
+ const _hoisted_2$m = { class: "lew-quarter-control-left" };
18708
+ const _hoisted_3$h = { class: "cur-year" };
18709
+ const _hoisted_4$a = { class: "lew-quarter-control-right" };
18703
18710
  const _hoisted_5$9 = { class: "lew-quarter-list" };
18704
18711
  const _hoisted_6$5 = ["onClick"];
18705
18712
  const _hoisted_7$3 = { class: "lew-quarter-label" };
@@ -18710,7 +18717,7 @@ const _hoisted_8$3 = {
18710
18717
  const _hoisted_9$3 = { class: "lew-quarter-value" };
18711
18718
  const _hoisted_10$2 = { class: "lew-quarter-main" };
18712
18719
  const _hoisted_11$2 = { class: "lew-quarter-months" };
18713
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
18720
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
18714
18721
  __name: "LewQuarter",
18715
18722
  props: {
18716
18723
  valueFormat: {
@@ -18776,14 +18783,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
18776
18783
  }
18777
18784
  __expose({ init });
18778
18785
  return (_ctx, _cache) => {
18779
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
18786
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
18780
18787
  createVNode(unref(LewFlex), {
18781
18788
  x: "start",
18782
18789
  mode: "between",
18783
18790
  class: "lew-quarter-control"
18784
18791
  }, {
18785
18792
  default: withCtx(() => [
18786
- createElementVNode("div", _hoisted_2$n, [
18793
+ createElementVNode("div", _hoisted_2$m, [
18787
18794
  createVNode(unref(LewButton), {
18788
18795
  type: "light",
18789
18796
  color: "gray",
@@ -18797,8 +18804,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
18797
18804
  _: 1
18798
18805
  })
18799
18806
  ]),
18800
- createElementVNode("div", _hoisted_3$i, toDisplayString$1(unref(currentYear)), 1),
18801
- createElementVNode("div", _hoisted_4$b, [
18807
+ createElementVNode("div", _hoisted_3$h, toDisplayString$1(unref(currentYear)), 1),
18808
+ createElementVNode("div", _hoisted_4$a, [
18802
18809
  createVNode(unref(LewButton), {
18803
18810
  type: "light",
18804
18811
  color: "gray",
@@ -18836,11 +18843,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
18836
18843
  };
18837
18844
  }
18838
18845
  });
18839
- const LewQuarter = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-8a82e927"]]);
18840
- const _hoisted_1$y = { class: "lew-year" };
18841
- const _hoisted_2$m = { class: "lew-year-control-left" };
18842
- const _hoisted_3$h = { class: "cur-decade" };
18843
- const _hoisted_4$a = { class: "lew-year-control-right" };
18846
+ const LewQuarter = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-8a82e927"]]);
18847
+ const _hoisted_1$x = { class: "lew-year" };
18848
+ const _hoisted_2$l = { class: "lew-year-control-left" };
18849
+ const _hoisted_3$g = { class: "cur-decade" };
18850
+ const _hoisted_4$9 = { class: "lew-year-control-right" };
18844
18851
  const _hoisted_5$8 = { class: "lew-year-list" };
18845
18852
  const _hoisted_6$4 = ["onClick"];
18846
18853
  const _hoisted_7$2 = { class: "lew-year-label" };
@@ -18849,7 +18856,7 @@ const _hoisted_8$2 = {
18849
18856
  class: "lew-year-item-current"
18850
18857
  };
18851
18858
  const _hoisted_9$2 = { class: "lew-year-value" };
18852
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
18859
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
18853
18860
  __name: "LewYear",
18854
18861
  props: {
18855
18862
  valueFormat: {
@@ -18919,14 +18926,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
18919
18926
  }
18920
18927
  __expose({ init });
18921
18928
  return (_ctx, _cache) => {
18922
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
18929
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
18923
18930
  createVNode(unref(LewFlex), {
18924
18931
  x: "start",
18925
18932
  mode: "between",
18926
18933
  class: "lew-year-control"
18927
18934
  }, {
18928
18935
  default: withCtx(() => [
18929
- createElementVNode("div", _hoisted_2$m, [
18936
+ createElementVNode("div", _hoisted_2$l, [
18930
18937
  createVNode(unref(LewButton), {
18931
18938
  type: "light",
18932
18939
  color: "gray",
@@ -18940,8 +18947,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
18940
18947
  _: 1
18941
18948
  })
18942
18949
  ]),
18943
- createElementVNode("div", _hoisted_3$h, toDisplayString$1(unref(yearState).startYear) + " - " + toDisplayString$1(unref(yearState).startYear + 11), 1),
18944
- createElementVNode("div", _hoisted_4$a, [
18950
+ createElementVNode("div", _hoisted_3$g, toDisplayString$1(unref(yearState).startYear) + " - " + toDisplayString$1(unref(yearState).startYear + 11), 1),
18951
+ createElementVNode("div", _hoisted_4$9, [
18945
18952
  createVNode(unref(LewButton), {
18946
18953
  type: "light",
18947
18954
  color: "gray",
@@ -18976,9 +18983,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
18976
18983
  };
18977
18984
  }
18978
18985
  });
18979
- const LewYear = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-a748ea05"]]);
18980
- const _hoisted_1$x = { class: "lew-panel" };
18981
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
18986
+ const LewYear = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-a748ea05"]]);
18987
+ const _hoisted_1$w = { class: "lew-panel" };
18988
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
18982
18989
  __name: "LewPanel",
18983
18990
  props: {
18984
18991
  type: {
@@ -19015,7 +19022,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
19015
19022
  }
19016
19023
  __expose({ init });
19017
19024
  return (_ctx, _cache) => {
19018
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
19025
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
19019
19026
  (openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
19020
19027
  ref_key: "currentComponentRef",
19021
19028
  ref: currentComponentRef,
@@ -19095,10 +19102,10 @@ const datePickerProps = {
19095
19102
  })
19096
19103
  }
19097
19104
  };
19098
- const _hoisted_1$w = { class: "lew-date-picker-view" };
19099
- const _hoisted_2$l = ["placeholder", "readonly", "disabled"];
19100
- const _hoisted_3$g = ["title", "onClick"];
19101
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
19105
+ const _hoisted_1$v = { class: "lew-date-picker-view" };
19106
+ const _hoisted_2$k = ["placeholder", "readonly", "disabled"];
19107
+ const _hoisted_3$f = ["title", "onClick"];
19108
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19102
19109
  __name: "LewDatePicker",
19103
19110
  props: /* @__PURE__ */ mergeModels(datePickerProps, {
19104
19111
  "modelValue": { required: true },
@@ -19264,7 +19271,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19264
19271
  __expose({ show, hide: hide2 });
19265
19272
  return (_ctx, _cache) => {
19266
19273
  const _component_lew_flex = resolveComponent("lew-flex");
19267
- return openBlock(), createBlock(unref(_sfc_main$V), {
19274
+ return openBlock(), createBlock(unref(_sfc_main$U), {
19268
19275
  ref_key: "lewPopoverRef",
19269
19276
  ref: lewPopoverRef,
19270
19277
  placement: "bottom-start",
@@ -19277,7 +19284,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19277
19284
  onHide: hideHandle
19278
19285
  }, {
19279
19286
  trigger: withCtx(() => [
19280
- createElementVNode("div", _hoisted_1$w, [
19287
+ createElementVNode("div", _hoisted_1$v, [
19281
19288
  createElementVNode("div", {
19282
19289
  class: normalizeClass(["lew-date-picker", unref(lewDatePickerClassNames)]),
19283
19290
  style: normalizeStyle(unref(getDatePickerInputStyle))
@@ -19295,7 +19302,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19295
19302
  onBlur: handleInputBlur,
19296
19303
  onInput: handleInput,
19297
19304
  onKeydown: handleKeydown
19298
- }, null, 40, _hoisted_2$l), [
19305
+ }, null, 40, _hoisted_2$k), [
19299
19306
  [vModelText, modelValue.value]
19300
19307
  ]),
19301
19308
  createVNode(CommonIcon, {
@@ -19342,14 +19349,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19342
19349
  unref(dayjs)(modelValue.value).isSame(item.value, "day") ? "lew-date-picker-presets-item-active" : ""
19343
19350
  ]]),
19344
19351
  onClick: ($event) => selectPresets(item)
19345
- }, toDisplayString$1(item.label), 11, _hoisted_3$g);
19352
+ }, toDisplayString$1(item.label), 11, _hoisted_3$f);
19346
19353
  }), 128))
19347
19354
  ]),
19348
19355
  _: 1
19349
19356
  })) : createCommentVNode("", true),
19350
19357
  createVNode(_component_lew_flex, { class: "lew-date-picker-date-panel" }, {
19351
19358
  default: withCtx(() => [
19352
- createVNode(_sfc_main$J, mergeProps({
19359
+ createVNode(_sfc_main$I, mergeProps({
19353
19360
  ref_key: "lewPanelRef",
19354
19361
  ref: lewPanelRef,
19355
19362
  type: unref(getPanelType)
@@ -19369,7 +19376,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19369
19376
  };
19370
19377
  }
19371
19378
  });
19372
- const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-1df6eca7"]]);
19379
+ const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1df6eca7"]]);
19373
19380
  const datePickerModel = {
19374
19381
  modelValue: {
19375
19382
  type: String
@@ -19503,10 +19510,10 @@ const dateRangeProps = {
19503
19510
  })
19504
19511
  }
19505
19512
  };
19506
- const _hoisted_1$v = { class: "lew-date-range" };
19507
- const _hoisted_2$k = { class: "lew-date" };
19508
- const _hoisted_3$f = { class: "lew-date-control-left" };
19509
- const _hoisted_4$9 = { class: "cur-date" };
19513
+ const _hoisted_1$u = { class: "lew-date-range" };
19514
+ const _hoisted_2$j = { class: "lew-date" };
19515
+ const _hoisted_3$e = { class: "lew-date-control-left" };
19516
+ const _hoisted_4$8 = { class: "cur-date" };
19510
19517
  const _hoisted_5$7 = { class: "lew-date-control-right" };
19511
19518
  const _hoisted_6$3 = { class: "lew-date-box" };
19512
19519
  const _hoisted_7$1 = { class: "lew-date-num" };
@@ -19526,7 +19533,7 @@ const _hoisted_17 = {
19526
19533
  key: 0,
19527
19534
  class: "lew-date-item-today"
19528
19535
  };
19529
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
19536
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19530
19537
  __name: "LewDateRange",
19531
19538
  props: /* @__PURE__ */ mergeModels(dateRangeProps, {
19532
19539
  "modelValue": {},
@@ -19789,15 +19796,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19789
19796
  ];
19790
19797
  });
19791
19798
  return (_ctx, _cache) => {
19792
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
19793
- createElementVNode("div", _hoisted_2$k, [
19799
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
19800
+ createElementVNode("div", _hoisted_2$j, [
19794
19801
  createVNode(unref(LewFlex), {
19795
19802
  x: "start",
19796
19803
  mode: "between",
19797
19804
  class: "lew-date-control"
19798
19805
  }, {
19799
19806
  default: withCtx(() => [
19800
- createElementVNode("div", _hoisted_3$f, [
19807
+ createElementVNode("div", _hoisted_3$e, [
19801
19808
  createVNode(unref(LewButton), {
19802
19809
  type: "light",
19803
19810
  color: "gray",
@@ -19823,7 +19830,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19823
19830
  _: 1
19824
19831
  })
19825
19832
  ]),
19826
- createElementVNode("div", _hoisted_4$9, toDisplayString$1(unref(dayjs)(`${unref(dateState).year1}-${unref(dateState).month1}`).format("YYYY-MM")), 1),
19833
+ createElementVNode("div", _hoisted_4$8, toDisplayString$1(unref(dayjs)(`${unref(dateState).year1}-${unref(dateState).month1}`).format("YYYY-MM")), 1),
19827
19834
  createElementVNode("div", _hoisted_5$7, [
19828
19835
  createVNode(unref(LewButton), {
19829
19836
  type: "light",
@@ -19976,17 +19983,17 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19976
19983
  };
19977
19984
  }
19978
19985
  });
19979
- const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-7acc9fdc"]]);
19980
- const _hoisted_1$u = { class: "lew-date-range-picker-view" };
19981
- const _hoisted_2$j = {
19986
+ const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-7acc9fdc"]]);
19987
+ const _hoisted_1$t = { class: "lew-date-range-picker-view" };
19988
+ const _hoisted_2$i = {
19982
19989
  key: 0,
19983
19990
  class: "lew-date-range-picker-placeholder"
19984
19991
  };
19985
- const _hoisted_3$e = {
19992
+ const _hoisted_3$d = {
19986
19993
  key: 1,
19987
19994
  class: "lew-date-range-picker-dateValue lew-date-range-picker-start"
19988
19995
  };
19989
- const _hoisted_4$8 = { class: "lew-date-range-picker-mid" };
19996
+ const _hoisted_4$7 = { class: "lew-date-range-picker-mid" };
19990
19997
  const _hoisted_5$6 = {
19991
19998
  key: 2,
19992
19999
  class: "lew-date-range-picker-placeholder"
@@ -19995,7 +20002,7 @@ const _hoisted_6$2 = {
19995
20002
  key: 3,
19996
20003
  class: "lew-date-range-picker-dateValue lew-date-range-picker-end"
19997
20004
  };
19998
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
20005
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19999
20006
  __name: "LewDateRangePicker",
20000
20007
  props: /* @__PURE__ */ mergeModels(dateRangePickerProps, {
20001
20008
  "modelValue": { required: true },
@@ -20100,7 +20107,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20100
20107
  __expose({ show, hide: hide2 });
20101
20108
  return (_ctx, _cache) => {
20102
20109
  const _component_lew_flex = resolveComponent("lew-flex");
20103
- return openBlock(), createBlock(unref(_sfc_main$V), {
20110
+ return openBlock(), createBlock(unref(_sfc_main$U), {
20104
20111
  ref_key: "lewPopoverRef",
20105
20112
  ref: lewPopoverRef,
20106
20113
  trigger: "click",
@@ -20113,7 +20120,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20113
20120
  onHide: hideHandle
20114
20121
  }, {
20115
20122
  trigger: withCtx(() => [
20116
- createElementVNode("div", _hoisted_1$u, [
20123
+ createElementVNode("div", _hoisted_1$t, [
20117
20124
  createElementVNode("div", {
20118
20125
  class: normalizeClass(["lew-date-range-picker", unref(lewDateRangeClassNames)]),
20119
20126
  style: normalizeStyle(unref(getDateRangePickerInputStyle))
@@ -20126,8 +20133,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20126
20133
  })
20127
20134
  }, {
20128
20135
  default: withCtx(() => [
20129
- !modelValue.value?.start ? (openBlock(), createElementBlock("div", _hoisted_2$j, toDisplayString$1(_ctx.placeholderStart ? _ctx.placeholderStart : unref(locale).t("dateRangePicker.placeholderStart")), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString$1(modelValue.value.start), 1)),
20130
- createElementVNode("div", _hoisted_4$8, [
20136
+ !modelValue.value?.start ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString$1(_ctx.placeholderStart ? _ctx.placeholderStart : unref(locale).t("dateRangePicker.placeholderStart")), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString$1(modelValue.value.start), 1)),
20137
+ createElementVNode("div", _hoisted_4$7, [
20131
20138
  createVNode(CommonIcon, {
20132
20139
  size: 14,
20133
20140
  type: "minus"
@@ -20176,7 +20183,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20176
20183
  };
20177
20184
  }
20178
20185
  });
20179
- const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-38041cdb"]]);
20186
+ const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-38041cdb"]]);
20180
20187
  const formEmits = {
20181
20188
  change: (value) => value,
20182
20189
  mounted: () => true
@@ -21788,11 +21795,11 @@ Parser.prototype.isOperatorEnabled = function(op) {
21788
21795
  var operators = this.options.operators || {};
21789
21796
  return !(optionName in operators) || !!operators[optionName];
21790
21797
  };
21791
- const _hoisted_1$t = {
21798
+ const _hoisted_1$s = {
21792
21799
  key: 0,
21793
21800
  class: "lew-label-box"
21794
21801
  };
21795
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
21802
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
21796
21803
  __name: "LewFormItem",
21797
21804
  props: /* @__PURE__ */ mergeModels(formItemProps, {
21798
21805
  "modelValue": { default: void 0 },
@@ -21805,29 +21812,30 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
21805
21812
  const formSchema = inject("formSchema", ref(null));
21806
21813
  const formData = inject("formData", ref({}));
21807
21814
  const asMap = {
21808
- input: LewInput,
21809
- textarea: LewTextarea,
21815
+ "input": LewInput,
21816
+ "textarea": LewTextarea,
21810
21817
  "input-tag": LewInputTag,
21811
21818
  "checkbox-group": LewCheckboxGroup,
21812
21819
  "radio-group": LewRadioGroup,
21813
- checkbox: LewCheckbox,
21814
- select: LewSelect,
21820
+ "checkbox": LewCheckbox,
21821
+ "select": LewSelect,
21815
21822
  "date-picker": LewDatePicker,
21816
21823
  "date-range-picker": LewDateRangePicker,
21817
- tabs: LewTabs,
21818
- cascader: LewCascader,
21819
- switch: LewSwitch,
21820
- button: LewButton,
21821
- upload: LewUpload,
21824
+ "tabs": LewTabs,
21825
+ "cascader": LewCascader,
21826
+ "switch": LewSwitch,
21827
+ "button": LewButton,
21828
+ "upload": LewUpload,
21822
21829
  "input-number": LewInputNumber,
21823
- slider: LewSlider,
21830
+ "slider": LewSlider,
21824
21831
  "slider-range": LewSliderRange,
21825
21832
  "color-picker": LewColorPicker,
21826
- rate: LewRate,
21833
+ "rate": LewRate,
21827
21834
  "tree-select": LewTreeSelect
21828
21835
  };
21829
21836
  const app = getCurrentInstance()?.appContext.app;
21830
- if (app && !app.directive("tooltip")) app.use(LewTooltip);
21837
+ if (app && !app.directive("tooltip"))
21838
+ app.use(LewTooltip);
21831
21839
  const getFormItemClassNames = computed(
21832
21840
  () => object2class("lew-form-item", {
21833
21841
  direction: props.direction,
@@ -21889,7 +21897,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
21889
21897
  }
21890
21898
  watch(() => modelValue.value, debouncedValidate, { deep: true });
21891
21899
  const getFormItemMainStyle = computed(() => {
21892
- if (!formItemRef.value) return {};
21900
+ if (!formItemRef.value)
21901
+ return {};
21893
21902
  const { direction, labelWidth, between } = props;
21894
21903
  const { offsetWidth } = formItemRef.value;
21895
21904
  return {
@@ -21925,8 +21934,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
21925
21934
  style: normalizeStyle(_ctx.direction === "x" ? `width:${unref(any2px)(_ctx.labelWidth)}` : ""),
21926
21935
  class: "lew-label-box-wrapper"
21927
21936
  }, [
21928
- _ctx.as ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
21929
- _ctx.required && _ctx.label ? (openBlock(), createBlock(_sfc_main$19, {
21937
+ _ctx.as ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
21938
+ _ctx.required && _ctx.label ? (openBlock(), createBlock(_sfc_main$18, {
21930
21939
  key: 0,
21931
21940
  size: unref(requiredIconSizeMap)[_ctx.size]
21932
21941
  }, null, 8, ["size"])) : createCommentVNode("", true),
@@ -21974,8 +21983,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
21974
21983
  };
21975
21984
  }
21976
21985
  });
21977
- const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-c2dd8f47"]]);
21978
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
21986
+ const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-0c8c6aeb"]]);
21987
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
21979
21988
  __name: "LewForm",
21980
21989
  props: formProps,
21981
21990
  emits: formEmits,
@@ -22138,7 +22147,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22138
22147
  };
22139
22148
  }
22140
22149
  });
22141
- const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-d62eca7f"]]);
22150
+ const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-d62eca7f"]]);
22142
22151
  const inputEmits = {
22143
22152
  change: (value) => value,
22144
22153
  input: (value) => value,
@@ -22349,16 +22358,16 @@ const inputProps = {
22349
22358
  })
22350
22359
  }
22351
22360
  };
22352
- const _hoisted_1$s = {
22361
+ const _hoisted_1$r = {
22353
22362
  key: 0,
22354
22363
  class: "lew-input-prefixes"
22355
22364
  };
22356
- const _hoisted_2$i = { key: 0 };
22357
- const _hoisted_3$d = {
22365
+ const _hoisted_2$h = { key: 0 };
22366
+ const _hoisted_3$c = {
22358
22367
  key: 1,
22359
22368
  class: "lew-input-prefixes-icon"
22360
22369
  };
22361
- const _hoisted_4$7 = {
22370
+ const _hoisted_4$6 = {
22362
22371
  key: 2,
22363
22372
  class: "lew-input-prefixes-select"
22364
22373
  };
@@ -22388,7 +22397,7 @@ const _hoisted_12 = {
22388
22397
  key: 2,
22389
22398
  class: "lew-input-suffix-select"
22390
22399
  };
22391
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
22400
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
22392
22401
  __name: "LewInput",
22393
22402
  props: /* @__PURE__ */ mergeModels(inputProps, {
22394
22403
  "modelValue": { required: true },
@@ -22540,7 +22549,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22540
22549
  });
22541
22550
  });
22542
22551
  onUnmounted(() => {
22543
- if (timer) clearTimeout(timer);
22552
+ if (timer)
22553
+ clearTimeout(timer);
22544
22554
  });
22545
22555
  __expose({ focus, blur });
22546
22556
  return (_ctx, _cache) => {
@@ -22549,15 +22559,15 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22549
22559
  class: normalizeClass(["lew-input-view", unref(getInputClassNames)]),
22550
22560
  style: normalizeStyle({ width: _ctx.autoWidth ? "auto" : unref(any2px)(_ctx.width) })
22551
22561
  }, [
22552
- _ctx.prefixes ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$s, [
22553
- _ctx.prefixes === "text" ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString$1(prefixValue.value), 1)) : createCommentVNode("", true),
22554
- _ctx.prefixes === "icon" ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
22562
+ _ctx.prefixes ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$r, [
22563
+ _ctx.prefixes === "text" ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString$1(prefixValue.value), 1)) : createCommentVNode("", true),
22564
+ _ctx.prefixes === "icon" ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
22555
22565
  createVNode(CommonIcon, {
22556
22566
  size: unref(getIconSize),
22557
22567
  type: prefixValue.value
22558
22568
  }, null, 8, ["size", "type"])
22559
22569
  ])) : createCommentVNode("", true),
22560
- _ctx.prefixes === "select" ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
22570
+ _ctx.prefixes === "select" ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
22561
22571
  createVNode(unref(_sfc_main$7), {
22562
22572
  placement: "bottom",
22563
22573
  trigger: "click",
@@ -22739,7 +22749,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22739
22749
  };
22740
22750
  }
22741
22751
  });
22742
- const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-0bf8bab1"]]);
22752
+ const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-59f05e76"]]);
22743
22753
  const inputNumberEmits = {
22744
22754
  change: (value) => value,
22745
22755
  input: (value) => value
@@ -22835,8 +22845,8 @@ const inputNumberProps = {
22835
22845
  })
22836
22846
  }
22837
22847
  };
22838
- const _hoisted_1$r = ["placeholder", "min", "max", "step"];
22839
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
22848
+ const _hoisted_1$q = ["placeholder", "min", "max", "step"];
22849
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
22840
22850
  __name: "LewInputNumber",
22841
22851
  props: /* @__PURE__ */ mergeModels(inputNumberProps, {
22842
22852
  "modelValue": { required: true },
@@ -22975,7 +22985,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
22975
22985
  onInput: inputFn,
22976
22986
  onChange: changeFn,
22977
22987
  onFocus: focusFn
22978
- }, null, 44, _hoisted_1$r), [
22988
+ }, null, 44, _hoisted_1$q), [
22979
22989
  [vModelText, modelValue.value],
22980
22990
  [_directive_tooltip, {
22981
22991
  content: unref(validationMessage),
@@ -23015,7 +23025,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23015
23025
  };
23016
23026
  }
23017
23027
  });
23018
- const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-4c6a9fe2"]]);
23028
+ const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4c6a9fe2"]]);
23019
23029
  const inputTableEmits = {
23020
23030
  change: (value) => value
23021
23031
  };
@@ -23186,8 +23196,8 @@ const formModalProps = {
23186
23196
  default: () => true
23187
23197
  }
23188
23198
  };
23189
- const _hoisted_1$q = { class: "lew-form-modal lew-scrollbar" };
23190
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
23199
+ const _hoisted_1$p = { class: "lew-form-modal lew-scrollbar" };
23200
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23191
23201
  __name: "FormModal",
23192
23202
  props: formModalProps,
23193
23203
  emits: ["addSuccess", "editSuccess"],
@@ -23253,7 +23263,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23253
23263
  title: `${unref(isEditing) ? unref(locale).t("inputTable.editTitle") : unref(locale).t("inputTable.modelTitle")}`
23254
23264
  }, {
23255
23265
  default: withCtx(() => [
23256
- createElementVNode("div", _hoisted_1$q, [
23266
+ createElementVNode("div", _hoisted_1$p, [
23257
23267
  createVNode(unref(LewForm), {
23258
23268
  ref_key: "formRef",
23259
23269
  ref: formRef,
@@ -23269,8 +23279,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23269
23279
  };
23270
23280
  }
23271
23281
  });
23272
- const FormModal = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-c7f7aaf1"]]);
23273
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
23282
+ const FormModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c7f7aaf1"]]);
23283
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23274
23284
  __name: "LewInputTable",
23275
23285
  props: /* @__PURE__ */ mergeModels(inputTableProps, {
23276
23286
  "modelValue": { required: true },
@@ -23456,7 +23466,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23456
23466
  })
23457
23467
  }, {
23458
23468
  default: withCtx(() => [
23459
- createVNode(unref(_sfc_main$11), {
23469
+ createVNode(unref(_sfc_main$10), {
23460
23470
  "selected-keys": unref(selectedKeys),
23461
23471
  "onUpdate:selectedKeys": _cache[0] || (_cache[0] = ($event) => isRef(selectedKeys) ? selectedKeys.value = $event : null),
23462
23472
  size: _ctx.size,
@@ -23564,7 +23574,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23564
23574
  };
23565
23575
  }
23566
23576
  });
23567
- const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c4622421"]]);
23577
+ const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-c4622421"]]);
23568
23578
  const inputTagEmits = {
23569
23579
  remove: (tag, index2) => ({ tag, index: index2 }),
23570
23580
  change: (value) => value,
@@ -23645,7 +23655,7 @@ const inputTagProps = {
23645
23655
  })
23646
23656
  }
23647
23657
  };
23648
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
23658
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23649
23659
  __name: "LewInputTag",
23650
23660
  props: /* @__PURE__ */ mergeModels(inputTagProps, {
23651
23661
  "modelValue": {},
@@ -23671,8 +23681,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23671
23681
  }
23672
23682
  isInputActive.value = true;
23673
23683
  nextTick(() => {
23674
- if (lewInputRef.value && typeof lewInputRef.value.focus === "function") {
23675
- lewInputRef.value.focus();
23684
+ if (lewInputRef.value && typeof lewInputRef.value?.focus === "function") {
23685
+ lewInputRef.value?.focus();
23676
23686
  }
23677
23687
  });
23678
23688
  originalKeydownHandler = document.onkeydown;
@@ -23872,7 +23882,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23872
23882
  };
23873
23883
  }
23874
23884
  });
23875
- const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-3140b4f7"]]);
23885
+ const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-2353f614"]]);
23876
23886
  const radioEmits = {
23877
23887
  change: () => true
23878
23888
  };
@@ -24025,15 +24035,15 @@ const radioGroupProps = {
24025
24035
  })
24026
24036
  }
24027
24037
  };
24028
- const _hoisted_1$p = {
24038
+ const _hoisted_1$o = {
24029
24039
  key: 0,
24030
24040
  class: "lew-radio-icon-box"
24031
24041
  };
24032
- const _hoisted_2$h = {
24042
+ const _hoisted_2$g = {
24033
24043
  key: 1,
24034
24044
  class: "lew-radio-label"
24035
24045
  };
24036
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
24046
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
24037
24047
  __name: "LewRadio",
24038
24048
  props: radioProps,
24039
24049
  emits: radioEmits,
@@ -24074,7 +24084,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
24074
24084
  class: normalizeClass(["lew-radio", unref(getRadioClassName)]),
24075
24085
  onClick: withModifiers(setChecked, ["stop"])
24076
24086
  }, [
24077
- _ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
24087
+ _ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
24078
24088
  createVNode(CommonIcon, {
24079
24089
  "stroke-width": 4,
24080
24090
  class: "lew-radio-icon",
@@ -24082,13 +24092,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
24082
24092
  size: unref(getIconSize)
24083
24093
  }, null, 8, ["size"])
24084
24094
  ])) : createCommentVNode("", true),
24085
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_2$h, toDisplayString$1(_ctx.label), 1)) : createCommentVNode("", true)
24095
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_2$g, toDisplayString$1(_ctx.label), 1)) : createCommentVNode("", true)
24086
24096
  ], 2);
24087
24097
  };
24088
24098
  }
24089
24099
  });
24090
- const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-aaf2d10e"]]);
24091
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
24100
+ const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-aaf2d10e"]]);
24101
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
24092
24102
  __name: "LewRadioGroup",
24093
24103
  props: /* @__PURE__ */ mergeModels(radioGroupProps, {
24094
24104
  "modelValue": {},
@@ -24139,7 +24149,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
24139
24149
  };
24140
24150
  }
24141
24151
  });
24142
- const LewRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-b9846701"]]);
24152
+ const LewRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-b9846701"]]);
24143
24153
  const rateEmits = {
24144
24154
  change: (value) => value
24145
24155
  };
@@ -24193,8 +24203,8 @@ const rateProps = {
24193
24203
  })
24194
24204
  }
24195
24205
  };
24196
- const _hoisted_1$o = ["onMousemove", "onClick"];
24197
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
24206
+ const _hoisted_1$n = ["onMousemove", "onClick"];
24207
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24198
24208
  __name: "LewRate",
24199
24209
  props: /* @__PURE__ */ mergeModels(rateProps, {
24200
24210
  "modelValue": { required: true },
@@ -24318,7 +24328,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
24318
24328
  trigger: "hover"
24319
24329
  }]
24320
24330
  ])
24321
- ], 44, _hoisted_1$o);
24331
+ ], 44, _hoisted_1$n);
24322
24332
  }), 128))
24323
24333
  ]),
24324
24334
  _: 1
@@ -24326,7 +24336,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
24326
24336
  };
24327
24337
  }
24328
24338
  });
24329
- const LewRate = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-4f04bcc0"]]);
24339
+ const LewRate = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-4f04bcc0"]]);
24330
24340
  const selectEmits = {
24331
24341
  change: (value) => value || typeof value === "undefined",
24332
24342
  blur: () => true,
@@ -24516,14 +24526,14 @@ const selectProps = {
24516
24526
  })
24517
24527
  }
24518
24528
  };
24519
- const _hoisted_1$n = { class: "lew-select-options-box" };
24520
- const _hoisted_2$g = {
24529
+ const _hoisted_1$m = { class: "lew-select-options-box" };
24530
+ const _hoisted_2$f = {
24521
24531
  key: 0,
24522
24532
  class: "lew-result-count"
24523
24533
  };
24524
- const _hoisted_3$c = ["onClick"];
24534
+ const _hoisted_3$b = ["onClick"];
24525
24535
  const SELECT_WIDTH_TOLERANCE = 40;
24526
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
24536
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
24527
24537
  __name: "LewSelect",
24528
24538
  props: /* @__PURE__ */ mergeModels(selectProps, {
24529
24539
  "modelValue": {},
@@ -24663,7 +24673,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24663
24673
  }
24664
24674
  });
24665
24675
  function calculateAutoWidth() {
24666
- if (!props.autoWidth) return;
24676
+ if (!props.autoWidth)
24677
+ return;
24667
24678
  const tempDiv = document.createElement("div");
24668
24679
  tempDiv.style.position = "absolute";
24669
24680
  tempDiv.style.visibility = "hidden";
@@ -24784,7 +24795,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24784
24795
  return selectValue.value === value;
24785
24796
  });
24786
24797
  function deleteTag(value) {
24787
- if (!props.multiple) return;
24798
+ if (!props.multiple)
24799
+ return;
24788
24800
  const currentValues = selectValue.value || [];
24789
24801
  const valueIndex = currentValues.findIndex((v) => v === value);
24790
24802
  if (valueIndex > -1) {
@@ -24800,7 +24812,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24800
24812
  }
24801
24813
  }
24802
24814
  const formatItems = computed(() => {
24803
- if (!props.multiple) return [];
24815
+ if (!props.multiple)
24816
+ return [];
24804
24817
  const currentValues = selectValue.value || [];
24805
24818
  return (state.sourceFlattenOptions || []).filter((e) => {
24806
24819
  return currentValues.includes(e.value);
@@ -24883,7 +24896,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24883
24896
  });
24884
24897
  const getPopoverBodyWidth = computed(() => {
24885
24898
  const { popoverWidth } = props;
24886
- if (!lewSelectInputRef.value) return popoverWidth;
24899
+ if (!lewSelectInputRef.value)
24900
+ return popoverWidth;
24887
24901
  return popoverWidth && popoverWidth !== "100%" ? parseDimension(popoverWidth) - 14 : lewSelectInputRef.value.$el.offsetWidth - 14;
24888
24902
  });
24889
24903
  watch(
@@ -24914,7 +24928,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24914
24928
  disabled,
24915
24929
  active,
24916
24930
  "is-group": isGroup,
24917
- mul: props.multiple
24931
+ "mul": props.multiple
24918
24932
  });
24919
24933
  });
24920
24934
  const shouldShowCheckIcon = computed(() => (value) => {
@@ -24930,7 +24944,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24930
24944
  }
24931
24945
  });
24932
24946
  return (_ctx, _cache) => {
24933
- return openBlock(), createBlock(unref(_sfc_main$V), {
24947
+ return openBlock(), createBlock(unref(_sfc_main$U), {
24934
24948
  ref_key: "lewPopoverRef",
24935
24949
  ref: lewPopoverRef,
24936
24950
  "popover-body-class-name": "lew-select-popover-body",
@@ -24978,7 +24992,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24978
24992
  })
24979
24993
  }, [
24980
24994
  renderSlot(_ctx.$slots, "header", {}, void 0, true),
24981
- createElementVNode("div", _hoisted_1$n, [
24995
+ createElementVNode("div", _hoisted_1$m, [
24982
24996
  unref(shouldShowEmptyState) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
24983
24997
  _ctx.$slots.empty ? renderSlot(_ctx.$slots, "empty", { key: 0 }, void 0, true) : (openBlock(), createBlock(unref(LewFlex), {
24984
24998
  key: 1,
@@ -24994,7 +25008,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
24994
25008
  _: 1
24995
25009
  }))
24996
25010
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24997
- unref(shouldShowResultCount) ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString$1(unref(getResultText)), 1)) : createCommentVNode("", true),
25011
+ unref(shouldShowResultCount) ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString$1(unref(getResultText)), 1)) : createCommentVNode("", true),
24998
25012
  createVNode(unref(VirtList), {
24999
25013
  ref_key: "virtListRef",
25000
25014
  ref: virtListRef,
@@ -25041,7 +25055,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
25041
25055
  type: "check"
25042
25056
  })) : createCommentVNode("", true)
25043
25057
  ], 2))
25044
- ], 12, _hoisted_3$c)
25058
+ ], 12, _hoisted_3$b)
25045
25059
  ]),
25046
25060
  _: 3
25047
25061
  }, 8, ["list", "min-size", "style"])
@@ -25055,7 +25069,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
25055
25069
  };
25056
25070
  }
25057
25071
  });
25058
- const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-d56aae07"]]);
25072
+ const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-56b4bf28"]]);
25059
25073
  const sliderEmits = {
25060
25074
  change: (value) => value
25061
25075
  };
@@ -25150,9 +25164,9 @@ const sliderProps = {
25150
25164
  })
25151
25165
  }
25152
25166
  };
25153
- const _hoisted_1$m = { class: "lew-slider-track-line" };
25154
- const _hoisted_2$f = ["onClick"];
25155
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
25167
+ const _hoisted_1$l = { class: "lew-slider-track-line" };
25168
+ const _hoisted_2$e = ["onClick"];
25169
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
25156
25170
  __name: "LewSlider",
25157
25171
  props: /* @__PURE__ */ mergeModels(sliderProps, {
25158
25172
  "modelValue": {},
@@ -25536,7 +25550,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
25536
25550
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
25537
25551
  }, ["stop"]))
25538
25552
  }, null, 4),
25539
- createElementVNode("div", _hoisted_1$m, [
25553
+ createElementVNode("div", _hoisted_1$l, [
25540
25554
  createElementVNode("div", {
25541
25555
  class: "lew-slider-track-line-range",
25542
25556
  style: normalizeStyle(unref(trackRangeStyles))
@@ -25561,7 +25575,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
25561
25575
  createElementVNode("div", {
25562
25576
  class: normalizeClass(["lew-slider-track-step-label-text", labelStyle.textClass]),
25563
25577
  onClick: withModifiers(($event) => setDotByClick(labelStyle.value), ["stop"])
25564
- }, toDisplayString$1(labelStyle.displayText), 11, _hoisted_2$f)
25578
+ }, toDisplayString$1(labelStyle.displayText), 11, _hoisted_2$e)
25565
25579
  ], 4);
25566
25580
  }), 128))
25567
25581
  ]),
@@ -25580,7 +25594,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
25580
25594
  };
25581
25595
  }
25582
25596
  });
25583
- const LewSlider = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-ac55f226"]]);
25597
+ const LewSlider = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ac55f226"]]);
25584
25598
  const sliderRangeEmits = {
25585
25599
  change: (value) => value
25586
25600
  };
@@ -25675,8 +25689,8 @@ const sliderRangeProps = {
25675
25689
  })
25676
25690
  }
25677
25691
  };
25678
- const _hoisted_1$l = { class: "lew-slider-track-line" };
25679
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
25692
+ const _hoisted_1$k = { class: "lew-slider-track-line" };
25693
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
25680
25694
  __name: "LewSliderRange",
25681
25695
  props: /* @__PURE__ */ mergeModels(sliderRangeProps, {
25682
25696
  "modelValue": {},
@@ -26012,7 +26026,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
26012
26026
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
26013
26027
  }, ["stop"]))
26014
26028
  }, null, 4),
26015
- createElementVNode("div", _hoisted_1$l, [
26029
+ createElementVNode("div", _hoisted_1$k, [
26016
26030
  createElementVNode("div", {
26017
26031
  class: "lew-slider-track-line-range",
26018
26032
  style: normalizeStyle(unref(rangeLineStyle))
@@ -26073,7 +26087,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
26073
26087
  };
26074
26088
  }
26075
26089
  });
26076
- const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-94778521"]]);
26090
+ const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-94778521"]]);
26077
26091
  const switchEmits = {
26078
26092
  change: (value) => typeof value === "boolean" || value === void 0
26079
26093
  };
@@ -26135,8 +26149,8 @@ const switchProps = {
26135
26149
  })
26136
26150
  }
26137
26151
  };
26138
- const _hoisted_1$k = ["disabled"];
26139
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
26152
+ const _hoisted_1$j = ["disabled"];
26153
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
26140
26154
  __name: "LewSwitch",
26141
26155
  props: /* @__PURE__ */ mergeModels(switchProps, {
26142
26156
  "modelValue": {},
@@ -26238,7 +26252,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
26238
26252
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
26239
26253
  type: "checkbox",
26240
26254
  disabled: _ctx.disabled
26241
- }, null, 8, _hoisted_1$k), [
26255
+ }, null, 8, _hoisted_1$j), [
26242
26256
  [vShow, false],
26243
26257
  [vModelCheckbox, modelValue.value]
26244
26258
  ]),
@@ -26247,7 +26261,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
26247
26261
  };
26248
26262
  }
26249
26263
  });
26250
- const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-35986493"]]);
26264
+ const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-35986493"]]);
26251
26265
  const tabsEmits = {
26252
26266
  change: (value, item) => {
26253
26267
  return { value, item };
@@ -26331,8 +26345,8 @@ const tabsProps = {
26331
26345
  })
26332
26346
  }
26333
26347
  };
26334
- const _hoisted_1$j = ["onClick"];
26335
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
26348
+ const _hoisted_1$i = ["onClick"];
26349
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
26336
26350
  __name: "LewTabs",
26337
26351
  props: /* @__PURE__ */ mergeModels(tabsProps, {
26338
26352
  "modelValue": {
@@ -26508,7 +26522,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
26508
26522
  }]),
26509
26523
  style: normalizeStyle(unref(getItemStyle)),
26510
26524
  onClick: ($event) => selectItem(item.value)
26511
- }, toDisplayString$1(item.label), 15, _hoisted_1$j);
26525
+ }, toDisplayString$1(item.label), 15, _hoisted_1$i);
26512
26526
  }), 128))
26513
26527
  ], 544)
26514
26528
  ], 6)
@@ -26516,7 +26530,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
26516
26530
  };
26517
26531
  }
26518
26532
  });
26519
- const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-c3168264"]]);
26533
+ const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-c3168264"]]);
26520
26534
  const textareaEmits = {
26521
26535
  change: (value) => value,
26522
26536
  input: (value) => value,
@@ -26663,12 +26677,12 @@ const textareaProps = {
26663
26677
  })
26664
26678
  }
26665
26679
  };
26666
- const _hoisted_1$i = ["placeholder", "maxlength", "disabled", "readonly"];
26667
- const _hoisted_2$e = {
26680
+ const _hoisted_1$h = ["placeholder", "maxlength", "disabled", "readonly"];
26681
+ const _hoisted_2$d = {
26668
26682
  key: 0,
26669
26683
  class: "lew-textarea-count"
26670
26684
  };
26671
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
26685
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
26672
26686
  __name: "LewTextarea",
26673
26687
  props: /* @__PURE__ */ mergeModels(textareaProps, {
26674
26688
  "modelValue": {},
@@ -26804,10 +26818,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
26804
26818
  onBlur: _blur,
26805
26819
  onInput: handleInput,
26806
26820
  onChange: handleChange
26807
- }, null, 40, _hoisted_1$i), [
26821
+ }, null, 40, _hoisted_1$h), [
26808
26822
  [vModelText, modelValue.value]
26809
26823
  ]),
26810
- modelValue.value && _ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_2$e, toDisplayString$1(modelValue.value.length) + toDisplayString$1(_ctx.maxLength ? ` / ${_ctx.maxLength}` : ""), 1)) : createCommentVNode("", true),
26824
+ modelValue.value && _ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_2$d, toDisplayString$1(modelValue.value.length) + toDisplayString$1(_ctx.maxLength ? ` / ${_ctx.maxLength}` : ""), 1)) : createCommentVNode("", true),
26811
26825
  createVNode(Transition, { name: "lew-form-icon-ani" }, {
26812
26826
  default: withCtx(() => [
26813
26827
  _ctx.clearable && modelValue.value && !_ctx.readonly ? (openBlock(), createBlock(CommonIcon, {
@@ -26829,7 +26843,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
26829
26843
  };
26830
26844
  }
26831
26845
  });
26832
- const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-092a2886"]]);
26846
+ const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-45937168"]]);
26833
26847
  const treeSelectEmits = {
26834
26848
  change: (value) => value,
26835
26849
  clear: () => {
@@ -27021,492 +27035,6 @@ const treeSelectProps = {
27021
27035
  })
27022
27036
  }
27023
27037
  };
27024
- const _hoisted_1$h = {
27025
- key: 0,
27026
- class: "lew-icon-loading-box"
27027
- };
27028
- const _hoisted_2$d = ["title", "readonly", "placeholder"];
27029
- const _hoisted_3$b = { class: "lew-select-options-box" };
27030
- const _hoisted_4$6 = {
27031
- key: 0,
27032
- class: "result-count"
27033
- };
27034
- const _hoisted_5$4 = { class: "tree-select-wrapper lew-scrollbar" };
27035
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
27036
- __name: "LewTreeSelect",
27037
- props: /* @__PURE__ */ mergeModels(treeSelectProps, {
27038
- "modelValue": {},
27039
- "modelModifiers": {}
27040
- }),
27041
- emits: /* @__PURE__ */ mergeModels(treeSelectEmits, ["update:modelValue"]),
27042
- setup(__props, { expose: __expose, emit: __emit }) {
27043
- const props = __props;
27044
- const emit = __emit;
27045
- const app = getCurrentInstance()?.appContext.app;
27046
- if (app && !app.directive("tooltip")) {
27047
- app.use(LewTooltip);
27048
- }
27049
- const treeSelectValue = useModel(__props, "modelValue");
27050
- const lewSelectRef = ref();
27051
- const inputRef = ref();
27052
- const lewPopoverRef = ref();
27053
- const lewTreeRef = ref();
27054
- const formMethods = inject("formMethods", {});
27055
- const _initMethod = computed(() => {
27056
- if (isFunction$1(props.initMethod)) {
27057
- return props.initMethod;
27058
- } else if (props.initMethodId) {
27059
- return formMethods[props.initMethodId];
27060
- }
27061
- return false;
27062
- });
27063
- const state = reactive({
27064
- selectWidth: 0,
27065
- // 选择框宽度
27066
- visible: false,
27067
- // 弹出框是否显示
27068
- searchLoading: false,
27069
- // 树加载
27070
- initLoading: true,
27071
- // 初始化 loading
27072
- valueIsChange: false,
27073
- // 记录
27074
- keyword: props.defaultValue || treeSelectValue.value,
27075
- // 搜索关键字
27076
- keywordBackup: props.defaultValue,
27077
- // 搜索关键字备份
27078
- resultText: ""
27079
- });
27080
- function getSelectWidth() {
27081
- state.selectWidth = lewSelectRef.value?.clientWidth - 12;
27082
- }
27083
- function show() {
27084
- lewPopoverRef.value.show();
27085
- }
27086
- function hide2() {
27087
- lewPopoverRef.value.hide();
27088
- }
27089
- const searchDebounce = /* @__PURE__ */ useDebounceFn(async (e) => {
27090
- search(e);
27091
- }, props.searchDelay);
27092
- async function search(e) {
27093
- const keyword = e.target.value;
27094
- if (props.searchable) {
27095
- await lewTreeRef.value.search(keyword);
27096
- }
27097
- }
27098
- function change(e) {
27099
- const { value } = e;
27100
- treeSelectValue.value = value;
27101
- state.valueIsChange = true;
27102
- setKeywordLabel(value);
27103
- emit("change", e);
27104
- setTimeout(() => {
27105
- hide2();
27106
- }, 100);
27107
- }
27108
- function clearHandle() {
27109
- treeSelectValue.value = void 0;
27110
- state.keyword = "";
27111
- state.keywordBackup = "";
27112
- emit("clear");
27113
- emit("change", void 0);
27114
- }
27115
- const getValueStyle = computed(() => {
27116
- return state.visible ? "opacity:0.6" : "";
27117
- });
27118
- const getSelectClassName = computed(() => {
27119
- let { clearable, size, disabled, readonly: readonly2, searchable } = props;
27120
- clearable = clearable ? !!treeSelectValue.value : false;
27121
- const focus = state.visible;
27122
- return object2class("lew-select", {
27123
- clearable,
27124
- size,
27125
- disabled,
27126
- readonly: readonly2,
27127
- searchable,
27128
- focus,
27129
- "init-loading": state.initLoading
27130
- });
27131
- });
27132
- const getBodyClassName = computed(() => {
27133
- const { size, disabled } = props;
27134
- return object2class("lew-select-body", { size, disabled });
27135
- });
27136
- const getIconSize = computed(() => {
27137
- const size = {
27138
- small: 14,
27139
- medium: 15,
27140
- large: 16
27141
- };
27142
- return size[props.size];
27143
- });
27144
- function setKeywordLabel(value) {
27145
- if (lewTreeRef.value && value) {
27146
- const tree = lewTreeRef.value.getTree();
27147
- const treeItem = findNodeByKey(value, tree);
27148
- if (treeItem !== void 0) {
27149
- const { labelPaths, label } = treeItem;
27150
- if (props.showAllLevels && labelPaths && labelPaths.length > 0) {
27151
- state.keyword = labelPaths.join(" / ");
27152
- } else {
27153
- state.keyword = label[0];
27154
- }
27155
- }
27156
- }
27157
- }
27158
- setKeywordLabel(treeSelectValue.value);
27159
- function showHandle() {
27160
- state.visible = true;
27161
- state.keywordBackup = cloneDeep(state.keyword);
27162
- state.valueIsChange = false;
27163
- if (props.searchable) {
27164
- state.keyword = "";
27165
- }
27166
- getSelectWidth();
27167
- if (props.searchable) {
27168
- search({ target: { value: "" } });
27169
- }
27170
- }
27171
- function hideHandle() {
27172
- state.visible = false;
27173
- if (!state.valueIsChange && treeSelectValue.value) {
27174
- state.keywordBackup ? state.keyword = state.keywordBackup : setKeywordLabel(treeSelectValue.value);
27175
- }
27176
- if (!treeSelectValue.value && state.keyword) {
27177
- state.keyword = "";
27178
- state.keywordBackup = "";
27179
- }
27180
- lewTreeRef.value.reset();
27181
- }
27182
- watch(treeSelectValue, (newVal) => {
27183
- setKeywordLabel(newVal);
27184
- });
27185
- const getPlaceholder = computed(() => {
27186
- return state.keywordBackup || props.placeholder || locale.t("treeSelect.placeholder");
27187
- });
27188
- __expose({ show, hide: hide2 });
27189
- return (_ctx, _cache) => {
27190
- return openBlock(), createBlock(unref(_sfc_main$V), {
27191
- ref_key: "lewPopoverRef",
27192
- ref: lewPopoverRef,
27193
- "popover-body-class-name": "lew-select-popover-body",
27194
- class: "lew-select-view",
27195
- style: normalizeStyle({ width: unref(any2px)(_ctx.width) }),
27196
- trigger: _ctx.trigger,
27197
- "trigger-width": _ctx.width,
27198
- disabled: _ctx.disabled || _ctx.readonly || unref(state).initLoading,
27199
- placement: "bottom-start",
27200
- loading: unref(state).searchLoading,
27201
- onShow: showHandle,
27202
- onHide: hideHandle
27203
- }, {
27204
- trigger: withCtx(() => [
27205
- createElementVNode("div", {
27206
- ref_key: "lewSelectRef",
27207
- ref: lewSelectRef,
27208
- class: normalizeClass(["lew-select", unref(getSelectClassName)])
27209
- }, [
27210
- unref(state).initLoading ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
27211
- createVNode(CommonIcon, {
27212
- size: unref(getIconSize),
27213
- loading: unref(state).initLoading,
27214
- type: "loading"
27215
- }, null, 8, ["size", "loading"])
27216
- ])) : (openBlock(), createBlock(CommonIcon, {
27217
- key: 1,
27218
- size: unref(getIconSize),
27219
- type: "chevron-down",
27220
- class: normalizeClass(["lew-icon-select", {
27221
- "lew-icon-select-hide": _ctx.clearable && unref(state).keyword
27222
- }])
27223
- }, null, 8, ["size", "class"])),
27224
- createVNode(Transition, { name: "lew-form-icon-ani" }, {
27225
- default: withCtx(() => [
27226
- _ctx.clearable && unref(state).keyword && !_ctx.readonly ? (openBlock(), createBlock(CommonIcon, {
27227
- key: 0,
27228
- size: unref(getIconSize),
27229
- type: "close",
27230
- class: normalizeClass(["lew-form-icon-close", {
27231
- "lew-form-icon-close-focus": unref(state).visible
27232
- }]),
27233
- onClick: withModifiers(clearHandle, ["stop"])
27234
- }, null, 8, ["size", "class"])) : createCommentVNode("", true)
27235
- ]),
27236
- _: 1
27237
- }),
27238
- withDirectives(createElementVNode("input", {
27239
- ref_key: "inputRef",
27240
- ref: inputRef,
27241
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(state).keyword = $event),
27242
- class: "lew-value",
27243
- title: unref(state).keyword,
27244
- style: normalizeStyle(unref(getValueStyle)),
27245
- readonly: !_ctx.searchable,
27246
- placeholder: unref(getPlaceholder),
27247
- onInput: _cache[1] || (_cache[1] = //@ts-ignore
27248
- (...args) => unref(searchDebounce) && unref(searchDebounce)(...args))
27249
- }, null, 44, _hoisted_2$d), [
27250
- [vModelText, unref(state).keyword]
27251
- ])
27252
- ], 2)
27253
- ]),
27254
- "popover-body": withCtx(() => [
27255
- createElementVNode("div", {
27256
- class: normalizeClass(["lew-select-body", unref(getBodyClassName)]),
27257
- style: normalizeStyle(`width:${unref(state).selectWidth}px`)
27258
- }, [
27259
- renderSlot(_ctx.$slots, "header", {}, void 0, true),
27260
- createElementVNode("div", _hoisted_3$b, [
27261
- _ctx.searchable && unref(state).resultText ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString$1(unref(state).resultText), 1)) : createCommentVNode("", true),
27262
- createElementVNode("div", _hoisted_5$4, [
27263
- createVNode(unref(LewTree), mergeProps({
27264
- ref_key: "lewTreeRef",
27265
- ref: lewTreeRef,
27266
- modelValue: treeSelectValue.value,
27267
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => treeSelectValue.value = $event)
27268
- }, {
27269
- keyField: _ctx.keyField,
27270
- labelField: _ctx.labelField,
27271
- disabledField: _ctx.disabledField,
27272
- showLine: _ctx.showLine,
27273
- checkable: _ctx.checkable,
27274
- searchable: _ctx.searchable,
27275
- dataSource: _ctx.dataSource,
27276
- loadMethod: _ctx.loadMethod,
27277
- initMethod: unref(_initMethod),
27278
- expandAll: _ctx.expandAll
27279
- }, {
27280
- "is-select": true,
27281
- onLoadStart: _cache[3] || (_cache[3] = ($event) => unref(state).searchLoading = true),
27282
- onLoadEnd: _cache[4] || (_cache[4] = ($event) => (unref(state).searchLoading = false, unref(state).initLoading = false, unref(state).resultText = $event)),
27283
- onChange: change
27284
- }), createSlots({ _: 2 }, [
27285
- _ctx.$slots.empty ? {
27286
- name: "empty",
27287
- fn: withCtx(() => [
27288
- renderSlot(_ctx.$slots, "empty", {}, void 0, true)
27289
- ]),
27290
- key: "0"
27291
- } : void 0,
27292
- _ctx.$slots.item ? {
27293
- name: "item",
27294
- fn: withCtx(({ props: itemProps }) => [
27295
- renderSlot(_ctx.$slots, "item", { props: itemProps }, void 0, true)
27296
- ]),
27297
- key: "1"
27298
- } : void 0
27299
- ]), 1040, ["modelValue"])
27300
- ])
27301
- ]),
27302
- renderSlot(_ctx.$slots, "footer", {}, void 0, true)
27303
- ], 6)
27304
- ]),
27305
- _: 3
27306
- }, 8, ["style", "trigger", "trigger-width", "disabled", "loading"]);
27307
- };
27308
- }
27309
- });
27310
- const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e3739c6b"]]);
27311
- const treeSelectMultipleEmits = {
27312
- change: (value) => value,
27313
- clear: () => {
27314
- }
27315
- };
27316
- const treeSelectMultipleModel = {
27317
- modelValue: {
27318
- type: String,
27319
- default: void 0
27320
- }
27321
- };
27322
- const treeSelectMultipleProps = {
27323
- dataSource: {
27324
- type: Array,
27325
- typePopKeys: ["LewTreeDataSource"],
27326
- validator: validators.array({
27327
- componentName: "LewTreeSelect",
27328
- propName: "dataSource"
27329
- })
27330
- },
27331
- width: {
27332
- type: String,
27333
- default: "100%",
27334
- validator: validators.widthHeight({
27335
- componentName: "LewTreeSelect",
27336
- propName: "width"
27337
- })
27338
- },
27339
- defaultValue: {
27340
- type: String,
27341
- validator: validators.string({
27342
- componentName: "LewTreeSelect",
27343
- propName: "defaultValue"
27344
- })
27345
- },
27346
- placeholder: {
27347
- type: String,
27348
- defaultLocale: true,
27349
- validator: validators.string({
27350
- componentName: "LewTreeSelect",
27351
- propName: "placeholder"
27352
- })
27353
- },
27354
- size: {
27355
- type: String,
27356
- default: "medium",
27357
- typeValues: validSizeList,
27358
- validator: validators.enum({
27359
- componentName: "LewTreeSelect",
27360
- propName: "size",
27361
- values: validSizeList
27362
- })
27363
- },
27364
- disabled: {
27365
- type: Boolean,
27366
- default: false,
27367
- validator: validators.boolean({
27368
- componentName: "LewTreeSelect",
27369
- propName: "disabled"
27370
- })
27371
- },
27372
- clearable: {
27373
- type: Boolean,
27374
- default: false,
27375
- validator: validators.boolean({
27376
- componentName: "LewTreeSelect",
27377
- propName: "clearable"
27378
- })
27379
- },
27380
- checkable: {
27381
- type: Boolean,
27382
- default: false,
27383
- validator: validators.boolean({
27384
- componentName: "LewTreeSelect",
27385
- propName: "checkable"
27386
- })
27387
- },
27388
- showAllLevels: {
27389
- type: Boolean,
27390
- default: true,
27391
- validator: validators.boolean({
27392
- componentName: "LewTreeSelect",
27393
- propName: "showAllLevels"
27394
- })
27395
- },
27396
- showCheckIcon: {
27397
- type: Boolean,
27398
- default: true,
27399
- validator: validators.boolean({
27400
- componentName: "LewTreeSelect",
27401
- propName: "showCheckIcon"
27402
- })
27403
- },
27404
- showLine: {
27405
- type: Boolean,
27406
- default: false,
27407
- validator: validators.boolean({
27408
- componentName: "LewTreeSelect",
27409
- propName: "showLine"
27410
- })
27411
- },
27412
- expandAll: {
27413
- type: Boolean,
27414
- default: false,
27415
- validator: validators.boolean({
27416
- componentName: "LewTreeSelect",
27417
- propName: "expandAll"
27418
- })
27419
- },
27420
- searchable: {
27421
- type: Boolean,
27422
- default: false,
27423
- validator: validators.boolean({
27424
- componentName: "LewTreeSelect",
27425
- propName: "searchable"
27426
- })
27427
- },
27428
- searchDelay: {
27429
- type: Number,
27430
- default: 250,
27431
- validator: validators.number({
27432
- componentName: "LewTreeSelect",
27433
- propName: "searchDelay"
27434
- })
27435
- },
27436
- readonly: {
27437
- type: Boolean,
27438
- default: false,
27439
- validator: validators.boolean({
27440
- componentName: "LewTreeSelect",
27441
- propName: "readonly"
27442
- })
27443
- },
27444
- free: {
27445
- type: Boolean,
27446
- default: true,
27447
- validator: validators.boolean({
27448
- componentName: "LewTreeSelect",
27449
- propName: "free"
27450
- })
27451
- },
27452
- trigger: {
27453
- type: String,
27454
- default: "click",
27455
- typeValues: validTriggerList,
27456
- validator: validators.enum({
27457
- componentName: "LewTreeSelect",
27458
- propName: "trigger",
27459
- values: validTriggerList
27460
- })
27461
- },
27462
- keyField: {
27463
- type: String,
27464
- default: "key",
27465
- validator: validators.string({
27466
- componentName: "LewTreeSelect",
27467
- propName: "keyField"
27468
- })
27469
- },
27470
- labelField: {
27471
- type: String,
27472
- default: "label",
27473
- validator: validators.string({
27474
- componentName: "LewTreeSelect",
27475
- propName: "labelField"
27476
- })
27477
- },
27478
- disabledField: {
27479
- type: String,
27480
- default: "disabled",
27481
- validator: validators.string({
27482
- componentName: "LewTreeSelect",
27483
- propName: "disabledField"
27484
- })
27485
- },
27486
- initMethod: {
27487
- type: Function,
27488
- default: void 0,
27489
- validator: validators.function({
27490
- componentName: "LewTreeSelect",
27491
- propName: "initMethod"
27492
- })
27493
- },
27494
- initMethodId: {
27495
- type: String,
27496
- validator: validators.string({
27497
- componentName: "LewTreeSelect",
27498
- propName: "initMethodId"
27499
- })
27500
- },
27501
- loadMethod: {
27502
- type: Function,
27503
- default: void 0,
27504
- validator: validators.function({
27505
- componentName: "LewTreeSelect",
27506
- propName: "loadMethod"
27507
- })
27508
- }
27509
- };
27510
27038
  const _hoisted_1$g = {
27511
27039
  key: 0,
27512
27040
  class: "lew-icon-loading-box"
@@ -27517,14 +27045,14 @@ const _hoisted_4$5 = {
27517
27045
  key: 0,
27518
27046
  class: "result-count"
27519
27047
  };
27520
- const _hoisted_5$3 = { class: "tree-select-wrapper lew-scrollbar" };
27048
+ const _hoisted_5$4 = { class: "tree-select-wrapper lew-scrollbar" };
27521
27049
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
27522
- __name: "LewTreeSelectMultiple",
27523
- props: /* @__PURE__ */ mergeModels(treeSelectMultipleProps, {
27050
+ __name: "LewTreeSelect",
27051
+ props: /* @__PURE__ */ mergeModels(treeSelectProps, {
27524
27052
  "modelValue": {},
27525
27053
  "modelModifiers": {}
27526
27054
  }),
27527
- emits: /* @__PURE__ */ mergeModels(treeSelectMultipleEmits, ["update:modelValue"]),
27055
+ emits: /* @__PURE__ */ mergeModels(treeSelectEmits, ["update:modelValue"]),
27528
27056
  setup(__props, { expose: __expose, emit: __emit }) {
27529
27057
  const props = __props;
27530
27058
  const emit = __emit;
@@ -27673,7 +27201,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
27673
27201
  });
27674
27202
  __expose({ show, hide: hide2 });
27675
27203
  return (_ctx, _cache) => {
27676
- return openBlock(), createBlock(unref(_sfc_main$V), {
27204
+ return openBlock(), createBlock(unref(_sfc_main$U), {
27677
27205
  ref_key: "lewPopoverRef",
27678
27206
  ref: lewPopoverRef,
27679
27207
  "popover-body-class-name": "lew-select-popover-body",
@@ -27745,7 +27273,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
27745
27273
  renderSlot(_ctx.$slots, "header", {}, void 0, true),
27746
27274
  createElementVNode("div", _hoisted_3$a, [
27747
27275
  _ctx.searchable && unref(state).resultText ? (openBlock(), createElementBlock("div", _hoisted_4$5, toDisplayString$1(unref(state).resultText), 1)) : createCommentVNode("", true),
27748
- createElementVNode("div", _hoisted_5$3, [
27276
+ createElementVNode("div", _hoisted_5$4, [
27749
27277
  createVNode(unref(LewTree), mergeProps({
27750
27278
  ref_key: "lewTreeRef",
27751
27279
  ref: lewTreeRef,
@@ -27793,7 +27321,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
27793
27321
  };
27794
27322
  }
27795
27323
  });
27796
- const LewTreeSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e15a230b"]]);
27324
+ const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e3739c6b"]]);
27797
27325
  const uploadEmits = {
27798
27326
  change: (files) => files,
27799
27327
  delete: (file) => file
@@ -29813,12 +29341,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
29813
29341
  }
29814
29342
  );
29815
29343
  async function handleClose() {
29816
- if (props.disabled || isClosing.value)
29817
- return;
29344
+ if (props.disabled || isClosing.value) return;
29818
29345
  if (props.close) {
29819
29346
  isClosing.value = true;
29820
- await props.close();
29821
- emit("close");
29347
+ let result = false;
29348
+ try {
29349
+ result = await props.close();
29350
+ } catch {
29351
+ isClosing.value = false;
29352
+ return;
29353
+ }
29354
+ if (result === true) {
29355
+ emit("close");
29356
+ }
29822
29357
  isClosing.value = false;
29823
29358
  } else {
29824
29359
  emit("close");
@@ -29840,7 +29375,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
29840
29375
  _ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
29841
29376
  renderSlot(_ctx.$slots, "right")
29842
29377
  ])) : createCommentVNode("", true),
29843
- _ctx.closeable ? (openBlock(), createElementBlock("div", {
29378
+ _ctx.closeable || unref(isFunction$1)(_ctx.close) ? (openBlock(), createElementBlock("div", {
29844
29379
  key: 2,
29845
29380
  class: "lew-tag-close",
29846
29381
  onClick: withModifiers(handleClose, ["stop"])
@@ -30357,7 +29892,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30357
29892
  default: withCtx(() => [
30358
29893
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleOptions.value, (option, index2) => {
30359
29894
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
30360
- unref(isValidComponent)(option.customRender) ? (openBlock(), createBlock(_sfc_main$17, {
29895
+ unref(isValidComponent)(option.customRender) ? (openBlock(), createBlock(_sfc_main$16, {
30361
29896
  key: 0,
30362
29897
  "render-fn": option.customRender,
30363
29898
  onClick: (event) => handleOptionClick(option, event)
@@ -30366,15 +29901,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30366
29901
  class: "lew-action-box-item",
30367
29902
  onClick: (event) => handleOptionClick(option, event)
30368
29903
  }, [
30369
- option.icon && !_ctx.iconOnly ? (openBlock(), createBlock(_sfc_main$17, {
29904
+ option.icon && !_ctx.iconOnly ? (openBlock(), createBlock(_sfc_main$16, {
30370
29905
  key: 0,
30371
29906
  "render-fn": option.icon,
30372
29907
  class: "lew-action-box-icon"
30373
29908
  }, null, 8, ["render-fn"])) : createCommentVNode("", true),
30374
- !_ctx.iconOnly ? (openBlock(), createBlock(_sfc_main$17, {
29909
+ !_ctx.iconOnly ? (openBlock(), createBlock(_sfc_main$16, {
30375
29910
  key: 1,
30376
29911
  "render-fn": option.label
30377
- }, null, 8, ["render-fn"])) : (openBlock(), createBlock(_sfc_main$17, {
29912
+ }, null, 8, ["render-fn"])) : (openBlock(), createBlock(_sfc_main$16, {
30378
29913
  key: 2,
30379
29914
  "render-fn": option.icon || option.label,
30380
29915
  class: "lew-action-box-icon"
@@ -30389,12 +29924,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30389
29924
  }, {
30390
29925
  default: withCtx(() => [
30391
29926
  createElementVNode("div", _hoisted_3$6, [
30392
- _ctx.dropdownIcon ? (openBlock(), createBlock(_sfc_main$17, {
29927
+ _ctx.dropdownIcon ? (openBlock(), createBlock(_sfc_main$16, {
30393
29928
  key: 0,
30394
29929
  "render-fn": _ctx.dropdownIcon,
30395
29930
  class: "lew-action-box-icon"
30396
29931
  }, null, 8, ["render-fn"])) : createCommentVNode("", true),
30397
- !_ctx.iconOnly ? (openBlock(), createBlock(_sfc_main$17, {
29932
+ !_ctx.iconOnly ? (openBlock(), createBlock(_sfc_main$16, {
30398
29933
  key: 1,
30399
29934
  "render-fn": _ctx.dropdownLabel
30400
29935
  }, null, 8, ["render-fn"])) : createCommentVNode("", true)
@@ -30563,7 +30098,7 @@ const _hoisted_4$3 = {
30563
30098
  "stroke-linecap": "butt",
30564
30099
  "stroke-linejoin": "miter"
30565
30100
  };
30566
- const _hoisted_5$2 = {
30101
+ const _hoisted_5$3 = {
30567
30102
  key: 1,
30568
30103
  viewBox: "0 0 48 48",
30569
30104
  fill: "none",
@@ -30600,7 +30135,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30600
30135
  props.separator === "sprit" ? (openBlock(), createElementBlock("svg", _hoisted_4$3, [..._cache[0] || (_cache[0] = [
30601
30136
  createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
30602
30137
  ])])) : createCommentVNode("", true),
30603
- props.separator === "shoulder" ? (openBlock(), createElementBlock("svg", _hoisted_5$2, [..._cache[1] || (_cache[1] = [
30138
+ props.separator === "shoulder" ? (openBlock(), createElementBlock("svg", _hoisted_5$3, [..._cache[1] || (_cache[1] = [
30604
30139
  createElementVNode("path", { d: "m16 39.513 15.556-15.557L16 8.4" }, null, -1)
30605
30140
  ])])) : createCommentVNode("", true)
30606
30141
  ])) : createCommentVNode("", true)
@@ -31043,11 +30578,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31043
30578
  })) : createCommentVNode("", true)
31044
30579
  ])) : createCommentVNode("", true),
31045
30580
  createElementVNode("div", _hoisted_3$4, [
31046
- item.icon ? (openBlock(), createBlock(_sfc_main$17, {
30581
+ item.icon ? (openBlock(), createBlock(_sfc_main$16, {
31047
30582
  key: 0,
31048
30583
  "render-fn": item.icon
31049
30584
  }, null, 8, ["render-fn"])) : createCommentVNode("", true),
31050
- createVNode(_sfc_main$17, {
30585
+ createVNode(_sfc_main$16, {
31051
30586
  class: "lew-context-menu-label-text",
31052
30587
  "render-fn": item.label
31053
30588
  }, null, 8, ["render-fn"])
@@ -31143,7 +30678,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31143
30678
  hide: hide2
31144
30679
  });
31145
30680
  return (_ctx, _cache) => {
31146
- return openBlock(), createBlock(unref(_sfc_main$V), {
30681
+ return openBlock(), createBlock(unref(_sfc_main$U), {
31147
30682
  ref_key: "lewPopoverRef",
31148
30683
  ref: lewPopoverRef,
31149
30684
  "popover-body-class-name": "lew-dropdown-popover-body",
@@ -31209,7 +30744,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31209
30744
  key: item.label
31210
30745
  }, [
31211
30746
  createElementVNode("div", _hoisted_2$3, [
31212
- createVNode(_sfc_main$17, {
30747
+ createVNode(_sfc_main$16, {
31213
30748
  "render-fn": item.label,
31214
30749
  type: "text-trim",
31215
30750
  "component-props": {
@@ -31234,11 +30769,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31234
30769
  }]),
31235
30770
  onClick: ($event) => select(cItem)
31236
30771
  }, [
31237
- createVNode(_sfc_main$17, {
30772
+ createVNode(_sfc_main$16, {
31238
30773
  "render-fn": cItem.icon,
31239
30774
  class: "lew-menu-icon"
31240
30775
  }, null, 8, ["render-fn"]),
31241
- createVNode(_sfc_main$17, {
30776
+ createVNode(_sfc_main$16, {
31242
30777
  "render-fn": cItem.label,
31243
30778
  type: "text-trim",
31244
30779
  "component-props": {
@@ -31403,11 +30938,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31403
30938
  onClick: withModifiers(handleChange, ["stop"])
31404
30939
  }, {
31405
30940
  default: withCtx(() => [
31406
- createVNode(_sfc_main$17, {
30941
+ createVNode(_sfc_main$16, {
31407
30942
  "render-fn": props.icon,
31408
30943
  class: "lew-menu-tree-item-icon"
31409
30944
  }, null, 8, ["render-fn"]),
31410
- createVNode(_sfc_main$17, {
30945
+ createVNode(_sfc_main$16, {
31411
30946
  "render-fn": props.label,
31412
30947
  type: "text-trim",
31413
30948
  "component-props": {
@@ -31433,7 +30968,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31433
30968
  ]),
31434
30969
  _: 1
31435
30970
  }, 8, ["class", "style"]),
31436
- !props.isLeaf ? (openBlock(), createBlock(unref(_sfc_main$1b), { key: 0 }, {
30971
+ !props.isLeaf ? (openBlock(), createBlock(unref(_sfc_main$1a), { key: 0 }, {
31437
30972
  default: withCtx(() => [
31438
30973
  unref(context).expandKeys.value?.includes(props.value) && !unref(context).collapsed.value ? (openBlock(), createElementBlock("div", {
31439
30974
  key: 0,
@@ -31451,7 +30986,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31451
30986
  };
31452
30987
  }
31453
30988
  });
31454
- const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0eff4737"]]);
30989
+ const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-98e31987"]]);
31455
30990
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
31456
30991
  __name: "LewMenuTree",
31457
30992
  props: /* @__PURE__ */ mergeModels(menuTreeProps, {
@@ -31617,69 +31152,102 @@ const stepsProps = {
31617
31152
  componentName: "LewSteps",
31618
31153
  propName: "minWidth"
31619
31154
  })
31155
+ },
31156
+ // 允许点击Item切换步骤
31157
+ canClickItem: {
31158
+ type: Boolean,
31159
+ default: true
31160
+ },
31161
+ // 允许跨步骤
31162
+ canCrossSteps: {
31163
+ type: Boolean,
31164
+ default: true
31620
31165
  }
31621
31166
  };
31622
31167
  const _hoisted_1$2 = { class: "lew-steps lew-scrollbar" };
31623
- const _hoisted_2$2 = { class: "lew-steps-item-index" };
31624
- const _hoisted_3$2 = {
31168
+ const _hoisted_2$2 = ["onClick"];
31169
+ const _hoisted_3$2 = { class: "lew-steps-item-index" };
31170
+ const _hoisted_4$2 = {
31625
31171
  key: 4,
31626
31172
  class: "index"
31627
31173
  };
31628
- const _hoisted_4$2 = { class: "lew-steps-item-info" };
31174
+ const _hoisted_5$2 = { class: "lew-steps-item-info" };
31629
31175
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
31630
31176
  __name: "LewSteps",
31631
31177
  props: /* @__PURE__ */ mergeModels(stepsProps, {
31632
31178
  "modelValue": {},
31633
31179
  "modelModifiers": {}
31634
31180
  }),
31635
- emits: ["update:modelValue"],
31636
- setup(__props) {
31181
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
31182
+ setup(__props, { emit: __emit }) {
31183
+ const props = __props;
31184
+ const emit = __emit;
31637
31185
  const stepsValue = useModel(__props, "modelValue");
31186
+ watch(stepsValue, (val, oldVal) => {
31187
+ if (val !== oldVal) {
31188
+ emit("change", val);
31189
+ }
31190
+ });
31191
+ const itemStyle = computed(() => {
31192
+ return {
31193
+ cursor: props.canClickItem ? "pointer" : "default",
31194
+ minWidth: any2px(props.minWidth)
31195
+ };
31196
+ });
31197
+ function handleClick(index2) {
31198
+ if (!props.canClickItem) return;
31199
+ if (!props.canCrossSteps && Math.abs((stepsValue.value || 1) - 1 - index2) > 1) return;
31200
+ if (stepsValue.value !== index2 + 1) {
31201
+ stepsValue.value = index2 + 1;
31202
+ emit("change", stepsValue.value);
31203
+ }
31204
+ }
31638
31205
  return (_ctx, _cache) => {
31639
31206
  return openBlock(), createElementBlock("div", _hoisted_1$2, [
31640
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index2) => {
31207
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.options, (item, index2) => {
31641
31208
  return openBlock(), createElementBlock("div", {
31642
31209
  key: index2,
31643
31210
  class: normalizeClass(["lew-steps-item", {
31644
31211
  "lew-steps-item-active": index2 === (stepsValue.value || 1) - 1,
31645
31212
  "lew-steps-item-succeeded": index2 < (stepsValue.value || 1) - 1,
31646
- "lew-steps-item-error": index2 === (stepsValue.value || 1) - 1 && _ctx.status === "error",
31647
- "lew-steps-item-warning": index2 === (stepsValue.value || 1) - 1 && _ctx.status === "warning",
31648
- "lew-steps-item-done": index2 === (stepsValue.value || 1) - 1 && _ctx.status === "done"
31213
+ "lew-steps-item-error": index2 === (stepsValue.value || 1) - 1 && props.status === "error",
31214
+ "lew-steps-item-warning": index2 === (stepsValue.value || 1) - 1 && props.status === "warning",
31215
+ "lew-steps-item-done": index2 === (stepsValue.value || 1) - 1 && props.status === "done"
31649
31216
  }]),
31650
- style: normalizeStyle({ minWidth: unref(any2px)(_ctx.minWidth) })
31217
+ style: normalizeStyle(unref(itemStyle)),
31218
+ onClick: ($event) => handleClick(index2)
31651
31219
  }, [
31652
- createElementVNode("div", _hoisted_2$2, [
31653
- index2 === (stepsValue.value || 1) - 1 && _ctx.status === "loading" ? (openBlock(), createBlock(CommonIcon, {
31220
+ createElementVNode("div", _hoisted_3$2, [
31221
+ index2 === (stepsValue.value || 1) - 1 && props.status === "loading" ? (openBlock(), createBlock(CommonIcon, {
31654
31222
  key: 0,
31655
31223
  size: 16,
31656
31224
  "stroke-width": 3,
31657
31225
  loading: "",
31658
31226
  type: "loader"
31659
- })) : index2 === (stepsValue.value || 1) - 1 && _ctx.status === "warning" ? (openBlock(), createBlock(CommonIcon, {
31227
+ })) : index2 === (stepsValue.value || 1) - 1 && props.status === "warning" ? (openBlock(), createBlock(CommonIcon, {
31660
31228
  key: 1,
31661
31229
  size: 16,
31662
31230
  "stroke-width": 3,
31663
31231
  type: "alert-circle"
31664
- })) : index2 === (stepsValue.value || 1) - 1 && _ctx.status === "error" ? (openBlock(), createBlock(CommonIcon, {
31232
+ })) : index2 === (stepsValue.value || 1) - 1 && props.status === "error" ? (openBlock(), createBlock(CommonIcon, {
31665
31233
  key: 2,
31666
31234
  size: 16,
31667
31235
  "stroke-width": 3,
31668
31236
  type: "close"
31669
- })) : index2 < (stepsValue.value || 1) - 1 || index2 === (stepsValue.value || 1) - 1 && _ctx.status === "done" ? (openBlock(), createBlock(CommonIcon, {
31237
+ })) : index2 < (stepsValue.value || 1) - 1 || index2 === (stepsValue.value || 1) - 1 && props.status === "done" ? (openBlock(), createBlock(CommonIcon, {
31670
31238
  key: 3,
31671
31239
  style: { color: "var(--lew-color-primary)" },
31672
31240
  size: 16,
31673
31241
  "stroke-width": 3,
31674
31242
  type: "check"
31675
- })) : (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString$1(index2 + 1), 1))
31243
+ })) : (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(index2 + 1), 1))
31676
31244
  ]),
31677
- createElementVNode("div", _hoisted_4$2, [
31245
+ createElementVNode("div", _hoisted_5$2, [
31678
31246
  createElementVNode("div", {
31679
- style: normalizeStyle({ maxWidth: unref(any2px)(_ctx.minWidth) }),
31247
+ style: normalizeStyle({ maxWidth: unref(any2px)(props.minWidth) }),
31680
31248
  class: "lew-steps-item-title"
31681
31249
  }, [
31682
- createVNode(_sfc_main$17, {
31250
+ createVNode(_sfc_main$16, {
31683
31251
  "render-fn": item.title,
31684
31252
  type: "text-trim",
31685
31253
  "component-props": {
@@ -31688,10 +31256,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
31688
31256
  }, null, 8, ["render-fn"])
31689
31257
  ], 4),
31690
31258
  createElementVNode("div", {
31691
- style: normalizeStyle({ maxWidth: unref(any2px)(_ctx.minWidth) }),
31259
+ style: normalizeStyle({ maxWidth: unref(any2px)(props.minWidth) }),
31692
31260
  class: "lew-steps-item-description"
31693
31261
  }, [
31694
- createVNode(_sfc_main$17, {
31262
+ createVNode(_sfc_main$16, {
31695
31263
  "render-fn": item.description,
31696
31264
  type: "text-trim",
31697
31265
  "component-props": {
@@ -31702,7 +31270,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
31702
31270
  }, null, 8, ["render-fn"])
31703
31271
  ], 4)
31704
31272
  ])
31705
- ], 6);
31273
+ ], 14, _hoisted_2$2);
31706
31274
  }), 128))
31707
31275
  ]);
31708
31276
  };
@@ -31722,14 +31290,14 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
31722
31290
  LewCheckboxGroup,
31723
31291
  LewCollapse,
31724
31292
  LewCollapseItem,
31725
- LewCollapseTransition: _sfc_main$1b,
31293
+ LewCollapseTransition: _sfc_main$1a,
31726
31294
  LewColorPicker,
31727
31295
  LewDatePicker,
31728
31296
  LewDateRange,
31729
31297
  LewDateRangePicker,
31730
31298
  LewDesc,
31731
31299
  LewDescItem,
31732
- LewDrawer: _sfc_main$Z,
31300
+ LewDrawer: _sfc_main$Y,
31733
31301
  LewDropdown: _sfc_main$7,
31734
31302
  LewEmpty,
31735
31303
  LewExpand,
@@ -31748,7 +31316,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
31748
31316
  LewModal,
31749
31317
  LewPagination,
31750
31318
  LewPopok,
31751
- LewPopover: _sfc_main$V,
31319
+ LewPopover: _sfc_main$U,
31752
31320
  LewRadioGroup,
31753
31321
  LewRate,
31754
31322
  LewSelect,
@@ -31756,7 +31324,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
31756
31324
  LewSliderRange,
31757
31325
  LewSteps: _sfc_main$3,
31758
31326
  LewSwitch,
31759
- LewTable: _sfc_main$11,
31327
+ LewTable: _sfc_main$10,
31760
31328
  LewTabs,
31761
31329
  LewTag: _sfc_main$e,
31762
31330
  LewTextTrim,
@@ -31764,7 +31332,6 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
31764
31332
  LewTitle,
31765
31333
  LewTree,
31766
31334
  LewTreeSelect,
31767
- LewTreeSelectMultiple,
31768
31335
  LewUpload,
31769
31336
  actionBoxEmits,
31770
31337
  actionBoxProps,
@@ -31898,9 +31465,6 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
31898
31465
  treeProps,
31899
31466
  treeSelectEmits,
31900
31467
  treeSelectModel,
31901
- treeSelectMultipleEmits,
31902
- treeSelectMultipleModel,
31903
- treeSelectMultipleProps,
31904
31468
  treeSelectProps,
31905
31469
  uploadByCardEmits,
31906
31470
  uploadByCardProps,
@@ -31984,7 +31548,7 @@ function createTooltipContent(renderFn) {
31984
31548
  const tooltipContainer = document.createElement("div");
31985
31549
  const contentRef = defineComponent({
31986
31550
  render() {
31987
- return h(_sfc_main$17, {
31551
+ return h(_sfc_main$16, {
31988
31552
  renderFn
31989
31553
  });
31990
31554
  }
@@ -32259,17 +31823,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
32259
31823
  key: 0,
32260
31824
  type: _ctx.type,
32261
31825
  size: 24
32262
- }, null, 8, ["type"])) : (openBlock(), createBlock(_sfc_main$17, {
31826
+ }, null, 8, ["type"])) : (openBlock(), createBlock(_sfc_main$16, {
32263
31827
  key: 1,
32264
31828
  "render-fn": _ctx.icon
32265
31829
  }, null, 8, ["render-fn"]))
32266
31830
  ])) : createCommentVNode("", true),
32267
31831
  createElementVNode("div", _hoisted_3$1, [
32268
31832
  createElementVNode("div", _hoisted_4$1, [
32269
- createVNode(_sfc_main$17, { "render-fn": _ctx.title }, null, 8, ["render-fn"])
31833
+ createVNode(_sfc_main$16, { "render-fn": _ctx.title }, null, 8, ["render-fn"])
32270
31834
  ]),
32271
31835
  createElementVNode("div", _hoisted_5$1, [
32272
- createVNode(_sfc_main$17, { "render-fn": _ctx.content }, null, 8, ["render-fn"])
31836
+ createVNode(_sfc_main$16, { "render-fn": _ctx.content }, null, 8, ["render-fn"])
32273
31837
  ])
32274
31838
  ])
32275
31839
  ]),
@@ -39177,7 +38741,7 @@ export {
39177
38741
  LewCheckboxGroup,
39178
38742
  LewCollapse,
39179
38743
  LewCollapseItem,
39180
- _sfc_main$1b as LewCollapseTransition,
38744
+ _sfc_main$1a as LewCollapseTransition,
39181
38745
  LewColorPicker,
39182
38746
  LewDatePicker,
39183
38747
  LewDateRange,
@@ -39185,7 +38749,7 @@ export {
39185
38749
  LewDesc,
39186
38750
  LewDescItem,
39187
38751
  LewDialog,
39188
- _sfc_main$Z as LewDrawer,
38752
+ _sfc_main$Y as LewDrawer,
39189
38753
  _sfc_main$7 as LewDropdown,
39190
38754
  LewEmpty,
39191
38755
  LewExpand,
@@ -39207,7 +38771,7 @@ export {
39207
38771
  LewNotification,
39208
38772
  LewPagination,
39209
38773
  LewPopok,
39210
- _sfc_main$V as LewPopover,
38774
+ _sfc_main$U as LewPopover,
39211
38775
  LewRadioGroup,
39212
38776
  LewRate,
39213
38777
  LewSelect,
@@ -39215,7 +38779,7 @@ export {
39215
38779
  LewSliderRange,
39216
38780
  _sfc_main$3 as LewSteps,
39217
38781
  LewSwitch,
39218
- _sfc_main$11 as LewTable,
38782
+ _sfc_main$10 as LewTable,
39219
38783
  LewTabs,
39220
38784
  _sfc_main$e as LewTag,
39221
38785
  LewTextTrim,
@@ -39224,7 +38788,6 @@ export {
39224
38788
  LewTooltip,
39225
38789
  LewTree,
39226
38790
  LewTreeSelect,
39227
- LewTreeSelectMultiple,
39228
38791
  LewUpload,
39229
38792
  LewVBackTop,
39230
38793
  LewVContextMenu,
@@ -39376,9 +38939,6 @@ export {
39376
38939
  treeProps,
39377
38940
  treeSelectEmits,
39378
38941
  treeSelectModel,
39379
- treeSelectMultipleEmits,
39380
- treeSelectMultipleModel,
39381
- treeSelectMultipleProps,
39382
38942
  treeSelectProps,
39383
38943
  uploadByCardEmits,
39384
38944
  uploadByCardProps,