3h1-ui 3.0.0-next.44 → 3.0.0-next.46

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 +139 -101
  2. package/es/style.css +111 -111
  3. package/lib/index.js +139 -101
  4. package/lib/style.css +111 -111
  5. package/package.json +1 -1
package/es/index.js CHANGED
@@ -5396,7 +5396,7 @@ const _sfc_main$1F = defineComponent({
5396
5396
  };
5397
5397
  }
5398
5398
  });
5399
- const StrengthMeter_vue_vue_type_style_index_0_scoped_678d40fd_lang = "";
5399
+ const StrengthMeter_vue_vue_type_style_index_0_scoped_c8d77eaa_lang = "";
5400
5400
  const _hoisted_1$G = ["data-score"];
5401
5401
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5402
5402
  const _component_InputPassword = resolveComponent("InputPassword");
@@ -5428,7 +5428,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5428
5428
  ], 2)
5429
5429
  ], 2);
5430
5430
  }
5431
- const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-678d40fd"]]);
5431
+ const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-c8d77eaa"]]);
5432
5432
  const _sfc_main$1E = defineComponent({
5433
5433
  name: "SvgIcon",
5434
5434
  props: {
@@ -5464,7 +5464,7 @@ const _sfc_main$1E = defineComponent({
5464
5464
  return { symbolId, prefixCls: prefixCls2, getStyle };
5465
5465
  }
5466
5466
  });
5467
- const SvgIcon_vue_vue_type_style_index_0_scoped_905fa4a6_lang = "";
5467
+ const SvgIcon_vue_vue_type_style_index_0_scoped_fa64fe87_lang = "";
5468
5468
  const _hoisted_1$F = ["xlink:href"];
5469
5469
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5470
5470
  return openBlock(), createElementBlock("svg", {
@@ -5475,7 +5475,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5475
5475
  createElementVNode("use", { "xlink:href": _ctx.symbolId }, null, 8, _hoisted_1$F)
5476
5476
  ], 6);
5477
5477
  }
5478
- const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-905fa4a6"]]);
5478
+ const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-fa64fe87"]]);
5479
5479
  const SVG_END_WITH_FLAG = "|svg";
5480
5480
  const _sfc_main$1D = defineComponent({
5481
5481
  name: "Icon",
@@ -5786,8 +5786,8 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
5786
5786
  };
5787
5787
  }
5788
5788
  });
