lew-ui 2.4.9 → 2.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +46 -46
  3. package/README.zh-CN.md +48 -48
  4. package/dist/components/button/src/LewButton.vue.d.ts +1 -1
  5. package/dist/components/cascader/src/LewCascader.vue.d.ts +15 -2
  6. package/dist/components/cascader/src/props.d.ts +7 -1
  7. package/dist/components/drawer/src/LewDrawer.vue.d.ts +2 -2
  8. package/dist/components/form/src/LewForm.vue.d.ts +11 -0
  9. package/dist/components/form/src/LewFormItem.vue.d.ts +3 -3
  10. package/dist/components/form/src/props.d.ts +6 -1
  11. package/dist/components/image/src/LewImage.vue.d.ts +1 -1
  12. package/dist/components/modal/src/LewModal.vue.d.ts +2 -2
  13. package/dist/components/popok/src/LewPopok.vue.d.ts +2 -2
  14. package/dist/components/popover/src/LewPopover.vue.d.ts +1 -1
  15. package/dist/components/select/src/LewSelect.vue.d.ts +15 -2
  16. package/dist/components/select/src/props.d.ts +7 -1
  17. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +13 -0
  18. package/dist/components/select-multiple/src/props.d.ts +6 -0
  19. package/dist/components/switch/src/LewSwitch.vue.d.ts +1 -1
  20. package/dist/components/tree/src/LewTree.vue.d.ts +3 -3
  21. package/dist/components/tree/src/props.d.ts +1 -1
  22. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +3 -3
  23. package/dist/components/tree-select/src/props.d.ts +1 -1
  24. package/dist/components/upload/src/LewUpload.vue.d.ts +18 -5
  25. package/dist/components/upload/src/props.d.ts +11 -3
  26. package/dist/confetti.browser.min.js +456 -456
  27. package/dist/docs/views/form-engine/schema/compoments-menus.d.ts +33 -4
  28. package/dist/docs/views/form-engine/schema/components/upload.d.ts +18 -0
  29. package/dist/index.mjs +245 -153
  30. package/dist/index.umd.js +2 -2
  31. package/dist/style.css +1 -1
  32. package/dist/utils/Icon.vue.d.ts +3 -3
  33. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { h as h$1, defineComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, unref, createApp, computed, createElementBlock, renderSlot, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, ref, onMounted, nextTick, getCurrentInstance, shallowRef, watch, toRefs, mergeModels, useModel, reactive, withCtx, createElementVNode, createVNode, Transition, createCommentVNode, withModifiers, withDirectives, toDisplayString, vShow, Fragment, renderList, createTextVNode, resolveDirective, isRef, vModelText, mergeProps, createSlots, onUnmounted, vModelDynamic, watchEffect, TransitionGroup, toRaw, vModelCheckbox, resolveComponent, onActivated, normalizeProps, guardReactiveProps, Teleport, provide, inject } from "vue";
