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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -5420,7 +5420,7 @@ const _sfc_main$1F = vue.defineComponent({
5420
5420
  };
5421
5421
  }
5422
5422
  });
5423
- const StrengthMeter_vue_vue_type_style_index_0_scoped_678d40fd_lang = "";
5423
+ const StrengthMeter_vue_vue_type_style_index_0_scoped_c8d77eaa_lang = "";
5424
5424
  const _hoisted_1$G = ["data-score"];
5425
5425
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5426
5426
  const _component_InputPassword = vue.resolveComponent("InputPassword");
@@ -5452,7 +5452,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5452
5452
  ], 2)
5453
5453
  ], 2);
5454
5454
  }
5455
- const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-678d40fd"]]);
5455
+ const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$X], ["__scopeId", "data-v-c8d77eaa"]]);
5456
5456
  const _sfc_main$1E = vue.defineComponent({
5457
5457
  name: "SvgIcon",
5458
5458
  props: {
@@ -5488,7 +5488,7 @@ const _sfc_main$1E = vue.defineComponent({
5488
5488
  return { symbolId, prefixCls: prefixCls2, getStyle };
5489
5489
  }
5490
5490
  });
5491
- const SvgIcon_vue_vue_type_style_index_0_scoped_905fa4a6_lang = "";
5491
+ const SvgIcon_vue_vue_type_style_index_0_scoped_fa64fe87_lang = "";
5492
5492
  const _hoisted_1$F = ["xlink:href"];
5493
5493
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5494
5494
  return vue.openBlock(), vue.createElementBlock("svg", {
@@ -5499,7 +5499,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5499
5499
  vue.createElementVNode("use", { "xlink:href": _ctx.symbolId }, null, 8, _hoisted_1$F)
5500
5500
  ], 6);
5501
5501
  }
5502
- const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-905fa4a6"]]);
5502
+ const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$W], ["__scopeId", "data-v-fa64fe87"]]);
5503
5503
  const SVG_END_WITH_FLAG = "|svg";
5504
5504
  const _sfc_main$1D = vue.defineComponent({
5505
5505
  name: "Icon",
@@ -5810,8 +5810,8 @@ const _sfc_main$1B = /* @__PURE__ */ vue.defineComponent({
5810
5810
  };
5811
5811
  }
5812
5812
  });
5813
- const BasicArrow_vue_vue_type_style_index_0_scoped_fea26917_lang = "";
5814
- const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-fea26917"]]);
5813
+ const BasicArrow_vue_vue_type_style_index_0_scoped_03d87956_lang = "";
5814
+ const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-03d87956"]]);
5815
5815
  const props$c = {
5816
5816
  /**
5817
5817
  * Help text max-width
@@ -5988,8 +5988,8 @@ const _sfc_main$1z = /* @__PURE__ */ vue.defineComponent({
5988
5988
  };
5989
5989
  }
5990
5990
  });
5991
- const BasicTitle_vue_vue_type_style_index_0_scoped_df3764dc_lang = "";
5992
- const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-df3764dc"]]);
5991
+ const BasicTitle_vue_vue_type_style_index_0_scoped_c885e8af_lang = "";
5992
+ const Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-c885e8af"]]);
5993
5993
  const props$b = {
5994
5994
  prefixCls: { type: String },
5995
5995
  helpMessage: {
@@ -9574,8 +9574,8 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
9574
9574
  };
9575
9575
  }
9576
9576
  });
9577
- const Table_vue_vue_type_style_index_0_scoped_95018c58_lang = "";
9578
- const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-95018c58"]]);
9577
+ const Table_vue_vue_type_style_index_0_scoped_9232fde4_lang = "";
9578
+ const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-9232fde4"]]);
9579
9579
  const modal = "";
9580
9580
  const modalProps = {
9581
9581
  visible: { type: Boolean },
@@ -10620,8 +10620,8 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
10620
10620
  };
