lew-ui 2.5.8 → 2.5.9

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.mjs CHANGED
@@ -7531,7 +7531,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
7531
7531
  };
7532
7532
  }
7533
7533
  });
7534
- const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-3832593a"]]);
7534
+ const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-e8c800cb"]]);
7535
7535
  const markProps = {
7536
7536
  color: {
7537
7537
  type: String,
@@ -8352,7 +8352,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8352
8352
  };
8353
8353
  }
8354
8354
  });
8355
- const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-964895d2"]]);
8355
+ const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-9c3463ba"]]);
8356
8356
  const dropdownProps = {
8357
8357
  trigger: {
8358
8358
  type: String,
@@ -12043,7 +12043,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12043
12043
  };
12044
12044
  }
12045
12045
  });
12046
- const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-bade7900"]]);
12046
+ const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-3c20080e"]]);
12047
12047
  const inputNumberModel = {
12048
12048
  modelValue: {
12049
12049
  type: Number,
@@ -12627,7 +12627,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12627
12627
  };
12628
12628
  }
12629
12629
  });
12630
- const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-fa22d421"]]);
12630
+ const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-4b92a5fb"]]);
12631
12631
  const inputTagModel = {
12632
12632
  modelValue: {
12633
12633
  type: Array,
@@ -12831,7 +12831,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12831
12831
  };
12832
12832
  }
12833
12833
  });
12834
- const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-b4a4327b"]]);
12834
+ const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1b2570c1"]]);
12835
12835
  const checkboxModel = {
12836
12836
  modelValue: {
12837
12837
  type: Boolean,
@@ -13054,7 +13054,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
13054
13054
  };
13055
13055
  }
13056
13056
  });
13057
- const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-0a7b5a89"]]);
13057
+ const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-a42fe19c"]]);
13058
13058
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
13059
13059
  __name: "LewCheckboxGroup",
13060
13060
  props: /* @__PURE__ */ mergeModels(checkboxGroupProps, {
@@ -13331,7 +13331,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
13331
13331
  };
13332
13332
  }
13333
13333
  });
13334
- const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-666a3fdb"]]);
13334
+ const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-785b8402"]]);
13335
13335
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
13336
13336
  __name: "LewRadioGroup",
13337
13337
  props: /* @__PURE__ */ mergeModels(radioGroupProps, {
@@ -13664,7 +13664,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13664
13664
  };
13665
13665
  }
13666
13666
  });
13667
- const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-3d5cad26"]]);
13667
+ const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-b86d4bc4"]]);
13668
13668
  function tryOnScopeDispose(fn2) {
13669
13669
  if (getCurrentScope()) {
13670
13670
  onScopeDispose(fn2);
@@ -14257,6 +14257,57 @@ const selectProps = {
14257
14257
  description: "是否在选中项旁显示勾选图标"
14258
14258
  }
14259
14259
  };
14260
+ const flattenOptions = (options) => {
14261
+ const result = [];
14262
+ options.forEach((option) => {
14263
+ if (option.children && option.children.length > 0) {
14264
+ const group = {
14265
+ label: option.label,
14266
+ value: `group-${option.value || option.label}`,
14267
+ isGroup: true,
14268
+ total: (option.children || []).length
14269
+ };
14270
+ result.push(group);
14271
+ option.children.forEach((child) => {
14272
+ result.push({
14273
+ ...child,
14274
+ groupValue: group.value,
14275
+ groupLabel: group.label,
14276
+ isGroup: false
14277
+ });
14278
+ });
14279
+ } else {
14280
+ result.push(option);
14281
+ }
14282
+ });
14283
+ return result;
14284
+ };
14285
+ const defaultSearchMethod = (params) => {
14286
+ const { options, keyword } = params;
14287
+ console.log(options, keyword);
14288
+ const result = options.filter((e) => {
14289
+ return e.label.indexOf(keyword) >= 0 && !e.isGroup;
14290
+ });
14291
+ const group = [];
14292
+ result.forEach((e) => {
14293
+ var _a;
14294
+ const index2 = group.findIndex((item) => item.value === e.groupValue);
14295
+ if (!e.isGroup && e.groupValue && index2 === -1) {
14296
+ const groupItem = {
14297
+ label: e.groupLabel,
14298
+ value: e.groupValue,
14299
+ isGroup: true,
14300
+ children: [e]
14301
+ };
14302
+ group.push(groupItem);
14303
+ } else if (index2 >= 0) {
14304
+ (_a = group[index2]) == null ? void 0 : _a.children.push(e);
14305
+ } else {
14306
+ group.push(e);
14307
+ }
14308
+ });
14309
+ return flattenOptions(group);
14310
+ };
14260
14311
  const _hoisted_1$s = ["readonly", "placeholder"];
14261
14312
  const _hoisted_2$i = { class: "lew-select-options-box" };
14262
14313
  const _hoisted_3$d = {
@@ -14289,14 +14340,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14289
14340
  return props2.searchMethod;
14290
14341
  } else if (props2.searchMethodId) {
14291
14342
  return formMethods[props2.searchMethodId];
14343
+ } else {
14344
+ return defaultSearchMethod;
14292
14345
  }
14293
- return false;
14294
14346
  });
