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/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
@@ -5943,8 +5943,8 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
5943
5943
  };
5944
5944
  }
5945
5945
  });
5946
- const BasicTitle_vue_vue_type_style_index_0_scoped_0b4494e8_lang = "";
5947
- const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-0b4494e8"]]);
5946
+ const BasicTitle_vue_vue_type_style_index_0_scoped_004c9d3e_lang = "";
5947
+ const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-004c9d3e"]]);
5948
5948
  const props$b = {
5949
5949
  prefixCls: { type: String },
5950
5950
  helpMessage: {
@@ -9539,8 +9539,8 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
9539
9539
  };
9540
9540
  }
9541
9541
  });
9542
- const Table_vue_vue_type_style_index_0_scoped_95018c58_lang = "";
9543
- const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-95018c58"]]);
9542
+ const Table_vue_vue_type_style_index_0_scoped_9232fde4_lang = "";
9543
+ const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-9232fde4"]]);
9544
9544
  const modal = "";
9545
9545
  const modalProps = {
9546
9546
  visible: { type: Boolean },
@@ -10587,8 +10587,8 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
10587
10587
  };
10588
10588
  }
10589
10589
  });
10590
- const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
10591
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-fdc837af"]]);
10590
+ const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
10591
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-a48f9d86"]]);
10592
10592
  const _sfc_main$1i = defineComponent({
10593
10593
  name: "BasicModalHeader",
10594
10594
  components: { BasicTitle },
@@ -14573,8 +14573,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
14573
14573
  };
14574
14574
  }
14575
14575
  });
14576
- const TreeHeader_vue_vue_type_style_index_0_scoped_743e62ba_lang = "";
14577
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-743e62ba"]]);
14576
+ const TreeHeader_vue_vue_type_style_index_0_scoped_8f421346_lang = "";
14577
+ const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-8f421346"]]);
14578
14578
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14579
14579
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
14580
14580
  const isString$1 = (val) => typeof val === "string";
@@ -15470,7 +15470,7 @@ const _sfc_main$11 = defineComponent({
15470
15470
  return { prefixCls: prefixCls2, getCalcContentWidth };
15471
15471
  }
15472
15472
  });
15473
- const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
15473
+ const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
15474
15474
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15475
15475
  return openBlock(), createElementBlock("div", {
15476
15476
  class: normalizeClass(_ctx.prefixCls),
@@ -15489,7 +15489,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15489
15489
  ], 2)
15490
15490
  ], 6);
15491
15491
  }
15492
- const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-44a47dbd"]]);
15492
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-b4695833"]]);
15493
15493
  const _sfc_main$10 = defineComponent({
15494
15494
  name: "PageWrapper",
15495
15495
  components: { PageFooter, PageHeader },
@@ -18105,8 +18105,8 @@ const _sfc_main$U = defineComponent({
18105
18105
  return { isVisibleAdvancedSearch, handleIconClick };
18106
18106
  }
18107
18107
  });
18108
- const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
18109
- const _withScopeId$2 = (n) => (pushScopeId("data-v-f74ee46a"), n = n(), popScopeId(), n);
18108
+ const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
18109
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-c5892da8"), n = n(), popScopeId(), n);
18110
18110
  const _hoisted_1$r = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", null, "高级搜索", -1));
18111
18111
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18112
18112
  const _component_FilterOutlined = resolveComponent("FilterOutlined");
@@ -18124,7 +18124,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18124
18124
  _: 1
18125
18125
  });
18126
18126
  }
18127
- const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-f74ee46a"]]);
18127
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-c5892da8"]]);
18128
18128
  const index$4 = "";
18129
18129
  const searchType = [
18130
18130
  {
@@ -19497,8 +19497,8 @@ const _sfc_main$N = defineComponent({
19497
19497
  };
19498
19498
  }
19499
19499
  });