10621
10621
  }
10622
10622
  });
10623
- const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
10624
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-fdc837af"]]);
10623
+ const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
10624
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-a48f9d86"]]);
10625
10625
  const _sfc_main$1i = vue.defineComponent({
10626
10626
  name: "BasicModalHeader",
10627
10627
  components: { BasicTitle },
@@ -14647,8 +14647,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
14647
14647
  };
14648
14648
  }
14649
14649
  });
14650
- const TreeHeader_vue_vue_type_style_index_0_scoped_14537c01_lang = "";
14651
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-14537c01"]]);
14650
+ const TreeHeader_vue_vue_type_style_index_0_scoped_340c1177_lang = "";
14651
+ const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-340c1177"]]);
14652
14652
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14653
14653
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
14654
14654
  const isString$1 = (val) => typeof val === "string";
@@ -15538,7 +15538,7 @@ const _sfc_main$11 = vue.defineComponent({
15538
15538
  return { prefixCls: prefixCls2, getCalcContentWidth };
15539
15539
  }
15540
15540
  });
15541
- const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
15541
+ const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
15542
15542
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15543
15543
  return vue.openBlock(), vue.createElementBlock("div", {
15544
15544
  class: vue.normalizeClass(_ctx.prefixCls),
@@ -15557,7 +15557,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15557
15557
  ], 2)
15558
15558
  ], 6);
15559
15559
  }
15560
- const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-44a47dbd"]]);
15560
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$F], ["__scopeId", "data-v-b4695833"]]);
15561
15561
  const _sfc_main$10 = vue.defineComponent({
15562
15562
  name: "PageWrapper",
15563
15563
  components: { PageFooter, PageHeader: antDesignVue.PageHeader },
@@ -18173,8 +18173,8 @@ const _sfc_main$U = vue.defineComponent({
18173
18173
  return { isVisibleAdvancedSearch, handleIconClick };
18174
18174
  }
18175
18175
  });
18176
- const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
18177
- const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-f74ee46a"), n = n(), vue.popScopeId(), n);
18176
+ const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
18177
+ const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-c5892da8"), n = n(), vue.popScopeId(), n);
18178
18178
  const _hoisted_1$r = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("span", null, "高级搜索", -1));
18179
18179
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18180
18180
  const _component_FilterOutlined = vue.resolveComponent("FilterOutlined");
@@ -18192,7 +18192,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
18192
18192
  _: 1
18193
18193
  });
18194
18194
  }
18195
- const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-f74ee46a"]]);
18195
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z], ["__scopeId", "data-v-c5892da8"]]);
18196
18196
  const index$4 = "";
18197
18197
  const searchType = [
18198
18198
  {
@@ -19565,8 +19565,8 @@ const _sfc_main$N = vue.defineComponent({
19565
19565
  };
19566
19566
  }
19567
19567
  });
19568
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
19569
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-90331d26"), n = n(), vue.popScopeId(), n);
19568
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_5f6e7403_lang = "";
19569
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-5f6e7403"), n = n(), vue.popScopeId(), n);
19570
19570
  const _hoisted_1$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
19571
19571
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
19572
19572
  const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
@@ -19624,7 +19624,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
19624
19624
  ])
19625
19625
  ], 4);
19626
19626
  }
19627
- const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-90331d26"]]);
19627
+ const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$u], ["__scopeId", "data-v-5f6e7403"]]);
19628
19628
  const _sfc_main$M = vue.defineComponent({
19629
19629
  components: {
19630
19630
  TableAdvancedSearch: TableAdvancedSearch$1,
@@ -20178,7 +20178,7 @@ const _sfc_main$K = vue.defineComponent({
20178
20178
  setup() {
20179
20179
  }
20180
20180
  });
20181
- const TableDict_vue_vue_type_style_index_0_scoped_7d89a0e9_lang = "";
20181
+ const TableDict_vue_vue_type_style_index_0_scoped_21146269_lang = "";
20182
20182
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20183
20183
  var _a2;
20184
20184
  const _component_Icon = vue.resolveComponent("Icon");
@@ -20207,7 +20207,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
20207
20207
  ]), 1032, ["color"])
