3h1-ui 3.0.0-next.68 → 3.0.0-next.69

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 (5) hide show
  1. package/es/index.js +211 -149
  2. package/es/style.css +132 -116
  3. package/index.ts +42 -0
  4. package/lib/index.js +211 -149
  5. package/package.json +5 -5
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
@@ -5967,8 +5967,8 @@ const _sfc_main$1z = /* @__PURE__ */ vue.defineComponent({
5967
5967
  };
5968
5968
  }
5969
5969
  });
5970
- const BasicTitle_vue_vue_type_style_index_0_scoped_0b4494e8_lang = "";
5971
- const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-0b4494e8"]]);
5970
+ const BasicTitle_vue_vue_type_style_index_0_scoped_004c9d3e_lang = "";
5971
+ const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-004c9d3e"]]);
5972
5972
  const props$b = {
5973
5973
  prefixCls: { type: String },
5974
5974
  helpMessage: {
@@ -9563,8 +9563,8 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
9563
9563
  };
9564
9564
  }
9565
9565
  });
9566
- const Table_vue_vue_type_style_index_0_scoped_95018c58_lang = "";
9567
- const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-95018c58"]]);
9566
+ const Table_vue_vue_type_style_index_0_scoped_9232fde4_lang = "";
9567
+ const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-9232fde4"]]);
9568
9568
  const modal = "";
9569
9569
  const modalProps = {
9570
9570
  visible: { type: Boolean },
@@ -10611,8 +10611,8 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
10611
10611
  };
10612
10612
  }
10613
10613
  });
10614
- const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
10615
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-fdc837af"]]);
10614
+ const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
10615
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-a48f9d86"]]);
10616
10616
  const _sfc_main$1i = vue.defineComponent({
10617
10617
  name: "BasicModalHeader",
10618
10618
  components: { BasicTitle },
@@ -14597,8 +14597,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
14597
14597
  };
14598
14598
  }
14599
14599
  });
14600
- const TreeHeader_vue_vue_type_style_index_0_scoped_743e62ba_lang = "";
14601
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-743e62ba"]]);
14600
+ const TreeHeader_vue_vue_type_style_index_0_scoped_8f421346_lang = "";
14601
+ const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-8f421346"]]);
14602
14602
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14603
14603
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
14604
14604
  const isString$1 = (val) => typeof val === "string";
@@ -15494,7 +15494,7 @@ const _sfc_main$11 = vue.defineComponent({
15494
15494
  return { prefixCls: prefixCls2, getCalcContentWidth };
15495
15495
  }
15496
15496
  });
15497
- const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
15497
+ const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
15498
15498
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15499
15499
  return vue.openBlock(), vue.createElementBlock("div", {
15500
15500
  class: vue.normalizeClass(_ctx.prefixCls),
@@ -15513,7 +15513,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15513
15513
  ], 2)
15514
15514
  ], 6);
15515
15515
  }
15516
- const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-44a47dbd"]]);
15516
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-b4695833"]]);
15517
15517
  const _sfc_main$10 = vue.defineComponent({
15518
15518
  name: "PageWrapper",
15519
15519
  components: { PageFooter, PageHeader: antDesignVue.PageHeader },
@@ -18129,8 +18129,8 @@ const _sfc_main$U = vue.defineComponent({
18129
18129
  return { isVisibleAdvancedSearch, handleIconClick };
18130
18130
  }
18131
18131
  });
18132
- const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
18133
- const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-f74ee46a"), n = n(), vue.popScopeId(), n);
18132
+ const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
18133
+ const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-c5892da8"), n = n(), vue.popScopeId(), n);
18134
18134
  const _hoisted_1$r = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("span", null, "高级搜索", -1));
18135
18135
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18136
18136
  const _component_FilterOutlined = vue.resolveComponent("FilterOutlined");
@@ -18148,7 +18148,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18148
18148
  _: 1
18149
18149
  });
18150
18150
  }
18151
- const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-f74ee46a"]]);
18151
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-c5892da8"]]);
18152
18152
  const index$4 = "";