5789
- const BasicArrow_vue_vue_type_style_index_0_scoped_fea26917_lang = "";
5790
- const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-fea26917"]]);
5789
+ const BasicArrow_vue_vue_type_style_index_0_scoped_03d87956_lang = "";
5790
+ const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-03d87956"]]);
5791
5791
  const props$c = {
5792
5792
  /**
5793
5793
  * Help text max-width
@@ -5964,8 +5964,8 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
5964
5964
  };
5965
5965
  }
5966
5966
  });
5967
- const BasicTitle_vue_vue_type_style_index_0_scoped_df3764dc_lang = "";
5968
- const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-df3764dc"]]);
5967
+ const BasicTitle_vue_vue_type_style_index_0_scoped_c885e8af_lang = "";
5968
+ const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-c885e8af"]]);
5969
5969
  const props$b = {
5970
5970
  prefixCls: { type: String },
5971
5971
  helpMessage: {
@@ -9550,8 +9550,8 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
9550
9550
  };
9551
9551
  }
9552
9552
  });
9553
- const Table_vue_vue_type_style_index_0_scoped_95018c58_lang = "";
9554
- const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-95018c58"]]);
9553
+ const Table_vue_vue_type_style_index_0_scoped_9232fde4_lang = "";
9554
+ const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-9232fde4"]]);
9555
9555
  const modal = "";
9556
9556
  const modalProps = {
9557
9557
  visible: { type: Boolean },
@@ -10596,8 +10596,8 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
10596
10596
  };
10597
10597
  }
10598
10598
  });
10599
- const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
10600
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-fdc837af"]]);
10599
+ const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
10600
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-a48f9d86"]]);
10601
10601
  const _sfc_main$1i = defineComponent({
10602
10602
  name: "BasicModalHeader",
10603
10603
  components: { BasicTitle },
@@ -14623,8 +14623,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
14623
14623
  };
14624
14624
  }
14625
14625
  });
14626
- const TreeHeader_vue_vue_type_style_index_0_scoped_14537c01_lang = "";
14627
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-14537c01"]]);
14626
+ const TreeHeader_vue_vue_type_style_index_0_scoped_340c1177_lang = "";
14627
+ const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-340c1177"]]);
14628
14628
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14629
14629
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
14630
14630
  const isString$1 = (val) => typeof val === "string";
@@ -15514,7 +15514,7 @@ const _sfc_main$11 = defineComponent({
15514
15514
  return { prefixCls: prefixCls2, getCalcContentWidth };
15515
15515
  }
15516
15516
  });
15517
- const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
15517
+ const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
15518
15518
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15519
15519
  return openBlock(), createElementBlock("div", {
15520
15520
  class: normalizeClass(_ctx.prefixCls),
@@ -15533,7 +15533,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15533
15533
  ], 2)
15534
15534
  ], 6);
15535
15535
  }
15536
- const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-44a47dbd"]]);
15536
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-b4695833"]]);
15537
15537
  const _sfc_main$10 = defineComponent({
15538
15538
  name: "PageWrapper",
15539
15539
  components: { PageFooter, PageHeader },
@@ -18149,8 +18149,8 @@ const _sfc_main$U = defineComponent({
18149
18149
  return { isVisibleAdvancedSearch, handleIconClick };
18150
18150
  }
18151
18151
  });
18152
- const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
18153
- const _withScopeId$2 = (n) => (pushScopeId("data-v-f74ee46a"), n = n(), popScopeId(), n);
18152
+ const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
18153
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-c5892da8"), n = n(), popScopeId(), n);
18154
18154
  const _hoisted_1$r = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", null, "高级搜索", -1));
18155
18155
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18156
18156
  const _component_FilterOutlined = resolveComponent("FilterOutlined");
@@ -18168,7 +18168,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18168
18168
  _: 1
18169
18169
  });
18170
18170
  }
18171
- const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-f74ee46a"]]);
18171
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-c5892da8"]]);
18172
18172
  const index$4 = "";
18173
18173
  const searchType = [
18174
18174
  {
@@ -19541,8 +19541,8 @@ const _sfc_main$N = defineComponent({
19541
19541
  };
19542
19542
  }
19543
19543
  });
19544
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
19545
- const _withScopeId$1 = (n) => (pushScopeId("data-v-90331d26"), n = n(), popScopeId(), n);
19544
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_5f6e7403_lang = "";
19545
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-5f6e7403"), n = n(), popScopeId(), n);
19546
19546
  const _hoisted_1$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
19547
19547
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
19548
19548
  const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -19600,7 +19600,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
19600
19600
  ])
19601
19601
  ], 4);
19602
19602
  }
19603
- const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-90331d26"]]);
19603
+ const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-5f6e7403"]]);
19604
19604
  const _sfc_main$M = defineComponent({
19605
19605
  components: {
19606
19606
  TableAdvancedSearch: TableAdvancedSearch$1,
@@ -20154,7 +20154,7 @@ const _sfc_main$K = defineComponent({
20154
20154
  setup() {
20155
20155
  }
20156
20156
  });
20157
- const TableDict_vue_vue_type_style_index_0_scoped_7d89a0e9_lang = "";
20157
+ const TableDict_vue_vue_type_style_index_0_scoped_21146269_lang = "";
20158
20158
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20159
20159
  var _a2;
20160
20160
  const _component_Icon = resolveComponent("Icon");
@@ -20183,7 +20183,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20183
20183
  ]), 1032, ["color"])
20184
20184
  ]);
20185
20185
  }
20186
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-7d89a0e9"]]);
20186
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-21146269"]]);
20187
20187
  const index$3 = "";
20188
20188
  function useTable(tableProps) {
20189
20189
  const tableRef = ref(null);
@@ -20455,8 +20455,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
20455
20455
  };
20456
20456
  }
20457
20457
  });
20458
- const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
20459
- const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-4dc415ac"]]);
20458
+ const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
20459
+ const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-24f758b3"]]);
20460
20460
  const _hoisted_1$i = { class: "api-modal-select" };
20461
20461
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
20462
20462
  __name: "ApiModalSelect",
@@ -20604,8 +20604,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20604
20604
  };
20605
20605
  }
20606
20606
  });
20607
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
20608
- const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-fb4fe18d"]]);
20607
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
20608
+ const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5427533c"]]);
20609
20609
  const Description$1 = "";
20610
20610
  const basicColProps = 24;
20611
20611
  const basicProps$3 = reactive({
@@ -24638,7 +24638,7 @@ const _sfc_main$B = defineComponent({
24638
24638
  };
24639
24639
  }
24640
24640
  });
24641
- const CropperAvatar_vue_vue_type_style_index_0_scoped_31315934_lang = "";
24641
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_6ac45907_lang = "";
24642
24642
  const _hoisted_1$e = ["src"];
24643
24643
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24644
24644
  const _component_Icon = resolveComponent("Icon");
@@ -24689,7 +24689,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24689
24689
  }, null, 8, ["onRegister", "onUploadSuccess", "onBeforeUpload", "uploadApi", "src"])
24690
24690
  ], 6);
24691
24691
  }
24692
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-31315934"]]);
24692
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-6ac45907"]]);
24693
24693
  const props = {
24694
24694
  startVal: { type: Number, default: 0 },
24695
24695
  endVal: { type: Number, default: 2021 },
@@ -24861,7 +24861,7 @@ const _sfc_main$y = defineComponent({
24861
24861
  }
24862
24862
  }
24863
24863
  });
24864
- const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
24864
+ const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
24865
24865
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24866
24866
  const _component_Spin = resolveComponent("Spin");
24867
24867
  return withDirectives((openBlock(), createElementBlock("section", {
@@ -24877,7 +24877,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24877
24877
  [vShow, _ctx.loading]
24878
24878
  ]);
24879
24879
  }
24880
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-ee545744"]]);
24880
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-33b23b82"]]);
24881
24881
  function createLoading(props2, target, wait = false) {
24882
24882
  let vm = null;
24883
24883
  const data = reactive({
@@ -26670,7 +26670,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
26670
26670
  },
26671
26671
  setup(__props, { expose: __expose }) {
26672
26672
  useCssVars((_ctx) => ({
26673
- "989efb00": props2.labelWidth
26673
+ "7210fae1": props2.labelWidth
26674
26674
  }));
26675
26675
  const props2 = __props;
26676
26676
  const form = ref({});
@@ -26841,8 +26841,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
26841
26841
  };
26842
26842
  }
26843
26843
  });
26844
- const DescriptionsForm_vue_vue_type_style_index_0_scoped_2d2eda80_lang = "";
26845
- const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2d2eda80"]]);
26844
+ const DescriptionsForm_vue_vue_type_style_index_0_scoped_b1ced086_lang = "";
26845
+ const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b1ced086"]]);
26846
26846
  const DescriptionsForm = withInstall$8(descriptionsForm);
26847
26847
  const basicResizeWrapperProps = reactive({
26848
26848
  designWidth: {
@@ -26887,8 +26887,8 @@ const __default__$1 = defineComponent({
26887
26887
  });
26888
26888
  const __injectCSSVars__ = () => {
26889
26889
  useCssVars((_ctx) => ({
26890
- "0aaa544f": _ctx.designWidth,
26891
- "30d13bbe": _ctx.designHeight
26890
+ "1a93f028": _ctx.designWidth,
26891
+ "1e1b1b05": _ctx.designHeight
26892
26892
  }));
26893
26893
  };
26894
26894
  const __setup__ = __default__$1.setup;
@@ -27368,7 +27368,7 @@ const styles = `.vue-colorful {
27368
27368
  border-color: transparent;
27369
27369
  border-bottom: 12px solid #000;
27370
27370
  border-radius: 8px 8px 0 0;
27371
- background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
27371
+ background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),\r
27372
27372
  linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
27373
27373
  }
27374
27374
  .vue-colorful__pointer-fill, .vue-colorful__alpha-gradient {
@@ -27389,15 +27389,15 @@ const styles = `.vue-colorful {
27389
27389
  height: 24px;
27390
27390
  }
27391
27391
  .vue-colorful__hue {
27392
- background: linear-gradient(
27393
- to right,
27394
- #f00 0%,
27395
- #ff0 17%,
27396
- #0f0 33%,
27397
- #0ff 50%,
27398
- #00f 67%,
27399
- #f0f 83%,
27400
- #f00 100%
27392
+ background: linear-gradient(\r
27393
+ to right,\r
27394
+ #f00 0%,\r
27395
+ #ff0 17%,\r
27396
+ #0f0 33%,\r
27397
+ #0ff 50%,\r
27398
+ #00f 67%,\r
27399
+ #f0f 83%,\r
27400
+ #f00 100%\r
27401
27401
  );
27402
27402
  }
27403
27403
  .vue-colorful__last-control {
@@ -33447,8 +33447,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33447
33447
  };
33448
33448
  }
33449
33449
  });
33450
- const Table_vue_vue_type_style_index_0_scoped_abb4b35a_lang = "";
33451
- 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"]]);
33452
33452
  const ShyComponentMap = /* @__PURE__ */ new Map();
33453
33453
  ShyComponentMap.set("Input", Input);
33454
33454
  ShyComponentMap.set("InputGroup", Input.Group);
@@ -35337,8 +35337,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
35337
35337
  };