20208
20208
  ]);
20209
20209
  }
20210
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-7d89a0e9"]]);
20210
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$r], ["__scopeId", "data-v-21146269"]]);
20211
20211
  const index$3 = "";
20212
20212
  function useTable(tableProps) {
20213
20213
  const tableRef = vue.ref(null);
@@ -20479,8 +20479,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
20479
20479
  };
20480
20480
  }
20481
20481
  });
20482
- const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
20483
- const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-4dc415ac"]]);
20482
+ const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
20483
+ const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-24f758b3"]]);
20484
20484
  const _hoisted_1$i = { class: "api-modal-select" };
20485
20485
  const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20486
20486
  __name: "ApiModalSelect",
@@ -20628,8 +20628,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20628
20628
  };
20629
20629
  }
20630
20630
  });
20631
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
20632
- const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-fb4fe18d"]]);
20631
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
20632
+ const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5427533c"]]);
20633
20633
  const Description$1 = "";
20634
20634
  const basicColProps = 24;
20635
20635
  const basicProps$3 = vue.reactive({
@@ -24662,7 +24662,7 @@ const _sfc_main$B = vue.defineComponent({
24662
24662
  };
24663
24663
  }
24664
24664
  });
24665
- const CropperAvatar_vue_vue_type_style_index_0_scoped_31315934_lang = "";
24665
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_6ac45907_lang = "";
24666
24666
  const _hoisted_1$e = ["src"];
24667
24667
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24668
24668
  const _component_Icon = vue.resolveComponent("Icon");
@@ -24713,7 +24713,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
24713
24713
  }, null, 8, ["onRegister", "onUploadSuccess", "onBeforeUpload", "uploadApi", "src"])
24714
24714
  ], 6);
24715
24715
  }
24716
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-31315934"]]);
24716
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$l], ["__scopeId", "data-v-6ac45907"]]);
24717
24717
  const props = {
24718
24718
  startVal: { type: Number, default: 0 },
24719
24719
  endVal: { type: Number, default: 2021 },
@@ -24885,7 +24885,7 @@ const _sfc_main$y = vue.defineComponent({
24885
24885
  }
24886
24886
  }
24887
24887
  });
24888
- const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
24888
+ const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
24889
24889
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24890
24890
  const _component_Spin = vue.resolveComponent("Spin");
24891
24891
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("section", {
@@ -24901,7 +24901,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
24901
24901
  [vue.vShow, _ctx.loading]
24902
24902
  ]);
24903
24903
  }
24904
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-ee545744"]]);
24904
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$j], ["__scopeId", "data-v-33b23b82"]]);
24905
24905
  function createLoading(props2, target, wait = false) {
24906
24906
  let vm = null;
24907
24907
  const data = vue.reactive({
@@ -26694,7 +26694,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
26694
26694
  },
26695
26695
  setup(__props, { expose: __expose }) {
26696
26696
  vue.useCssVars((_ctx) => ({
26697
- "989efb00": props2.labelWidth
26697
+ "7210fae1": props2.labelWidth
26698
26698
  }));
26699
26699
  const props2 = __props;
26700
26700
  const form = vue.ref({});
@@ -26865,8 +26865,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
26865
26865
  };
26866
26866
  }
26867
26867
  });
26868
- const DescriptionsForm_vue_vue_type_style_index_0_scoped_2d2eda80_lang = "";
26869
- const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2d2eda80"]]);
26868
+ const DescriptionsForm_vue_vue_type_style_index_0_scoped_b1ced086_lang = "";
26869
+ const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b1ced086"]]);
26870
26870
  const DescriptionsForm = utils.withInstall(descriptionsForm);