18153
18153
  const searchType = [
18154
18154
  {
@@ -19521,8 +19521,8 @@ const _sfc_main$N = vue.defineComponent({
19521
19521
  };
19522
19522
  }
19523
19523
  });
19524
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
19525
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-90331d26"), n = n(), vue.popScopeId(), n);
19524
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_5f6e7403_lang = "";
19525
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-5f6e7403"), n = n(), vue.popScopeId(), n);
19526
19526
  const _hoisted_1$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
19527
19527
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
19528
19528
  const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
@@ -19580,7 +19580,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
19580
19580
  ])
19581
19581
  ], 4);
19582
19582
  }
19583
- const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-90331d26"]]);
19583
+ const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-5f6e7403"]]);
19584
19584
  const _sfc_main$M = vue.defineComponent({
19585
19585
  components: {
19586
19586
  TableAdvancedSearch: TableAdvancedSearch$1,
@@ -20134,7 +20134,7 @@ const _sfc_main$K = vue.defineComponent({
20134
20134
  setup() {
20135
20135
  }
20136
20136
  });
20137
- const TableDict_vue_vue_type_style_index_0_scoped_7d89a0e9_lang = "";
20137
+ const TableDict_vue_vue_type_style_index_0_scoped_21146269_lang = "";
20138
20138
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20139
20139
  var _a2;
20140
20140
  const _component_Icon = vue.resolveComponent("Icon");
@@ -20163,7 +20163,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20163
20163
  ]), 1032, ["color"])
20164
20164
  ]);
20165
20165
  }
20166
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-7d89a0e9"]]);
20166
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-21146269"]]);
20167
20167
  const index$3 = "";
20168
20168
  function useTable(tableProps) {
20169
20169
  const tableRef = vue.ref(null);
@@ -20435,8 +20435,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
20435
20435
  };
20436
20436
  }
20437
20437
  });
20438
- const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
20439
- const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-4dc415ac"]]);
20438
+ const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
20439
+ const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-24f758b3"]]);
20440
20440
  const _hoisted_1$i = { class: "api-modal-select" };
20441
20441
  const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20442
20442
  __name: "ApiModalSelect",
@@ -20584,8 +20584,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20584
20584
  };
20585
20585
  }
20586
20586
  });
20587
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
20588
- const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-fb4fe18d"]]);
20587
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
20588
+ const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5427533c"]]);
20589
20589
  const Description$1 = "";
20590
20590
  const basicColProps = 24;
20591
20591
  const basicProps$3 = vue.reactive({
@@ -24633,7 +24633,7 @@ const _sfc_main$B = vue.defineComponent({
24633
24633
  };
24634
24634
  }
24635
24635
  });
24636
- const CropperAvatar_vue_vue_type_style_index_0_scoped_31315934_lang = "";
24636
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_6ac45907_lang = "";
24637
24637
  const _hoisted_1$e = ["src"];
24638
24638
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24639
24639
  const _component_Icon = vue.resolveComponent("Icon");
@@ -24684,7 +24684,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24684
24684
  }, null, 8, ["onRegister", "onUploadSuccess", "onBeforeUpload", "uploadApi", "src"])
24685
24685
  ], 6);
24686
24686
  }
24687
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-31315934"]]);
24687
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-6ac45907"]]);
24688
24688
  const props = {
24689
24689
  startVal: { type: Number, default: 0 },
24690
24690
  endVal: { type: Number, default: 2021 },
@@ -24856,7 +24856,7 @@ const _sfc_main$y = vue.defineComponent({
24856
24856
  }
24857
24857
  }
24858
24858
  });
24859
- const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
24859
+ const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
24860
24860
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24861
24861
  const _component_Spin = vue.resolveComponent("Spin");
24862
24862
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("section", {
@@ -24872,7 +24872,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24872
24872
  [vue.vShow, _ctx.loading]
24873
24873
  ]);
24874
24874
  }