19500
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
19501
- const _withScopeId$1 = (n) => (pushScopeId("data-v-90331d26"), n = n(), popScopeId(), n);
19500
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_5f6e7403_lang = "";
19501
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-5f6e7403"), n = n(), popScopeId(), n);
19502
19502
  const _hoisted_1$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
19503
19503
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
19504
19504
  const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -19556,7 +19556,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
19556
19556
  ])
19557
19557
  ], 4);
19558
19558
  }
19559
- const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-90331d26"]]);
19559
+ const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-5f6e7403"]]);
19560
19560
  const _sfc_main$M = defineComponent({
19561
19561
  components: {
19562
19562
  TableAdvancedSearch: TableAdvancedSearch$1,
@@ -20110,7 +20110,7 @@ const _sfc_main$K = defineComponent({
20110
20110
  setup() {
20111
20111
  }
20112
20112
  });
20113
- const TableDict_vue_vue_type_style_index_0_scoped_7d89a0e9_lang = "";
20113
+ const TableDict_vue_vue_type_style_index_0_scoped_21146269_lang = "";
20114
20114
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20115
20115
  var _a2;
20116
20116
  const _component_Icon = resolveComponent("Icon");
@@ -20139,7 +20139,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20139
20139
  ]), 1032, ["color"])
20140
20140
  ]);
20141
20141
  }
20142
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-7d89a0e9"]]);
20142
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-21146269"]]);
20143
20143
  const index$3 = "";
20144
20144
  function useTable(tableProps) {
20145
20145
  const tableRef = ref(null);
@@ -20411,8 +20411,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
20411
20411
  };
20412
20412
  }
20413
20413
  });
20414
- const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
20415
- const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-4dc415ac"]]);
20414
+ const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
20415
+ const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-24f758b3"]]);
20416
20416
  const _hoisted_1$i = { class: "api-modal-select" };
20417
20417
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
20418
20418
  __name: "ApiModalSelect",
@@ -20560,8 +20560,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20560
20560
  };
20561
20561
  }
20562
20562
  });
20563
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
20564
- const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-fb4fe18d"]]);
20563
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
20564
+ const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5427533c"]]);
20565
20565
  const Description$1 = "";
20566
20566
  const basicColProps = 24;
20567
20567
  const basicProps$3 = reactive({
@@ -24609,7 +24609,7 @@ const _sfc_main$B = defineComponent({
24609
24609
  };
24610
24610
  }
24611
24611
  });
24612
- const CropperAvatar_vue_vue_type_style_index_0_scoped_31315934_lang = "";
24612
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_6ac45907_lang = "";
24613
24613
  const _hoisted_1$e = ["src"];
24614
24614
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24615
24615
  const _component_Icon = resolveComponent("Icon");
@@ -24660,7 +24660,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24660
24660
  }, null, 8, ["onRegister", "onUploadSuccess", "onBeforeUpload", "uploadApi", "src"])
24661
24661
  ], 6);
24662
24662
  }
24663
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-31315934"]]);
24663
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-6ac45907"]]);
24664
24664
  const props = {
24665
24665
  startVal: { type: Number, default: 0 },
24666
24666
  endVal: { type: Number, default: 2021 },
@@ -24832,7 +24832,7 @@ const _sfc_main$y = defineComponent({
24832
24832
  }
24833
24833
  }
24834
24834
  });
24835
- const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
24835
+ const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
24836
24836
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24837
24837
  const _component_Spin = resolveComponent("Spin");
24838
24838
  return withDirectives((openBlock(), createElementBlock("section", {
@@ -24848,7 +24848,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24848
24848
  [vShow, _ctx.loading]
24849
24849
  ]);
24850
24850
  }
24851
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-ee545744"]]);
24851
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-33b23b82"]]);
24852
24852
  function createLoading(props2, target, wait = false) {
24853
24853
  let vm = null;
24854
24854
  const data = reactive({
@@ -26641,7 +26641,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
26641
26641
  },
26642
26642
  setup(__props, { expose: __expose }) {
26643
26643
  useCssVars((_ctx) => ({
26644
- "989efb00": props2.labelWidth
26644
+ "7210fae1": props2.labelWidth
26645
26645
  }));
26646
26646
  const props2 = __props;
26647
26647
  const form = ref({});
@@ -26812,8 +26812,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
26812
26812
  };
26813
26813
  }
26814
26814
  });