14295
14347
  const state = reactive({
14296
14348
  selectWidth: 0,
14297
14349
  visible: false,
14298
14350
  loading: false,
14299
- options: props2.options,
14351
+ options: flattenOptions(props2.options),
14300
14352
  hideBySelect: false,
14301
14353
  // 记录是否通过选择隐藏
14302
14354
  keyword: props2.defaultValue || selectValue.value,
@@ -14321,10 +14373,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14321
14373
  if (props2.searchable) {
14322
14374
  let result = [];
14323
14375
  if (!keyword && props2.options.length > 0) {
14324
- result = props2.options;
14376
+ result = flattenOptions(props2.options);
14325
14377
  } else {
14326
14378
  result = await _searchMethod.value({
14327
- options: props2.options,
14379
+ options: flattenOptions(props2.options),
14328
14380
  keyword
14329
14381
  });
14330
14382
  }
@@ -14340,7 +14392,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14340
14392
  emit2("change");
14341
14393
  };
14342
14394
  const selectHandle = (item) => {
14343
- if (item.disabled) {
14395
+ if (item.disabled || item.isGroup) {
14344
14396
  return;
14345
14397
  }
14346
14398
  state.hideBySelect = true;
@@ -14387,11 +14439,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14387
14439
  return object2class("lew-select-body", { size, disabled });
14388
14440
  });
14389
14441
  const getSelectItemClassName = (e) => {
14390
- const { disabled } = e;
14442
+ const { disabled, isGroup } = e;
14391
14443
  const active = getChecked.value(e.value);
14392
14444
  return object2class("lew-select-item", {
14393
14445
  disabled,
14394
- active
14446
+ active,
14447
+ "is-group": isGroup
14395
14448
  });
14396
14449
  };
14397
14450
  const getIconSize = computed(() => {
@@ -14433,6 +14486,18 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14433
14486
  findKeyword();
14434
14487
  }
14435
14488
  );
14489
+ watch(
14490
+ () => props2.options,
14491
+ () => {
14492
+ state.options = flattenOptions(props2.options);
14493
+ },
14494
+ {
14495
+ deep: true
14496
+ }
14497
+ );
14498
+ const getResultNum = computed(() => {
14499
+ return numFormat(state.options.filter((e) => !e.isGroup).length);
14500
+ });
14436
14501
  __expose2({ show, hide: hide2 });
14437
14502
  return (_ctx, _cache) => {
14438
14503
  return openBlock(), createBlock(unref(_sfc_main$5), {
@@ -14508,7 +14573,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14508
14573
  _: 1
14509
14574
  }))
14510
14575
  ], 64)) : createCommentVNode("", true),