26871
26871
  const basicResizeWrapperProps = vue.reactive({
26872
26872
  designWidth: {
@@ -26911,8 +26911,8 @@ const __default__$1 = vue.defineComponent({
26911
26911
  });
26912
26912
  const __injectCSSVars__ = () => {
26913
26913
  vue.useCssVars((_ctx) => ({
26914
- "0aaa544f": _ctx.designWidth,
26915
- "30d13bbe": _ctx.designHeight
26914
+ "1a93f028": _ctx.designWidth,
26915
+ "1e1b1b05": _ctx.designHeight
26916
26916
  }));
26917
26917
  };
26918
26918
  const __setup__ = __default__$1.setup;
@@ -27392,7 +27392,7 @@ const styles = `.vue-colorful {
27392
27392
  border-color: transparent;
27393
27393
  border-bottom: 12px solid #000;
27394
27394
  border-radius: 8px 8px 0 0;
27395
- background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
27395
+ background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),\r
27396
27396
  linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
27397
27397
  }
27398
27398
  .vue-colorful__pointer-fill, .vue-colorful__alpha-gradient {
@@ -27413,15 +27413,15 @@ const styles = `.vue-colorful {
27413
27413
  height: 24px;
27414
27414
  }
27415
27415
  .vue-colorful__hue {
27416
- background: linear-gradient(
27417
- to right,
27418
- #f00 0%,
27419
- #ff0 17%,
27420
- #0f0 33%,
27421
- #0ff 50%,
27422
- #00f 67%,
27423
- #f0f 83%,
27424
- #f00 100%
27416
+ background: linear-gradient(\r
27417
+ to right,\r
27418
+ #f00 0%,\r
27419
+ #ff0 17%,\r
27420
+ #0f0 33%,\r
27421
+ #0ff 50%,\r
27422
+ #00f 67%,\r
27423
+ #f0f 83%,\r
27424
+ #f00 100%\r
27425
27425
  );
27426
27426
  }
27427
27427
  .vue-colorful__last-control {
@@ -33471,8 +33471,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
33471
33471
  };
33472
33472
  }
33473
33473
  });
33474
- const Table_vue_vue_type_style_index_0_scoped_abb4b35a_lang = "";
33475
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-abb4b35a"]]);
33474
+ const Table_vue_vue_type_style_index_0_scoped_0d7f83ba_lang = "";
33475
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0d7f83ba"]]);
33476
33476
  const ShyComponentMap = /* @__PURE__ */ new Map();
33477
33477
  ShyComponentMap.set("Input", antDesignVue.Input);
33478
33478
  ShyComponentMap.set("InputGroup", antDesignVue.Input.Group);
@@ -35361,8 +35361,8 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
35361
35361
  };
35362
35362
  }
35363
35363
  });
35364
- const Modal_vue_vue_type_style_index_0_scoped_0ca4fd85_lang = "";
35365
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-0ca4fd85"]]);
35364
+ const Modal_vue_vue_type_style_index_0_scoped_15e2dcbb_lang = "";
35365
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-15e2dcbb"]]);
35366
35366
  const _hoisted_1$4 = { class: "api-modal-select" };
35367
35367
  const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
35368
35368
  __name: "ApiModalSelect",
@@ -35510,8 +35510,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
35510
35510
  };
35511
35511
  }
35512
35512
  });
35513
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_45845a8d_lang = "";
35514
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-45845a8d"]]);
35513
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_5019fbdf_lang = "";
35514
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5019fbdf"]]);
35515
35515
  const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
35516
35516
  __name: "FormWrapper",
