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/lib/index.js CHANGED
@@ -5420,7 +5420,7 @@ const _sfc_main$1F = vue.defineComponent({
5420
5420
  };
5421
5421
  }
5422
5422
  });
5423
- const StrengthMeter_vue_vue_type_style_index_0_scoped_678d40fd_lang = "";
5423
+ const StrengthMeter_vue_vue_type_style_index_0_scoped_c8d77eaa_lang = "";
5424
5424
  const _hoisted_1$G = ["data-score"];
5425
5425
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5426
5426
  const _component_InputPassword = vue.resolveComponent("InputPassword");
@@ -5452,7 +5452,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5452
5452
  ], 2)
5453
5453
  ], 2);
5454
5454
  }
5455
- const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-678d40fd"]]);
5455
+ const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-c8d77eaa"]]);
5456
5456
  const _sfc_main$1E = vue.defineComponent({
5457
5457
  name: "SvgIcon",
5458
5458
  props: {
@@ -5488,7 +5488,7 @@ const _sfc_main$1E = vue.defineComponent({
5488
5488
  return { symbolId, prefixCls: prefixCls2, getStyle };
5489
5489
  }
5490
5490
  });
5491
- const SvgIcon_vue_vue_type_style_index_0_scoped_905fa4a6_lang = "";
5491
+ const SvgIcon_vue_vue_type_style_index_0_scoped_fa64fe87_lang = "";
5492
5492
  const _hoisted_1$F = ["xlink:href"];
5493
5493
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5494
5494
  return vue.openBlock(), vue.createElementBlock("svg", {
@@ -5499,7 +5499,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5499
5499
  vue.createElementVNode("use", { "xlink:href": _ctx.symbolId }, null, 8, _hoisted_1$F)
5500
5500
  ], 6);
5501
5501
  }
5502
- const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-905fa4a6"]]);
5502
+ const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-fa64fe87"]]);
5503
5503
  const SVG_END_WITH_FLAG = "|svg";
5504
5504
  const _sfc_main$1D = vue.defineComponent({
5505
5505
  name: "Icon",
@@ -5810,8 +5810,8 @@ const _sfc_main$1B = /* @__PURE__ */ vue.defineComponent({
5810
5810
  };
5811
5811
  }
5812
5812
  });
5813
- const BasicArrow_vue_vue_type_style_index_0_scoped_fea26917_lang = "";
5814
- const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-fea26917"]]);
5813
+ const BasicArrow_vue_vue_type_style_index_0_scoped_03d87956_lang = "";
5814
+ const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-03d87956"]]);
5815
5815
  const props$c = {
5816
5816
  /**
5817
5817
  * Help text max-width
@@ -5988,8 +5988,8 @@ const _sfc_main$1z = /* @__PURE__ */ vue.defineComponent({
5988
5988
  };
5989
5989
  }
5990
5990
  });
5991
- const BasicTitle_vue_vue_type_style_index_0_scoped_df3764dc_lang = "";
5992
- const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-df3764dc"]]);
5991
+ const BasicTitle_vue_vue_type_style_index_0_scoped_c885e8af_lang = "";
5992
+ const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-c885e8af"]]);
5993
5993
  const props$b = {
5994
5994
  prefixCls: { type: String },
5995
5995
  helpMessage: {
@@ -9574,8 +9574,8 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
9574
9574
  };
9575
9575
  }
9576
9576
  });
9577
- const Table_vue_vue_type_style_index_0_scoped_95018c58_lang = "";
9578
- const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-95018c58"]]);
9577
+ const Table_vue_vue_type_style_index_0_scoped_9232fde4_lang = "";
9578
+ const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-9232fde4"]]);
9579
9579
  const modal = "";
9580
9580
  const modalProps = {
9581
9581
  visible: { type: Boolean },
@@ -9830,7 +9830,7 @@ function extendSlots(slots, excludeKeys = []) {
9830
9830
  });
9831
9831
  return ret;
9832
9832
  }