1
+ import { h as h$1, defineComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, unref, createApp, computed, createElementBlock, renderSlot, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, ref, onMounted, nextTick, getCurrentInstance, shallowRef, watch, toRefs, mergeModels, useModel, reactive, inject, withCtx, createElementVNode, createVNode, Transition, createCommentVNode, withModifiers, withDirectives, toDisplayString, vShow, Fragment, renderList, createTextVNode, resolveDirective, isRef, vModelText, mergeProps, createSlots, onUnmounted, vModelDynamic, watchEffect, TransitionGroup, provide, toRaw, vModelCheckbox, resolveComponent, onActivated, normalizeProps, guardReactiveProps, Teleport } from "vue";
2
2
  const flexProps = {
3
3
  direction: {
4
4
  type: String,
@@ -2204,6 +2204,16 @@ const ChevronsRight = createLucideIcon("ChevronsRightIcon", [
2204
2204
  ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
2205
2205
  ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
2206
2206
  ]);
2207
+ /**
2208
+ * @license lucide-vue-next v0.441.0 - ISC
2209
+ *
2210
+ * This source code is licensed under the ISC license.
2211
+ * See the LICENSE file in the root directory of this source tree.
2212
+ */
2213
+ const ChevronsUpDown = createLucideIcon("ChevronsUpDownIcon", [
2214
+ ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
2215
+ ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
2216
+ ]);
2207
2217
  /**
2208
2218
  * @license lucide-vue-next v0.441.0 - ISC
2209
2219
  *
@@ -2445,13 +2455,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
2445
2455
  type: Number,
2446
2456
  default: 16
2447
2457
  },
2448
- spinning: {
2458
+ loading: {
2449
2459
  type: Boolean,
2450
2460
  default: false
2451
2461
  },
2452
2462
  speed: {
2453
2463
  type: Number,
2454
- default: 1.5
2464
+ default: 1
2455
2465
  }
2456
2466
  },
2457
2467
  setup(__props2) {
@@ -2490,12 +2500,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
2490
2500
  "rotate-cw": RotateCw,
2491
2501
  "more-horizontal": Ellipsis,
2492
2502
  "edit-2": Pen,
2493
- "arrow-down": ArrowDown
2503
+ "arrow-down": ArrowDown,
2504
+ "chevrons-up-down": ChevronsUpDown
2494
2505
  };
2495
2506
  return (_ctx, _cache) => {
2496
2507
  return openBlock(), createBlock(resolveDynamicComponent(iconMap[props2.type]), {
2497
2508
  class: normalizeClass(["lew-icon", {
2498
- "lew-icon-spinning": __props2.spinning
2509
+ "lew-icon-loading": __props2.loading
2499
2510
  }]),
2500
2511
  style: normalizeStyle({
2501
2512
  "animation-duration": __props2.speed + "s",
@@ -2514,7 +2525,7 @@ const _export_sfc = (sfc, props2) => {
2514
2525
  }
2515
2526
  return target;
2516
2527
  };
2517
- const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-27e90aa0"]]);
2528
+ const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-bea86963"]]);
2518
2529
  const iconColorType = {
2519
2530
  normal: "gray",
2520
2531
  warning: "orange",
@@ -2864,7 +2875,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
2864
2875
  };
2865
2876
  }
2866
2877
  });
2867
- const LewMark = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-e59f3df9"]]);
2878
+ const LewMark = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-80768a63"]]);
2868
2879
  const cascaderModel = {
2869
2880
  modelValue: {
2870
2881
  type: [String, Number],
@@ -2936,10 +2947,16 @@ const cascaderProps = {
2936
2947
  return ["click", "hover"].includes(value);
2937
2948
  }
2938
2949
  },
2939
- onload: {
2950
+ loadMethod: {
2940
2951
  type: Function,
2941
2952
  description: "动态加载子节点数据的函数"
2942
2953
  },
2954
+ loadMethodId: {
2955
+ type: String,
2956
+ default: "",
2957
+ hidden: true,
2958
+ description: "动态加载子节点数据函数的标识"
2959
+ },
2943
2960
  readonly: {
2944
2961
  type: Boolean,
2945
2962
  default: false,
@@ -3513,6 +3530,15 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3513
3530
  tobeItem: {},
3514
3531
  keyword: ""
3515
3532
  });
3533
+ const formMethods = inject("formMethods", {});
3534
+ let _loadMethod = computed(() => {
3535
+ if (isFunction(props2.loadMethod)) {
3536
+ return props2.loadMethod;
3537
+ } else if (props2.loadMethodId) {
3538
+ return formMethods[props2.loadMethodId];
3539
+ }
3540
+ return false;
3541
+ });
3516
3542
  const findObjectByValue = (treeList, value) => {
3517
3543
  for (let i2 = 0; i2 < treeList.length; i2++) {
3518
3544
  const tree = treeList[i2];
@@ -3565,9 +3591,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3565
3591
  }
3566
3592
  const init = async () => {
3567
3593
  let _tree = [];
3568
- if (props2.onload && !state.loading) {
3594
+ if (_loadMethod.value && !state.loading) {
3569
3595
  state.loading = true;
3570
- _tree = await props2.onload() || [];
3596
+ _tree = await _loadMethod.value() || [];
3571
3597
  state.loading = false;
3572
3598
  } else if (props2.options && props2.options.length > 0) {
3573
3599
  _tree = props2.options && props2.options.map((e2) => {
@@ -3586,10 +3612,10 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3586
3612
  const selectItem = async (item, level) => {
3587
3613
  if (!item.isLeaf && item.labelPaths !== state.activeLabels) {
3588
3614
  state.optionsGroup = state.optionsGroup.slice(0, level + 1);
3589
- if (props2.onload && !item.isLeaf) {
3615
+ if (_loadMethod.value && !item.isLeaf) {
3590
3616
  item.loading = true;
3591
3617
  state.okLoading = true;
3592
- const new_options = await props2.onload(cloneDeep({ ...item, level })) || [];
3618
+ const new_options = await _loadMethod.value(cloneDeep({ ...item, level })) || [];
3593
3619
  let _tree = findAndAddChildrenByValue(
3594
3620
  cloneDeep(state.optionsTree),
3595
3621
  cloneDeep(item.value),
@@ -3837,7 +3863,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3837
3863
  templateProps.loading ? (openBlock(), createBlock(Icon, {
3838
3864
  key: 1,
3839
3865
  size: 14,
3840
- spinning: "",
3866
+ loading: "",
3841
3867
  class: "lew-cascader-loading-icon",
3842
3868
  type: "loader"
3843
3869
  })) : !templateProps.isLeaf ? (openBlock(), createBlock(Icon, {
@@ -3894,7 +3920,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3894
3920
  };
3895
3921
  }
3896
3922
  });
3897
- const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-b3a957d9"]]);
3923
+ const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-27e74356"]]);
3898
3924
  const treeModel = {
3899
3925
  modelValue: {
3900
3926
  type: [Array, String],
@@ -3982,7 +4008,7 @@ const treeProps = {
3982
4008
  default: void 0,
3983
4009
  description: "初始化树形数据的方法"
3984
4010
  },
3985
- onload: {
4011
+ loadMethod: {
3986
4012
  type: Function,
3987
4013
  default: void 0,
3988
4014
  description: "异步加载子节点数据的方法"
@@ -4195,13 +4221,13 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
4195
4221
  if (i2 >= 0) {
4196
4222
  _expandedKeys.splice(i2, 1);
4197
4223
  expandedKeys.value = _expandedKeys;
4198
- } else if (props2.onload && !loadingKeys.value.includes(item.key)) {
4224
+ } else if (props2.loadMethod && !loadingKeys.value.includes(item.key)) {
4199
4225
  const index2 = treeList.value.findIndex(
4200
4226
  (e2) => e2.parentKey === item.key
4201
4227
  );
4202
4228
  if (index2 < 0) {
4203
4229
  loadingKeys.value.push(item.key);
4204
- let _tree = await props2.onload(cloneDeep(item)) || [];
4230
+ let _tree = await props2.loadMethod(cloneDeep(item)) || [];
4205
4231
  insertChildByKey(treeBackup, item.key, _tree);
4206
4232
  const { newTree, newTreeList } = await tree2List({
4207
4233
  dataSource: treeBackup,
@@ -4335,8 +4361,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
4335
4361
  unref(loadingKeys).includes(item.key) ? (openBlock(), createBlock(Icon, {
4336
4362
  key: 0,
4337
4363
  size: 14,
4338
- animation: "spin",
4339
- animationSpeed: "fast",
4364
+ loading: "",
4340
4365
  class: "lew-cascader-loading-icon",
4341
4366
  type: "loader"
4342
4367
  })) : (openBlock(), createBlock(Icon, {
@@ -4381,7 +4406,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
4381
4406
  };
4382
4407
  }
4383
4408
  });
4384
- const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-4001e0cc"]]);
4409
+ const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-2acdf1ce"]]);
4385
4410
  function tryOnScopeDispose(fn2) {
4386
4411
  if (getCurrentScope()) {
4387
4412
  onScopeDispose(fn2);
@@ -5299,7 +5324,7 @@ const treeSelectProps = {
5299
5324
  default: void 0,
5300
5325
  description: "初始化树数据的方法"
5301
5326
  },
5302
- onload: {
5327
+ loadMethod: {
5303
5328
  type: Function,
5304
5329
  default: void 0,
5305
5330
  description: "异步加载子节点数据的方法"
@@ -5502,6 +5527,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
5502
5527
  class: normalizeClass(["icon-select", { "icon-select-hide": _ctx.clearable && unref(state).keyword }])
5503
5528
  }, null, 8, ["size", "class"])) : unref(state).initLoading ? (openBlock(), createBlock(Icon, {
5504
5529
  key: 1,
5530
+ loading: "",
5505
5531
  type: "loader",
5506
5532
  size: unref(getIconSize),
5507
5533
  class: "icon-loader"
@@ -5556,7 +5582,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
5556
5582
  showLine: _ctx.showLine,
5557
5583
  showCheckbox: _ctx.showCheckbox,
5558
5584
  dataSource: _ctx.dataSource,
5559
- onload: _ctx.onload,
5585
+ loadMethod: _ctx.loadMethod,
5560
5586
  initTree: _ctx.initTree,
5561
5587
  expandAll: _ctx.expandAll
5562
5588
  }, {
@@ -5589,7 +5615,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
5589
5615
  };
5590
5616
  }
5591
5617
  });
5592
- const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-442ee4fb"]]);
5618
+ const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-c947f4cb"]]);
5593
5619
  const tabsModel = {
5594
5620
  modelValue: {
5595
5621
  type: [String, Number],
@@ -5868,7 +5894,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
5868
5894
  };
5869
5895
  }
5870
5896
  });
5871
- const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-acdfde9d"]]);
5897
+ const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-a47e87d8"]]);
5872
5898
  const breadcrumbProps = {
5873
5899
  options: {
5874
5900
  type: Array,
@@ -6162,7 +6188,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
6162
6188
  key: 0,
6163
6189
  size: 16,
6164
6190
  "stroke-width": 3,
6165
- spinning: "",
6191
+ loading: "",
6166
6192
  type: "loader"
6167
6193
  })) : index2 === (stepsValue.value || 1) - 1 && _ctx.status === "warning" ? (openBlock(), createBlock(Icon, {
6168
6194
  key: 1,
@@ -6743,7 +6769,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
6743
6769
  };
6744
6770
  }
6745
6771
  });
6746
- const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-138f7349"]]);
6772
+ const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-db102433"]]);
6747
6773
  const inputNumberModel = {
6748
6774
  modelValue: {
6749
6775
  type: Number,
@@ -7031,7 +7057,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
7031
7057
  };
7032
7058
  }
7033
7059
  });
7034
- const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-1d716184"]]);
7060
+ const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-04707614"]]);
7035
7061
  const textareaModel = {
7036
7062
  modelValue: {
7037
7063
  type: String,
@@ -7321,7 +7347,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
7321
7347
  };
7322
7348
  }
7323
7349
  });
7324
- const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-ba9b2885"]]);
7350
+ const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-5572021e"]]);
7325
7351
  const inputTagModel = {
7326
7352
  modelValue: {
7327
7353
  type: Array,
@@ -7516,7 +7542,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
7516
7542
  };
7517
7543
  }
7518
7544
  });
7519
- const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-c2ab5c73"]]);
7545
+ const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-637fd627"]]);
7520
7546
  const _hoisted_1$z = ["width", "height"];
7521
7547
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
7522
7548
  __name: "RequiredIcon",
@@ -7649,6 +7675,11 @@ const formProps = {
7649
7675
  default: "",
7650
7676
  description: "表单的唯一标识符",
7651
7677
  hidden: true
7678
+ },
7679
+ formMethods: {
7680
+ type: Object,
7681
+ default: () => ({}),
7682
+ description: "表单项的方法集合,包含用于操作表单的函数"
7652
7683
  }
7653
7684
  };
7654
7685
  const formItemProps = {
@@ -7663,7 +7694,7 @@ const formItemProps = {
7663
7694
  description: "表单项对应的字段名,用于数据绑定和验证"
7664
7695
  },
7665
7696
  required: {
7666
- type: Boolean,
7697
+ type: [Boolean, Function],
7667
7698
  default: false,
7668
7699
  description: "是否为必填项"
7669
7700
  },
@@ -10369,6 +10400,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10369
10400
  autoLabelWidth.value = (_a = formLabelRef.value) == null ? void 0 : _a.getWidth();
10370
10401
  emit2("mounted");
10371
10402
  });
10403
+ provide("formMethods", props2.formMethods);
10372
10404
  watch(
10373
10405
  () => props2.size,
10374
10406
  () => {
@@ -10414,7 +10446,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10414
10446
  };
10415
10447
  }
10416
10448
  });
10417
- const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-89ed7447"]]);
10449
+ const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-6137b319"]]);
10418
10450
  const checkboxModel = {
10419
10451
  modelValue: {
10420
10452
  type: Boolean,
@@ -10637,7 +10669,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10637
10669
  };
10638
10670
  }
10639
10671
  });
10640
- const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-fb54995e"]]);
10672
+ const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-f63a222c"]]);
10641
10673
  const _sfc_main$I = /* @__PURE__ */ defineComponent({
10642
10674
  __name: "LewCheckboxGroup",
10643
10675
  props: /* @__PURE__ */ mergeModels(checkboxGroupProps, {
@@ -10914,7 +10946,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10914
10946
  };
10915
10947
  }
10916
10948
  });
10917
- const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-a27f906d"]]);
10949
+ const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-083a14ba"]]);
10918
10950
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
10919
10951
  __name: "LewRadioGroup",
10920
10952
  props: /* @__PURE__ */ mergeModels(radioGroupProps, {
@@ -11023,15 +11055,15 @@ const selectProps = {
11023
11055
  },
11024
11056
  searchMethod: {
11025
11057
  type: Function,
11026
- default: (params) => {
11027
- const { options, keyword } = params;
11028
- if (options && keyword) {
11029
- return options.filter((option) => option.label.indexOf(keyword) >= 0);
11030
- }
11031
- return [];
11032
- },
11058
+ default: void 0,
11033
11059
  description: "自定义搜索方法,接收搜索参数并返回过滤后的选项列表"
11034
11060
  },
11061
+ searchMethodId: {
11062
+ type: String,
11063
+ default: "",
11064
+ hidden: true,
11065
+ description: "上传函数的标识"
11066
+ },
11035
11067
  searchDelay: {
11036
11068
  type: Number,
11037
11069
  default: 250,
@@ -11084,6 +11116,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
11084
11116
  const lewSelectRef = ref();
11085
11117
  const inputRef = ref();
11086
11118
  const lewPopoverRef = ref();
11119
+ const formMethods = inject("formMethods", {});
11120
+ let _searchMethod = computed(() => {
11121
+ if (isFunction(props2.searchMethod)) {
11122
+ return props2.searchMethod;
11123
+ } else if (props2.searchMethodId) {
11124
+ return formMethods[props2.searchMethodId];
11125
+ }
11126
+ return false;
11127
+ });
11087
11128
  const state = reactive({
11088
11129
  selectWidth: 0,
11089
11130
  visible: false,
@@ -11115,7 +11156,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
11115
11156
  if (!keyword && props2.options.length > 0) {
11116
11157
  result = props2.options;
11117
11158
  } else {
11118
- result = await props2.searchMethod({
11159
+ result = await _searchMethod.value({
11119
11160
  options: props2.options,
11120
11161
  keyword
11121
11162
  });
@@ -11352,7 +11393,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
11352
11393
  };
11353
11394
  }
11354
11395
  });
11355
- const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-33ba2201"]]);
11396
+ const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-d6762145"]]);
11356
11397
  const selectMultipleModel = {
11357
11398
  modelValue: {
11358
11399
  type: Array,
@@ -11421,6 +11462,12 @@ const selectMultipleProps = {
11421
11462
  },
11422
11463
  description: "自定义搜索方法"
11423
11464
  },
11465
+ searchMethodId: {
11466
+ type: String,
11467
+ default: "",
11468
+ hidden: true,
11469
+ description: "上传函数的标识"
11470
+ },
11424
11471
  searchDelay: {
11425
11472
  type: Number,
11426
11473
  default: 250,
@@ -11490,6 +11537,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11490
11537
  options: props2.options,
11491
11538
  keyword: ""
11492
11539
  });
11540
+ const formMethods = inject("formMethods", {});
11541
+ let _searchMethod = computed(() => {
11542
+ if (isFunction(props2.searchMethod)) {
11543
+ return props2.searchMethod;
11544
+ } else if (props2.searchMethodId) {
11545
+ return formMethods[props2.searchMethodId];
11546
+ }
11547
+ return false;
11548
+ });
11493
11549
  const getSelectWidth = () => {
11494
11550
  var _a2;
11495
11551
  state.selectWidth = ((_a2 = lewSelectRef.value) == null ? void 0 : _a2.clientWidth) - 12;
@@ -11516,7 +11572,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11516
11572
  if (!keyword && props2.options.length > 0) {
11517
11573
  result = props2.options;
11518
11574
  } else {
11519
- result = await props2.searchMethod({
11575
+ result = await _searchMethod.value({
11520
11576
  options: props2.options,
11521
11577
  keyword
11522
11578
  });
@@ -11833,7 +11889,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11833
11889
  };
11834
11890
  }
11835
11891
  });
11836
- const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-af28071d"]]);
11892
+ const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-14cbb715"]]);
11837
11893
  const switchModel = {
11838
11894
  modelValue: {
11839
11895
  type: Boolean,
@@ -12004,7 +12060,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12004
12060
  };
12005
12061
  }
12006
12062
  });
12007
- const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-375a89a1"]]);
12063
+ const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-f285acd0"]]);
12008
12064
  const getHeadDate = ["一", "二", "三", "四", "五", "六", "日"];
12009
12065
  const getMonthDate = (year, month) => {
12010
12066
  const ret = [];
@@ -12739,7 +12795,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12739
12795
  };
12740
12796
  }
12741
12797
  });
12742
- const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-950da44b"]]);
12798
+ const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-60a10e34"]]);
12743
12799
  const dateRangePickerModel = {
12744
12800
  modelValue: {
12745
12801
  type: Object,
@@ -13393,7 +13449,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13393
13449
  const lewDateRangeClassNames = computed(() => {
13394
13450
  const focus = visible.value;
13395
13451
  const { size, readonly: readonly2, disabled } = props2;
13396
- return object2class("lew-date-range-picker", { focus, size, readonly: readonly2, disabled });
13452
+ return object2class("lew-date-range-picker", {
13453
+ focus,
13454
+ size,
13455
+ readonly: readonly2,
13456
+ disabled
13457
+ });
13397
13458
  });
13398
13459
  const checkClear = computed(() => {
13399
13460
  return (modelValue2.value && modelValue2.value[startKey] || modelValue2.value && modelValue2.value[endKey]) && props2.clearable;
@@ -13462,7 +13523,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13462
13523
  };
13463
13524
  }
13464
13525
  });
13465
- const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-dc70a911"]]);
13526
+ const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-dce40fdb"]]);
13466
13527
  const tableModel = {
13467
13528
  selectedKeys: {
13468
13529
  type: [Array, String, Number, void 0],
@@ -13612,7 +13673,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
13612
13673
  };
13613
13674
  }
13614
13675
  });