24875
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-ee545744"]]);
24875
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-33b23b82"]]);
24876
24876
  function createLoading(props2, target, wait = false) {
24877
24877
  let vm = null;
24878
24878
  const data = vue.reactive({
@@ -26665,7 +26665,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
26665
26665
  },
26666
26666
  setup(__props, { expose: __expose }) {
26667
26667
  vue.useCssVars((_ctx) => ({
26668
- "989efb00": props2.labelWidth
26668
+ "7210fae1": props2.labelWidth
26669
26669
  }));
26670
26670
  const props2 = __props;
26671
26671
  const form = vue.ref({});
@@ -26836,8 +26836,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
26836
26836
  };
26837
26837
  }
26838
26838
  });
26839
- const DescriptionsForm_vue_vue_type_style_index_0_scoped_2d2eda80_lang = "";
26840
- const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2d2eda80"]]);
26839
+ const DescriptionsForm_vue_vue_type_style_index_0_scoped_b1ced086_lang = "";
26840
+ const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b1ced086"]]);
26841
26841
  const DescriptionsForm = utils.withInstall(descriptionsForm);
26842
26842
  const basicResizeWrapperProps = vue.reactive({
26843
26843
  designWidth: {
@@ -26882,8 +26882,8 @@ const __default__$1 = vue.defineComponent({
26882
26882
  });
26883
26883
  const __injectCSSVars__ = () => {
26884
26884
  vue.useCssVars((_ctx) => ({
26885
- "0aaa544f": _ctx.designWidth,
26886
- "30d13bbe": _ctx.designHeight
26885
+ "1a93f028": _ctx.designWidth,
26886
+ "1e1b1b05": _ctx.designHeight
26887
26887
  }));
26888
26888
  };
26889
26889
  const __setup__ = __default__$1.setup;
@@ -27363,7 +27363,7 @@ const styles = `.vue-colorful {
27363
27363
  border-color: transparent;
27364
27364
  border-bottom: 12px solid #000;
27365
27365
  border-radius: 8px 8px 0 0;
27366
- background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
27366
+ background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),\r
27367
27367
  linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
27368
27368
  }
27369
27369
  .vue-colorful__pointer-fill, .vue-colorful__alpha-gradient {
@@ -27384,15 +27384,15 @@ const styles = `.vue-colorful {
27384
27384
  height: 24px;
27385
27385
  }
27386
27386
  .vue-colorful__hue {
27387
- background: linear-gradient(
27388
- to right,
27389
- #f00 0%,
27390
- #ff0 17%,
27391
- #0f0 33%,
27392
- #0ff 50%,
27393
- #00f 67%,
27394
- #f0f 83%,
27395
- #f00 100%
27387
+ background: linear-gradient(\r
27388
+ to right,\r
27389
+ #f00 0%,\r
27390
+ #ff0 17%,\r
27391
+ #0f0 33%,\r
27392
+ #0ff 50%,\r
27393
+ #00f 67%,\r
27394
+ #f0f 83%,\r
27395
+ #f00 100%\r
27396
27396
  );
27397
27397
  }
27398
27398
  .vue-colorful__last-control {
@@ -33486,8 +33486,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
33486
33486
  };
33487
33487
  }
33488
33488
  });
33489
- const Table_vue_vue_type_style_index_0_scoped_221ba907_lang = "";
33490
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-221ba907"]]);
33489
+ const Table_vue_vue_type_style_index_0_scoped_d3bdc269_lang = "";
33490
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-d3bdc269"]]);
33491
33491
  const ShyComponentMap = /* @__PURE__ */ new Map();
33492
33492
  ShyComponentMap.set("Input", antDesignVue.Input);
33493
33493
  ShyComponentMap.set("InputGroup", antDesignVue.Input.Group);
@@ -35380,8 +35380,8 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
35380
35380
  };
35381
35381
  }
35382
35382
  });
35383
- const Modal_vue_vue_type_style_index_0_scoped_0ca4fd85_lang = "";
35384
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-0ca4fd85"]]);
35383
+ const Modal_vue_vue_type_style_index_0_scoped_15e2dcbb_lang = "";
35384
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-15e2dcbb"]]);
35385
35385
  const _hoisted_1$4 = { class: "api-modal-select" };