9833
- function _isSlot$7(s) {
9833
+ function _isSlot$8(s) {
9834
9834
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
9835
9835
  }
9836
9836
  const Modal$2 = /* @__PURE__ */ vue.defineComponent({
@@ -9863,7 +9863,7 @@ const Modal$2 = /* @__PURE__ */ vue.defineComponent({
9863
9863
  ...props2,
9864
9864
  onCancel
9865
9865
  };
9866
- return vue.createVNode(antDesignVue.Modal, propsData, _isSlot$7(_slot = extendSlots(slots)) ? _slot : {
9866
+ return vue.createVNode(antDesignVue.Modal, propsData, _isSlot$8(_slot = extendSlots(slots)) ? _slot : {
9867
9867
  default: () => [_slot]
9868
9868
  });
9869
9869
  };
@@ -10359,7 +10359,7 @@ const BasicButton = /* @__PURE__ */ vue.defineComponent({
10359
10359
  };
10360
10360
  }
10361
10361
  });
10362
- function _isSlot$6(s) {
10362
+ function _isSlot$7(s) {
10363
10363
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
10364
10364
  }
10365
10365
  const props$6 = {
@@ -10391,7 +10391,7 @@ const PopConfirmButton = /* @__PURE__ */ vue.defineComponent({
10391
10391
  btnBind.color = "";
10392
10392
  const Button2 = () => {
10393
10393
  let _slot;
10394
- return vue.createVNode(BasicButton, btnBind, _isSlot$6(_slot = utils.extendSlots(slots)) ? _slot : {
10394
+ return vue.createVNode(BasicButton, btnBind, _isSlot$7(_slot = utils.extendSlots(slots)) ? _slot : {
10395
10395
  default: () => [_slot]
10396
10396
  });
10397
10397
  };
@@ -10621,8 +10621,8 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
10621
10621
  };
10622
10622
  }
10623
10623
  });
10624
- const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
10625
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-fdc837af"]]);
10624
+ const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
10625
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-a48f9d86"]]);
10626
10626
  const _sfc_main$1i = vue.defineComponent({
10627
10627
  name: "BasicModalHeader",
10628
10628
  components: { BasicTitle },
@@ -12627,7 +12627,7 @@ const useGlobalConfig = (key2) => {
12627
12627
  };
12628
12628
  return { config, setConfig };
12629
12629
  };
12630
- function _isSlot$5(s) {
12630
+ function _isSlot$6(s) {
12631
12631
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
12632
12632
  }
12633
12633
  const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
@@ -12945,7 +12945,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
12945
12945
  } : {
12946
12946
  default: () => renderComponentContent
12947
12947
  };
12948
- return vue.createVNode(Comp, compAttr, _isSlot$5(compSlot) ? compSlot : {
12948
+ return vue.createVNode(Comp, compAttr, _isSlot$6(compSlot) ? compSlot : {
12949
12949
  default: () => [compSlot]
12950
12950
  });
12951
12951
  }
@@ -12990,7 +12990,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
12990
12990
  return vue.createVNode(antDesignVue.Col, {
12991
12991
  "span": 24
12992
12992
  }, {
12993
- default: () => [vue.createVNode(Divider$1, vue.unref(getComponentsProps), _isSlot$5(_slot = renderLabelHelpMessage()) ? _slot : {
12993
+ default: () => [vue.createVNode(Divider$1, vue.unref(getComponentsProps), _isSlot$6(_slot = renderLabelHelpMessage()) ? _slot : {
12994
12994
  default: () => [_slot]
12995
12995
  })]
12996
12996
  });
@@ -13051,7 +13051,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
13051
13051
  const getContent = () => {
13052
13052
  return colSlot ? utils.getSlot(slots, colSlot, values) : renderColContent ? renderColContent(values) : renderItem();
13053
13053
  };
13054
- return isIfShow && vue.withDirectives(vue.createVNode(antDesignVue.Col, realColProps, _isSlot$5(_slot2 = getContent()) ? _slot2 : {
13054
+ return isIfShow && vue.withDirectives(vue.createVNode(antDesignVue.Col, realColProps, _isSlot$6(_slot2 = getContent()) ? _slot2 : {
13055
13055
  default: () => [_slot2]
13056
13056
  }), [[vue.vShow, isShow]]);
13057
13057
  };
@@ -14580,6 +14580,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
14580
14580
  style: {
14581
14581
  color: "#2da44e"
14582
14582
  },
14583
+ class: "cursor-pointer",
14583
14584
  onClick: handleMenuClick
14584
14585
  })
14585
14586
  ]),
@@ -14600,8 +14601,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
14600
14601
  };
14601
14602
  }
14602
14603
  });
14603
- const TreeHeader_vue_vue_type_style_index_0_scoped_07d7188c_lang = "";
14604
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-07d7188c"]]);
14604
+ const TreeHeader_vue_vue_type_style_index_0_scoped_8dfdfcea_lang = "";
14605
+ const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-8dfdfcea"]]);
14605
14606
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14606
14607
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
14607
14608
  const isString$1 = (val) => typeof val === "string";
@@ -14806,7 +14807,7 @@ function useTree(treeDataRef, getFieldNames) {
14806
14807
  getSelectedNode
14807
14808
  };
14808
14809
  }
14809
- function _isSlot$4(s) {
14810
+ function _isSlot$5(s) {
14810
14811
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14811
14812
  }
14812
14813
  const prefixCls$2 = "context-menu";
@@ -14963,7 +14964,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
14963
14964
  "mode": "vertical",
14964
14965
  "ref": wrapRef,
14965
14966
  "style": vue.unref(getStyle)
14966
- }, _isSlot$4(_slot = renderMenuItem(items)) ? _slot : {
14967
+ }, _isSlot$5(_slot = renderMenuItem(items)) ? _slot : {
14967
14968
  default: () => [_slot]
14968
14969
  })]);
