3h1-ui 3.0.0-next.51 → 3.0.0-next.53

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/es/index.js CHANGED
@@ -5396,7 +5396,7 @@ const _sfc_main$1F = defineComponent({
5396
5396
  };
5397
5397
  }
5398
5398
  });
5399
- const StrengthMeter_vue_vue_type_style_index_0_scoped_678d40fd_lang = "";
5399
+ const StrengthMeter_vue_vue_type_style_index_0_scoped_c8d77eaa_lang = "";
5400
5400
  const _hoisted_1$G = ["data-score"];
5401
5401
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5402
5402
  const _component_InputPassword = resolveComponent("InputPassword");
@@ -5428,7 +5428,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5428
5428
  ], 2)
5429
5429
  ], 2);
5430
5430
  }
5431
- const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-678d40fd"]]);
5431
+ const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-c8d77eaa"]]);
5432
5432
  const _sfc_main$1E = defineComponent({
5433
5433
  name: "SvgIcon",
5434
5434
  props: {
@@ -5464,7 +5464,7 @@ const _sfc_main$1E = defineComponent({
5464
5464
  return { symbolId, prefixCls: prefixCls2, getStyle };
5465
5465
  }
5466
5466
  });
5467
- const SvgIcon_vue_vue_type_style_index_0_scoped_905fa4a6_lang = "";
5467
+ const SvgIcon_vue_vue_type_style_index_0_scoped_fa64fe87_lang = "";
5468
5468
  const _hoisted_1$F = ["xlink:href"];
5469
5469
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5470
5470
  return openBlock(), createElementBlock("svg", {
@@ -5475,7 +5475,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5475
5475
  createElementVNode("use", { "xlink:href": _ctx.symbolId }, null, 8, _hoisted_1$F)
5476
5476
  ], 6);
5477
5477
  }
5478
- const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-905fa4a6"]]);
5478
+ const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-fa64fe87"]]);
5479
5479
  const SVG_END_WITH_FLAG = "|svg";
5480
5480
  const _sfc_main$1D = defineComponent({
5481
5481
  name: "Icon",
@@ -5786,8 +5786,8 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
5786
5786
  };
5787
5787
  }
5788
5788
  });