13615
- const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-fbff751e"]]);
13676
+ const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-62110f01"]]);
13616
13677
  const _hoisted_1$p = { class: "lew-table-wrapper" };
13617
13678
  const _hoisted_2$e = { class: "lew-table-header" };
13618
13679
  const _hoisted_3$b = { class: "lew-table-tr" };
@@ -13738,16 +13799,30 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13738
13799
  }
13739
13800
  state.hiddenScrollLine = "";
13740
13801
  };
13741
- const handleTableResize = throttle(() => {
13742
- const table = tableRef.value;
13743
- if (!table) return;
13802
+ const compTrHeight = () => {
13744
13803
  nextTick(() => {
13745
- trRefArr.value.forEach((element, index2) => {
13746
- if (element) {
13747
- trHeightArr.value[index2] = element.getBoundingClientRect().height;
13804
+ (trRefArr.value || []).forEach(
13805
+ (element, index2) => {
13806
+ if (element) {
13807
+ trHeightArr.value[index2] = element.getBoundingClientRect().height;
13808
+ }
13748
13809
  }
13749
- });
13810
+ );
13750
13811
  });
13812
+ };
13813
+ watch(
13814
+ () => trRefArr.value,
13815
+ () => {
13816
+ compTrHeight();
13817
+ },
13818
+ {
13819
+ deep: true
13820
+ }
13821
+ );
13822
+ const handleTableResize = throttle(() => {
13823
+ const table = tableRef.value;
13824
+ if (!table) return;
13825
+ compTrHeight();
13751
13826
  let totalWidth = props2.columns.reduce(
13752
13827
  (sum, col) => sum + Number(col.width),
13753
13828
  0
@@ -13939,8 +14014,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13939
14014
  init();
13940
14015
  });
13941
14016
  onActivated(() => {
13942
- updateScrollState();
13943
- handleTableResize();
14017
+ init();
13944
14018
  if (props2.checkable && !props2.rowKey) {
13945
14019
  throw new Error(
13946
14020
  "LewTable error: rowKey is required when checkable is enabled!"
@@ -14667,7 +14741,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14667
14741
  };
14668
14742
  }
14669
14743
  });
14670
- const LewMagicNumber = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-71b653af"]]);
14744
+ const LewMagicNumber = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-fa0c9d78"]]);
14671
14745
  const avatarProps = {
14672
14746
  size: {
14673
14747
  type: [Number, String],
@@ -14904,7 +14978,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
14904
14978
  };
14905
14979
  }
14906
14980
  });
14907
- const LewTitle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-f07f0fb6"]]);
14981
+ const LewTitle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-26b626e6"]]);
14908
14982
  const buttonProps = {
14909
14983
  text: {
14910
14984
  type: String,
@@ -15103,7 +15177,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
15103
15177
  }, [
15104
15178
  createVNode(Icon, {
15105
15179
  size: unref(getIconSize),
15106
- spinning: "",
15180
+ loading: "",
15107
15181
  type: "loader"
15108
15182
  }, null, 8, ["size"])
15109
15183
  ], 2),
@@ -15118,7 +15192,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
15118
15192
  };
15119
15193
  }
15120
15194
  });
15121
- const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-5d6320d1"]]);
15195
+ const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-f85f8299"]]);
15122
15196
  const badgeProps = {
15123
15197
  color: {
15124
15198
  type: String,
@@ -15685,7 +15759,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
15685
15759
  };
15686
15760
  }
15687
15761
  });
15688
- const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-1f24f890"]]);
15762
+ const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-7029ff4f"]]);
15689
15763
  const popokProps = {
15690
15764
  type: {
15691
15765
  type: String,
@@ -19135,7 +19209,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
19135
19209
  };
19136
19210
  }
19137
19211
  });