14511
- _ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$d, " 共 " + toDisplayString(unref(numFormat)(unref(state).options && unref(state).options.length)) + " 条结果 ", 1)) : createCommentVNode("", true),
14576
+ _ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$d, " 共 " + toDisplayString(unref(getResultNum)) + " 条结果 ", 1)) : createCommentVNode("", true),
14512
14577
  unref(state).options.length > 0 ? (openBlock(), createBlock(unref(UseVirtualList), {
14513
14578
  key: unref(state).options.length,
14514
14579
  class: "lew-select-options-list lew-scrollbar",
@@ -14534,7 +14599,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14534
14599
  class: normalizeClass(["lew-select-item", getSelectItemClassName(templateProps)])
14535
14600
  }, [
14536
14601
  createVNode(unref(LewTextTrim), {
14537
- text: templateProps.label,
14602
+ text: templateProps.isGroup ? `${templateProps.label} (${templateProps.total})` : templateProps.label,
14538
14603
  delay: [500, 0],
14539
14604
  class: "lew-select-label"
14540
14605
  }, null, 8, ["text"]),
@@ -14559,7 +14624,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14559
14624
  };
14560
14625
  }
14561
14626
  });
14562
- const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-b1ff13b4"]]);
14627
+ const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-79f78a99"]]);
14563
14628
  const selectMultipleModel = {
14564
14629
  modelValue: {
14565
14630
  type: Array,
@@ -14624,18 +14689,8 @@ const selectMultipleProps = {
14624
14689
  },
14625
14690
  searchMethod: {
14626
14691
  type: Function,
14627
- default: ({
14628
- options,
14629
- keyword
14630
- }) => {
14631
- if (options && keyword) {
14632
- return options.filter(
14633
- (option) => option.label.includes(keyword)
14634
- );
14635
- }
14636
- return [];
14637
- },
14638
- description: "自定义搜索方法"
14692
+ default: void 0,
14693
+ description: "自定义搜索方法,接收搜索参数并返回过滤后的选项列表"
14639
14694
  },
14640
14695
  searchMethodId: {
14641
14696
  type: String,
@@ -14708,7 +14763,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14708
14763
  selectWidth: 0,
14709
14764
  visible: false,
14710
14765
  loading: false,
14711
- options: props2.options,
14766
+ options: flattenOptions(props2.options),
14712
14767
  keyword: ""
14713
14768
  });
14714
14769
  const formMethods = inject("formMethods", {});
@@ -14717,8 +14772,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14717
14772
  return props2.searchMethod;
14718
14773
  } else if (props2.searchMethodId) {
14719
14774
  return formMethods[props2.searchMethodId];
14775
+ } else {
14776
+ return defaultSearchMethod;
14720
14777
  }
14721
- return false;
14722
14778
  });
14723
14779
  const getSelectWidth = () => {
14724
14780
  var _a2;
@@ -14744,10 +14800,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14744
14800
  if (props2.searchable) {
14745
14801
  let result = [];
14746
14802
  if (!keyword && props2.options.length > 0) {
14747
- result = props2.options;
14803
+ result = flattenOptions(props2.options);
14748
14804
  } else {
14749
14805
  result = await _searchMethod.value({
14750
- options: props2.options,
14806
+ options: flattenOptions(props2.options),
14751
14807
  keyword
14752
14808
  });
14753
14809
  }
@@ -14776,7 +14832,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14776
14832
  emit2("change", selectValue.value);
14777
14833
  };
14778
14834
  const selectHandle = (item) => {
14779
- if (item.disabled) {
14835
+ if (item.disabled || item.isGroup) {
14780
14836
  return;
14781
14837
  }
14782
14838
  const _value = selectValue.value || [];
@@ -14826,11 +14882,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14826
14882
  });
14827
14883
  });