35338
35338
  }
35339
35339
  });
35340
- const Modal_vue_vue_type_style_index_0_scoped_0ca4fd85_lang = "";
35341
- 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"]]);
35342
35342
  const _hoisted_1$4 = { class: "api-modal-select" };
35343
35343
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
35344
35344
  __name: "ApiModalSelect",
@@ -35486,8 +35486,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
35486
35486
  };
35487
35487
  }
35488
35488
  });
35489
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_45845a8d_lang = "";
35490
- 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"]]);
35491
35491
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
35492
35492
  __name: "FormWrapper",
35493
35493
  props: {
@@ -37065,7 +37065,7 @@ function _isSlot$2(s) {
37065
37065
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
37066
37066
  }
37067
37067
  const ShyTableColumn = /* @__PURE__ */ defineComponent({
37068
- emits: ["columns-change"],
37068
+ emits: ["columns-change", "columns-reset"],
37069
37069
  setup(props2, {
37070
37070
  emit
37071
37071
  }) {
@@ -37073,9 +37073,9 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37073
37073
  const table2 = useTableContext();
37074
37074
  const defaultRowSelection = omit$1(table2.getRowSelection(), "selectedRowKeys");
37075
37075
  let inited = false;
37076
+ let inset = false;
37076
37077
  const cachePlainOptions = ref([]);
37077
37078
  const plainOptions = ref([]);
37078
- const plainSortOptions = ref([]);
37079
37079
  const columnListRef = ref(null);
37080
37080
  const state = reactive({
37081
37081
  checkAll: true,
@@ -37091,7 +37091,7 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37091
37091
  return unref(table2 == null ? void 0 : table2.getBindValues) || {};
37092
37092
  });
37093
37093
  watch(() => table2.getColumns(), () => {
37094
- if (!state.isInit)
37094
+ if (!state.isInit || inset)
37095
37095
  return;
37096
37096
  reInit();
37097
37097
  }, {
@@ -37117,9 +37117,9 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37117
37117
  ignoreAction: true
37118
37118
  }).forEach((item) => {
37119
37119
  ret.push({
37120
- label: item.title || item.customTitle,
37121
- value: item.dataIndex || item.title,
37122
- ...item
37120
+ ...item,
37121
+ title: item.title || item.customTitle,
37122
+ dataIndex: item.dataIndex || item.title
37123
37123
  });
37124
37124
  });
37125
37125
  return ret;
@@ -37137,7 +37137,6 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37137
37137
  }).filter(Boolean);
37138
37138
  if (!plainOptions.value.length) {
37139
37139
  plainOptions.value = columns;
37140
- plainSortOptions.value = columns;
37141
37140
  cachePlainOptions.value = columns;
37142
37141
  state.defaultCheckList = checkList;
37143
37142
  } else {
@@ -37154,8 +37153,6 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37154
37153
  }
37155
37154
  const reInit = () => {
37156
37155
  const columns = getColumns();
37157
- plainOptions.value = columns;
37158
- cachePlainOptions.value = columns;
37159
37156
  unref(plainOptions).forEach((item) => {
37160
37157
  const findItem = columns.find((col) => col.dataIndex === item.dataIndex);
37161
37158
  if (findItem) {
@@ -37163,17 +37160,16 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37163
37160
  item.width = findItem.width;
37164
37161
  }
37165
37162
  });
37166
- const data = getResult(columns);
37167
- emit("columns-change", data);
37163
+ handleEmit(columns, false);
37168
37164
  };
37169
37165
  function onCheckAllChange(e) {
37170
- const checkList = plainOptions.value.map((item) => item.value);
37166
+ const checkList = plainOptions.value.map((item) => item.dataIndex);
37171
37167
  if (e.target.checked) {
37172
37168
  state.checkedList = checkList;
37173
- setColumns(checkList);
37169
+ handleEmit(checkList);
37174
37170
  } else {
37175
37171
  state.checkedList = [];
37176
- setColumns([]);
37172
+ handleEmit([]);
37177
37173
  }
37178
37174
  }
37179
37175
  const indeterminate = computed(() => {
@@ -37182,13 +37178,13 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37182
37178
  return checkedLen > 0 && checkedLen < len;
37183
37179
  });
37184
37180
  function onChange(checkedList) {
37185
- const len = plainSortOptions.value.length;
37181
+ const len = plainOptions.value.length;
37186
37182
  state.checkAll = checkedList.length === len;
37187
- const sortList = unref(plainSortOptions).map((item) => item.value);
37183
+ const sortList = unref(plainOptions).map((item) => item.dataIndex);
37188
37184
  checkedList.sort((prev2, next2) => {
37189
37185
  return sortList.indexOf(prev2) - sortList.indexOf(next2);
37190
37186
  });
37191
- setColumns(checkedList);
37187
+ handleEmit(checkedList);
37192
37188
  }
37193
37189
  let sortable;
37194
37190
  let sortableOrder = [];
@@ -37196,9 +37192,12 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37196
37192
  state.checkedList = [...state.defaultCheckList];
37197
37193
  state.checkAll = true;
37198
37194
  plainOptions.value = unref(cachePlainOptions);
37199
- plainSortOptions.value = unref(cachePlainOptions);
37200
- setColumns(table2.getCacheColumns());
37201
37195
  sortable.sort(sortableOrder);
37196
+ inset = true;
37197
+ emit("columns-reset");
37198
+ setTimeout(() => {
37199
+ inset = false;
37200
+ });
37202
37201
  }
37203
37202
  function handleVisibleChange() {
37204
37203
  if (inited)
@@ -37223,7 +37222,7 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37223
37222
  if (isNullAndUnDef(oldIndex) || isNullAndUnDef(newIndex) || oldIndex === newIndex) {
37224
37223
  return;
37225
37224
  }
37226
- const columns = cloneDeep(plainSortOptions.value);
37225
+ const columns = cloneDeep(plainOptions.value);
37227
37226
  if (oldIndex > newIndex) {
37228
37227
  columns.splice(newIndex, 0, columns[oldIndex]);
37229
37228
  columns.splice(oldIndex + 1, 1);
@@ -37231,8 +37230,8 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37231
37230
  columns.splice(newIndex + 1, 0, columns[oldIndex]);
37232
37231
  columns.splice(oldIndex, 1);
37233
37232
  }
37234
- plainSortOptions.value = columns;
37235
- setColumns(columns.map((col) => col.value).filter((value) => state.checkedList.includes(value)));
37233
+ const tempCol = columns.map((col) => col.dataIndex).filter((value) => state.checkedList.includes(value));
37234
+ handleEmit(tempCol);
37236
37235
  }
37237
37236
  });