19138
- const LewBackTop = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-dc645f3d"]]);
19212
+ const LewBackTop = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-675270ed"]]);
19139
19213
  const textTrimProps = {
19140
19214
  text: {
19141
19215
  type: [String, Number, Boolean, Array, Object],
@@ -19306,7 +19380,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19306
19380
  };
19307
19381
  }
19308
19382
  });
19309
- const LewTextTrim = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-685f5e92"]]);
19383
+ const LewTextTrim = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-a5e381f5"]]);
19310
19384
  const menuProps = {
19311
19385
  options: {
19312
19386
  type: Array,
@@ -19538,7 +19612,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19538
19612
  };
19539
19613
  }
19540
19614
  });
19541
- const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-721edfa2"]]);
19615
+ const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-8cbb04e2"]]);
19542
19616
  const __vite_glob_0_0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20height='300'%20node-id='1'%20sillyvg='true'%20template-height='300'%20template-width='500'%20version='1.1'%20viewBox='0%200%20500%20300'%20width='500'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%20node-id='54'%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_50'%20node-id='5'%20spreadMethod='pad'%20x1='250'%20x2='250'%20y1='284.22'%20y2='191.22'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_35'%20node-id='15'%20spreadMethod='pad'%20x1='-3.4599998'%20x2='52.319996'%20y1='-701.7999'%20y2='-757.57996'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_35-2'%20node-id='16'%20spreadMethod='pad'%20x1='275.13998'%20x2='330.91998'%20y1='-896.95996'%20y2='-952.7399'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_35-3'%20node-id='17'%20spreadMethod='pad'%20x1='196.64998'%20x2='252.42998'%20y1='-1000.9099'%20y2='-1056.6799'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_50-2'%20node-id='18'%20spreadMethod='pad'%20x1='241.17'%20x2='241.17'%20y1='183.5'%20y2='176'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20'%20node-id='19'%20spreadMethod='pad'%20x1='277.5'%20x2='272.5'%20y1='107.33'%20y2='98.67'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-2'%20node-id='31'%20spreadMethod='pad'%20x1='233.5'%20x2='228.5'%20y1='120.33'%20y2='111.67'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-3'%20node-id='32'%20spreadMethod='pad'%20x1='225.25'%20x2='221.75'%20y1='145.53'%20y2='139.47'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-4'%20node-id='33'%20spreadMethod='pad'%20x1='260.23'%20x2='257.75'%20y1='154.77'%20y2='150.47'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-5'%20node-id='34'%20spreadMethod='pad'%20x1='258.75'%20x2='250.25'%20y1='138.86'%20y2='124.14'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M%20396.00%20237.72%20C%20396.00%20263.40%20330.63%20284.22%20250.00%20284.22%20C%20169.37%20284.22%20104.00%20263.40%20104.00%20237.72%20C%20104.00%20212.04%20169.37%20191.22%20250.00%20191.22%20C%20330.63%20191.22%20396.00%20212.04%20396.00%20237.72%20Z'%20fill='url(%23未命名的渐变_50)'%20fill-rule='nonzero'%20node-id='277'%20stroke='none'%20target-height='93'%20target-width='292'%20target-x='104'%20target-y='191.22'%3e%3c/path%3e%3cg%20node-id='318'%3e%3cpath%20d='M%20108.85%2089.86%20L%20108.85%2089.86%20L%20110.49%2091.84%20L%20111.70%2093.94%20L%20112.50%2096.21%20L%20112.90%2098.58%20L%20112.90%20100.94%20L%20112.50%20103.31%20L%20111.70%20105.58%20L%20110.49%20107.68%20L%20108.85%20109.66%20L%2057.94%20160.57%20L%2055.97%20162.21%20L%2053.86%20163.41%20L%2051.59%20164.22%20L%2049.22%20164.62%20L%2046.86%20164.62%20L%2044.49%20164.22%20L%2042.23%20163.41%20L%2040.12%20162.21%20L%2038.14%20160.57%20L%2038.14%20160.57%20L%2036.50%20158.60%20L%2035.30%20156.49%20L%2034.50%20154.22%20L%2034.09%20151.85%20L%2034.09%20149.49%20L%2034.50%20147.12%20L%2035.30%20144.85%20L%2036.50%20142.75%20L%2038.14%20140.77%20L%2089.05%2089.86%20L%2091.03%2088.22%20L%2093.14%2087.02%20L%2095.40%2086.22%20L%2097.78%2085.81%20L%20100.13%2085.81%20L%20102.51%2086.22%20L%20104.77%2087.02%20L%20106.88%2088.22%20L%20108.85%2089.86%20Z'%20fill='url(%23未命名的渐变_35)'%20fill-rule='nonzero'%20group-id='1'%20node-id='281'%20stroke='none'%20target-height='78.81137'%20target-width='78.811386'%20target-x='34.092743'%20target-y='85.81056'%3e%3c/path%3e%3c/g%3e%3cg%20node-id='319'%3e%3cpath%20d='M%20443.86%20148.86%20L%20443.86%20148.86%20L%20445.49%20150.84%20L%20446.70%20152.94%20L%20447.50%20155.21%20L%20447.91%20157.58%20L%20447.91%20159.94%20L%20447.50%20162.31%20L%20446.70%20164.58%20L%20445.49%20166.68%20L%20443.86%20168.66%20L%20392.94%20219.57%20L%20390.97%20221.21%20L%20388.86%20222.41%20L%20386.60%20223.22%20L%20384.22%20223.62%20L%20381.87%20223.62%20L%20379.49%20223.22%20L%20377.23%20222.41%20L%20375.12%20221.21%20L%20373.14%20219.57%20L%20373.14%20219.57%20L%20371.51%20217.60%20L%20370.30%20215.49%20L%20369.50%20213.22%20L%20369.09%20210.85%20L%20369.09%20208.49%20L%20369.50%20206.12%20L%20370.30%20203.86%20L%20371.51%20201.75%20L%20373.14%20199.77%20L%20424.06%20148.86%20L%20426.03%20147.22%20L%20428.14%20146.02%20L%20430.40%20145.22%20L%20432.78%20144.81%20L%20435.13%20144.81%20L%20437.51%20145.22%20L%20439.77%20146.02%20L%20441.88%20147.22%20L%20443.86%20148.86%20Z'%20fill='url(%23未命名的渐变_35-2)'%20fill-rule='nonzero'%20group-id='2'%20node-id='286'%20stroke='none'%20target-height='78.81143'%20target-width='78.8114'%20target-x='369.09418'%20target-y='144.81061'%3e%3c/path%3e%3c/g%3e%3cg%20node-id='320'%3e%3cpath%20d='M%20461.86%2019.86%20L%20461.86%2019.86%20L%20463.50%2021.84%20L%20464.70%2023.94%20L%20465.50%2026.21%20L%20465.91%2028.58%20L%20465.91%2030.94%20L%20465.50%2033.31%20L%20464.70%2035.58%20L%20463.50%2037.69%20L%20461.86%2039.66%20L%20410.95%2090.57%20L%20408.97%2092.21%20L%20406.87%2093.42%20L%20404.60%2094.22%20L%20402.23%2094.62%20L%20399.87%2094.62%20L%20397.50%2094.22%20L%20395.23%2093.42%20L%20393.12%2092.21%20L%20391.15%2090.57%20L%20391.15%2090.57%20L%20389.51%2088.60%20L%20388.31%2086.49%20L%20387.50%2084.22%20L%20387.10%2081.85%20L%20387.10%2079.49%20L%20387.50%2077.12%20L%20388.31%2074.86%20L%20389.51%2072.75%20L%20391.15%2070.77%20L%20442.06%2019.86%20L%20444.04%2018.22%20L%20446.14%2017.02%20L%20448.41%2016.22%20L%20450.78%2015.81%20L%20453.14%2015.81%20L%20455.51%2016.22%20L%20457.78%2017.02%20L%20459.88%2018.22%20L%20461.86%2019.86%20Z'%20fill='url(%23未命名的渐变_35-3)'%20fill-rule='nonzero'%20group-id='3'%20node-id='291'%20stroke='none'%20target-height='78.81137'%20target-width='78.8114'%20target-x='387.09888'%20target-y='15.811768'%3e%3c/path%3e%3c/g%3e%3cpath%20d='M%20144.63%2093.23%20L%20173.22%2087.05%20L%20182.67%20147.42%20L%20195.67%20145.11%20L%20198.73%20165.26%20L%20185.73%20167.40%20L%20188.73%20185.85%20L%20162.76%20190.00%20L%20159.76%20172.07%20L%20116.86%20178.93%20L%20113.31%20157.52%20Z%20M%20154.00%20111.84%20L%20134.11%20158.20%20L%20159.63%20154.00%20Z'%20fill='%23c7cce0'%20fill-rule='nonzero'%20node-id='294'%20stroke='none'%20target-height='102.95'%20target-width='85.42'%20target-x='113.31'%20target-y='87.05'%3e%3c/path%3e%3cpath%20d='M%20141.51%2092.48%20L%20169.79%2087.82%20L%20179.67%20147.82%20L%20192.67%20145.68%20L%20195.51%20162.92%20L%20182.51%20165.06%20L%20185.51%20183.51%20L%20162.21%20187.35%20L%20159.21%20168.90%20L%20116.31%20176.00%20L%20112.83%20154.86%20Z%20M%20150.74%20109.48%20L%20130.85%20155.84%20L%20156.37%20151.64%20Z'%20fill='%23e2e4ed'%20fill-rule='nonzero'%20node-id='296'%20stroke='none'%20target-height='99.53001'%20target-width='82.67999'%20target-x='112.83'%20target-y='87.82'%3e%3c/path%3e%3cpath%20d='M%20336.30%2092.18%20L%20364.13%2096.36%20L%20352.08%20153.89%20L%20364.60%20156.25%20L%20360.49%20175.42%20L%20348.07%20172.92%20L%20344.52%20190.55%20L%20319.67%20185.40%20L%20323.00%20168.25%20L%20282.07%20159.82%20L%20286.16%20139.35%20Z%20M%20338.41%20112.12%20L%20304.73%20147.06%20L%20329.12%20152.00%20Z'%20fill='%23c7cce0'%20fill-rule='nonzero'%20node-id='298'%20stroke='none'%20target-height='98.37'%20target-width='82.53'%20target-x='282.07'%20target-y='92.18'%3e%3c/path%3e%3cpath%20d='M%20333.75%2090.44%20L%20360.75%2095.88%20L%20349.21%20153.22%20L%20361.63%20155.72%20L%20358.31%20172.19%20L%20345.89%20169.69%20L%20342.34%20187.32%20L%20320.07%20182.84%20L%20323.62%20165.21%20L%20282.62%20156.96%20L%20286.69%20136.75%20Z%20M%20336.26%20108.89%20L%20302.58%20143.83%20L%20327.00%20148.74%20Z'%20fill='%23e2e4ed'%20fill-rule='nonzero'%20node-id='300'%20stroke='none'%20target-height='96.880005'%20target-width='79.01001'%20target-x='282.62'%20target-y='90.44'%3e%3c/path%3e%3cpath%20d='M%20261.38%20179.75%20C%20261.38%20181.82%20252.33%20183.50%20241.17%20183.50%20C%20230.01%20183.50%20220.96%20181.82%20220.96%20179.75%20C%20220.96%20177.68%20230.01%20176.00%20241.17%20176.00%20C%20252.33%20176.00%20261.38%20177.68%20261.38%20179.75%20Z'%20fill='url(%23未命名的渐变_50-2)'%20fill-rule='nonzero'%20node-id='302'%20stroke='none'%20target-height='7.5'%20target-width='40.42'%20target-x='220.96'%20target-y='176'%3e%3c/path%3e%3cpath%20d='M%20272.17%20130.00%20C%20272.17%20147.12%20258.29%20161.00%20241.17%20161.00%20C%20224.05%20161.00%20210.17%20147.12%20210.17%20130.00%20C%20210.17%20112.88%20224.05%2099.00%20241.17%2099.00%20C%20258.29%2099.00%20272.17%20112.88%20272.17%20130.00%20Z'%20fill='%23e2e4ed'%20fill-rule='nonzero'%20node-id='304'%20stroke='none'%20target-height='62'%20target-width='62.000015'%20target-x='210.17'%20target-y='99'%3e%3c/path%3e%3cpath%20d='M%20280.00%20103.00%20C%20280.00%20105.76%20277.76%20108.00%20275.00%20108.00%20C%20272.24%20108.00%20270.00%20105.76%20270.00%20103.00%20C%20270.00%20100.24%20272.24%2098.00%20275.00%2098.00%20C%20277.76%2098.00%20280.00%20100.24%20280.00%20103.00%20Z'%20fill='url(%23未命名的渐变_20)'%20fill-rule='nonzero'%20node-id='306'%20stroke='none'%20target-height='10'%20target-width='10'%20target-x='270'%20target-y='98'%3e%3c/path%3e%3cpath%20d='M%20236.00%20116.00%20C%20236.00%20118.76%20233.76%20121.00%20231.00%20121.00%20C%20228.24%20121.00%20226.00%20118.76%20226.00%20116.00%20C%20226.00%20113.24%20228.24%20111.00%20231.00%20111.00%20C%20233.76%20111.00%20236.00%20113.24%20236.00%20116.00%20Z'%20fill='url(%23未命名的渐变_20-2)'%20fill-rule='nonzero'%20node-id='308'%20stroke='none'%20target-height='10'%20target-width='10'%20target-x='226'%20target-y='111'%3e%3c/path%3e%3cpath%20d='M%20227.00%20142.50%20C%20227.00%20144.43%20225.43%20146.00%20223.50%20146.00%20C%20221.57%20146.00%20220.00%20144.43%20220.00%20142.50%20C%20220.00%20140.57%20221.57%20139.00%20223.50%20139.00%20C%20225.43%20139.00%20227.00%20140.57%20227.00%20142.50%20Z'%20fill='url(%23未命名的渐变_20-3)'%20fill-rule='nonzero'%20node-id='310'%20stroke='none'%20target-height='7'%20target-width='7'%20target-x='220'%20target-y='139'%3e%3c/path%3e%3cpath%20d='M%20259.50%20150.00%20C%20257.98%20150.01%20256.64%20151.00%20256.18%20152.45%20C%20255.72%20153.90%20256.26%20155.48%20257.50%20156.36%20C%20259.40%20155.18%20261.17%20153.80%20262.77%20152.24%20C%20262.25%20150.89%20260.95%20150.00%20259.50%20150.00%20Z'%20fill='url(%23未命名的渐变_20-4)'%20fill-rule='nonzero'%20node-id='312'%20stroke='none'%20target-height='6.364792'%20target-width='7.047928'%20target-x='255.72206'%20target-y='149.99521'%3e%3c/path%3e%3cpath%20d='M%20263.00%20131.50%20C%20263.00%20136.19%20259.19%20140.00%20254.50%20140.00%20C%20249.81%20140.00%20246.00%20136.19%20246.00%20131.50%20C%20246.00%20126.81%20249.81%20123.00%20254.50%20123.00%20C%20259.19%20123.00%20263.00%20126.81%20263.00%20131.50%20Z'%20fill='url(%23未命名的渐变_20-5)'%20fill-rule='nonzero'%20node-id='314'%20stroke='none'%20target-height='17'%20target-width='17'%20target-x='246'%20target-y='123'%3e%3c/path%3e%3cpath%20d='M%20272.33%20121.26%20C%20278.06%20121.13%20281.71%20121.91%20282.18%20123.70%20C%20283.32%20127.97%20265.94%20136.33%20243.36%20142.39%20C%20220.78%20148.45%20201.54%20149.89%20200.36%20145.62%20C%20199.84%20143.69%20203.13%20140.91%20208.99%20137.89'%20fill='none'%20node-id='316'%20stroke='%23c7cce0'%20stroke-linecap='round'%20stroke-width='2'%20target-height='28.760002'%20target-width='83.48001'%20target-x='199.84'%20target-y='121.13'%3e%3c/path%3e%3c/svg%3e";