14828
14884
  const getSelectItemClassName = (e) => {
14829
- const { disabled } = e;
14885
+ const { disabled, isGroup } = e;
14830
14886
  const active = getChecked.value(e.value);
14831
14887
  return object2class("lew-select-item", {
14832
14888
  disabled,
14833
- active
14889
+ active,
14890
+ "is-group": isGroup
14834
14891
  });
14835
14892
  };
14836
14893
  const getIconSize = computed(() => {
@@ -14861,6 +14918,18 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14861
14918
  getSelectWidth();
14862
14919
  });
14863
14920
  __expose2({ show, hide: hide2 });
14921
+ watch(
14922
+ () => props2.options,
14923
+ () => {
14924
+ state.options = flattenOptions(props2.options);
14925
+ },
14926
+ {
14927
+ deep: true
14928
+ }
14929
+ );
14930
+ const getResultNum = computed(() => {
14931
+ return numFormat(state.options.filter((e) => !e.isGroup).length);
14932
+ });
14864
14933
  return (_ctx, _cache) => {
14865
14934
  return openBlock(), createBlock(unref(_sfc_main$5), {
14866
14935
  ref_key: "lewPopoverRef",
@@ -15027,7 +15096,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
15027
15096
  _: 1
15028
15097
  }))
15029
15098
  ], 64)) : createCommentVNode("", true),
15030
- _ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, " 共 " + toDisplayString(unref(numFormat)(unref(state).options && unref(state).options.length)) + " 条结果 ", 1)) : createCommentVNode("", true),
15099
+ _ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, " 共 " + toDisplayString(unref(getResultNum)) + " 条结果 ", 1)) : createCommentVNode("", true),
15031
15100
  unref(state).options.length > 0 ? (openBlock(), createBlock(unref(UseVirtualList), {
15032
15101
  key: unref(getVirtualHeight),
15033
15102
  class: "lew-select-options-list lew-scrollbar",
@@ -15053,16 +15122,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
15053
15122
  key: 1,
15054
15123
  class: normalizeClass(["lew-select-item lew-select-item-mul", getSelectItemClassName(templateProps)])
15055
15124
  }, [
15056
- (openBlock(), createBlock(unref(LewCheckbox), {
15125
+ !templateProps.isGroup ? (openBlock(), createBlock(unref(LewCheckbox), {
15057
15126
  key: templateProps.value,
15058
15127
  class: "lew-select-checkbox",
15059
15128
  checked: unref(getChecked)(templateProps.value)
15060
- }, null, 8, ["checked"])),
15129
+ }, null, 8, ["checked"])) : createCommentVNode("", true),
15061
15130
  createVNode(unref(LewTextTrim), {
15062
- text: templateProps.label,
15131
+ text: templateProps.isGroup ? `${templateProps.label} (${templateProps.total})` : templateProps.label,
15063
15132
  delay: [500, 0],
15064
- class: "lew-select-label"
15065
- }, null, 8, ["text"])
15133
+ class: normalizeClass(["lew-select-label", { "is-group": templateProps.isGroup }])
15134
+ }, null, 8, ["text", "class"])
15066
15135
  ], 2))
15067
15136
  ], 12, _hoisted_4$9)
15068
15137
  ]),
@@ -15077,7 +15146,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
15077
15146
  };
15078
15147
  }
15079
15148
  });
15080
- const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-5fe2db67"]]);
15149
+ const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-570fb8d3"]]);
15081
15150
  const getHeadDate = ["一", "二", "三", "四", "五", "六", "日"];
15082
15151
  const getMonthDate = (year, month) => {
15083
15152
  const ret = [];
@@ -17154,7 +17223,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17154
17223
  };
17155
17224
  }
17156
17225
  });
17157
- const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-a8fbdd97"]]);
17226
+ const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-125f865d"]]);
17158
17227
  const treeSelectModel = {
17159
17228
  modelValue: {
17160
17229
  type: [String, Number],
@@ -17598,7 +17667,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17598
17667
  };
17599
17668
  }