35386
35386
  const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
35387
35387
  __name: "ApiModalSelect",
@@ -35529,8 +35529,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
35529
35529
  };
35530
35530
  }
35531
35531
  });
35532
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_45845a8d_lang = "";
35533
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-45845a8d"]]);
35532
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5019fbdf_lang = "";
35533
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5019fbdf"]]);
35534
35534
  const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
35535
35535
  __name: "FormWrapper",
35536
35536
  props: {
@@ -37690,8 +37690,45 @@ const useTableHeader = (propsRef, slots, handlers2) => {
37690
37690
  getHeaderProps
37691
37691
  };
37692
37692
  };
37693
- function handleItem(item, ellipsis) {
37694
- const { key: key2, dataIndex, children } = item;
37693
+ const ShyTableTag = /* @__PURE__ */ vue.defineComponent({
37694
+ props: {
37695
+ options: {
37696
+ type: Array,
37697
+ default: () => []
37698
+ },
37699
+ value: {
37700
+ type: [String, Number]
37701
+ }
37702
+ },
37703
+ setup(props2) {
37704
+ const {
37705
+ prefixCls: prefixCls2
37706
+ } = use.useDesign("ant-table-column-tag");
37707
+ const tag = vue.computed(() => props2.options.find((item) => item.value == props2.value) ?? {
37708
+ label: "-",
37709
+ colorType: "var(--gray-5)",
37710
+ cssClass: ""
37711
+ });
37712
+ return () => {
37713
+ return vue.createVNode("div", {
37714
+ "class": [prefixCls2, tag.value.cssClass],
37715
+ "style": {
37716
+ "--pointer-color": tag.value.colorType
37717
+ }
37718
+ }, [vue.createVNode("div", {
37719
+ "class": `${prefixCls2}-pointer`
37720
+ }, null), vue.createVNode("span", {
37721
+ "class": `${prefixCls2}-label`
37722
+ }, [tag.value.label])]);
37723
+ };
37724
+ }
37725
+ });
37726
+ const handleItem = (item, ellipsis) => {
37727
+ const {
37728
+ key: key2,
37729
+ dataIndex,
37730
+ children
37731
+ } = item;
37695
37732
  item.align = item.align || DEFAULT_ALIGN;
37696
37733
  if (ellipsis) {
37697
37734
  if (!key2) {
@@ -37706,20 +37743,17 @@ function handleItem(item, ellipsis) {
37706
37743
  if (children && children.length) {
37707
37744
  handleChildren(children, !!ellipsis);
37708
37745
  }
37709
- }
37710
- function handleColumnResize(propsRef, columns, wrapRef) {
37746
+ };
37747
+ const handleColumnResize = (propsRef, columns, wrapRef) => {
37711
37748
  var _a2, _b, _c, _d, _e, _f;
37712
37749
  const tableWidth = ((_c = (_b = (_a2 = wrapRef.value) == null ? void 0 : _a2.querySelector) == null ? void 0 : _b.call(_a2, ".ant-table-body")) == null ? void 0 : _c.clientWidth) - 7 || ((_f = (_e = (_d = wrapRef.value) == null ? void 0 : _d.querySelector) == null ? void 0 : _e.call(_d, ".ant-table-content")) == null ? void 0 : _f.clientWidth);
37713
37750
  const selectWidth = propsRef.value.rowSelection ? 36 : 0;
37714
- const [sumWidth, sumLength] = columns.reduce(
37715
- ([sumWidth2, length22], cur) => {
37716
- if (typeof cur.width === "number") {
37717
- return [sumWidth2 + cur.width, ++length22];
37718
- }
37719
- return [sumWidth2, length22];
37720
- },
37721
- [0, 0]
37722
- );
37751
+ const [sumWidth, sumLength] = columns.reduce(([sumWidth2, length3], cur) => {
37752
+ if (typeof cur.width === "number") {
37753
+ return [sumWidth2 + cur.width, ++length3];
37754
+ }
37755
+ return [sumWidth2, length3];
37756
+ }, [0, 0]);
37723
37757
  const length2 = columns.length;
37724
37758
  columns.forEach((item) => {
37725
37759
  const minWidth = ((item == null ? void 0 : item.title) + "").length * 14 + 16;
@@ -37738,26 +37772,30 @@ function handleColumnResize(propsRef, columns, wrapRef) {
37738
37772
  }
37739
37773
  }
37740
37774
  });
37741
- }
37742
- function handleChildren(children, ellipsis) {
37775
+ };
37776
+ const handleChildren = (children, ellipsis) => {
37743
37777
  if (!children)
37744
37778
  return;
37745
37779
  children.forEach((item) => {
37746
- const { children: children2 } = item;
37780
+ const {
37781
+ children: children2
37782
+ } = item;
37747
37783
  handleItem(item, ellipsis);
37748
37784
  handleChildren(children2, ellipsis);
37749
37785
  });
37750
- }
37751
- function handleIndexColumn(propsRef, getPaginationRef, columns) {
37752
- const { showIndexColumn, indexColumnProps, isTreeTable } = vue.unref(propsRef);
37786
+ };
37787
+ const handleIndexColumn = (propsRef, getPaginationRef, columns) => {
37788
+ const {
37789
+ showIndexColumn,
37790
+ indexColumnProps,
37791
+ isTreeTable
37792
+ } = vue.unref(propsRef);
37753
37793
  let pushIndexColumns = false;
37754
37794
  if (vue.unref(isTreeTable)) {
37755
37795
  return;
37756
37796
  }
37757
37797
  columns.forEach(() => {
37758
- const indIndex = columns.findIndex(
37759
- (column2) => column2.flag === INDEX_COLUMN_FLAG
37760
- );
37798
+ const indIndex = columns.findIndex((column2) => column2.flag === INDEX_COLUMN_FLAG);
37761
37799
  if (showIndexColumn) {
37762
37800
  pushIndexColumns = indIndex === -1;
37763
37801
  } else if (!showIndexColumn && indIndex !== -1) {
@@ -37774,31 +37812,34 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
37774
37812
  maxWidth: 50,
37775
37813
  title: "序号",
37776
37814
  align: "center",
37777
- customRender: ({ index: index2 }) => {
37815
+ customRender: ({
37816
+ index: index2
37817
+ }) => {
37778
37818
  const getPagination = vue.unref(getPaginationRef);
37779
37819
  if (utils.isBoolean(getPagination)) {
37780
37820
  return `${index2 + 1}`;
37781
37821
  }
37782
- const { current = 1, pageSize = PAGE_SIZE } = getPagination;
37783
- return vue.h(
37784
- "div",
37785
- { class: "ant-table-cell-index full cursor-pointer" },
37786
- ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1
37787
- );
37822
+ const {
37823
+ current = 1,
37824
+ pageSize = PAGE_SIZE
37825
+ } = getPagination;
37826
+ return vue.h("div", {
37827
+ class: "ant-table-cell-index full cursor-pointer"
37828
+ }, ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1);
37788
37829
  },
37789
37830
  ...isFixedLeft ? {
37790
37831
  fixed: "left"
37791
37832
  } : {},
37792
37833
  ...indexColumnProps
37793
37834
  });
37794
- }
37795
- function handleActionColumn(propsRef, columns) {
37796
- const { actionColumn } = vue.unref(propsRef);
37835
+ };
37836
+ const handleActionColumn = (propsRef, columns) => {
37837
+ const {
37838
+ actionColumn
37839
+ } = vue.unref(propsRef);
37797
37840
  if (!actionColumn)
37798
37841
  return;
37799
- const hasIndex = columns.findIndex(
37800
- (column2) => column2.flag === ACTION_COLUMN_FLAG
37801
- );
37842
+ const hasIndex = columns.findIndex((column2) => column2.flag === ACTION_COLUMN_FLAG);
37802
37843
  if (hasIndex === -1) {
37803
37844
  columns.push({
37804
37845
  ...columns[hasIndex],
@@ -37810,8 +37851,8 @@ function handleActionColumn(propsRef, columns) {
37810
37851
  flag: ACTION_COLUMN_FLAG
37811
37852
  });
37812
37853
  }
37813
- }
37814
- function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37854
+ };
37855
+ const useColumns = (propsRef, getPaginationRef, tableAction2, wrapRef) => {
37815
37856
  const columnsRef = vue.ref(vue.unref(propsRef).columns);
37816
37857
  let cacheColumns = vue.unref(propsRef).columns;
37817
37858
  const getColumnsRef = vue.computed(() => {
@@ -37822,17 +37863,19 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37822
37863
  if (!columns) {
37823
37864
  return [];
37824
37865
  }
37825
- const { ellipsis } = vue.unref(propsRef);
37866
+ const {
37867
+ ellipsis
37868
+ } = vue.unref(propsRef);
37826
37869
  columns.forEach((item) => {
37827
- const { customRender, slots } = item;
37828
- handleItem(
37829
- item,
37830
- Reflect.has(item, "ellipsis") ? !!item.ellipsis : !!ellipsis && !customRender && !slots
37831
- );
37870
+ const {
37871
+ customRender,
37872
+ slots
37873
+ } = item;
37874
+ handleItem(item, Reflect.has(item, "ellipsis") ? !!item.ellipsis : !!ellipsis && !customRender && !slots);
37832
37875
  });
37833
37876
  return columns;
37834
37877
  });
37835
- function isIfShow(column2) {
37878
+ const isIfShow = (column2) => {
37836
37879
  const ifShow = column2.ifShow;
37837
37880
  let isIfShow2 = true;
37838
37881
  if (utils.isBoolean(ifShow)) {
@@ -37842,7 +37885,7 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37842
37885
  isIfShow2 = ifShow(column2);
37843
37886
  }
37844
37887
  return isIfShow2;
37845
- }
37888
+ };
37846
37889
  const hasPermission = (key2) => true;
37847
37890
  const getViewColumns = vue.computed(() => {
37848
37891
  const viewColumns = sortFixedColumn(vue.unref(getColumnsRef));
@@ -37851,10 +37894,7 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37851
37894
  return hasPermission(column2.auth) && isIfShow(column2);
37852
37895
  }).map((column2) => {
37853
37896
  var _a2, _b;
37854
- const isSummaryCol = (_b = (_a2 = vue.unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(
37855
- _a2,
37856
- column2.dataIndex
37857
- );
37897
+ const isSummaryCol = (_b = (_a2 = vue.unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, column2.dataIndex);
37858
37898
  const summaryFormat = (text) => {
37859
37899
  return text ? utils.isNumber(+text) && !isNaN(+text) ? (+text).toFixed(vue.unref(propsRef).summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,") : text : "";
37860
37900
  };
@@ -37864,25 +37904,50 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37864
37904
  format: format2 = isSummaryCol ? summaryFormat : void 0,
37865
37905
  edit,
37866
37906
  editRow,
37867
- flag
37907
+ flag,
37908
+ tag,
37909
+ options
37868
37910
  } = column2;
37911
+ const renderTag = ({
37912
+ value
37913
+ }) => {
37914
+ return vue.createVNode(ShyTableTag, {
37915
+ "value": value,
37916
+ "options": options
37917
+ }, null);
37918
+ };
37869
37919
  if (!slots || !(slots == null ? void 0 : slots.title)) {
37870
37920
  column2.customTitle = column2.title;
37871
37921
  Reflect.deleteProperty(column2, "title");
37872
37922
  }
37873
- const isDefaultAction = [
37874
- INDEX_COLUMN_FLAG,
37875
- ACTION_COLUMN_FLAG
37876
- ].includes(flag);
37877
- if (!customRender && format2 && !edit && !isDefaultAction) {
37878
- column2.customRender = ({ text, record, index: index2 }) => {
37923
+ const isDefaultAction = [INDEX_COLUMN_FLAG, ACTION_COLUMN_FLAG].includes(flag);
37924
+ if (!customRender && format2 && !edit && !isDefaultAction && !(tag && options)) {
37925
+ column2.customRender = ({
37926
+ text,
37927
+ record,
37928
+ index: index2
37929
+ }) => {
37879
37930
  return formatCell(text, format2, record, index2, tableAction2.value);
37880
37931
  };
37881
37932
  }
37882
- if (customRender) {
37883
- column2.customRender = ({ ...ages }) => customRender({
37884
- ...ages,
37885
- ...{ tableAction: tableAction2.value }
37933
+ if (customRender && !(tag && options)) {
37934
+ column2.customRender = ({
37935
+ ...args
37936
+ }) => customRender({
37937
+ ...args,
37938
+ ...{
37939
+ tableAction: tableAction2.value
37940
+ }
37941
+ });
37942
+ }
37943
+ if (tag && options) {
37944
+ column2.customRender = ({
37945
+ ...args
37946
+ }) => renderTag({
37947
+ ...args,
37948
+ ...{
37949
+ tableAction: tableAction2.value
37950
+ }
37886
37951
  });
37887
37952
  }
37888
37953
  if ((edit || editRow) && !isDefaultAction) {
@@ -37900,18 +37965,17 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37900
37965
  });
37901
37966
  const getColumnsSummary = vue.computed(() => {
37902
37967
  if (propsRef.value.rowSelection) {
37903
- return [{ flag: "ROW_SELECTION" }, ...getViewColumns.value];
37968
+ return [{
37969
+ flag: "ROW_SELECTION"
37970
+ }, ...getViewColumns.value];
37904
37971
  }
37905
37972
  return getViewColumns.value;
37906
37973
  });
37907
- vue.watch(
37908
- () => vue.unref(propsRef).columns,
37909
- (columns) => {
37910
- columnsRef.value = columns;
37911
- cacheColumns = (columns == null ? void 0 : columns.filter((item) => !item.flag)) ?? [];
37912
- }
37913
- );
37914
- function setCacheColumnsByField(dataIndex, value) {
37974
+ vue.watch(() => vue.unref(propsRef).columns, (columns) => {
37975
+ columnsRef.value = columns;
37976
+ cacheColumns = (columns == null ? void 0 : columns.filter((item) => !item.flag)) ?? [];
37977
+ });
37978
+ const setCacheColumnsByField = (dataIndex, value) => {
37915
37979
  if (!dataIndex || !value) {
37916
37980
  return;
37917
37981
  }
@@ -37921,8 +37985,8 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37921
37985
  return;
37922
37986
  }
37923
37987
  });
37924
- }
37925
- function setColumns(columnList) {
37988
+ };
37989
+ const setColumns = (columnList) => {
37926
37990
  const columns = cloneDeep(columnList);
37927
37991
  if (!utils.isArray(columns))
37928
37992
  return;
@@ -37936,17 +38000,13 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37936
38000
  columnsRef.value = columns;
37937
38001
  cacheColumns = columns;
37938
38002
  } else {
37939
- const columnKeys = columns.map(
37940
- (m) => m.toString()
37941
- );
38003
+ const columnKeys = columns.map((m) => m.toString());
37942
38004
  const newColumns = [];
37943
38005
  cacheColumns.forEach((item) => {
37944
38006
  var _a2;
37945
38007
  newColumns.push({
37946
38008
  ...item,
37947
- defaultHidden: !columnKeys.includes(
37948
- ((_a2 = item.dataIndex) == null ? void 0 : _a2.toString()) || item.key
37949
- )
38009
+ defaultHidden: !columnKeys.includes(((_a2 = item.dataIndex) == null ? void 0 : _a2.toString()) || item.key)
37950
38010
  });
37951
38011
  });
37952
38012
  if (!isEqual(cacheKeys, columns)) {
@@ -37957,9 +38017,13 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37957
38017
  }
37958
38018
  columnsRef.value = newColumns;
37959
38019
  }
37960
- }
37961
- function getColumns(opt) {
37962
- const { ignoreIndex, ignoreAction, sort } = opt || {};
38020
+ };
38021
+ const getColumns = (opt) => {
38022
+ const {
38023
+ ignoreIndex,
38024
+ ignoreAction,
38025
+ sort
38026
+ } = opt || {};
37963
38027
  let columns = vue.toRaw(vue.unref(getColumnsRef));
37964
38028
  if (ignoreIndex) {
37965
38029
  columns = columns.filter((item) => item.flag !== INDEX_COLUMN_FLAG);
@@ -37971,10 +38035,10 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37971
38035
  columns = sortFixedColumn(columns);
37972
38036
  }
37973
38037
  return columns;
37974
- }
37975
- function getCacheColumns() {
38038
+ };
38039
+ const getCacheColumns = () => {
37976
38040
  return cacheColumns;
37977
- }
38041
+ };
37978
38042
  return {
37979
38043
  getColumnsRef,
37980
38044
  getCacheColumns,
@@ -37984,8 +38048,8 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37984
38048
  setCacheColumnsByField,
37985
38049
  getColumnsSummary
37986
38050
  };
37987
- }
37988
- function sortFixedColumn(columns) {
38051
+ };
38052
+ const sortFixedColumn = (columns) => {
37989
38053
  const fixedLeftColumns = [];
37990
38054
  const fixedRightColumns = [];
37991
38055
  const defColumns = [];
@@ -38000,11 +38064,9 @@ function sortFixedColumn(columns) {
38000
38064
  }
38001
38065
  defColumns.push(column2);
38002
38066
  }
38003
- return [...fixedLeftColumns, ...defColumns, ...fixedRightColumns].filter(
38004
- (item) => !item.defaultHidden
38005
- );
38006
- }
38007
- function formatCell(text, format2, record, index2, tableAction2) {
38067
+ return [...fixedLeftColumns, ...defColumns, ...fixedRightColumns].filter((item) => !item.defaultHidden);
38068
+ };
38069
+ const formatCell = (text, format2, record, index2, tableAction2) => {
38008
38070
  if (!format2) {
38009
38071
  return text;
38010
38072
  }
@@ -38026,7 +38088,7 @@ function formatCell(text, format2, record, index2, tableAction2) {
38026
38088
  } catch (error2) {
38027
38089
  return text;
38028
38090
  }
38029
- }
38091
+ };
38030
38092
  function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDataSourceRef, wrapRef, formRef) {
38031
38093
  const tableHeightRef = vue.ref(167);
38032
38094
  const modalFn = useModalContext();
@@ -38429,8 +38491,8 @@ const _sfc_main$3 = vue.defineComponent({
38429
38491
  };
38430
38492
  }
38431
38493
  });
38432
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_b3419d34_lang = "";
38433
- const _withScopeId = (n) => (vue.pushScopeId("data-v-b3419d34"), n = n(), vue.popScopeId(), n);
38494
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_ac81b595_lang = "";
38495
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-ac81b595"), n = n(), vue.popScopeId(), n);
38434
38496
  const _hoisted_1$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
38435
38497
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
38436
38498
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
@@ -38488,7 +38550,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
38488
38550
  ])
38489
38551
  ], 4);
38490
38552
  }
38491
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-b3419d34"]]);
38553
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-ac81b595"]]);
38492
38554
  const _sfc_main$2 = vue.defineComponent({
38493
38555
  name: "EditTableHeaderIcon",
38494
38556
  components: { FormOutlined: FormOutlined$1 },
@@ -39712,8 +39774,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
39712
39774
  };
39713
39775
  }
39714
39776
  });
39715
- const Process_vue_vue_type_style_index_0_scoped_0cf797c8_lang = "";
39716
- const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0cf797c8"]]);
39777
+ const Process_vue_vue_type_style_index_0_scoped_5c48c981_lang = "";
39778
+ const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c48c981"]]);
39717
39779
  exports.AdvancedSearch = _sfc_main$T;
39718
39780
  exports.ApiCascader = ApiCascader$1;
39719
39781
  exports.ApiModalSelect = ApiModalSelect$1;