35517
35517
  props: {
@@ -37097,9 +37097,9 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37097
37097
  const table2 = useTableContext();
37098
37098
  const defaultRowSelection = omit$1(table2.getRowSelection(), "selectedRowKeys");
37099
37099
  let inited = false;
37100
+ let inset = false;
37100
37101
  const cachePlainOptions = vue.ref([]);
37101
37102
  const plainOptions = vue.ref([]);
37102
- const plainSortOptions = vue.ref([]);
37103
37103
  const columnListRef = vue.ref(null);
37104
37104
  const state = vue.reactive({
37105
37105
  checkAll: true,
@@ -37115,7 +37115,7 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37115
37115
  return vue.unref(table2 == null ? void 0 : table2.getBindValues) || {};
37116
37116
  });
37117
37117
  vue.watch(() => table2.getColumns(), () => {
37118
- if (!state.isInit)
37118
+ if (!state.isInit || inset)
37119
37119
  return;
37120
37120
  reInit();
37121
37121
  }, {
@@ -37141,9 +37141,9 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37141
37141
  ignoreAction: true
37142
37142
  }).forEach((item) => {
37143
37143
  ret.push({
37144
- label: item.title || item.customTitle,
37145
- value: item.dataIndex || item.title,
37146
- ...item
37144
+ ...item,
37145
+ title: item.title || item.customTitle,
37146
+ dataIndex: item.dataIndex || item.title
37147
37147
  });
37148
37148
  });
37149
37149
  return ret;
@@ -37161,7 +37161,6 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37161
37161
  }).filter(Boolean);
37162
37162
  if (!plainOptions.value.length) {
37163
37163
  plainOptions.value = columns;
37164
- plainSortOptions.value = columns;
37165
37164
  cachePlainOptions.value = columns;
37166
37165
  state.defaultCheckList = checkList;
37167
37166
  } else {
@@ -37178,8 +37177,6 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37178
37177
  }
37179
37178
  const reInit = () => {
37180
37179
  const columns = getColumns();
37181
- plainOptions.value = columns;
37182
- cachePlainOptions.value = columns;
37183
37180
  vue.unref(plainOptions).forEach((item) => {
37184
37181
  const findItem = columns.find((col) => col.dataIndex === item.dataIndex);
37185
37182
  if (findItem) {
@@ -37187,17 +37184,16 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37187
37184
  item.width = findItem.width;
37188
37185
  }
37189
37186
  });
37190
- const data = getResult(columns);
37191
- emit("columns-change", data);
37187
+ handleEmit(columns, false);
37192
37188
  };
37193
37189
  function onCheckAllChange(e) {
37194
- const checkList = plainOptions.value.map((item) => item.value);
37190
+ const checkList = plainOptions.value.map((item) => item.dataIndex);
37195
37191
  if (e.target.checked) {
37196
37192
  state.checkedList = checkList;
37197
- setColumns(checkList);
37193
+ handleEmit(checkList);
37198
37194
  } else {
37199
37195
  state.checkedList = [];
37200
- setColumns([]);
37196
+ handleEmit([]);
37201
37197
  }
37202
37198
  }
37203
37199
  const indeterminate = vue.computed(() => {
@@ -37206,13 +37202,13 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37206
37202
  return checkedLen > 0 && checkedLen < len;
37207
37203
  });
37208
37204
  function onChange(checkedList) {
37209
- const len = plainSortOptions.value.length;
37205
+ const len = plainOptions.value.length;
37210
37206
  state.checkAll = checkedList.length === len;
37211
- const sortList = vue.unref(plainSortOptions).map((item) => item.value);
37207
+ const sortList = vue.unref(plainOptions).map((item) => item.dataIndex);
37212
37208
  checkedList.sort((prev2, next2) => {
37213
37209
  return sortList.indexOf(prev2) - sortList.indexOf(next2);
37214
37210
  });
37215
- setColumns(checkedList);
37211
+ handleEmit(checkedList);
37216
37212
  }
37217
37213
  let sortable;
37218
37214
  let sortableOrder = [];
@@ -37220,8 +37216,7 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37220
37216
  state.checkedList = [...state.defaultCheckList];
37221
37217
  state.checkAll = true;