14969
14970
  };
@@ -15035,6 +15036,9 @@ function useContextMenu(authRemove = true) {
15035
15036
  }
15036
15037
  return [createContextMenu, destroyContextMenu];
15037
15038
  }
15039
+ function _isSlot$4(s) {
15040
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
15041
+ }
15038
15042
  const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
15039
15043
  name: "BasicTree",
15040
15044
  inheritAttrs: false,
@@ -15371,11 +15375,12 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
15371
15375
  });
15372
15376
  return data;
15373
15377
  });
15374
- async function handlePlusClick() {
15378
+ function handlePlusClick() {
15375
15379
  emit("plus-click");
15376
15380
  }
15377
15381
  expose(instance);
15378
15382
  return () => {
15383
+ let _slot;
15379
15384
  const {
15380
15385
  title,
15381
15386
  helpMessage,
@@ -15399,9 +15404,10 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
15399
15404
  "helpMessage": helpMessage,
15400
15405
  "onStrictlyChange": onStrictlyChange,
15401
15406
  "onSearch": handleSearch,
15402
- "searchText": searchState.searchText
15403
- }, {
15404
- default: () => [utils.extendSlots(slots), vue.createTextVNode("plusClick="), handlePlusClick]
15407
+ "searchText": searchState.searchText,
15408
+ "onPlusClick": handlePlusClick
15409
+ }, _isSlot$4(_slot = utils.extendSlots(slots)) ? _slot : {
15410
+ default: () => [_slot]
15405
15411
  }), vue.createVNode(antDesignVue.Spin, {
15406
15412
  "wrapperClassName": vue.unref(props2.treeWrapperClassName),
15407
15413
  "spinning": vue.unref(props2.loading),
@@ -15490,7 +15496,7 @@ const _sfc_main$11 = vue.defineComponent({
15490
15496
  return { prefixCls: prefixCls2, getCalcContentWidth };
15491
15497
  }
15492
15498
  });
15493
- const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
15499
+ const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
15494
15500
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15495
15501
  return vue.openBlock(), vue.createElementBlock("div", {
15496
15502
  class: vue.normalizeClass(_ctx.prefixCls),
@@ -15509,7 +15515,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15509
15515
  ], 2)
15510
15516
  ], 6);
15511
15517
  }