37238
37237
  sortableOrder = sortable.toArray();
@@ -37266,27 +37265,51 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37266
37265
  (_a2 = table2.setCacheColumnsByField) == null ? void 0 : _a2.call(table2, item.dataIndex, {
37267
37266
  fixed: isFixed
37268
37267
  });
37269
- setColumns(columns);
37268
+ handleEmit(columns);
37270
37269
  }
37271
37270
  function getResult(columns) {
37272
- return unref(plainOptions).map((col) => {
37273
- const defaultHidden = columns.findIndex((c) => c === col.value || typeof c !== "string" && c.dataIndex === col.value && (isBoolean(c.defaultHidden) ? !c.defaultHidden : false)) !== -1;
37271
+ const tempOptions = unref(plainOptions).map((col) => {
37272
+ let defaultHidden = false;
37273
+ if (columns.every((val) => typeof val === "string")) {
37274
+ defaultHidden = columns.findIndex((val) => val === col.dataIndex) === -1;
37275
+ } else {
37276
+ const find = columns.find((val) => val.dataIndex === col.dataIndex);
37277
+ defaultHidden = find ? isBoolean(find.defaultHidden) ? find.defaultHidden : false : true;
37278
+ }
37274
37279
  return {
37275
- dataIndex: col.value,
37280
+ title: col.title,
37281
+ dataIndex: col.dataIndex,
37276
37282
  fixed: col.fixed,
37277
37283
  defaultHidden,
37278
37284
  width: col.width
37279
37285
  };
37280
37286
  });
37281
- }
37282
- function setColumns(columns) {
37283
- table2.setColumns(columns);
37284
- const data = getResult(columns);
37285
- emit("columns-change", data);
37287
+ if (!columns.every((val) => typeof val === "string")) {
37288
+ const sortList = columns.map((item) => item.dataIndex);
37289
+ tempOptions.sort((prev2, next2) => {
37290
+ return sortList.indexOf(prev2.dataIndex) - sortList.indexOf(next2.dataIndex);
37291
+ });
37292
+ return tempOptions;
37293
+ }
37294
+ tempOptions.sort((prev2, next2) => {
37295
+ return columns.indexOf(prev2.dataIndex) - columns.indexOf(next2.dataIndex);
37296
+ });
37297
+ return tempOptions;
37286
37298
  }
37287
37299
  function getPopupContainer2() {
37288
37300
  return isFunction$4(attrs.getPopupContainer) ? attrs.getPopupContainer() : getPopupContainer$1();
37289
37301
  }
37302
+ const handleEmit = useDebounceFn$1((columns, set2 = true) => {
37303
+ const data = getResult(columns);
37304
+ emit("columns-change", data);
37305
+ if (set2) {
37306
+ inset = true;
37307
+ table2.setColumns(columns);
37308
+ setTimeout(() => {
37309
+ inset = false;
37310
+ });
37311
+ }
37312
+ }, 100);
37290
37313
  return () => {
37291
37314
  return createVNode(Tooltip, {
37292
37315
  "placement": "top"
@@ -37342,9 +37365,9 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37342
37365
  }, [createVNode(DragOutlined$1, {
37343
37366
  "class": "table-column-drag-icon"
37344
37367
  }, null), createVNode(Checkbox, {
37345
- "value": item.value
37368
+ "value": item.dataIndex
37346
37369
  }, {
37347
- default: () => [item.label]
37370
+ default: () => [item.title]
37348
37371
  }), createVNode(Tooltip, {
37349
37372
  "placement": "bottomLeft",
37350
37373
  "mouseLeaveDelay": 0.4,
@@ -37354,7 +37377,7 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37354
37377
  "rotate": 90,
37355
37378
  "class": [`${prefixCls2}__fixed-left`, {
37356
37379
  active: item.fixed === "left",
37357
- disabled: !state.checkedList.includes(item.value)
37380
+ disabled: !state.checkedList.includes(item.dataIndex)
37358
37381
  }],
37359
37382
  "onClick": () => handleColumnFixed(item, "left")
37360
37383
  }, null)],
@@ -37370,7 +37393,7 @@ const ShyTableColumn = /* @__PURE__ */ defineComponent({
37370
37393
  "rotate": 90,
37371
37394
  "class": [`${prefixCls2}__fixed-right`, {
37372
37395
  active: item.fixed === "right",
37373
- disabled: !state.checkedList.includes(item.value)
37396
+ disabled: !state.checkedList.includes(item.dataIndex)
37374
37397
  }],
37375
37398
  "onClick": () => handleColumnFixed(item, "right")
37376
37399
  }, null)],
@@ -37418,7 +37441,7 @@ const ShyTableSetting = /* @__PURE__ */ defineComponent({
37418
37441
  default: () => ({})
37419
37442
  }
37420
37443
  },
37421
- emits: ["columns-change"],
37444
+ emits: ["columns-change", "columns-reset"],
37422
37445
  setup(props2, {
37423
37446
  emit
37424
37447
  }) {
@@ -37441,6 +37464,9 @@ const ShyTableSetting = /* @__PURE__ */ defineComponent({
37441
37464
  const handleColumnChange = (data) => {
37442
37465
  emit("columns-change", data);
37443
37466
  };
37467
+ const handleColumnsReset = () => {
37468
+ emit("columns-reset");
37469
+ };
37444
37470
  const getTableContainer = () => {
37445
37471
  return table2 ? unref(table2.wrapRef) : document.body;
37446
37472
  };
@@ -37468,6 +37494,7 @@ const ShyTableSetting = /* @__PURE__ */ defineComponent({
37468
37494
  const renderTableColumn = computed(() => {
37469
37495
  return getSetting.value.setting ? createVNode(ShyTableColumn, {
37470
37496
  "onColumnsChange": handleColumnChange,
37497
+ "onColumnsReset": handleColumnsReset,
37471
37498
  "getPopupContainer": getTableContainer
37472
37499
  }, null) : null;
37473
37500
  });
@@ -37533,7 +37560,7 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
37533
37560
  type: Boolean
37534
37561
  }
37535
37562
  },
37536
- emits: ["columns-change"],
37563
+ emits: ["columns-change", "columns-reset"],
37537
37564
  setup(props2, {
37538
37565
  emit,
37539
37566
  slots
@@ -37541,10 +37568,17 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
37541
37568
  const {
37542
37569
  prefixCls: prefixCls2
37543
37570
  } = useDesign$1("table-header");
37571
+ const handleColumnChange = (data) => {
37572
+ emit("columns-change", data);
37573
+ };
37574
+ const handleColumnsReset = () => {
37575
+ emit("columns-reset");
37576
+ };
37544
37577
  const isShowSetting = () => {
37545
37578
  return props2.showTableSetting ? createVNode(ShyTableSetting, {
37546
37579
  "setting": props2.tableSetting,
37547
- "onColumnsChange": handleColumnChange
37580
+ "onColumnsChange": handleColumnChange,
37581
+ "onColumnsReset": handleColumnsReset
37548
37582
  }, null) : null;
37549
37583
  };
37550
37584
  const isShowTitle = () => {
@@ -37557,9 +37591,6 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
37557
37591
  "class": `${prefixCls2}-placeholder`
37558
37592
  }, null);
37559
37593
  };
37560
- const handleColumnChange = (data) => {
37561
- emit("columns-change", data);
37562
- };
37563
37594
  const getAlignClass = computed(() => [`${prefixCls2}-align`, `${prefixCls2}-align-${props2.headerAlign}`]);
37564
37595
  return () => {
37565
37596
  var _a2;
@@ -37599,7 +37630,8 @@ const useTableHeader = (propsRef, slots, handlers2) => {
37599
37630
  titleHelpMessage,
37600
37631
  showTableSetting,
37601
37632
  tableSetting,
37602
- onColumnsChange: handlers2.onColumnsChange
37633
+ onColumnsChange: handlers2.onColumnsChange,
37634
+ onColumnsReset: handlers2.onColumnsReset
37603
37635
  };
37604
37636
  return {
37605
37637
  title: hideTitle ? null : () => createVNode(ShyTableHeader, headerProps, {
@@ -38351,8 +38383,8 @@ const _sfc_main$3 = defineComponent({
38351
38383
  };
38352
38384
  }
38353
38385
  });
38354
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_b3419d34_lang = "";
38355
- const _withScopeId = (n) => (pushScopeId("data-v-b3419d34"), n = n(), popScopeId(), n);
38386
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_ac81b595_lang = "";
38387
+ const _withScopeId = (n) => (pushScopeId("data-v-ac81b595"), n = n(), popScopeId(), n);
38356
38388
  const _hoisted_1$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
38357
38389
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
38358
38390
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -38410,7 +38442,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
38410
38442
  ])
38411
38443
  ], 4);
38412
38444
  }
38413
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-b3419d34"]]);
38445
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-ac81b595"]]);
38414
38446
  const _sfc_main$2 = defineComponent({
38415
38447
  name: "EditTableHeaderIcon",
38416
38448
  components: { FormOutlined: FormOutlined$1 },
@@ -38542,7 +38574,7 @@ function _isSlot$1(s) {
38542
38574
  }
38543
38575
  const ShyTable = /* @__PURE__ */ defineComponent({
38544
38576
  name: "ShyTable",
38545
- emits: ["fetch-success", "fetch-error", "selection-change", "register", "row-click", "row-dbClick", "row-contextmenu", "row-mouseenter", "row-mouseleave", "edit-end", "edit-cancel", "edit-row-end", "edit-change", "expanded-rows-change", "change", "columns-change"],
38577
+ emits: ["fetch-success", "fetch-error", "selection-change", "register", "row-click", "row-dbClick", "row-contextmenu", "row-mouseenter", "row-mouseleave", "edit-end", "edit-cancel", "edit-row-end", "edit-change", "expanded-rows-change", "change", "columns-change", "columns-reset"],
38546
38578
  props: shyTableBasicProps,
38547
38579
  setup(props2, {
38548
38580
  attrs,
@@ -38772,6 +38804,12 @@ const ShyTable = /* @__PURE__ */ defineComponent({
38772
38804
  var _a2, _b;
38773
38805
  emit("columns-change", data);
38774
38806
  (_b = (_a2 = unref(getProps)).onColumnsChange) == null ? void 0 : _b.call(_a2, data);
38807
+ },
38808
+ onColumnsReset: () => {
38809
+ var _a2, _b;
38810
+ setColumns(getCacheColumns());
38811
+ emit("columns-reset");
38812
+ (_b = (_a2 = unref(getProps)).onColumnsReset) == null ? void 0 : _b.call(_a2);
38775
38813
  }
38776
38814
  };
38777
38815
  const {
@@ -39623,8 +39661,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39623
39661
  };
39624
39662
  }
39625
39663
  });
39626
- const Process_vue_vue_type_style_index_0_scoped_6d2645fc_lang = "";
39627
- const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6d2645fc"]]);
39664
+ const Process_vue_vue_type_style_index_0_scoped_e7917888_lang = "";
39665
+ const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e7917888"]]);
39628
39666
  export {
39629
39667
  _sfc_main$T as AdvancedSearch,
39630
39668
  ApiCascader$1 as ApiCascader,