37222
37218
  plainOptions.value = vue.unref(cachePlainOptions);
37223
- plainSortOptions.value = vue.unref(cachePlainOptions);
37224
- setColumns(table2.getCacheColumns());
37219
+ handleEmit(table2.getCacheColumns());
37225
37220
  sortable.sort(sortableOrder);
37226
37221
  }
37227
37222
  function handleVisibleChange() {
@@ -37247,7 +37242,7 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37247
37242
  if (utils.isNullAndUnDef(oldIndex) || utils.isNullAndUnDef(newIndex) || oldIndex === newIndex) {
37248
37243
  return;
37249
37244
  }
37250
- const columns = cloneDeep(plainSortOptions.value);
37245
+ const columns = cloneDeep(plainOptions.value);
37251
37246
  if (oldIndex > newIndex) {
37252
37247
  columns.splice(newIndex, 0, columns[oldIndex]);
37253
37248
  columns.splice(oldIndex + 1, 1);
@@ -37255,8 +37250,8 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37255
37250
  columns.splice(newIndex + 1, 0, columns[oldIndex]);
37256
37251
  columns.splice(oldIndex, 1);
37257
37252
  }
37258
- plainSortOptions.value = columns;
37259
- setColumns(columns.map((col) => col.value).filter((value) => state.checkedList.includes(value)));
37253
+ const tempCol = columns.map((col) => col.dataIndex).filter((value) => state.checkedList.includes(value));
37254
+ handleEmit(tempCol);
37260
37255
  }
37261
37256
  });
37262
37257
  sortableOrder = sortable.toArray();
@@ -37290,27 +37285,51 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37290
37285
  (_a2 = table2.setCacheColumnsByField) == null ? void 0 : _a2.call(table2, item.dataIndex, {
37291
37286
  fixed: isFixed
37292
37287
  });
37293
- setColumns(columns);
37288
+ handleEmit(columns);
37294
37289
  }