26815
- const DescriptionsForm_vue_vue_type_style_index_0_scoped_2d2eda80_lang = "";
26816
- const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2d2eda80"]]);
26815
+ const DescriptionsForm_vue_vue_type_style_index_0_scoped_b1ced086_lang = "";
26816
+ const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b1ced086"]]);
26817
26817
  const DescriptionsForm = withInstall$8(descriptionsForm);
26818
26818
  const basicResizeWrapperProps = reactive({
26819
26819
  designWidth: {
@@ -26858,8 +26858,8 @@ const __default__$1 = defineComponent({
26858
26858
  });
26859
26859
  const __injectCSSVars__ = () => {
26860
26860
  useCssVars((_ctx) => ({
26861
- "0aaa544f": _ctx.designWidth,
26862
- "30d13bbe": _ctx.designHeight
26861
+ "1a93f028": _ctx.designWidth,
26862
+ "1e1b1b05": _ctx.designHeight
26863
26863
  }));
26864
26864
  };
26865
26865
  const __setup__ = __default__$1.setup;
@@ -27339,7 +27339,7 @@ const styles = `.vue-colorful {
27339
27339
  border-color: transparent;
27340
27340
  border-bottom: 12px solid #000;
27341
27341
  border-radius: 8px 8px 0 0;
27342
- background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
27342
+ background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),\r
27343
27343
  linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
27344
27344
  }
27345
27345
  .vue-colorful__pointer-fill, .vue-colorful__alpha-gradient {
@@ -27360,15 +27360,15 @@ const styles = `.vue-colorful {
27360
27360
  height: 24px;
27361
27361
  }
27362
27362
  .vue-colorful__hue {
27363
- background: linear-gradient(
27364
- to right,
27365
- #f00 0%,
27366
- #ff0 17%,
27367
- #0f0 33%,
27368
- #0ff 50%,
27369
- #00f 67%,
27370
- #f0f 83%,
27371
- #f00 100%
27363
+ background: linear-gradient(\r
27364
+ to right,\r
27365
+ #f00 0%,\r
27366
+ #ff0 17%,\r
27367
+ #0f0 33%,\r
27368
+ #0ff 50%,\r
27369
+ #00f 67%,\r
27370
+ #f0f 83%,\r
27371
+ #f00 100%\r
27372
27372
  );
27373
27373
  }
27374
27374
  .vue-colorful__last-control {
@@ -33462,8 +33462,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33462
33462
  };
33463
33463
  }
33464
33464
  });
33465
- const Table_vue_vue_type_style_index_0_scoped_221ba907_lang = "";
33466
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-221ba907"]]);
33465
+ const Table_vue_vue_type_style_index_0_scoped_d3bdc269_lang = "";
33466
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-d3bdc269"]]);
33467
33467
  const ShyComponentMap = /* @__PURE__ */ new Map();
33468
33468
  ShyComponentMap.set("Input", Input);
33469
33469
  ShyComponentMap.set("InputGroup", Input.Group);
@@ -35356,8 +35356,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
35356
35356
  };
35357
35357
  }
35358
35358
  });
35359
- const Modal_vue_vue_type_style_index_0_scoped_0ca4fd85_lang = "";
35360
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-0ca4fd85"]]);
35359
+ const Modal_vue_vue_type_style_index_0_scoped_15e2dcbb_lang = "";
35360
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-15e2dcbb"]]);
35361
35361
  const _hoisted_1$4 = { class: "api-modal-select" };
35362
35362
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
35363
35363
  __name: "ApiModalSelect",