19543
19617
  const __vite_glob_0_1 = "data:image/svg+xml,%3csvg%20id='图层_1'%20data-name='图层%201'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20500%20300'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:url(%23未命名的渐变_50);}.cls-2{fill:url(%23未命名的渐变_35);}.cls-3{fill:url(%23未命名的渐变_35-2);}.cls-4{fill:url(%23未命名的渐变_35-3);}.cls-5{fill:%23c7cce0;}.cls-6{fill:%23e2e4ed;}%3c/style%3e%3clinearGradient%20id='未命名的渐变_50'%20x1='250'%20y1='284.22'%20x2='250'%20y2='191.22'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'/%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'/%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'/%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'/%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'/%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'/%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'/%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='未命名的渐变_35'%20x1='59.52'%20y1='150.25'%20x2='115.3'%20y2='94.47'%20gradientTransform='translate(-13.91%202.86)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-2'%20x1='338.12'%20y1='-44.92'%20x2='393.9'%20y2='-100.69'%20gradientTransform='translate(42.49%20257.02)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-3'%20x1='259.63'%20y1='-148.86'%20x2='315.41'%20y2='-204.64'%20gradientTransform='translate(138.98%20231.97)'%20xlink:href='%23未命名的渐变_50'/%3e%3c/defs%3e%3ctitle%3e地址缺省页%3c/title%3e%3cellipse%20class='cls-1'%20cx='250'%20cy='237.72'%20rx='146'%20ry='46.5'/%3e%3crect%20class='cls-2'%20x='59.5'%20y='75.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(110.07%20-15.3)%20rotate(45)'/%3e%3crect%20class='cls-3'%20x='394.5'%20y='134.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(249.91%20-234.9)%20rotate(45)'/%3e%3crect%20class='cls-4'%20x='412.5'%20y='5.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(163.97%20-285.41)%20rotate(45)'/%3e%3cpath%20class='cls-5'%20d='M253.3,72.05a56.74,56.74,0,0,0-56.7,56.77c0,52.81,53.21,99.13,53.21,99.13S310,181.63,310,128.82A56.74,56.74,0,0,0,253.3,72.05Zm0,80.54a22.44,22.44,0,1,1,22.42-22.44A22.43,22.43,0,0,1,253.3,152.59Z'/%3e%3cpath%20class='cls-6'%20d='M246.7,72.05A56.74,56.74,0,0,0,190,128.82c0,52.81,56.7,96.38,56.7,96.38s56.7-43.57,56.7-96.38A56.74,56.74,0,0,0,246.7,72.05Zm0,80.54a22.44,22.44,0,1,1,22.42-22.44A22.43,22.43,0,0,1,246.7,152.59Z'/%3e%3c/svg%3e";