37295
37290
  function getResult(columns) {
37296
- return vue.unref(plainOptions).map((col) => {
37297
- const defaultHidden = columns.findIndex((c) => c === col.value || typeof c !== "string" && c.dataIndex === col.value && (isBoolean(c.defaultHidden) ? !c.defaultHidden : false)) !== -1;
37291
+ const tempOptions = vue.unref(plainOptions).map((col) => {
37292
+ let defaultHidden = false;
37293
+ if (columns.every((val) => typeof val === "string")) {
37294
+ defaultHidden = columns.findIndex((val) => val === col.dataIndex) === -1;
37295
+ } else {
37296
+ const find = columns.find((val) => val.dataIndex === col.dataIndex);
37297
+ defaultHidden = find ? isBoolean(find.defaultHidden) ? find.defaultHidden : false : true;
37298
+ }
37298
37299
  return {
37299
- dataIndex: col.value,
37300
+ title: col.title,
37301
+ dataIndex: col.dataIndex,
37300
37302
  fixed: col.fixed,
37301
37303
  defaultHidden,
37302
37304
  width: col.width
37303
37305
  };
37304
37306
  });
37305
- }
37306
- function setColumns(columns) {
37307
- table2.setColumns(columns);
37308
- const data = getResult(columns);
37309
- emit("columns-change", data);
37307
+ if (!columns.every((val) => typeof val === "string")) {
37308
+ const sortList = columns.map((item) => item.dataIndex);
37309
+ tempOptions.sort((prev2, next2) => {
37310
+ return sortList.indexOf(prev2.dataIndex) - sortList.indexOf(next2.dataIndex);
37311
+ });
37312
+ return tempOptions;
37313
+ }
37314
+ tempOptions.sort((prev2, next2) => {
37315
+ return columns.indexOf(prev2.dataIndex) - columns.indexOf(next2.dataIndex);
37316
+ });
37317
+ return tempOptions;
37310
37318
  }
37311
37319
  function getPopupContainer2() {
37312
37320
  return utils.isFunction(attrs.getPopupContainer) ? attrs.getPopupContainer() : utils.getPopupContainer();
37313
37321
  }
37322
+ const handleEmit = useDebounceFn$1((columns, set2 = true) => {
37323
+ const data = getResult(columns);
37324
+ emit("columns-change", data);
37325
+ if (set2) {
37326
+ inset = true;
37327
+ table2.setColumns(columns);
37328
+ setTimeout(() => {
37329
+ inset = false;
37330
+ });
37331
+ }
37332
+ }, 100);
37314
37333
  return () => {
37315
37334
  return vue.createVNode(antDesignVue.Tooltip, {
37316
37335
  "placement": "top"
@@ -37366,9 +37385,9 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37366
37385
  }, [vue.createVNode(DragOutlined$1, {
37367
37386
  "class": "table-column-drag-icon"
37368
37387
  }, null), vue.createVNode(antDesignVue.Checkbox, {
37369
- "value": item.value
37388
+ "value": item.dataIndex
37370
37389
  }, {
37371
- default: () => [item.label]
37390
+ default: () => [item.title]
37372
37391
  }), vue.createVNode(antDesignVue.Tooltip, {
37373
37392
  "placement": "bottomLeft",
37374
37393
  "mouseLeaveDelay": 0.4,
@@ -37378,7 +37397,7 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37378
37397
  "rotate": 90,
37379
37398
  "class": [`${prefixCls2}__fixed-left`, {
37380
37399
  active: item.fixed === "left",
37381
- disabled: !state.checkedList.includes(item.value)
37400
+ disabled: !state.checkedList.includes(item.dataIndex)
37382
37401
  }],
37383
37402
  "onClick": () => handleColumnFixed(item, "left")
37384
37403
  }, null)],
@@ -37394,7 +37413,7 @@ const ShyTableColumn = /* @__PURE__ */ vue.defineComponent({
37394
37413
  "rotate": 90,
37395
37414
  "class": [`${prefixCls2}__fixed-right`, {
37396
37415
  active: item.fixed === "right",
37397
- disabled: !state.checkedList.includes(item.value)
37416
+ disabled: !state.checkedList.includes(item.dataIndex)
37398
37417
  }],
37399
37418
  "onClick": () => handleColumnFixed(item, "right")
37400
37419
  }, null)],
@@ -38375,8 +38394,8 @@ const _sfc_main$3 = vue.defineComponent({
38375
38394
  };
38376
38395
  }
38377
38396
  });
38378
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_b3419d34_lang = "";
38379
- const _withScopeId = (n) => (vue.pushScopeId("data-v-b3419d34"), n = n(), vue.popScopeId(), n);
38397
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_ac81b595_lang = "";
38398
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-ac81b595"), n = n(), vue.popScopeId(), n);
38380
38399
  const _hoisted_1$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
38381
38400
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
38382
38401
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
@@ -38434,7 +38453,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
38434
38453
  ])
38435
38454
  ], 4);
38436
38455
  }
38437
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-b3419d34"]]);
38456
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-ac81b595"]]);
38438
38457
  const _sfc_main$2 = vue.defineComponent({
38439
38458
  name: "EditTableHeaderIcon",
38440
38459
  components: { FormOutlined: FormOutlined$1 },
@@ -39647,8 +39666,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
39647
39666
  };
39648
39667
  }
39649
39668
  });
39650
- const Process_vue_vue_type_style_index_0_scoped_6d2645fc_lang = "";
39651
- const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6d2645fc"]]);
39669
+ const Process_vue_vue_type_style_index_0_scoped_e7917888_lang = "";
39670
+ const Process = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e7917888"]]);
39652
39671
  exports.AdvancedSearch = _sfc_main$T;
39653
39672
  exports.ApiCascader = ApiCascader$1;
39654
39673
  exports.ApiModalSelect = ApiModalSelect$1;