5789
- const BasicArrow_vue_vue_type_style_index_0_scoped_fea26917_lang = "";
5790
- const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-fea26917"]]);
5789
+ const BasicArrow_vue_vue_type_style_index_0_scoped_03d87956_lang = "";
5790
+ const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-03d87956"]]);
5791
5791
  const props$c = {
5792
5792
  /**
5793
5793
  * Help text max-width
@@ -5964,8 +5964,8 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
5964
5964
  };
5965
5965
  }
5966
5966
  });
5967
- const BasicTitle_vue_vue_type_style_index_0_scoped_df3764dc_lang = "";
5968
- const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-df3764dc"]]);
5967
+ const BasicTitle_vue_vue_type_style_index_0_scoped_c885e8af_lang = "";
5968
+ const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-c885e8af"]]);
5969
5969
  const props$b = {
5970
5970
  prefixCls: { type: String },
5971
5971
  helpMessage: {
@@ -9550,8 +9550,8 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
9550
9550
  };
9551
9551
  }
9552
9552
  });
9553
- const Table_vue_vue_type_style_index_0_scoped_95018c58_lang = "";
9554
- const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-95018c58"]]);
9553
+ const Table_vue_vue_type_style_index_0_scoped_9232fde4_lang = "";
9554
+ const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-9232fde4"]]);
9555
9555
  const modal = "";
9556
9556
  const modalProps = {
9557
9557
  visible: { type: Boolean },
@@ -9806,7 +9806,7 @@ function extendSlots(slots, excludeKeys = []) {
9806
9806
  });
9807
9807
  return ret;
9808
9808
  }
9809
- function _isSlot$7(s) {
9809
+ function _isSlot$8(s) {
9810
9810
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
9811
9811
  }
9812
9812
  const Modal$2 = /* @__PURE__ */ defineComponent({
@@ -9839,7 +9839,7 @@ const Modal$2 = /* @__PURE__ */ defineComponent({
9839
9839
  ...props2,
9840
9840
  onCancel
9841
9841
  };
9842
- return createVNode(Modal$3, propsData, _isSlot$7(_slot = extendSlots(slots)) ? _slot : {
9842
+ return createVNode(Modal$3, propsData, _isSlot$8(_slot = extendSlots(slots)) ? _slot : {
9843
9843
  default: () => [_slot]
9844
9844
  });
9845
9845
  };
@@ -10335,7 +10335,7 @@ const BasicButton = /* @__PURE__ */ defineComponent({
10335
10335
  };
10336
10336
  }
10337
10337
  });
10338
- function _isSlot$6(s) {
10338
+ function _isSlot$7(s) {
10339
10339
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
10340
10340
  }
10341
10341
  const props$6 = {
@@ -10367,7 +10367,7 @@ const PopConfirmButton = /* @__PURE__ */ defineComponent({
10367
10367
  btnBind.color = "";
10368
10368
  const Button2 = () => {
10369
10369
  let _slot;
10370
- return createVNode(BasicButton, btnBind, _isSlot$6(_slot = extendSlots$1(slots)) ? _slot : {
10370
+ return createVNode(BasicButton, btnBind, _isSlot$7(_slot = extendSlots$1(slots)) ? _slot : {
10371
10371
  default: () => [_slot]
10372
10372
  });
10373
10373
  };
@@ -10597,8 +10597,8 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
10597
10597
  };
10598
10598
  }
10599
10599
  });
10600
- const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
10601
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-fdc837af"]]);
10600
+ const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
10601
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-a48f9d86"]]);
10602
10602
  const _sfc_main$1i = defineComponent({
10603
10603
  name: "BasicModalHeader",
10604
10604
  components: { BasicTitle },
@@ -12603,7 +12603,7 @@ const useGlobalConfig = (key2) => {
12603
12603
  };
12604
12604
  return { config, setConfig };
12605
12605
  };
12606
- function _isSlot$5(s) {
12606
+ function _isSlot$6(s) {
12607
12607
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
12608
12608
  }
12609
12609
  const _sfc_main$18 = /* @__PURE__ */ defineComponent({
@@ -12921,7 +12921,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
12921
12921
  } : {
12922
12922
  default: () => renderComponentContent
12923
12923
  };
12924
- return createVNode(Comp, compAttr, _isSlot$5(compSlot) ? compSlot : {
12924
+ return createVNode(Comp, compAttr, _isSlot$6(compSlot) ? compSlot : {
12925
12925
  default: () => [compSlot]
12926
12926
  });
12927
12927
  }
@@ -12966,7 +12966,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
12966
12966
  return createVNode(Col, {
12967
12967
  "span": 24
12968
12968
  }, {
12969
- default: () => [createVNode(Divider$1, unref(getComponentsProps), _isSlot$5(_slot = renderLabelHelpMessage()) ? _slot : {
12969
+ default: () => [createVNode(Divider$1, unref(getComponentsProps), _isSlot$6(_slot = renderLabelHelpMessage()) ? _slot : {
12970
12970
  default: () => [_slot]
12971
12971
  })]
12972
12972
  });
@@ -13027,7 +13027,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
13027
13027
  const getContent = () => {
13028
13028
  return colSlot ? getSlot$1(slots, colSlot, values) : renderColContent ? renderColContent(values) : renderItem();
13029
13029
  };
13030
- return isIfShow && withDirectives(createVNode(Col, realColProps, _isSlot$5(_slot2 = getContent()) ? _slot2 : {
13030
+ return isIfShow && withDirectives(createVNode(Col, realColProps, _isSlot$6(_slot2 = getContent()) ? _slot2 : {
13031
13031
  default: () => [_slot2]
13032
13032
  }), [[vShow, isShow]]);
13033
13033
  };
@@ -14556,6 +14556,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
14556
14556
  style: {
14557
14557
  color: "#2da44e"
14558
14558
  },
14559
+ class: "cursor-pointer",
14559
14560
  onClick: handleMenuClick
14560
14561
  })
14561
14562
  ]),
@@ -14576,8 +14577,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
14576
14577
  };
14577
14578
  }
14578
14579
  });
14579
- const TreeHeader_vue_vue_type_style_index_0_scoped_07d7188c_lang = "";
14580
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-07d7188c"]]);
14580
+ const TreeHeader_vue_vue_type_style_index_0_scoped_8dfdfcea_lang = "";
14581
+ const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-8dfdfcea"]]);
14581
14582
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14582
14583
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
14583
14584
  const isString$1 = (val) => typeof val === "string";
@@ -14782,7 +14783,7 @@ function useTree(treeDataRef, getFieldNames) {
14782
14783
  getSelectedNode
14783
14784
  };
14784
14785
  }
14785
- function _isSlot$4(s) {
14786
+ function _isSlot$5(s) {
14786
14787
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
14787
14788
  }
14788
14789
  const prefixCls$2 = "context-menu";
@@ -14939,7 +14940,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
14939
14940
  "mode": "vertical",
14940
14941
  "ref": wrapRef,
14941
14942
  "style": unref(getStyle)
14942
- }, _isSlot$4(_slot = renderMenuItem(items)) ? _slot : {
14943
+ }, _isSlot$5(_slot = renderMenuItem(items)) ? _slot : {
14943
14944
  default: () => [_slot]
14944
14945
  })]);
14945
14946
  };
@@ -15011,6 +15012,9 @@ function useContextMenu(authRemove = true) {
15011
15012
  }
15012
15013
  return [createContextMenu, destroyContextMenu];
15013
15014
  }