17600
17669
  });
17601
- const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-bbe3e3af"]]);
17670
+ const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-8b411b09"]]);
17602
17671
  const _hoisted_1$k = { class: "lew-form-modal lew-scrollbar" };
17603
17672
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
17604
17673
  __name: "FormModal",
@@ -17832,6 +17901,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17832
17901
  }),
17833
17902
  emits: ["update:modelValue"],
17834
17903
  setup(__props2) {
17904
+ var _a;
17905
+ const app2 = (_a = getCurrentInstance()) == null ? void 0 : _a.appContext.app;
17906
+ if (app2 && !app2.directive("tooltip")) {
17907
+ app2.use(LewMessage$1);
17908
+ }
17835
17909
  const modelValue2 = useModel(__props2, "modelValue");
17836
17910
  const setUseId = () => {
17837
17911
  (modelValue2.value || []).forEach((e) => {
@@ -17877,7 +17951,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17877
17951
  };
17878
17952
  const del = ({ index: index2 }) => {
17879
17953
  if ((modelValue2.value || []).length <= props2.minRows) {
17880
- LewMessage.warning("已达到最小行数限制,无法删除");
17954
+ LewMessage$1.warning("已达到最小行数限制,无法删除");
17881
17955
  return;
17882
17956
  }
17883
17957
  LewDialog.error({
@@ -17893,7 +17967,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17893
17967
  };
17894
17968
  const add2 = () => {
17895
17969
  if ((modelValue2.value || []).length >= props2.maxRows) {
17896
- LewMessage.warning("已达到最大行数限制,无法添加");
17970
+ LewMessage$1.warning("已达到最大行数限制,无法添加");
17897
17971
  return;
17898
17972
  }
17899
17973
  let row = cloneDeep(props2.defaultForm);
@@ -17915,7 +17989,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17915
17989
  const selectedKeys = ref([]);
17916
17990
  const batchDelete = () => {
17917
17991
  if ((selectedKeys.value || []).length === 0) {
17918
- LewMessage.warning("请先选择要删除的数据");
17992
+ LewMessage$1.warning("请先选择要删除的数据");
17919
17993
  return;
17920
17994
  }
17921
17995
  LewDialog.error({
@@ -17945,7 +18019,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17945
18019
  });
17946
18020
  };
17947
18021
  const checkUniqueFieldFn = (form) => {
17948
- var _a;
18022
+ var _a2;
17949
18023
  if (!props2.uniqueField) {
17950
18024
  return true;
17951
18025
  }
@@ -17954,16 +18028,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17954
18028
  (item) => item[props2.uniqueField] === fieldValue
17955
18029
  );
17956
18030
  if (!vail) {
17957
- const label = (_a = formOptions.value.find(
18031
+ const label = (_a2 = formOptions.value.find(
17958
18032
  (e) => e.field === props2.uniqueField
17959
- )) == null ? void 0 : _a.label;
17960
- LewMessage.warning(`该${label}已存在。请输入一个不重复的${label}。`);
18033
+ )) == null ? void 0 : _a2.label;
18034
+ LewMessage$1.warning(`该${label}已存在。请输入一个不重复的${label}。`);
17961
18035
  return false;
17962
18036
  }
17963
18037
  return true;
17964
18038
  };
17965
18039
  const sortRows = () => {
17966
- LewMessage.info("该功能正在开发中,敬请期待");
18040
+ LewMessage$1.info("该功能正在开发中,敬请期待");
17967
18041
  };
17968
18042
  const isMaxRowsReached = computed(
17969
18043
  () => (modelValue2.value || []).length >= props2.maxRows
@@ -18151,7 +18225,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18151
18225
  };
18152
18226
  }
18153
18227
  });
18154
- const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7ac3a3c0"]]);
18228
+ const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-a7bdcbfd"]]);
18155
18229
  const switchModel = {
18156
18230
  modelValue: {
18157
18231
  type: Boolean,
@@ -18322,7 +18396,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18322
18396
  };
18323
18397
  }
18324
18398
  });