15512
- const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-44a47dbd"]]);
15518
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-b4695833"]]);
15513
15519
  const _sfc_main$10 = vue.defineComponent({
15514
15520
  name: "PageWrapper",
15515
15521
  components: { PageFooter, PageHeader: antDesignVue.PageHeader },
@@ -18125,8 +18131,8 @@ const _sfc_main$U = vue.defineComponent({
18125
18131
  return { isVisibleAdvancedSearch, handleIconClick };
18126
18132
  }
18127
18133
  });
18128
- const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
18129
- const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-f74ee46a"), n = n(), vue.popScopeId(), n);
18134
+ const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
18135
+ const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-c5892da8"), n = n(), vue.popScopeId(), n);
18130
18136
  const _hoisted_1$r = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("span", null, "高级搜索", -1));
18131
18137
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18132
18138
  const _component_FilterOutlined = vue.resolveComponent("FilterOutlined");
@@ -18144,7 +18150,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18144
18150
  _: 1
18145
18151
  });
18146
18152
  }
18147
- const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-f74ee46a"]]);
18153
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-c5892da8"]]);
18148
18154
  const index$4 = "";
18149
18155
  const searchType = [
18150
18156
  {
@@ -19517,8 +19523,8 @@ const _sfc_main$N = vue.defineComponent({
19517
19523
  };
19518
19524
  }
19519
19525
  });
19520
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
19521
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-90331d26"), n = n(), vue.popScopeId(), n);
19526
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_5f6e7403_lang = "";
19527
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-5f6e7403"), n = n(), vue.popScopeId(), n);
19522
19528
  const _hoisted_1$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
19523
19529
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
19524
19530
  const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
@@ -19576,7 +19582,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
19576
19582
  ])
19577
19583
  ], 4);
19578
19584
  }
19579
- const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-90331d26"]]);
19585
+ const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-5f6e7403"]]);
19580
19586
  const _sfc_main$M = vue.defineComponent({
19581
19587
  components: {
19582
19588
  TableAdvancedSearch: TableAdvancedSearch$1,
@@ -20130,7 +20136,7 @@ const _sfc_main$K = vue.defineComponent({
20130
20136
  setup() {
20131
20137
  }
20132
20138
  });
20133
- const TableDict_vue_vue_type_style_index_0_scoped_7d89a0e9_lang = "";
20139
+ const TableDict_vue_vue_type_style_index_0_scoped_21146269_lang = "";
20134
20140
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20135
20141
  var _a2;
20136
20142
  const _component_Icon = vue.resolveComponent("Icon");
@@ -20159,7 +20165,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20159
20165
  ]), 1032, ["color"])
20160
20166
  ]);
20161
20167
  }
20162
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-7d89a0e9"]]);
20168
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-21146269"]]);
20163
20169
  const index$3 = "";
20164
20170
  function useTable(tableProps) {
20165
20171
  const tableRef = vue.ref(null);
@@ -20431,8 +20437,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
20431
20437
  };
20432
20438
  }
20433
20439
  });
20434
- const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
20435
- const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-4dc415ac"]]);
20440
+ const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
20441
+ const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-24f758b3"]]);
20436
20442
  const _hoisted_1$i = { class: "api-modal-select" };
20437
20443
  const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20438
20444
  __name: "ApiModalSelect",
@@ -20580,8 +20586,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20580
20586
  };
20581
20587
  }
20582
20588
  });
20583
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
20584
- const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-fb4fe18d"]]);
20589
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
20590
+ const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5427533c"]]);
20585
20591
  const Description$1 = "";
20586
20592
  const basicColProps = 24;