15015
+ function _isSlot$4(s) {
15016
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
15017
+ }
15014
15018
  const _sfc_main$13 = /* @__PURE__ */ defineComponent({
15015
15019
  name: "BasicTree",
15016
15020
  inheritAttrs: false,
@@ -15347,11 +15351,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
15347
15351
  });
15348
15352
  return data;
15349
15353
  });
15350
- async function handlePlusClick() {
15354
+ function handlePlusClick() {
15351
15355
  emit("plus-click");
15352
15356
  }
15353
15357
  expose(instance);
15354
15358
  return () => {
15359
+ let _slot;
15355
15360
  const {
15356
15361
  title,
15357
15362
  helpMessage,
@@ -15375,9 +15380,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
15375
15380
  "helpMessage": helpMessage,
15376
15381
  "onStrictlyChange": onStrictlyChange,
15377
15382
  "onSearch": handleSearch,
15378
- "searchText": searchState.searchText
15379
- }, {
15380
- default: () => [extendSlots$1(slots), createTextVNode("plusClick="), handlePlusClick]
15383
+ "searchText": searchState.searchText,
15384
+ "onPlusClick": handlePlusClick
15385
+ }, _isSlot$4(_slot = extendSlots$1(slots)) ? _slot : {
15386
+ default: () => [_slot]
15381
15387
  }), createVNode(Spin, {
15382
15388
  "wrapperClassName": unref(props2.treeWrapperClassName),
15383
15389
  "spinning": unref(props2.loading),
@@ -15466,7 +15472,7 @@ const _sfc_main$11 = defineComponent({
15466
15472
  return { prefixCls: prefixCls2, getCalcContentWidth };
15467
15473
  }
15468
15474
  });
15469
- const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
15475
+ const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
15470
15476
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15471
15477
  return openBlock(), createElementBlock("div", {
15472
15478
  class: normalizeClass(_ctx.prefixCls),
@@ -15485,7 +15491,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15485
15491
  ], 2)
15486
15492
  ], 6);
15487
15493
  }