19544
19618
  const __vite_glob_0_2 = "data:image/svg+xml,%3csvg%20id='图层_1'%20data-name='图层%201'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20500%20300'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:url(%23未命名的渐变_50);}.cls-2{fill:url(%23未命名的渐变_35);}.cls-3{fill:url(%23未命名的渐变_35-2);}.cls-4{fill:url(%23未命名的渐变_35-3);}.cls-5{fill:%23e2e4ed;}.cls-6{fill:url(%23未命名的渐变_31);}.cls-7{fill:%23c7cce0;}.cls-8{fill:url(%23未命名的渐变_38);}%3c/style%3e%3clinearGradient%20id='未命名的渐变_50'%20x1='250'%20y1='284.22'%20x2='250'%20y2='191.22'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'/%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'/%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'/%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'/%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'/%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'/%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'/%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='未命名的渐变_35'%20x1='794.91'%20y1='-154.36'%20x2='850.69'%20y2='-210.14'%20gradientTransform='translate(-749.3%20307.47)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-2'%20x1='1073.51'%20y1='-349.52'%20x2='1129.29'%20y2='-405.3'%20gradientTransform='translate(-692.9%20561.63)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-3'%20x1='995.02'%20y1='-453.47'%20x2='1050.8'%20y2='-509.24'%20gradientTransform='translate(-596.41%20536.58)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_31'%20x1='297.07'%20y1='109.67'%20x2='279.97'%20y2='80.05'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0'%20stop-color='%23fafafc'%20stop-opacity='0.92'/%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='未命名的渐变_38'%20x1='209.22'%20y1='188.79'%20x2='209.22'%20y2='216.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.03'%20stop-color='%23f6f7fa'/%3e%3cstop%20offset='0.1'%20stop-color='%23ebecf2'/%3e%3cstop%20offset='0.2'%20stop-color='%23e4e6ee'/%3e%3cstop%20offset='0.48'%20stop-color='%23e2e4ed'/%3e%3cstop%20offset='0.7'%20stop-color='%23dadde9'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'/%3e%3c/linearGradient%3e%3c/defs%3e%3ctitle%3e文章内容缺省页%3c/title%3e%3cellipse%20class='cls-1'%20cx='250'%20cy='237.72'%20rx='146'%20ry='46.5'/%3e%3crect%20class='cls-2'%20x='59.5'%20y='75.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(110.07%20-15.3)%20rotate(45)'/%3e%3crect%20class='cls-3'%20x='394.5'%20y='134.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(249.91%20-234.9)%20rotate(45)'/%3e%3crect%20class='cls-4'%20x='412.5'%20y='5.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(163.97%20-285.41)%20rotate(45)'/%3e%3cpath%20class='cls-5'%20d='M288.55,76.5h-104a8,8,0,0,0-8,8v124a8,8,0,0,0,8,8h84a8,8,0,0,0,8-8V89.5a13,13,0,0,1,12.5-13Z'/%3e%3cpath%20class='cls-6'%20d='M302.55,90.5a14,14,0,0,0-13.5-14,13,13,0,0,0-12.5,13v17h26Z'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='105'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='114.25'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='123.5'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='132.75'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='142'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='151.25'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='160.5'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='169.75'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3cpath%20class='cls-8'%20d='M254.89,203.5V188.79H150.55V203.5a13,13,0,0,0,13,13H267.89A13,13,0,0,1,254.89,203.5Z'/%3e%3cpath%20class='cls-7'%20d='M303.43,201.6c-2.74-1.23-9.78,1.55-9.78,1.55s2.44,7,5.18,8.26l28.25,12.68,4.59-9.81Z'/%3e%3cpath%20class='cls-7'%20d='M339.36,223.65a5.35,5.35,0,0,0-2.69-7.14l-1.66-.75-4.59,9.81,1.66.75A5.56,5.56,0,0,0,339.36,223.65Z'/%3e%3c/svg%3e";
@@ -19619,9 +19693,7 @@ const emptyProps = {
19619
19693
  default: "200px",
19620
19694
  validator: (value) => {
19621
19695
  if (typeof value !== "string" && typeof value !== "number") {
19622
- console.warn(
19623
- "[LewEmpty] 无效的宽度: width 应该是一个字符串或数字"
19624
- );
19696
+ console.warn("[LewEmpty] 无效的宽度: width 应该是一个字符串或数字");
19625
19697
  return false;
19626
19698
  }
19627
19699
  return true;
@@ -19748,7 +19820,7 @@ const uploadProps = {
19748
19820
  },
19749
19821
  uploadHelper: {
19750
19822
  type: Function,
19751
- default: () => Promise.resolve(),
19823
+ default: void 0,
19752
19824
  description: "自定义文件上传处理函数",
19753
19825
  validator: (value) => {
19754
19826
  if (typeof value !== "function") {
@@ -19758,13 +19830,19 @@ const uploadProps = {
19758
19830
  return true;
19759
19831
  }
19760
19832
  },
19761
- listType: {
19833
+ uploadHelperId: {
19834
+ type: String,
19835
+ default: "",
19836
+ hidden: true,
19837
+ description: "上传函数的标识"
19838
+ },
19839
+ viewMode: {
19762
19840
  type: String,
19763
19841
  default: "list",
19764
19842
  description: "列表类型",
19765
19843
  validator: (value) => {
19766
19844
  if (!["list", "card"].includes(value)) {
19767
- console.warn("[LewUpload] listType 必须是 list 或 card");
19845
+ console.warn("[LewUpload] viewMode 必须是 list 或 card");
19768
19846
  return false;
19769
19847
  }
19770
19848
  return true;
@@ -19799,6 +19877,24 @@ const uploadByCardProps = {
19799
19877
  }
19800
19878
  }
19801
19879
  };
19880
+ const statusMap = {
19881
+ success: "上传成功",
19882
+ fail: "上传失败",
19883
+ uploading: "上传中",
19884
+ wrong_config: "未配置上传服务",
19885
+ complete: "已上传",
19886
+ wrong_type: "非法格式",
19887
+ wrong_size: "文件大小超出限制"
19888
+ };
19889
+ const statusColorMap = {
19890
+ success: "green",
19891
+ fail: "red",
19892
+ uploading: "blue",
19893
+ wrong_config: "warning",
19894
+ complete: "gray",
19895
+ wrong_type: "red",
19896
+ wrong_size: "red"
19897
+ };
19802
19898
  const _hoisted_1$9 = ["src"];
19803
19899
  const _hoisted_2$4 = { key: 1 };
19804
19900
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
@@ -19850,24 +19946,6 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
19850
19946
  medium: 7.8,
19851
19947
  large: 8.5
19852
19948
  };
19853
- const statusMap = {
19854
- success: "上传成功",
19855
- fail: "上传失败",
19856
- uploading: "上传中",
19857
- pending: "等待上传",
19858
- complete: "已上传",
19859
- wrong_type: "非法格式",
19860
- wrong_size: "文件大小超出限制"
19861
- };
19862
- const statusColorMap = {
19863
- success: "green",
19864
- fail: "red",
19865
- uploading: "blue",
19866
- pending: "mint",
19867
- complete: "gray",
19868
- wrong_type: "red",
19869
- wrong_size: "red"
19870
- };
19871
19949
  const emit2 = __emit2;
19872
19950
  const modelValue2 = useModel(__props2, "modelValue");
19873
19951
  const getFileName = computed(() => (item) => {
@@ -20038,18 +20116,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20038
20116
  createVNode(unref(_sfc_main$q), {
20039
20117
  type: "light",
20040
20118
  size: "small",
20041
- color: statusColorMap[item.status || "complete"]
20119
+ color: unref(statusColorMap)[item.status || "complete"]
20042
20120
  }, {
20043
20121
  left: withCtx(() => [
20044
20122
  createVNode(Icon, {
20045
20123
  size: 12,
20046
20124
  type: item.status,
20047
20125
  dark: "",
20048
- spinning: item.status === "uploading"
20049
- }, null, 8, ["type", "spinning"])
20126
+ loading: item.status === "uploading"
20127
+ }, null, 8, ["type", "loading"])
20050
20128
  ]),
20051
20129
  default: withCtx(() => [
20052
- createTextVNode(" " + toDisplayString(statusMap[item.status || "complete"]), 1)
20130
+ createTextVNode(" " + toDisplayString(unref(statusMap)[item.status || "complete"]), 1)
20053
20131
  ]),
20054
20132
  _: 2
20055
20133
  }, 1032, ["color"])
@@ -20077,7 +20155,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20077
20155
  };
20078
20156
  }
20079
20157
  });