20587
20593
  const basicProps$3 = vue.reactive({
@@ -20589,6 +20595,14 @@ const basicProps$3 = vue.reactive({
20589
20595
  type: Array,
20590
20596
  default: () => []
20591
20597
  },
20598
+ summaryPrecision: {
20599
+ type: Number,
20600
+ default: 2
20601
+ },
20602
+ summaryTotalFields: {
20603
+ type: Array,
20604
+ default: () => []
20605
+ },
20592
20606
  labelAlign: {
20593
20607
  type: String,
20594
20608
  default: () => "right"
@@ -20698,7 +20712,7 @@ const Description = /* @__PURE__ */ vue.defineComponent({
20698
20712
  const rows = vue.computed(() => {
20699
20713
  let element = null;
20700
20714
  return getProps.value.schema.map((item) => {
20701
- var _a2, _b, _c, _d, _e, _f, _g, _h;
20715
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
20702
20716
  if ((item == null ? void 0 : item.component) === "Divider") {
20703
20717
  return vue.createVNode(antDesignVue.Divider, null, null);
20704
20718
  } else if ((item == null ? void 0 : item.component) === "Group") {
@@ -20710,30 +20724,36 @@ const Description = /* @__PURE__ */ vue.defineComponent({
20710
20724
  "label": item == null ? void 0 : item.label
20711
20725
  }, null)]);
20712
20726
  } else {
20727
+ const data = getProps.value.data;
20713
20728
  if (item == null ? void 0 : item.customRender) {
20714
- element = (item == null ? void 0 : item.customRender) ? item.customRender(getProps.value.data) : null;
20729
+ element = (item == null ? void 0 : item.customRender) ? item.customRender(data) : null;
20730
+ } else if ((_a2 = getProps.value.summaryTotalFields) == null ? void 0 : _a2.length) {
20731
+ element = slots[`${item.field}Value`] ? (_b = slots[`${item.field}Value`]) == null ? void 0 : _b.call(slots, {
20732
+ model: data,
20733
+ field: data[`${item.field}`]
20734
+ }) : utils.isNumber(+data[`${item.field}`]) && !isNaN(+data[`${item.field}`]) ? (+data[`${item.field}`]).toFixed(getProps.value.summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,") : data[`${item.field}`];
20715
20735
  } else {
20716
- element = slots[`${item.field}Value`] ? (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
20717
- model: getProps.value.data,
20718
- field: getProps.value.data[`${item.field}`]
20719
- }) : getProps.value.data[`${item.field}`];
20736
+ element = slots[`${item.field}Value`] ? (_c = slots[`${item.field}Value`]) == null ? void 0 : _c.call(slots, {
20737
+ model: data,
20738
+ field: data[`${item.field}`]
20739
+ }) : data[`${item.field}`];
20720
20740
  }
20721
- const ifShow = utils.isBoolean(item == null ? void 0 : item.ifShow) || utils.isFunction(item == null ? void 0 : item.ifShow) ? utils.isFunction(item.ifShow) ? item.ifShow(getProps.value.data) : item.ifShow : true;
20741
+ const ifShow = utils.isBoolean(item == null ? void 0 : item.ifShow) || utils.isFunction(item == null ? void 0 : item.ifShow) ? utils.isFunction(item.ifShow) ? item.ifShow(data) : item.ifShow : true;
20722
20742
  return ifShow ? vue.createVNode("div", {
20723
20743
  "class": `${prefixCls2}-row`,
20724
20744
  "style": {
20725
- flex: `0 0 ${(((_b = item == null ? void 0 : item.colProps) == null ? void 0 : _b.span) || basicColProps) / 24 * 100}%`,
20745
+ flex: `0 0 ${(((_d = item == null ? void 0 : item.colProps) == null ? void 0 : _d.span) || basicColProps) / 24 * 100}%`,
20726
20746
  flexDirection: getProps.value.mode === "horizontal" ? "row" : "column"
20727
20747
  }
20728
20748
  }, [(slots == null ? void 0 : slots[`${item.field}Label`]) || item.label ? vue.createVNode("span", {
20729
20749
  "style": {
20730
20750
  width: getProps.value.mode === "horizontal" ? `${getProps.value.labelWidth}px` : "auto",
20731
20751
  ...labelAlignCss.value,
20732
- ...((_c = getProps.value) == null ? void 0 : _c.labelStyle) ? (_d = getProps.value) == null ? void 0 : _d.labelStyle : {},
20752
+ ...((_e = getProps.value) == null ? void 0 : _e.labelStyle) ? (_f = getProps.value) == null ? void 0 : _f.labelStyle : {},
20733
20753
  ...(item == null ? void 0 : item.labelStyle) ? item == null ? void 0 : item.labelStyle : {}
20734
20754
  },
20735
20755
  "class": `${prefixCls2}-label`
20736
- }, [slots[`${item.field}Label`] ? (_e = slots[`${item.field}Label`]) == null ? void 0 : _e.call(slots, {
20756
+ }, [slots[`${item.field}Label`] ? (_g = slots[`${item.field}Label`]) == null ? void 0 : _g.call(slots, {
20737
20757
  model: getProps.value.data,
20738
20758
  field: item.label
20739
20759
  }) : item.label, (item == null ? void 0 : item.helpMessage) ? vue.createVNode(_sfc_main$1A, {
@@ -20744,10 +20764,10 @@ const Description = /* @__PURE__ */ vue.defineComponent({
20744
20764
  "class": "mx-1",
20745
20765
  "text": item == null ? void 0 : item.helpMessage,
20746
20766
  "iconSize": "9px"
20747
- }, null) : "", ((_f = getProps.value) == null ? void 0 : _f.isShowColon) ? ":" : vue.createVNode("span", null, null)]) : vue.createVNode(vue.Fragment, null, [vue.createTextVNode(" ")]), vue.createVNode("span", {
20767
+ }, null) : "", ((_h = getProps.value) == null ? void 0 : _h.isShowColon) ? ":" : vue.createVNode("span", null, null)]) : vue.createVNode(vue.Fragment, null, [vue.createTextVNode(" ")]), vue.createVNode("span", {
20748
20768
  "class": `${prefixCls2}-value`,
20749
20769
  "style": {
20750
- ...((_g = getProps.value) == null ? void 0 : _g.contentStyle) ? (_h = getProps.value) == null ? void 0 : _h.contentStyle : {},
20770
+ ...((_i = getProps.value) == null ? void 0 : _i.contentStyle) ? (_j = getProps.value) == null ? void 0 : _j.contentStyle : {},
20751
20771
  ...(item == null ? void 0 : item.contentStyle) ? item == null ? void 0 : item.contentStyle : {}
20752
20772
  }
20753
20773
  }, [element, (item == null ? void 0 : item.isCopy) ? vue.createVNode("span", {
@@ -24614,7 +24634,7 @@ const _sfc_main$B = vue.defineComponent({
24614
24634
  };
24615
24635
  }
24616
24636
  });
24617
- const CropperAvatar_vue_vue_type_style_index_0_scoped_31315934_lang = "";
24637
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_6ac45907_lang = "";
24618
24638
  const _hoisted_1$e = ["src"];
24619
24639
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24620
24640
  const _component_Icon = vue.resolveComponent("Icon");
@@ -24665,7 +24685,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24665
24685
  }, null, 8, ["onRegister", "onUploadSuccess", "onBeforeUpload", "uploadApi", "src"])
24666
24686
  ], 6);
24667
24687
  }
24668
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-31315934"]]);
24688
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-6ac45907"]]);
24669
24689
  const props = {
24670
24690
  startVal: { type: Number, default: 0 },
24671
24691
  endVal: { type: Number, default: 2021 },
@@ -24837,7 +24857,7 @@ const _sfc_main$y = vue.defineComponent({
24837
24857
  }
24838
24858
  }
24839
24859
  });
24840
- const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
24860
+ const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
24841
24861
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24842
24862
  const _component_Spin = vue.resolveComponent("Spin");
24843
24863
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("section", {
@@ -24853,7 +24873,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24853
24873
  [vue.vShow, _ctx.loading]
24854
24874
  ]);
24855
24875
  }
24856
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-ee545744"]]);
24876
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-33b23b82"]]);
24857
24877
  function createLoading(props2, target, wait = false) {
24858
24878
  let vm = null;
24859
24879
  const data = vue.reactive({
@@ -26646,7 +26666,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
26646
26666
  },
26647
26667
  setup(__props, { expose: __expose }) {
26648
26668
  vue.useCssVars((_ctx) => ({
26649
- "989efb00": props2.labelWidth
26669
+ "7210fae1": props2.labelWidth
26650
26670
  }));
26651
26671
  const props2 = __props;
26652
26672
  const form = vue.ref({});
@@ -26817,8 +26837,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
26817
26837
  };
26818
26838
  }
26819
26839
  });
26820
- const DescriptionsForm_vue_vue_type_style_index_0_scoped_2d2eda80_lang = "";
26821
- const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2d2eda80"]]);
26840
+ const DescriptionsForm_vue_vue_type_style_index_0_scoped_b1ced086_lang = "";
26841
+ const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b1ced086"]]);
26822
26842
  const DescriptionsForm = utils.withInstall(descriptionsForm);
26823
26843
  const basicResizeWrapperProps = vue.reactive({
26824
26844
  designWidth: {
@@ -26863,8 +26883,8 @@ const __default__$1 = vue.defineComponent({
26863
26883
  });
26864
26884
  const __injectCSSVars__ = () => {
26865
26885
  vue.useCssVars((_ctx) => ({
26866
- "0aaa544f": _ctx.designWidth,
26867
- "30d13bbe": _ctx.designHeight
26886
+ "1a93f028": _ctx.designWidth,
26887
+ "1e1b1b05": _ctx.designHeight
26868
26888
  }));
26869
26889
  };
26870
26890
  const __setup__ = __default__$1.setup;
@@ -27344,7 +27364,7 @@ const styles = `.vue-colorful {
27344
27364
  border-color: transparent;
27345
27365
  border-bottom: 12px solid #000;
27346
27366
  border-radius: 8px 8px 0 0;
27347
- background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
27367
+ background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),\r
27348
27368
  linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
27349
27369
  }
27350
27370
  .vue-colorful__pointer-fill, .vue-colorful__alpha-gradient {
@@ -27365,15 +27385,15 @@ const styles = `.vue-colorful {
27365
27385
  height: 24px;
27366
27386
  }
27367
27387
  .vue-colorful__hue {
27368
- background: linear-gradient(
27369
- to right,
27370
- #f00 0%,
27371
- #ff0 17%,
27372
- #0f0 33%,
27373
- #0ff 50%,
27374
- #00f 67%,
27375
- #f0f 83%,
27376
- #f00 100%
27388
+ background: linear-gradient(\r
27389
+ to right,\r
27390
+ #f00 0%,\r
27391
+ #ff0 17%,\r
27392
+ #0f0 33%,\r
27393
+ #0ff 50%,\r
27394
+ #00f 67%,\r
27395
+ #f0f 83%,\r
27396
+ #f00 100%\r
27377
27397
  );
27378
27398
  }
27379
27399
  .vue-colorful__last-control {
@@ -31926,6 +31946,10 @@ const setConstConfig = (config) => {
31926
31946
  DEFAULT_ALIGN = config.align;
31927
31947
  };
31928
31948
  const shyTableBasicProps = vue.reactive({
31949
+ summaryPrecision: {
31950
+ type: Number,
31951
+ default: 2
31952
+ },
31929
31953
  isShowTitle: {
31930
31954
  type: Boolean,
31931
31955
  default: true
@@ -33423,8 +33447,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
33423
33447
  };
33424
33448
  }
33425
33449
  });
33426
- const Table_vue_vue_type_style_index_0_scoped_abb4b35a_lang = "";
33427
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-abb4b35a"]]);
33450
+ const Table_vue_vue_type_style_index_0_scoped_0d7f83ba_lang = "";
33451
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0d7f83ba"]]);
33428
33452
  const ShyComponentMap = /* @__PURE__ */ new Map();
33429
33453
  ShyComponentMap.set("Input", antDesignVue.Input);
33430
33454
  ShyComponentMap.set("InputGroup", antDesignVue.Input.Group);
@@ -35313,8 +35337,8 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
35313
35337
  };
35314
35338
  }
35315
35339
  });
35316
- const Modal_vue_vue_type_style_index_0_scoped_0ca4fd85_lang = "";
35317
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-0ca4fd85"]]);
35340
+ const Modal_vue_vue_type_style_index_0_scoped_15e2dcbb_lang = "";
35341
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-15e2dcbb"]]);
35318
35342
  const _hoisted_1$4 = { class: "api-modal-select" };
35319
35343
  const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
35320
35344
  __name: "ApiModalSelect",
@@ -35462,8 +35486,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
35462
35486
  };
35463
35487
  }
35464
35488
  });
35465
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_45845a8d_lang = "";
35466
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-45845a8d"]]);
35489
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5019fbdf_lang = "";
35490
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5019fbdf"]]);
35467
35491
  const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
35468
35492
  __name: "FormWrapper",
35469
35493
  props: {
@@ -35749,7 +35773,7 @@ function useDataSource(propsRef, {
35749
35773
  const total = dataSourceRef.value.reduce((acc, cur) => {
35750
35774
  return +acc + (+cur[field] || 0);
35751
35775
  }, 0);
35752
- obj[field] = Number.parseFloat(total.toFixed(2)).toLocaleString("en-US");
35776
+ obj[field] = total.toFixed(vue.unref(propsRef).summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
35753
35777
  });
35754
35778
  return obj;
35755
35779
  });
@@ -37784,12 +37808,12 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37784
37808
  return hasPermission(column2.auth) && isIfShow(column2);
37785
37809
  }).map((column2) => {
37786
37810
  var _a2, _b;
37787
- const isSummaryCol = vue.unref(propsRef).showSummaryTotal && ((_b = (_a2 = vue.unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(
37811
+ const isSummaryCol = (_b = (_a2 = vue.unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(
37788
37812
  _a2,
37789
37813
  column2.dataIndex
37790
- ));
37814
+ );
37791
37815
  const summaryFormat = (text) => {
37792
- return text ? utils.isNumber(+text) && !isNaN(+text) ? Number.parseFloat((+text).toFixed(2)).toLocaleString("en-US") : text : "";
37816
+ return text ? utils.isNumber(+text) && !isNaN(+text) ? (+text).toFixed(vue.unref(propsRef).summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,") : text : "";
37793
37817
  };
37794
37818
  const {
37795
37819
  slots,
@@ -38362,8 +38386,8 @@ const _sfc_main$3 = vue.defineComponent({
38362
38386
  };
38363
38387
  }
38364
38388
  });
38365
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_b3419d34_lang = "";
38366
- const _withScopeId = (n) => (vue.pushScopeId("data-v-b3419d34"), n = n(), vue.popScopeId(), n);
38389
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_ac81b595_lang = "";
38390
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-ac81b595"), n = n(), vue.popScopeId(), n);
38367
38391
  const _hoisted_1$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
38368
38392
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
38369
38393
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
@@ -38421,7 +38445,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
38421
38445
  ])
38422
38446
  ], 4);
38423
38447
  }
38424
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-b3419d34"]]);
38448
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-ac81b595"]]);
38425
38449
  const _sfc_main$2 = vue.defineComponent({
38426
38450
  name: "EditTableHeaderIcon",
38427
38451
  components: { FormOutlined: FormOutlined$1 },
@@ -39640,8 +39664,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
39640
39664
  };
39641
39665
  }
39642
39666
  });
39643
- const Process_vue_vue_type_style_index_0_scoped_fcb6f220_lang = "";
39644
- const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fcb6f220"]]);
39667
+ const Process_vue_vue_type_style_index_0_scoped_d4b02362_lang = "";
39668
+ const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d4b02362"]]);
39645
39669
  exports.AdvancedSearch = _sfc_main$T;
39646
39670
  exports.ApiCascader = ApiCascader$1;
39647
39671
  exports.ApiModalSelect = ApiModalSelect$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.51",
3
+ "version": "3.0.0-next.53",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,9 +29,9 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
- "@shy-plugins/tinymce": "^1.0.6",
33
32
  "@shy-plugins/use": "1.0.0-next.1",
34
- "@shy-plugins/utils": "1.0.0-next.1"
33
+ "@shy-plugins/utils": "1.0.0-next.1",
34
+ "@shy-plugins/tinymce": "^1.0.6"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",
37
37
  "devDependencies": {