15488
- const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-44a47dbd"]]);
15494
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-b4695833"]]);
15489
15495
  const _sfc_main$10 = defineComponent({
15490
15496
  name: "PageWrapper",
15491
15497
  components: { PageFooter, PageHeader },
@@ -18101,8 +18107,8 @@ const _sfc_main$U = defineComponent({
18101
18107
  return { isVisibleAdvancedSearch, handleIconClick };
18102
18108
  }
18103
18109
  });
18104
- const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
18105
- const _withScopeId$2 = (n) => (pushScopeId("data-v-f74ee46a"), n = n(), popScopeId(), n);
18110
+ const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
18111
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-c5892da8"), n = n(), popScopeId(), n);
18106
18112
  const _hoisted_1$r = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", null, "高级搜索", -1));
18107
18113
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18108
18114
  const _component_FilterOutlined = resolveComponent("FilterOutlined");
@@ -18120,7 +18126,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18120
18126
  _: 1
18121
18127
  });
18122
18128
  }
18123
- const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-f74ee46a"]]);
18129
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-c5892da8"]]);
18124
18130
  const index$4 = "";
18125
18131
  const searchType = [
18126
18132
  {
@@ -19493,8 +19499,8 @@ const _sfc_main$N = defineComponent({
19493
19499
  };
19494
19500
  }
19495
19501
  });
19496
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
19497
- const _withScopeId$1 = (n) => (pushScopeId("data-v-90331d26"), n = n(), popScopeId(), n);
19502
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_5f6e7403_lang = "";
19503
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-5f6e7403"), n = n(), popScopeId(), n);
19498
19504
  const _hoisted_1$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
19499
19505
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
19500
19506
  const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -19552,7 +19558,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
19552
19558
  ])
19553
19559
  ], 4);
19554
19560
  }
19555
- const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-90331d26"]]);
19561
+ const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-5f6e7403"]]);
19556
19562
  const _sfc_main$M = defineComponent({
19557
19563
  components: {
19558
19564
  TableAdvancedSearch: TableAdvancedSearch$1,
@@ -20106,7 +20112,7 @@ const _sfc_main$K = defineComponent({
20106
20112
  setup() {
20107
20113
  }
20108
20114
  });
20109
- const TableDict_vue_vue_type_style_index_0_scoped_7d89a0e9_lang = "";
20115
+ const TableDict_vue_vue_type_style_index_0_scoped_21146269_lang = "";
20110
20116
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20111
20117
  var _a2;
20112
20118
  const _component_Icon = resolveComponent("Icon");
@@ -20135,7 +20141,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20135
20141
  ]), 1032, ["color"])
20136
20142
  ]);
20137
20143
  }
20138
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-7d89a0e9"]]);
20144
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-21146269"]]);
20139
20145
  const index$3 = "";
20140
20146
  function useTable(tableProps) {
20141
20147
  const tableRef = ref(null);
@@ -20407,8 +20413,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
20407
20413
  };
20408
20414
  }
20409
20415
  });
20410
- const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
20411
- const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-4dc415ac"]]);
20416
+ const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
20417
+ const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-24f758b3"]]);
20412
20418
  const _hoisted_1$i = { class: "api-modal-select" };
20413
20419
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
20414
20420
  __name: "ApiModalSelect",
@@ -20556,8 +20562,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20556
20562
  };
20557
20563
  }
20558
20564
  });
20559
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
20560
- const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-fb4fe18d"]]);
20565
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
20566
+ const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5427533c"]]);
20561
20567
  const Description$1 = "";
20562
20568
  const basicColProps = 24;