20080
- const LewUploadByList = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-57860b36"]]);
20158
+ const LewUploadByList = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-636c30e6"]]);
20081
20159
  const _hoisted_1$8 = ["src"];
20082
20160
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
20083
20161
  __name: "LewUploadByCard",
@@ -20142,8 +20220,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
20142
20220
  })
20143
20221
  }, {
20144
20222
  default: withCtx(() => [
20145
- item.status === "wrong_size" ? withDirectives((openBlock(), createBlock(unref(LewFlex), {
20223
+ item.status === "fail" ? (openBlock(), createBlock(unref(LewFlex), {
20146
20224
  key: 0,
20225
+ onClick: withModifiers(($event) => emit2("reUpload", item.id), ["stop"]),
20147
20226
  x: "center",
20148
20227
  y: "center",
20149
20228
  style: normalizeStyle({
@@ -20151,24 +20230,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
20151
20230
  height: rightTopBtnSizeMap[_ctx.size] + "px",
20152
20231
  borderRadius: rightTopBorderRadiusMap[_ctx.size] + "px"
20153
20232
  }),
20154
- class: "lew-upload-wrong-size"
20233
+ class: "lew-upload-reupload-btn"
20155
20234
  }, {
20156
20235
  default: withCtx(() => [
20157
20236
  createVNode(Icon, {
20158
20237
  size: rightTopBtnIconSizeMap[_ctx.size],
20159
- type: "error"
20238
+ type: "rotate-cw"
20160
20239
  }, null, 8, ["size"])
20161
20240
  ]),
20162
- _: 1
20163
- }, 8, ["style"])), [
20164
- [_directive_tooltip, {
20165
- content: "文件大小超出限制",
20166
- trigger: "mouseenter"
20167
- }]
20168
- ]) : createCommentVNode("", true),
20169
- item.status === "fail" ? (openBlock(), createBlock(unref(LewFlex), {
20241
+ _: 2
20242
+ }, 1032, ["onClick", "style"])) : !["complete", "success"].includes(item.status) ? withDirectives((openBlock(), createBlock(unref(LewFlex), {
20170
20243
  key: 1,
20171
- onClick: withModifiers(($event) => emit2("reUpload", item.id), ["stop"]),
20172
20244
  x: "center",
20173
20245
  y: "center",
20174
20246
  style: normalizeStyle({
@@ -20176,16 +20248,22 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
20176
20248
  height: rightTopBtnSizeMap[_ctx.size] + "px",
20177
20249
  borderRadius: rightTopBorderRadiusMap[_ctx.size] + "px"
20178
20250
  }),
20179
- class: "lew-upload-reupload-btn"
20251
+ class: "lew-upload-tips-tag"
20180
20252
  }, {
20181
20253
  default: withCtx(() => [
20182
20254
  createVNode(Icon, {
20183
20255
  size: rightTopBtnIconSizeMap[_ctx.size],
20184
- type: "rotate-cw"
20185
- }, null, 8, ["size"])
20256
+ type: "tips",
20257
+ color: unref(statusColorMap)[item.status || "complete"]
20258
+ }, null, 8, ["size", "color"])
20186
20259
  ]),
20187
20260
  _: 2
20188
- }, 1032, ["onClick", "style"])) : createCommentVNode("", true),
20261
+ }, 1032, ["style"])), [
20262
+ [_directive_tooltip, {
20263
+ content: unref(statusMap)[item.status || "complete"],
20264
+ trigger: "mouseenter"
20265
+ }]
20266
+ ]) : createCommentVNode("", true),
20189
20267
  createVNode(unref(LewFlex), {
20190
20268
  onClick: withModifiers(($event) => emit2("deleteFile", item.id), ["stop"]),
20191
20269
  x: "center",
@@ -20272,7 +20350,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
20272
20350
  };
20273
20351
  }
20274
20352
  });
20275
- const LewUploadByCard = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0f5c01b0"]]);
20353
+ const LewUploadByCard = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0f8a522f"]]);
20276
20354
  const _hoisted_1$7 = ["multiple", "accept"];
20277
20355
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
20278
20356
  __name: "LewUpload",
@@ -20299,16 +20377,22 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20299
20377
  medium: 12,
20300
20378
  large: 14
20301
20379
  };