@@ -35505,8 +35505,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
35505
35505
  };
35506
35506
  }
35507
35507
  });
35508
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_45845a8d_lang = "";
35509
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-45845a8d"]]);
35508
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5019fbdf_lang = "";
35509
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5019fbdf"]]);
35510
35510
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
35511
35511
  __name: "FormWrapper",
35512
35512
  props: {
@@ -37666,8 +37666,45 @@ const useTableHeader = (propsRef, slots, handlers2) => {
37666
37666
  getHeaderProps
37667
37667
  };
37668
37668
  };
37669
- function handleItem(item, ellipsis) {
37670
- const { key: key2, dataIndex, children } = item;
37669
+ const ShyTableTag = /* @__PURE__ */ defineComponent({
37670
+ props: {
37671
+ options: {
37672
+ type: Array,
37673
+ default: () => []
37674
+ },
37675
+ value: {
37676
+ type: [String, Number]
37677
+ }
37678
+ },
37679
+ setup(props2) {
37680
+ const {
37681
+ prefixCls: prefixCls2
37682
+ } = useDesign$1("ant-table-column-tag");
37683
+ const tag = computed(() => props2.options.find((item) => item.value == props2.value) ?? {
37684
+ label: "-",
37685
+ colorType: "var(--gray-5)",
37686
+ cssClass: ""
37687
+ });
37688
+ return () => {
37689
+ return createVNode("div", {
37690
+ "class": [prefixCls2, tag.value.cssClass],
37691
+ "style": {
37692
+ "--pointer-color": tag.value.colorType
37693
+ }
37694
+ }, [createVNode("div", {
37695
+ "class": `${prefixCls2}-pointer`
37696
+ }, null), createVNode("span", {
37697
+ "class": `${prefixCls2}-label`
37698
+ }, [tag.value.label])]);
37699
+ };
37700
+ }
37701
+ });
37702
+ const handleItem = (item, ellipsis) => {
37703
+ const {
37704
+ key: key2,
37705
+ dataIndex,
37706
+ children
37707
+ } = item;
37671
37708
  item.align = item.align || DEFAULT_ALIGN;
37672
37709
  if (ellipsis) {
37673
37710
  if (!key2) {
@@ -37682,20 +37719,17 @@ function handleItem(item, ellipsis) {
37682
37719
  if (children && children.length) {
37683
37720
  handleChildren(children, !!ellipsis);
37684
37721
  }
37685
- }
37686
- function handleColumnResize(propsRef, columns, wrapRef) {
37722
+ };
37723
+ const handleColumnResize = (propsRef, columns, wrapRef) => {
37687
37724
  var _a2, _b, _c, _d, _e, _f;
37688
37725
  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);
37689
37726
  const selectWidth = propsRef.value.rowSelection ? 36 : 0;
37690
- const [sumWidth, sumLength] = columns.reduce(
37691
- ([sumWidth2, length22], cur) => {
37692
- if (typeof cur.width === "number") {
37693
- return [sumWidth2 + cur.width, ++length22];
37694
- }
37695
- return [sumWidth2, length22];
37696
- },
37697
- [0, 0]
37698
- );
37727
+ const [sumWidth, sumLength] = columns.reduce(([sumWidth2, length3], cur) => {
37728
+ if (typeof cur.width === "number") {
37729
+ return [sumWidth2 + cur.width, ++length3];
37730
+ }
37731
+ return [sumWidth2, length3];
37732
+ }, [0, 0]);
37699
37733
  const length2 = columns.length;
37700
37734
  columns.forEach((item) => {
37701
37735
  const minWidth = ((item == null ? void 0 : item.title) + "").length * 14 + 16;
@@ -37714,26 +37748,30 @@ function handleColumnResize(propsRef, columns, wrapRef) {
37714
37748
  }
37715
37749
  }
37716
37750
  });
37717
- }
37718
- function handleChildren(children, ellipsis) {
37751
+ };
37752
+ const handleChildren = (children, ellipsis) => {
37719
37753
  if (!children)
37720
37754
  return;
37721
37755
  children.forEach((item) => {
37722
- const { children: children2 } = item;
37756
+ const {
37757
+ children: children2
37758
+ } = item;
37723
37759
  handleItem(item, ellipsis);
37724
37760
  handleChildren(children2, ellipsis);
37725
37761
  });
37726
- }
37727
- function handleIndexColumn(propsRef, getPaginationRef, columns) {
37728
- const { showIndexColumn, indexColumnProps, isTreeTable } = unref(propsRef);
37762
+ };
37763
+ const handleIndexColumn = (propsRef, getPaginationRef, columns) => {
37764
+ const {
37765
+ showIndexColumn,
37766
+ indexColumnProps,
37767
+ isTreeTable
37768
+ } = unref(propsRef);
37729
37769
  let pushIndexColumns = false;
37730
37770
  if (unref(isTreeTable)) {
37731
37771
  return;
37732
37772
  }
37733
37773
  columns.forEach(() => {
37734
- const indIndex = columns.findIndex(
37735
- (column2) => column2.flag === INDEX_COLUMN_FLAG
37736
- );
37774
+ const indIndex = columns.findIndex((column2) => column2.flag === INDEX_COLUMN_FLAG);
37737
37775
  if (showIndexColumn) {
37738
37776
  pushIndexColumns = indIndex === -1;
37739
37777
  } else if (!showIndexColumn && indIndex !== -1) {
@@ -37750,31 +37788,34 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
37750
37788
  maxWidth: 50,
37751
37789
  title: "序号",
37752
37790
  align: "center",
37753
- customRender: ({ index: index2 }) => {
37791
+ customRender: ({
37792
+ index: index2
37793
+ }) => {
37754
37794
  const getPagination = unref(getPaginationRef);
37755
37795
  if (isBoolean$1(getPagination)) {
37756
37796
  return `${index2 + 1}`;
37757
37797
  }
37758
- const { current = 1, pageSize = PAGE_SIZE } = getPagination;
37759
- return h(
37760
- "div",
37761
- { class: "ant-table-cell-index full cursor-pointer" },
37762
- ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1
37763
- );
37798
+ const {
37799
+ current = 1,
37800
+ pageSize = PAGE_SIZE
37801
+ } = getPagination;
37802
+ return h("div", {
37803
+ class: "ant-table-cell-index full cursor-pointer"
37804
+ }, ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1);
37764
37805
  },
37765
37806
  ...isFixedLeft ? {
37766
37807
  fixed: "left"
37767
37808
  } : {},
37768
37809
  ...indexColumnProps
37769
37810
  });
37770
- }
37771
- function handleActionColumn(propsRef, columns) {
37772
- const { actionColumn } = unref(propsRef);
37811
+ };
37812
+ const handleActionColumn = (propsRef, columns) => {
37813
+ const {
37814
+ actionColumn
37815
+ } = unref(propsRef);
37773
37816
  if (!actionColumn)
37774
37817
  return;
37775
- const hasIndex = columns.findIndex(
37776
- (column2) => column2.flag === ACTION_COLUMN_FLAG
37777
- );
37818
+ const hasIndex = columns.findIndex((column2) => column2.flag === ACTION_COLUMN_FLAG);
37778
37819
  if (hasIndex === -1) {
37779
37820
  columns.push({
37780
37821
  ...columns[hasIndex],
@@ -37786,8 +37827,8 @@ function handleActionColumn(propsRef, columns) {
37786
37827
  flag: ACTION_COLUMN_FLAG
37787
37828
  });
37788
37829
  }
37789
- }
37790
- function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37830
+ };
37831
+ const useColumns = (propsRef, getPaginationRef, tableAction2, wrapRef) => {
37791
37832
  const columnsRef = ref(unref(propsRef).columns);
37792
37833
  let cacheColumns = unref(propsRef).columns;
37793
37834
  const getColumnsRef = computed(() => {
@@ -37798,17 +37839,19 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37798
37839
  if (!columns) {
37799
37840
  return [];
37800
37841
  }
37801
- const { ellipsis } = unref(propsRef);
37842
+ const {
37843
+ ellipsis
37844
+ } = unref(propsRef);
37802
37845
  columns.forEach((item) => {
37803
- const { customRender, slots } = item;
37804
- handleItem(
37805
- item,
37806
- Reflect.has(item, "ellipsis") ? !!item.ellipsis : !!ellipsis && !customRender && !slots
37807
- );
37846
+ const {
37847
+ customRender,
37848
+ slots
37849
+ } = item;
37850
+ handleItem(item, Reflect.has(item, "ellipsis") ? !!item.ellipsis : !!ellipsis && !customRender && !slots);
37808
37851
  });
37809
37852
  return columns;
37810
37853
  });
37811
- function isIfShow(column2) {
37854
+ const isIfShow = (column2) => {
37812
37855
  const ifShow = column2.ifShow;
37813
37856
  let isIfShow2 = true;
37814
37857
  if (isBoolean$1(ifShow)) {
@@ -37818,7 +37861,7 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37818
37861
  isIfShow2 = ifShow(column2);
37819
37862
  }
37820
37863
  return isIfShow2;
37821
- }
37864
+ };
37822
37865
  const hasPermission = (key2) => true;
37823
37866
  const getViewColumns = computed(() => {
37824
37867
  const viewColumns = sortFixedColumn(unref(getColumnsRef));
@@ -37827,10 +37870,7 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37827
37870
  return hasPermission(column2.auth) && isIfShow(column2);
37828
37871
  }).map((column2) => {
37829
37872
  var _a2, _b;
37830
- const isSummaryCol = (_b = (_a2 = unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(
37831
- _a2,
37832
- column2.dataIndex
37833
- );
37873
+ const isSummaryCol = (_b = (_a2 = unref(propsRef).summaryTotalFields) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, column2.dataIndex);
37834
37874
  const summaryFormat = (text) => {
37835
37875
  return text ? isNumber$2(+text) && !isNaN(+text) ? (+text).toFixed(unref(propsRef).summaryPrecision).replace(/(\d)(?=(\d{3})+\.)/g, "$1,") : text : "";
37836
37876
  };
@@ -37840,25 +37880,50 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37840
37880
  format: format2 = isSummaryCol ? summaryFormat : void 0,
37841
37881
  edit,
37842
37882
  editRow,
37843
- flag
37883
+ flag,
37884
+ tag,
37885
+ options
37844
37886
  } = column2;
37887
+ const renderTag = ({
37888
+ value
37889
+ }) => {
37890
+ return createVNode(ShyTableTag, {
37891
+ "value": value,
37892
+ "options": options
37893
+ }, null);
37894
+ };
37845
37895
  if (!slots || !(slots == null ? void 0 : slots.title)) {
37846
37896
  column2.customTitle = column2.title;
37847
37897
  Reflect.deleteProperty(column2, "title");
37848
37898
  }
37849
- const isDefaultAction = [
37850
- INDEX_COLUMN_FLAG,
37851
- ACTION_COLUMN_FLAG
37852
- ].includes(flag);
37853
- if (!customRender && format2 && !edit && !isDefaultAction) {
37854
- column2.customRender = ({ text, record, index: index2 }) => {
37899
+ const isDefaultAction = [INDEX_COLUMN_FLAG, ACTION_COLUMN_FLAG].includes(flag);
37900
+ if (!customRender && format2 && !edit && !isDefaultAction && !(tag && options)) {
37901
+ column2.customRender = ({
37902
+ text,
37903
+ record,
37904
+ index: index2
37905
+ }) => {
37855
37906
  return formatCell(text, format2, record, index2, tableAction2.value);
37856
37907
  };
37857
37908
  }
37858
- if (customRender) {
37859
- column2.customRender = ({ ...ages }) => customRender({
37860
- ...ages,
37861
- ...{ tableAction: tableAction2.value }
37909
+ if (customRender && !(tag && options)) {
37910
+ column2.customRender = ({
37911
+ ...args
37912
+ }) => customRender({
37913
+ ...args,
37914
+ ...{
37915
+ tableAction: tableAction2.value
37916
+ }
37917
+ });
37918
+ }
37919
+ if (tag && options) {
37920
+ column2.customRender = ({
37921
+ ...args
37922
+ }) => renderTag({
37923
+ ...args,
37924
+ ...{
37925
+ tableAction: tableAction2.value
37926
+ }
37862
37927
  });
37863
37928
  }
37864
37929
  if ((edit || editRow) && !isDefaultAction) {
@@ -37876,18 +37941,17 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37876
37941
  });
37877
37942
  const getColumnsSummary = computed(() => {
37878
37943
  if (propsRef.value.rowSelection) {
37879
- return [{ flag: "ROW_SELECTION" }, ...getViewColumns.value];
37944
+ return [{
37945
+ flag: "ROW_SELECTION"
37946
+ }, ...getViewColumns.value];
37880
37947
  }
37881
37948
  return getViewColumns.value;
37882
37949
  });
37883
- watch(
37884
- () => unref(propsRef).columns,
37885
- (columns) => {
37886
- columnsRef.value = columns;
37887
- cacheColumns = (columns == null ? void 0 : columns.filter((item) => !item.flag)) ?? [];
37888
- }
37889
- );
37890
- function setCacheColumnsByField(dataIndex, value) {
37950
+ watch(() => unref(propsRef).columns, (columns) => {
37951
+ columnsRef.value = columns;
37952
+ cacheColumns = (columns == null ? void 0 : columns.filter((item) => !item.flag)) ?? [];
37953
+ });
37954
+ const setCacheColumnsByField = (dataIndex, value) => {
37891
37955
  if (!dataIndex || !value) {
37892
37956
  return;
37893
37957
  }
@@ -37897,8 +37961,8 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37897
37961
  return;
37898
37962
  }
37899
37963
  });
37900
- }
37901
- function setColumns(columnList) {
37964
+ };
37965
+ const setColumns = (columnList) => {
37902
37966
  const columns = cloneDeep(columnList);
37903
37967
  if (!isArray$4(columns))
37904
37968
  return;
@@ -37912,17 +37976,13 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37912
37976
  columnsRef.value = columns;
37913
37977
  cacheColumns = columns;
37914
37978
  } else {
37915
- const columnKeys = columns.map(
37916
- (m) => m.toString()
37917
- );
37979
+ const columnKeys = columns.map((m) => m.toString());
37918
37980
  const newColumns = [];
37919
37981
  cacheColumns.forEach((item) => {
37920
37982
  var _a2;
37921
37983
  newColumns.push({
37922
37984
  ...item,
37923
- defaultHidden: !columnKeys.includes(
37924
- ((_a2 = item.dataIndex) == null ? void 0 : _a2.toString()) || item.key
37925
- )
37985
+ defaultHidden: !columnKeys.includes(((_a2 = item.dataIndex) == null ? void 0 : _a2.toString()) || item.key)
37926
37986
  });
37927
37987
  });
37928
37988
  if (!isEqual(cacheKeys, columns)) {
@@ -37933,9 +37993,13 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37933
37993
  }
37934
37994
  columnsRef.value = newColumns;
37935
37995
  }
37936
- }
37937
- function getColumns(opt) {
37938
- const { ignoreIndex, ignoreAction, sort } = opt || {};
37996
+ };
37997
+ const getColumns = (opt) => {
37998
+ const {
37999
+ ignoreIndex,
38000
+ ignoreAction,
38001
+ sort
38002
+ } = opt || {};
37939
38003
  let columns = toRaw(unref(getColumnsRef));
37940
38004
  if (ignoreIndex) {
37941
38005
  columns = columns.filter((item) => item.flag !== INDEX_COLUMN_FLAG);
@@ -37947,10 +38011,10 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37947
38011
  columns = sortFixedColumn(columns);
37948
38012
  }
37949
38013
  return columns;
37950
- }
37951
- function getCacheColumns() {
38014
+ };
38015
+ const getCacheColumns = () => {
37952
38016
  return cacheColumns;
37953
- }
38017
+ };
37954
38018
  return {
37955
38019
  getColumnsRef,
37956
38020
  getCacheColumns,
@@ -37960,8 +38024,8 @@ function useColumns(propsRef, getPaginationRef, tableAction2, wrapRef) {
37960
38024
  setCacheColumnsByField,
37961
38025
  getColumnsSummary
37962
38026
  };
37963
- }
37964
- function sortFixedColumn(columns) {
38027
+ };
38028
+ const sortFixedColumn = (columns) => {
37965
38029
  const fixedLeftColumns = [];
37966
38030
  const fixedRightColumns = [];
37967
38031
  const defColumns = [];
@@ -37976,11 +38040,9 @@ function sortFixedColumn(columns) {
37976
38040
  }
37977
38041
  defColumns.push(column2);
37978
38042
  }
37979
- return [...fixedLeftColumns, ...defColumns, ...fixedRightColumns].filter(
37980
- (item) => !item.defaultHidden
37981
- );
37982
- }
37983
- function formatCell(text, format2, record, index2, tableAction2) {
38043
+ return [...fixedLeftColumns, ...defColumns, ...fixedRightColumns].filter((item) => !item.defaultHidden);
38044
+ };
38045
+ const formatCell = (text, format2, record, index2, tableAction2) => {
37984
38046
  if (!format2) {
37985
38047
  return text;
37986
38048
  }
@@ -38002,7 +38064,7 @@ function formatCell(text, format2, record, index2, tableAction2) {
38002
38064
  } catch (error2) {
38003
38065
  return text;
38004
38066
  }
38005
- }
38067
+ };
38006
38068
  function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDataSourceRef, wrapRef, formRef) {
38007
38069
  const tableHeightRef = ref(167);
38008
38070
  const modalFn = useModalContext();
@@ -38405,8 +38467,8 @@ const _sfc_main$3 = defineComponent({
38405
38467
  };
38406
38468
  }
38407
38469
  });
38408
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_b3419d34_lang = "";
38409
- const _withScopeId = (n) => (pushScopeId("data-v-b3419d34"), n = n(), popScopeId(), n);
38470
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_ac81b595_lang = "";
38471
+ const _withScopeId = (n) => (pushScopeId("data-v-ac81b595"), n = n(), popScopeId(), n);
38410
38472
  const _hoisted_1$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
38411
38473
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
38412
38474
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -38464,7 +38526,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
38464
38526
  ])
38465
38527
  ], 4);
38466
38528
  }
38467
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-b3419d34"]]);
38529
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-ac81b595"]]);
38468
38530
  const _sfc_main$2 = defineComponent({
38469
38531
  name: "EditTableHeaderIcon",
38470
38532
  components: { FormOutlined: FormOutlined$1 },
@@ -39688,8 +39750,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39688
39750
  };
39689
39751
  }
39690
39752
  });
39691
- const Process_vue_vue_type_style_index_0_scoped_0cf797c8_lang = "";
39692
- const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0cf797c8"]]);
39753
+ const Process_vue_vue_type_style_index_0_scoped_5c48c981_lang = "";
39754
+ const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c48c981"]]);
39693
39755
  export {
39694
39756
  _sfc_main$T as AdvancedSearch,
39695
39757
  ApiCascader$1 as ApiCascader,