20563
20569
  const basicProps$3 = reactive({
@@ -20565,6 +20571,14 @@ const basicProps$3 = reactive({
20565
20571
  type: Array,
20566
20572
  default: () => []
20567
20573
  },
20574
+ summaryPrecision: {
20575
+ type: Number,
20576
+ default: 2
20577
+ },
20578
+ summaryTotalFields: {
20579
+ type: Array,
20580
+ default: () => []
20581
+ },
20568
20582
  labelAlign: {
20569
20583
  type: String,
20570
20584
  default: () => "right"
@@ -20674,7 +20688,7 @@ const Description = /* @__PURE__ */ defineComponent({
20674
20688
  const rows = computed(() => {
20675
20689
  let element = null;
20676
20690
  return getProps.value.schema.map((item) => {
20677
- var _a2, _b, _c, _d, _e, _f, _g, _h;
20691
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
20678
20692
  if ((item == null ? void 0 : item.component) === "Divider") {
20679
20693
  return createVNode(Divider$2, null, null);
20680
20694
  } else if ((item == null ? void 0 : item.component) === "Group") {
@@ -20686,30 +20700,36 @@ const Description = /* @__PURE__ */ defineComponent({
20686
20700
  "label": item == null ? void 0 : item.label
20687
20701
  }, null)]);
20688
20702
  } else {
20703
+ const data = getProps.value.data;
20689
20704
  if (item == null ? void 0 : item.customRender) {
20690
- element = (item == null ? void 0 : item.customRender) ? item.customRender(getProps.value.data) : null;
20705
+ element = (item == null ? void 0 : item.customRender) ? item.customRender(data) : null;
20706
+ } else if ((_a2 = getProps.value.summaryTotalFields) == null ? void 0 : _a2.length) {
20707
+ element = slots[`${item.field}Value`] ? (_b = slots[`${item.field}Value`]) == null ? void 0 : _b.call(slots, {
20708
+ model: data,
20709
+ field: data[`${item.field}`]
20710
+ }) : isNumber$2(+data[`${item.field}`]) && !isNaN(+data[`${item.field}`]) ? (+data[`${item.field}`]).toFixed(getProps.value.summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,") : data[`${item.field}`];
20691
20711
  } else {
20692
- element = slots[`${item.field}Value`] ? (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
20693
- model: getProps.value.data,
20694
- field: getProps.value.data[`${item.field}`]
20695
- }) : getProps.value.data[`${item.field}`];
20712
+ element = slots[`${item.field}Value`] ? (_c = slots[`${item.field}Value`]) == null ? void 0 : _c.call(slots, {
20713
+ model: data,
20714
+ field: data[`${item.field}`]
20715
+ }) : data[`${item.field}`];
20696
20716
  }
20697
- const ifShow = isBoolean$1(item == null ? void 0 : item.ifShow) || isFunction$4(item == null ? void 0 : item.ifShow) ? isFunction$4(item.ifShow) ? item.ifShow(getProps.value.data) : item.ifShow : true;
20717
+ const ifShow = isBoolean$1(item == null ? void 0 : item.ifShow) || isFunction$4(item == null ? void 0 : item.ifShow) ? isFunction$4(item.ifShow) ? item.ifShow(data) : item.ifShow : true;
20698
20718
  return ifShow ? createVNode("div", {
20699
20719
  "class": `${prefixCls2}-row`,
20700
20720
  "style": {
20701
- flex: `0 0 ${(((_b = item == null ? void 0 : item.colProps) == null ? void 0 : _b.span) || basicColProps) / 24 * 100}%`,
20721
+ flex: `0 0 ${(((_d = item == null ? void 0 : item.colProps) == null ? void 0 : _d.span) || basicColProps) / 24 * 100}%`,
20702
20722
  flexDirection: getProps.value.mode === "horizontal" ? "row" : "column"
20703
20723
  }
20704
20724
  }, [(slots == null ? void 0 : slots[`${item.field}Label`]) || item.label ? createVNode("span", {
20705
20725
  "style": {
20706
20726
  width: getProps.value.mode === "horizontal" ? `${getProps.value.labelWidth}px` : "auto",
20707
20727
  ...labelAlignCss.value,
20708
- ...((_c = getProps.value) == null ? void 0 : _c.labelStyle) ? (_d = getProps.value) == null ? void 0 : _d.labelStyle : {},
20728
+ ...((_e = getProps.value) == null ? void 0 : _e.labelStyle) ? (_f = getProps.value) == null ? void 0 : _f.labelStyle : {},
20709
20729
  ...(item == null ? void 0 : item.labelStyle) ? item == null ? void 0 : item.labelStyle : {}
20710
20730
  },
20711
20731
  "class": `${prefixCls2}-label`
20712
- }, [slots[`${item.field}Label`] ? (_e = slots[`${item.field}Label`]) == null ? void 0 : _e.call(slots, {
20732
+ }, [slots[`${item.field}Label`] ? (_g = slots[`${item.field}Label`]) == null ? void 0 : _g.call(slots, {
20713
20733
  model: getProps.value.data,
20714
20734
  field: item.label
20715
20735
  }) : item.label, (item == null ? void 0 : item.helpMessage) ? createVNode(_sfc_main$1A, {
@@ -20720,10 +20740,10 @@ const Description = /* @__PURE__ */ defineComponent({
20720
20740
  "class": "mx-1",
20721
20741
  "text": item == null ? void 0 : item.helpMessage,
20722
20742
  "iconSize": "9px"
20723
- }, null) : "", ((_f = getProps.value) == null ? void 0 : _f.isShowColon) ? ":" : createVNode("span", null, null)]) : createVNode(Fragment, null, [createTextVNode(" ")]), createVNode("span", {
20743
+ }, null) : "", ((_h = getProps.value) == null ? void 0 : _h.isShowColon) ? ":" : createVNode("span", null, null)]) : createVNode(Fragment, null, [createTextVNode(" ")]), createVNode("span", {
20724
20744
  "class": `${prefixCls2}-value`,
20725
20745
  "style": {
20726
- ...((_g = getProps.value) == null ? void 0 : _g.contentStyle) ? (_h = getProps.value) == null ? void 0 : _h.contentStyle : {},
20746
+ ...((_i = getProps.value) == null ? void 0 : _i.contentStyle) ? (_j = getProps.value) == null ? void 0 : _j.contentStyle : {},
20727
20747
  ...(item == null ? void 0 : item.contentStyle) ? item == null ? void 0 : item.contentStyle : {}
20728
20748
  }
20729
20749
  }, [element, (item == null ? void 0 : item.isCopy) ? createVNode("span", {
@@ -24590,7 +24610,7 @@ const _sfc_main$B = defineComponent({
24590
24610
  };
24591
24611
  }
24592
24612
  });
24593
- const CropperAvatar_vue_vue_type_style_index_0_scoped_31315934_lang = "";
24613
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_6ac45907_lang = "";
24594
24614
  const _hoisted_1$e = ["src"];
24595
24615
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24596
24616
  const _component_Icon = resolveComponent("Icon");
@@ -24641,7 +24661,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24641
24661
  }, null, 8, ["onRegister", "onUploadSuccess", "onBeforeUpload", "uploadApi", "src"])
24642
24662
  ], 6);
24643
24663
  }
24644
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-31315934"]]);
24664
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-6ac45907"]]);
24645
24665
  const props = {
24646
24666
  startVal: { type: Number, default: 0 },
24647
24667
  endVal: { type: Number, default: 2021 },
@@ -24813,7 +24833,7 @@ const _sfc_main$y = defineComponent({
24813
24833
  }
24814
24834
  }
24815
24835
  });
24816
- const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
24836
+ const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
24817
24837
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24818
24838
  const _component_Spin = resolveComponent("Spin");
24819
24839
  return withDirectives((openBlock(), createElementBlock("section", {
@@ -24829,7 +24849,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24829
24849
  [vShow, _ctx.loading]
24830
24850
  ]);
24831
24851
  }
24832
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-ee545744"]]);
24852
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-33b23b82"]]);
24833
24853
  function createLoading(props2, target, wait = false) {
24834
24854
  let vm = null;
24835
24855
  const data = reactive({
@@ -26622,7 +26642,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
26622
26642
  },
26623
26643
  setup(__props, { expose: __expose }) {
26624
26644
  useCssVars((_ctx) => ({
26625
- "989efb00": props2.labelWidth
26645
+ "7210fae1": props2.labelWidth
26626
26646
  }));
26627
26647
  const props2 = __props;
26628
26648
  const form = ref({});
@@ -26793,8 +26813,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
26793
26813
  };
26794
26814
  }
26795
26815
  });
26796
- const DescriptionsForm_vue_vue_type_style_index_0_scoped_2d2eda80_lang = "";
26797
- const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2d2eda80"]]);
26816
+ const DescriptionsForm_vue_vue_type_style_index_0_scoped_b1ced086_lang = "";
26817
+ const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b1ced086"]]);
26798
26818
  const DescriptionsForm = withInstall$8(descriptionsForm);
26799
26819
  const basicResizeWrapperProps = reactive({
26800
26820
  designWidth: {
@@ -26839,8 +26859,8 @@ const __default__$1 = defineComponent({
26839
26859
  });
26840
26860
  const __injectCSSVars__ = () => {
26841
26861
  useCssVars((_ctx) => ({
26842
- "0aaa544f": _ctx.designWidth,
26843
- "30d13bbe": _ctx.designHeight
26862
+ "1a93f028": _ctx.designWidth,
26863
+ "1e1b1b05": _ctx.designHeight
26844
26864
  }));
26845
26865
  };
26846
26866
  const __setup__ = __default__$1.setup;
@@ -27320,7 +27340,7 @@ const styles = `.vue-colorful {
27320
27340
  border-color: transparent;
27321
27341
  border-bottom: 12px solid #000;
27322
27342
  border-radius: 8px 8px 0 0;
27323
- background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
27343
+ background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),\r
27324
27344
  linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
27325
27345
  }
27326
27346
  .vue-colorful__pointer-fill, .vue-colorful__alpha-gradient {
@@ -27341,15 +27361,15 @@ const styles = `.vue-colorful {
27341
27361
  height: 24px;
27342
27362
  }
27343
27363
  .vue-colorful__hue {
27344
- background: linear-gradient(
27345
- to right,
27346
- #f00 0%,
27347
- #ff0 17%,
27348
- #0f0 33%,
27349
- #0ff 50%,
27350
- #00f 67%,
27351
- #f0f 83%,
27352
- #f00 100%
27364
+ background: linear-gradient(\r
27365
+ to right,\r
27366
+ #f00 0%,\r
27367
+ #ff0 17%,\r
27368
+ #0f0 33%,\r
27369
+ #0ff 50%,\r
27370
+ #00f 67%,\r
27371
+ #f0f 83%,\r
27372
+ #f00 100%\r
27353
27373
  );
27354
27374
  }
27355
27375
  .vue-colorful__last-control {
@@ -31902,6 +31922,10 @@ const setConstConfig = (config) => {
31902
31922
  DEFAULT_ALIGN = config.align;
31903
31923
  };
31904
31924
  const shyTableBasicProps = reactive({
31925
+ summaryPrecision: {
31926
+ type: Number,
31927
+ default: 2
31928
+ },
31905
31929
  isShowTitle: {
31906
31930
  type: Boolean,
31907
31931
  default: true
@@ -33399,8 +33423,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33399
33423
  };
33400
33424
  }
33401
33425
  });
33402
- const Table_vue_vue_type_style_index_0_scoped_abb4b35a_lang = "";
33403
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-abb4b35a"]]);
33426
+ const Table_vue_vue_type_style_index_0_scoped_0d7f83ba_lang = "";
33427
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0d7f83ba"]]);
33404
33428
  const ShyComponentMap = /* @__PURE__ */ new Map();
33405
33429
  ShyComponentMap.set("Input", Input);
33406
33430
  ShyComponentMap.set("InputGroup", Input.Group);
@@ -35289,8 +35313,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
35289
35313
  };
35290
35314
  }
35291
35315
  });
35292
- const Modal_vue_vue_type_style_index_0_scoped_0ca4fd85_lang = "";
35293
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-0ca4fd85"]]);
35316
+ const Modal_vue_vue_type_style_index_0_scoped_15e2dcbb_lang = "";
35317
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-15e2dcbb"]]);
35294
35318
  const _hoisted_1$4 = { class: "api-modal-select" };
35295
35319
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
35296
35320
  __name: "ApiModalSelect",
@@ -35438,8 +35462,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
35438
35462
  };
35439
35463
  }
35440
35464
  });
35441
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_45845a8d_lang = "";
35442
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-45845a8d"]]);
35465
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5019fbdf_lang = "";
35466
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5019fbdf"]]);
35443
35467
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
35444
35468
  __name: "FormWrapper",
35445
35469
  props: {
@@ -35725,7 +35749,7 @@ function useDataSource(propsRef, {
35725
35749
  const total = dataSourceRef.value.reduce((acc, cur) => {
35726
35750
  return +acc + (+cur[field] || 0);
35727
35751
  }, 0);
35728
- obj[field] = Number.parseFloat(total.toFixed(2)).toLocaleString("en-US");
35752
+ obj[field] = total.toFixed(unref(propsRef).summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
35729
35753
  });
35730
35754
  return obj;
35731
35755
  });
@@ -37760,12 +37784,12 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37760
37784
  return hasPermission(column2.auth) && isIfShow(column2);
37761
37785
  }).map((column2) => {
37762
37786
  var _a2, _b;
37763
- const isSummaryCol = unref(propsRef).showSummaryTotal && ((_b = (_a2 = unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(
37787
+ const isSummaryCol = (_b = (_a2 = unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(
37764
37788
  _a2,
37765
37789
  column2.dataIndex
37766
- ));
37790
+ );
37767
37791
  const summaryFormat = (text) => {
37768
- return text ? isNumber$2(+text) && !isNaN(+text) ? Number.parseFloat((+text).toFixed(2)).toLocaleString("en-US") : text : "";
37792
+ return text ? isNumber$2(+text) && !isNaN(+text) ? (+text).toFixed(unref(propsRef).summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,") : text : "";
37769
37793
  };
37770
37794
  const {
37771
37795
  slots,
@@ -38338,8 +38362,8 @@ const _sfc_main$3 = defineComponent({
38338
38362
  };
38339
38363
  }
38340
38364
  });
38341
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_b3419d34_lang = "";
38342
- const _withScopeId = (n) => (pushScopeId("data-v-b3419d34"), n = n(), popScopeId(), n);
38365
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_ac81b595_lang = "";
38366
+ const _withScopeId = (n) => (pushScopeId("data-v-ac81b595"), n = n(), popScopeId(), n);
38343
38367
  const _hoisted_1$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
38344
38368
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
38345
38369
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -38397,7 +38421,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
38397
38421
  ])
38398
38422
  ], 4);
38399
38423
  }
38400
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-b3419d34"]]);
38424
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-ac81b595"]]);
38401
38425
  const _sfc_main$2 = defineComponent({
38402
38426
  name: "EditTableHeaderIcon",
38403
38427
  components: { FormOutlined: FormOutlined$1 },
@@ -39616,8 +39640,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39616
39640
  };
39617
39641
  }
39618
39642
  });
39619
- const Process_vue_vue_type_style_index_0_scoped_fcb6f220_lang = "";
39620
- const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fcb6f220"]]);
39643
+ const Process_vue_vue_type_style_index_0_scoped_d4b02362_lang = "";
39644
+ const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d4b02362"]]);
39621
39645
  export {
39622
39646
  _sfc_main$T as AdvancedSearch,
39623
39647
  ApiCascader$1 as ApiCascader,