20302
- const uploadIconFontSizeMap = {
20303
- small: props2.listType === "list" ? 32 : 24,
20304
- medium: props2.listType === "list" ? 35 : 26,
20305
- large: props2.listType === "list" ? 45 : 28
20306
- };
20307
- const uploadPaddingMap = {
20308
- small: props2.listType === "list" ? "10px 8px" : "14px",
20309
- medium: props2.listType === "list" ? "14px 10px" : "16px",
20310
- large: props2.listType === "list" ? "18px 12px" : "20px"
20311
- };
20380
+ const uploadIconFontSizeMap = computed(
20381
+ () => {
20382
+ return {
20383
+ small: props2.viewMode === "list" ? 28 : 22,
20384
+ medium: props2.viewMode === "list" ? 30 : 24,
20385
+ large: props2.viewMode === "list" ? 32 : 26
20386
+ };
20387
+ }
20388
+ );
20389
+ const uploadPaddingMap = computed(() => {
20390
+ return {
20391
+ small: props2.viewMode === "list" ? "10px 8px" : "14px",
20392
+ medium: props2.viewMode === "list" ? "14px 10px" : "16px",
20393
+ large: props2.viewMode === "list" ? "18px 12px" : "20px"
20394
+ };
20395
+ });
20312
20396
  const getCardSize = {
20313
20397
  small: 72,
20314
20398
  medium: 80,
@@ -20320,11 +20404,20 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20320
20404
  const dropActive = ref(false);
20321
20405
  const modelValue2 = useModel(__props2, "modelValue");
20322
20406
  const isFocus = ref(false);
20407
+ const formMethods = inject("formMethods", {});
20408
+ let _uploadHelper = computed(() => {
20409
+ if (isFunction(props2.uploadHelper)) {
20410
+ return props2.uploadHelper;
20411
+ } else if (props2.uploadHelperId) {
20412
+ return formMethods[props2.uploadHelperId];
20413
+ }
20414
+ return false;
20415
+ });
20323
20416
  const addImageToList = (files) => {
20324
20417
  if ((files || []).length > 0) {
20325
20418
  const item = files.pop();
20326
20419
  const { size, type, name, lastModifiedDate, lastModified } = item;
20327
- let status = "pending";
20420
+ let status = "wrong_config";
20328
20421
  if (!checkFileAccept({ ...item, file: item })) {
20329
20422
  status = "wrong_type";
20330
20423
  }
@@ -20344,8 +20437,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20344
20437
  modelValue2.value = [fileItem, ...cloneDeep(modelValue2.value || [])];
20345
20438
  emit2("change", modelValue2.value);
20346
20439
  nextTick(() => {
20347
- if (fileItem.status === "pending") {
20348
- isFunction(props2.uploadHelper) ? props2.uploadHelper({ fileItem: cloneDeep(fileItem), setFileItem }) : LewMessage.error("未配置上传 uploadHelper");
20440
+ if (fileItem.status === "wrong_config") {
20441
+ isFunction(_uploadHelper.value) ? _uploadHelper.value({ fileItem: cloneDeep(fileItem), setFileItem }) : LewMessage.error("未配置上传 uploadHelper");
20349
20442
  }
20350
20443
  setTimeout(() => {
20351
20444
  if ((modelValue2.value || []).length < props2.limit) {
@@ -20360,7 +20453,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20360
20453
  const index2 = (fileList || []).findIndex((e2) => e2.id === id);
20361
20454
  if (index2 >= 0) {
20362
20455
  const { status } = fileList[index2];
20363
- if (["wrong_type", "wrong_size"].includes(status || "")) {
20456
+ if (["wrong_type", "wrong_size", "wrong_config"].includes(status || "")) {
20364
20457
  fileList.splice(index2, 1);
20365
20458
  modelValue2.value = fileList;
20366
20459
  } else {
@@ -20384,7 +20477,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20384
20477
  if (index2 >= 0) {
20385
20478
  const item = (modelValue2.value || [])[index2];
20386
20479
  setFileItem({ id, percent: 0, status: "uploading" });
20387
- isFunction(props2.uploadHelper) ? props2.uploadHelper({ fileItem: cloneDeep(item), setFileItem }) : LewMessage.error("未配置上传 uploadHelper");
20480
+ isFunction(_uploadHelper.value) ? _uploadHelper.value({ fileItem: cloneDeep(item), setFileItem }) : LewMessage.error("未配置上传 uploadHelper");
20388
20481
  } else {
20389
20482
  LewMessage.error("文件不存在");
20390
20483
  }
@@ -20473,8 +20566,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20473
20566
  modelValue2.value = fileList;
20474
20567
  };
20475
20568
  const getUploadLabelClass = computed(() => {
20476
- const { disabled, readonly: readonly2, listType } = props2;
20477
- return object2class("lew-upload-label", { disabled, readonly: readonly2, listType });
20569
+ const { disabled, readonly: readonly2, viewMode } = props2;
20570
+ return object2class("lew-upload-label", { disabled, readonly: readonly2, viewMode });
20478
20571
  });
20479
20572
  const getTips = computed(() => {
20480
20573
  const { tips, maxFileSize, accept, limit } = props2;
@@ -20497,14 +20590,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20497
20590
  return (_ctx, _cache) => {
20498
20591
  return openBlock(), createBlock(unref(LewFlex), {
20499
20592
  class: "lew-upload-wrapper",
20500
- direction: _ctx.listType === "list" ? "y" : "x",
20593
+ direction: _ctx.viewMode === "list" ? "y" : "x",
20501
20594
  gap: "10",
20502
20595
  style: normalizeStyle({
20503
- width: _ctx.listType === "list" ? "100%" : "auto"
20596
+ width: _ctx.viewMode === "list" ? "100%" : "auto"
20504
20597
  })
20505
20598
  }, {
20506
20599
  default: withCtx(() => [
20507
- _ctx.listType === "card" ? (openBlock(), createBlock(LewUploadByCard, {
20600
+ _ctx.viewMode === "card" ? (openBlock(), createBlock(LewUploadByCard, {
20508
20601
  key: 0,
20509
20602
  size: _ctx.size,
20510
20603
  modelValue: modelValue2.value,
@@ -20523,8 +20616,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20523
20616
  }),
20524
20617
  class: normalizeClass(["lew-upload-label", unref(getUploadLabelClass)]),
20525
20618
  style: normalizeStyle({
20526
- width: _ctx.listType === "list" ? "100%" : `${unref(any2px)(getCardSize[_ctx.size])}`,
20527
- height: _ctx.listType === "list" ? "auto" : `${unref(any2px)(getCardSize[_ctx.size])}`
20619
+ width: _ctx.viewMode === "list" ? "100%" : `${unref(any2px)(getCardSize[_ctx.size])}`,
20620
+ height: _ctx.viewMode === "list" ? "auto" : `${unref(any2px)(getCardSize[_ctx.size])}`
20528
20621
  })
20529
20622
  }, [
20530
20623
  createVNode(unref(LewFlex), {
@@ -20535,7 +20628,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20535
20628
  y: "center",
20536
20629
  class: normalizeClass(["lew-upload", { "lew-upload-drop-active": unref(dropActive) }]),
20537
20630
  style: normalizeStyle({
20538
- padding: uploadPaddingMap[_ctx.size]
20631
+ padding: unref(uploadPaddingMap)[_ctx.size]
20539
20632
  }),
20540
20633
  gap: "5"
20541
20634
  }, {
@@ -20543,17 +20636,17 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20543
20636
  createVNode(Icon, {
20544
20637
  "stroke-width": 1.5,
20545
20638
  class: "lew-upload-icon",
20546
- size: uploadIconFontSizeMap[_ctx.size],
20639
+ size: unref(uploadIconFontSizeMap)[_ctx.size],
20547
20640
  type: "upload-cloud"
20548
20641
  }, null, 8, ["size"]),
20549
- _ctx.listType === "list" ? (openBlock(), createElementBlock("div", {
20642
+ _ctx.viewMode === "list" ? (openBlock(), createElementBlock("div", {
20550
20643
  key: 0,
20551
20644
  style: normalizeStyle({
20552
20645
  fontSize: `${unref(any2px)(tipFontSizeMap[_ctx.size])}`
20553
20646
  }),
20554
20647
  class: "lew-upload-tip"
20555
20648
  }, toDisplayString(unref(dropActive) ? "松开鼠标上传文件" : `点击、${unref(isSupported) && unref(isFocus) ? "Ctrl + V 粘贴、" : ""}拖拽文件到此处`), 5)) : createCommentVNode("", true),
20556
- _ctx.listType === "list" ? (openBlock(), createElementBlock("div", {
20649
+ _ctx.viewMode === "list" ? (openBlock(), createElementBlock("div", {
20557
20650
  key: 1,
20558
20651
  style: normalizeStyle({
20559
20652
  fontSize: `${unref(any2px)(maxSizeFontSizeMap[_ctx.size])}`
@@ -20584,13 +20677,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20584
20677
  ], 38), [
20585
20678
  [vShow, (modelValue2.value || []).length < _ctx.limit]
20586
20679
  ]),
20587
- !unref(isFunction)(_ctx.uploadHelper) ? (openBlock(), createBlock(unref(LewAlert), {
20680
+ _ctx.viewMode === "list" ? (openBlock(), createBlock(LewUploadByList, {
20588
20681
  key: 1,
20589
- type: "error",
20590
- title: "uploadHelper Error: 未配置上传方法"
20591
- })) : createCommentVNode("", true),
20592
- _ctx.listType === "list" ? (openBlock(), createBlock(LewUploadByList, {
20593
- key: 2,
20594
20682
  size: _ctx.size,
20595
20683
  modelValue: modelValue2.value,
20596
20684
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => modelValue2.value = $event),
@@ -20603,7 +20691,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20603
20691
  };
20604
20692
  }
20605
20693
  });
20606
- const LewUpload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-89cc8de8"]]);
20694
+ const LewUpload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9cb4e5cd"]]);
20607
20695
  const collapseModel = {
20608
20696
  modelValue: {
20609
20697
  type: [Array, String],
@@ -20716,7 +20804,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
20716
20804
  };
20717
20805
  }
20718
20806
  });
20719
- const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-f26073cd"]]);
20807
+ const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-2e866a79"]]);
20720
20808
  const _sfc_main$a = {
20721
20809
  props: {
20722
20810
  name: {
@@ -24306,7 +24394,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24306
24394
  };
24307
24395
  }
24308
24396
  });
24309
- const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-051599e3"]]);
24397
+ const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1fe5a721"]]);
24310
24398
  const _hoisted_1$2 = { class: "lew-form-modal lew-scrollbar" };
24311
24399
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24312
24400
  __name: "FormModal",
@@ -24855,7 +24943,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
24855
24943
  };
24856
24944
  }
24857
24945
  });
24858
- const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-649e1d5b"]]);
24946
+ const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-e987915b"]]);
24859
24947
  const inputTreeProps = {
24860
24948
  type: {
24861
24949
  type: String,
@@ -24890,7 +24978,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24890
24978
  };
24891
24979
  }
24892
24980
  });
24893
- const LewInputTree = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7e2af3b7"]]);
24981
+ const LewInputTree = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-abdd1e91"]]);
24894
24982
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24895
24983
  __proto__: null,
24896
24984
  LewAlert,
@@ -25009,6 +25097,8 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
25009
25097
  selectProps,
25010
25098
  sliderProps,
25011
25099
  sliderRangeProps,
25100
+ statusColorMap,
25101
+ statusMap,
25012
25102
  stepsModel,
25013
25103
  stepsProps,
25014
25104
  switchModel,
@@ -25131,7 +25221,7 @@ const LewLoading = {
25131
25221
  el.classList.add("lew-loading");
25132
25222
  const loader = createApp(Icon, {
25133
25223
  type: "loader",
25134
- spinning: true,
25224
+ loading: true,
25135
25225
  size: iconSize || 24
25136
25226
  });
25137
25227
  loader.mount(loadingBox);
@@ -25384,7 +25474,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25384
25474
  };
25385
25475
  }
25386
25476
  });
25387
- const LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3cb63c82"]]);
25477
+ const LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2e6bc68d"]]);
25388
25478
  const directives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25389
25479
  __proto__: null,
25390
25480
  LewBacktop: index$1,
@@ -25405,7 +25495,7 @@ const showMessage = ({ type, e: e2 }) => {
25405
25495
  const messageContainer = document.getElementById("lew-message");
25406
25496
  const hasMessageById = id ? document.getElementById(`lew-message-id-${id}`) : false;
25407
25497
  const messageElement = hasMessageById || document.createElement("div");
25408
- messageElement.innerHTML = `${getIconInnerHTML({ type, strokeWidth: type === "loading" ? 2.5 : void 0, spinning: type === "loading" })}<div class="lew-message-content">${content || e2}</div>`;
25498
+ messageElement.innerHTML = `${getIconInnerHTML({ type, strokeWidth: type === "loading" ? 2.5 : void 0, loading: type === "loading" })}<div class="lew-message-content">${content || e2}</div>`;
25409
25499
  if (!hasMessageById) {
25410
25500
  if (id) {
25411
25501
  messageElement.setAttribute("id", `lew-message-id-${id}`);
@@ -25788,7 +25878,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25788
25878
  };
25789
25879
  }
25790
25880
  });
25791
- const _LewDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b566a09e"]]);
25881
+ const _LewDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed43afed"]]);
25792
25882
  const { x, y } = useMouse();
25793
25883
  const createDialog = (type) => (options) => dialog(type, options);
25794
25884
  const dialogTypes = {
@@ -26113,6 +26203,8 @@ export {
26113
26203
  selectProps,
26114
26204
  sliderProps,
26115
26205
  sliderRangeProps,
26206
+ statusColorMap,
26207
+ statusMap,
26116
26208
  stepsModel,
26117
26209
  stepsProps,
26118
26210
  switchModel,