18325
- const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-91c197fb"]]);
18399
+ const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-f9d855ca"]]);
18326
18400
  const sliderModel = {
18327
18401
  modelValue: {
18328
18402
  type: [Number, void 0],
@@ -19233,7 +19307,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19233
19307
  };
19234
19308
  }
19235
19309
  });
19236
- const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b3157b53"]]);
19310
+ const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-5601dfdf"]]);
19237
19311
  const uploadProps = {
19238
19312
  accept: {
19239
19313
  type: String,
@@ -21354,7 +21428,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21354
21428
  };
21355
21429
  }
21356
21430
  });
21357
- const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f4861d07"]]);
21431
+ const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e37e24d3"]]);
21358
21432
  const treeModel = {
21359
21433
  modelValue: {
21360
21434
  type: [Array, String],
@@ -21840,7 +21914,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21840
21914
  };
21841
21915
  }
21842
21916
  });
21843
- const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-71b6af52"]]);
21917
+ const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-86c0e774"]]);
21844
21918
  const collapseModel = {
21845
21919
  modelValue: {
21846
21920
  type: [Array, String],
@@ -21883,18 +21957,6 @@ const collapseProps = {
21883
21957
  value
21884
21958
  });
21885
21959
  }
21886
- },
21887
- gap: {
21888
- type: [String, Number],
21889
- default: "0px",
21890
- description: "折叠项之间的间距,支持 CSS 长度值。",
21891
- validator(value) {
21892
- return isValidCssValue({
21893
- name: "LewCollapseItem",
21894
- field: "radius",
21895
- value
21896
- });
21897
- }
21898
21960
  }
21899
21961
  };
21900
21962
  const collapseItemProps = {
@@ -21940,8 +22002,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
21940
22002
  const modelValue2 = useModel(__props2, "modelValue");
21941
22003
  provide("expandKeys", modelValue2);
21942
22004
  const collapseStyle = computed(() => ({
21943
- width: any2px(props2.width),
21944
- gap: any2px(props2.gap)
22005
+ width: any2px(props2.width)
21945
22006
  }));
21946
22007
  return (_ctx, _cache) => {
21947
22008
  return openBlock(), createElementBlock("div", {
@@ -21953,7 +22014,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
21953
22014
  };
21954
22015
  }
21955
22016
  });
21956
- const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2e866a79"]]);
22017
+ const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-792b7e16"]]);
21957
22018
  const _sfc_main$c = {
21958
22019
  props: {
21959
22020
  name: {
@@ -22238,7 +22299,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22238
22299
  };
22239
22300
  }
22240
22301
  });
22241
- const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-eb8496a1"]]);
22302
+ const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-93aae809"]]);
22242
22303
  const descProps = {
22243
22304
  options: {
22244
22305
  type: Array,
@@ -22608,7 +22669,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22608
22669
  };
22609
22670
  }
22610
22671
  });
22611
- const LewDescItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-1543c046"]]);
22672
+ const LewDescItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-25a1c7c1"]]);
22612
22673
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22613
22674
  __name: "LewDesc",
22614
22675
  props: descProps,
@@ -23024,7 +23085,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23024
23085
  };
23025
23086
  }
23026
23087
  });
23027
- const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-9ba5f29e"]]);
23088
+ const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5cc72080"]]);
23028
23089
  const popokProps = {
23029
23090
  type: {
23030
23091
  type: String,
@@ -24434,7 +24495,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24434
24495
  };
24435
24496
  }
24436
24497
  });
24437
- const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e33c6a11"]]);
24498
+ const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-189cc6df"]]);
24438
24499
  const initLewHoverMenu = () => {
24439
24500
  window.LewHoverMenu = {
24440
24501
  menu: {},