3h1-ui 2.13.13 → 2.14.0

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/es/index.js CHANGED
@@ -6,7 +6,7 @@ import { zxcvbn } from "@zxcvbn-ts/core";
6
6
  import Iconify from "@purge-icons/generated";
7
7
  import Sortablejs from "sortablejs";
8
8
  import "xe-utils";
9
- import { VxeTable, VxeColumn } from "vxe-table";
9
+ import { VxeTable, VxeColumn, VxeColgroup } from "vxe-table";
10
10
  const windiBase = "";
11
11
  const windiComponents = "";
12
12
  const windiUtilities = "";
@@ -4604,7 +4604,7 @@ const _sfc_main$1a = defineComponent({
4604
4604
  };
4605
4605
  }
4606
4606
  });
4607
- const StrengthMeter_vue_vue_type_style_index_0_scoped_eda28c94_lang = "";
4607
+ const StrengthMeter_vue_vue_type_style_index_0_scoped_c3da4a85_lang = "";
4608
4608
  const _hoisted_1$u = ["data-score"];
4609
4609
  function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
4610
4610
  const _component_InputPassword = resolveComponent("InputPassword");
@@ -4636,7 +4636,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
4636
4636
  ], 2)
4637
4637
  ], 2);
4638
4638
  }
4639
- const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$J], ["__scopeId", "data-v-eda28c94"]]);
4639
+ const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$J], ["__scopeId", "data-v-c3da4a85"]]);
4640
4640
  const _sfc_main$19 = defineComponent({
4641
4641
  name: "SvgIcon",
4642
4642
  props: {
@@ -4672,7 +4672,7 @@ const _sfc_main$19 = defineComponent({
4672
4672
  return { symbolId, prefixCls: prefixCls2, getStyle };
4673
4673
  }
4674
4674
  });
4675
- const SvgIcon_vue_vue_type_style_index_0_scoped_fa64fe87_lang = "";
4675
+ const SvgIcon_vue_vue_type_style_index_0_scoped_905fa4a6_lang = "";
4676
4676
  const _hoisted_1$t = ["xlink:href"];
4677
4677
  function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
4678
4678
  return openBlock(), createElementBlock("svg", {
@@ -4683,7 +4683,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
4683
4683
  createElementVNode("use", { "xlink:href": _ctx.symbolId }, null, 8, _hoisted_1$t)
4684
4684
  ], 6);
4685
4685
  }
4686
- const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$I], ["__scopeId", "data-v-fa64fe87"]]);
4686
+ const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$I], ["__scopeId", "data-v-905fa4a6"]]);
4687
4687
  const SVG_END_WITH_FLAG = "|svg";
4688
4688
  const _sfc_main$18 = defineComponent({
4689
4689
  name: "Icon",
@@ -4979,8 +4979,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
4979
4979
  };
4980
4980
  }
4981
4981
  });
4982
- const BasicArrow_vue_vue_type_style_index_0_scoped_03d87956_lang = "";
4983
- const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-03d87956"]]);
4982
+ const BasicArrow_vue_vue_type_style_index_0_scoped_fea26917_lang = "";
4983
+ const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-fea26917"]]);
4984
4984
  const props$c = {
4985
4985
  /**
4986
4986
  * Help text max-width
@@ -5122,8 +5122,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
5122
5122
  };
5123
5123
  }
5124
5124
  });
5125
- const BasicTitle_vue_vue_type_style_index_0_scoped_c007dbdf_lang = "";
5126
- const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-c007dbdf"]]);
5125
+ const BasicTitle_vue_vue_type_style_index_0_scoped_59bc8f76_lang = "";
5126
+ const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-59bc8f76"]]);
5127
5127
  const props$b = {
5128
5128
  prefixCls: { type: String },
5129
5129
  helpMessage: {
@@ -7065,11 +7065,11 @@ const _hoisted_5$3 = {
7065
7065
  key: 0,
7066
7066
  class: "flex py-2 items-center justify-center"
7067
7067
  };
7068
- const _hoisted_6$1 = {
7068
+ const _hoisted_6$2 = {
7069
7069
  key: 1,
7070
7070
  class: "p-5"
7071
7071
  };
7072
- const _hoisted_7$1 = {
7072
+ const _hoisted_7$2 = {
7073
7073
  key: 0,
7074
7074
  class: "cursor-pointer px-2 py-1 flex items-center"
7075
7075
  };
@@ -7207,12 +7207,12 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
7207
7207
  onChange: handlePageChange
7208
7208
  }, null, 8, ["pageSize", "total"])
7209
7209
  ])) : createCommentVNode("", true)
7210
- ])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [
7210
+ ])) : (openBlock(), createElementBlock("div", _hoisted_6$2, [
7211
7211
  createVNode(unref(AEmpty))
7212
7212
  ]))
7213
7213
  ]),
7214
7214
  default: withCtx(() => [
7215
- isSvgMode && currentSelect.value ? (openBlock(), createElementBlock("span", _hoisted_7$1, [
7215
+ isSvgMode && currentSelect.value ? (openBlock(), createElementBlock("span", _hoisted_7$2, [
7216
7216
  createVNode(SvgIcon, { name: currentSelect.value }, null, 8, ["name"])
7217
7217
  ])) : (openBlock(), createBlock(Icon2, {
7218
7218
  key: 1,
@@ -7528,8 +7528,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
7528
7528
  };
7529
7529
  }
7530
7530
  });
7531
- const Table_vue_vue_type_style_index_0_scoped_dcb554fb_lang = "";
7532
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-dcb554fb"]]);
7531
+ const Table_vue_vue_type_style_index_0_scoped_7465b460_lang = "";
7532
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-7465b460"]]);
7533
7533
  const componentMap$2 = /* @__PURE__ */ new Map();
7534
7534
  componentMap$2.set("Input", Input);
7535
7535
  componentMap$2.set("InputGroup", Input.Group);
@@ -9693,8 +9693,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
9693
9693
  };
9694
9694
  }
9695
9695
  });
9696
- const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
9697
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-a48f9d86"]]);
9696
+ const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
9697
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-fdc837af"]]);
9698
9698
  const _sfc_main$M = defineComponent({
9699
9699
  name: "BasicModalHeader",
9700
9700
  components: { BasicTitle },
@@ -10912,8 +10912,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10912
10912
  };
10913
10913
  }
10914
10914
  });
10915
- const TreeHeader_vue_vue_type_style_index_0_scoped_a0f20f9d_lang = "";
10916
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-a0f20f9d"]]);
10915
+ const TreeHeader_vue_vue_type_style_index_0_scoped_6d3f2554_lang = "";
10916
+ const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-6d3f2554"]]);
10917
10917
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
10918
10918
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
10919
10919
  const isString = (val) => typeof val === "string";
@@ -11802,7 +11802,7 @@ const _sfc_main$F = defineComponent({
11802
11802
  return { prefixCls: prefixCls2, getCalcContentWidth };
11803
11803
  }
11804
11804
  });
11805
- const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
11805
+ const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
11806
11806
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
11807
11807
  return openBlock(), createElementBlock("div", {
11808
11808
  class: normalizeClass(_ctx.prefixCls),
@@ -11821,7 +11821,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
11821
11821
  ], 2)
11822
11822
  ], 6);
11823
11823
  }
11824
- const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$r], ["__scopeId", "data-v-b4695833"]]);
11824
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$r], ["__scopeId", "data-v-44a47dbd"]]);
11825
11825
  const _sfc_main$E = defineComponent({
11826
11826
  name: "PageWrapper",
11827
11827
  components: { PageFooter, PageHeader },
@@ -14385,8 +14385,8 @@ const _sfc_main$w = defineComponent({
14385
14385
  return { isVisibleAdvancedSearch, handleIconClick };
14386
14386
  }
14387
14387
  });
14388
- const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
14389
- const _withScopeId$1 = (n) => (pushScopeId("data-v-c5892da8"), n = n(), popScopeId(), n);
14388
+ const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
14389
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-f74ee46a"), n = n(), popScopeId(), n);
14390
14390
  const _hoisted_1$j = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "高级搜索", -1));
14391
14391
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
14392
14392
  const _component_FilterOutlined = resolveComponent("FilterOutlined");
@@ -14404,7 +14404,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
14404
14404
  _: 1
14405
14405
  });
14406
14406
  }
14407
- const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$l], ["__scopeId", "data-v-c5892da8"]]);
14407
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$l], ["__scopeId", "data-v-f74ee46a"]]);
14408
14408
  const index$2 = "";
14409
14409
  const searchType = [
14410
14410
  {
@@ -14503,13 +14503,13 @@ const _hoisted_5$2 = {
14503
14503
  key: 0,
14504
14504
  class: "shy-ui-advanced-search-item-value-range"
14505
14505
  };
14506
- const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
14507
- const _hoisted_7 = {
14506
+ const _hoisted_6$1 = /* @__PURE__ */ createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
14507
+ const _hoisted_7$1 = {
14508
14508
  key: 1,
14509
14509
  style: { "margin-left": "8px", "cursor": "pointer", "position": "relative" },
14510
14510
  class: "shy-ui-advanced-minus-icon"
14511
14511
  };
14512
- const _hoisted_8 = ["onClick"];
14512
+ const _hoisted_8$1 = ["onClick"];
14513
14513
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
14514
14514
  __name: "AdvancedSearch",
14515
14515
  props: {
@@ -14762,7 +14762,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14762
14762
  ]),
14763
14763
  _: 2
14764
14764
  }, 1024),
14765
- _hoisted_6,
14765
+ _hoisted_6$1,
14766
14766
  createVNode(unref(FormItem), null, {
14767
14767
  default: withCtx(() => [
14768
14768
  createVNode(unref(DatePicker), {
@@ -14811,12 +14811,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14811
14811
  ]),
14812
14812
  _: 2
14813
14813
  }, 1024)) : createCommentVNode("", true),
14814
- (schemasCurrent == null ? void 0 : schemasCurrent.length) !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
14814
+ (schemasCurrent == null ? void 0 : schemasCurrent.length) !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
14815
14815
  createElementVNode("div", {
14816
14816
  style: { "position": "absolute", "width": "14px", "height": "14px", "left": "0", "right": "0", "top": "0", "bottom": "0" },
14817
14817
  class: "shy-basic-minus-icon",
14818
14818
  onClick: ($event) => handleMinus(index2)
14819
- }, null, 8, _hoisted_8),
14819
+ }, null, 8, _hoisted_8$1),
14820
14820
  createVNode(unref(MinusCircleTwoTone$1), { class: "shy-ui-advanced-minus-icon" })
14821
14821
  ])) : createCommentVNode("", true)
14822
14822
  ])
@@ -15744,8 +15744,8 @@ const _sfc_main$p = defineComponent({
15744
15744
  };
15745
15745
  }
15746
15746
  });
15747
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_7ebad8bb_lang = "";
15748
- const _withScopeId = (n) => (pushScopeId("data-v-7ebad8bb"), n = n(), popScopeId(), n);
15747
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_d97ebae4_lang = "";
15748
+ const _withScopeId = (n) => (pushScopeId("data-v-d97ebae4"), n = n(), popScopeId(), n);
15749
15749
  const _hoisted_1$e = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
15750
15750
  const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
15751
15751
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -15803,7 +15803,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
15803
15803
  ])
15804
15804
  ], 4);
15805
15805
  }
15806
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$g], ["__scopeId", "data-v-7ebad8bb"]]);
15806
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$g], ["__scopeId", "data-v-d97ebae4"]]);
15807
15807
  const _sfc_main$o = defineComponent({
15808
15808
  components: {
15809
15809
  TableAdvancedSearch,
@@ -16580,7 +16580,7 @@ const _sfc_main$k = defineComponent({
16580
16580
  setup() {
16581
16581
  }
16582
16582
  });
16583
- const TableDict_vue_vue_type_style_index_0_scoped_1ab38c8b_lang = "";
16583
+ const TableDict_vue_vue_type_style_index_0_scoped_b15bfa99_lang = "";
16584
16584
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16585
16585
  var _a2;
16586
16586
  const _component_Icon = resolveComponent("Icon");
@@ -16609,7 +16609,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16609
16609
  ]), 1032, ["color"])
16610
16610
  ]);
16611
16611
  }
16612
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$d], ["__scopeId", "data-v-1ab38c8b"]]);
16612
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$d], ["__scopeId", "data-v-b15bfa99"]]);
16613
16613
  const index$1 = "";
16614
16614
  var RoleEnum = /* @__PURE__ */ ((RoleEnum2) => {
16615
16615
  RoleEnum2["SUPER"] = "super";
@@ -16857,8 +16857,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16857
16857
  };
16858
16858
  }
16859
16859
  });
16860
- const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
16861
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-24f758b3"]]);
16860
+ const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
16861
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-4dc415ac"]]);
16862
16862
  const _hoisted_1$9 = { class: "api-modal-select" };
16863
16863
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
16864
16864
  __name: "ApiModalSelect",
@@ -17005,8 +17005,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
17005
17005
  };
17006
17006
  }
17007
17007
  });
17008
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
17009
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-5427533c"]]);
17008
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
17009
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-fb4fe18d"]]);
17010
17010
  const Description$1 = "";
17011
17011
  const basicColProps = 24;
17012
17012
  const basicProps$2 = {
@@ -20920,7 +20920,7 @@ const _sfc_main$b = defineComponent({
20920
20920
  };
20921
20921
  }
20922
20922
  });
20923
- const CropperAvatar_vue_vue_type_style_index_0_scoped_d163dca1_lang = "";
20923
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_763b4191_lang = "";
20924
20924
  const _hoisted_1$5 = ["src"];
20925
20925
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
20926
20926
  const _component_Icon = resolveComponent("Icon");
@@ -20970,7 +20970,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
20970
20970
  }, null, 8, ["onRegister", "onUploadSuccess", "uploadApi", "src"])
20971
20971
  ], 6);
20972
20972
  }
20973
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$7], ["__scopeId", "data-v-d163dca1"]]);
20973
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$7], ["__scopeId", "data-v-763b4191"]]);
20974
20974
  const props = {
20975
20975
  startVal: { type: Number, default: 0 },
20976
20976
  endVal: { type: Number, default: 2021 },
@@ -21141,7 +21141,7 @@ const _sfc_main$8 = defineComponent({
21141
21141
  }
21142
21142
  }
21143
21143
  });
21144
- const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
21144
+ const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
21145
21145
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
21146
21146
  const _component_Spin = resolveComponent("Spin");
21147
21147
  return withDirectives((openBlock(), createElementBlock("section", {
@@ -21157,7 +21157,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
21157
21157
  [vShow, _ctx.loading]
21158
21158
  ]);
21159
21159
  }
21160
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$5], ["__scopeId", "data-v-33b23b82"]]);
21160
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$5], ["__scopeId", "data-v-ee545744"]]);
21161
21161
  function createLoading(props2, target, wait = false) {
21162
21162
  let vm = null;
21163
21163
  const data = reactive({
@@ -21381,13 +21381,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21381
21381
  setup(__props, { emit }) {
21382
21382
  const props2 = __props;
21383
21383
  const getActions = computed(() => {
21384
+ var _a2;
21384
21385
  return [
21385
21386
  {
21386
21387
  label: "编辑",
21387
21388
  onClick: () => {
21388
21389
  emit("updateStatusEdit", true);
21389
21390
  },
21390
- ifShow: props2.row._isEdit === false
21391
+ ifShow: ((_a2 = props2 == null ? void 0 : props2.row) == null ? void 0 : _a2._isEdit) === false
21391
21392
  },
21392
21393
  {
21393
21394
  label: "删除",
@@ -21985,7 +21986,14 @@ const TableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
21985
21986
  const useColumns = (getProps, tableRef) => {
21986
21987
  const getColumnsRef = computed(() => {
21987
21988
  return getProps.value.columns.map((column) => {
21988
- return deepMergeObjects(basicColumn, column);
21989
+ if (column == null ? void 0 : column.children) {
21990
+ column.children = column.children.map((item) => {
21991
+ return deepMergeObjects(basicColumn, item);
21992
+ });
21993
+ return column;
21994
+ } else {
21995
+ return deepMergeObjects(basicColumn, column);
21996
+ }
21989
21997
  });
21990
21998
  });
21991
21999
  const getColumns = () => {
@@ -22090,7 +22098,11 @@ const _hoisted_1 = { key: 0 };
22090
22098
  const _hoisted_2 = { key: 1 };
22091
22099
  const _hoisted_3 = { key: 2 };
22092
22100
  const _hoisted_4 = { style: { "display": "flex", "justify-content": "space-between" } };
22093
- const _hoisted_5 = { class: "flex items-center" };
22101
+ const _hoisted_5 = { key: 0 };
22102
+ const _hoisted_6 = { key: 1 };
22103
+ const _hoisted_7 = { key: 2 };
22104
+ const _hoisted_8 = { style: { "display": "flex", "justify-content": "space-between" } };
22105
+ const _hoisted_9 = { class: "flex items-center" };
22094
22106
  const _sfc_main = /* @__PURE__ */ defineComponent({
22095
22107
  __name: "TablePlus",
22096
22108
  props: {
@@ -22273,7 +22285,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22273
22285
  return tableRef.value;
22274
22286
  };
22275
22287
  const setSelectRowByKeys = (keys2, checked) => {
22276
- tableRef.value.getTableData();
22277
22288
  const rows = [];
22278
22289
  keys2.forEach((key2) => {
22279
22290
  const row = tableRef.value.getRowById(key2);
@@ -22289,6 +22300,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22289
22300
  resetColumn,
22290
22301
  refreshColumn
22291
22302
  } = useColumns(getProps, tableRef);
22303
+ watchEffect(() => {
22304
+ console.log("getColumnsRef", getColumnsRef.value);
22305
+ });
22292
22306
  const tableAction = {
22293
22307
  reload,
22294
22308
  setTableData,
@@ -22396,56 +22410,121 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22396
22410
  align: "center",
22397
22411
  title: "序号"
22398
22412
  }, unref(getProps).columnSeq), null, 16)) : createCommentVNode("", true),
22399
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumnsRef), (column, index2) => {
22400
- return openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: index2 }, column, {
22401
- "edit-render": (column == null ? void 0 : column.editRender) || void 0
22402
- }), {
22403
- default: withCtx((config) => [
22404
- renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
22405
- var _a3, _b2, _c2, _d2;
22406
- return [
22407
- config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22408
- ((_a3 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
22409
- key: 0,
22410
- checkedValue: 1,
22411
- unCheckedValue: 0
22412
- }, (column == null ? void 0 : column.editComponentProps) || {}, {
22413
- checked: config.row[column.field],
22414
- "onUpdate:checked": ($event) => config.row[column.field] = $event
22415
- }), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (column == null ? void 0 : column.editComponentProps) || {}, {
22416
- value: config.row[column.field],
22417
- "onUpdate:value": ($event) => config.row[column.field] = $event
22418
- }), null, 16, ["value", "onUpdate:value"]))
22419
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22420
- (column == null ? void 0 : column.isEdit) && ((_b2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _b2.component) === "Select" || ((_c2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _c2.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_1, [
22421
- createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editComponentProps) || {}, {
22413
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumnsRef), (column) => {
22414
+ return openBlock(), createElementBlock(Fragment, {
22415
+ key: column.field
22416
+ }, [
22417
+ (column == null ? void 0 : column.groupName) ? (openBlock(), createBlock(unref(VxeColgroup), {
22418
+ key: 0,
22419
+ title: column.groupName
22420
+ }, {
22421
+ default: withCtx(() => [
22422
+ (openBlock(true), createElementBlock(Fragment, null, renderList(column.children, (c) => {
22423
+ return openBlock(), createBlock(unref(VxeColumn), {
22424
+ key: c.field,
22425
+ title: "a",
22426
+ field: c.field,
22427
+ "edit-render": (c == null ? void 0 : c.editRender) || void 0
22428
+ }, {
22429
+ default: withCtx((config) => [
22430
+ renderSlot(_ctx.$slots, c.field, normalizeProps(guardReactiveProps(config)), () => {
22431
+ var _a3, _b2, _c2, _d2;
22432
+ return [
22433
+ config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22434
+ ((_a3 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
22435
+ key: 0,
22436
+ checkedValue: 1,
22437
+ unCheckedValue: 0
22438
+ }, (c == null ? void 0 : c.editComponentProps) || {}, {
22439
+ checked: config.row[c.field],
22440
+ "onUpdate:checked": ($event) => config.row[c.field] = $event
22441
+ }), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (c == null ? void 0 : c.editComponentProps) || {}, {
22442
+ value: config.row[c.field],
22443
+ "onUpdate:value": ($event) => config.row[c.field] = $event
22444
+ }), null, 16, ["value", "onUpdate:value"]))
22445
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22446
+ (c == null ? void 0 : c.isEdit) && ((_b2 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _b2.component) === "Select" || ((_c2 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _c2.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_1, [
22447
+ createVNode(unref(CellComponent), mergeProps((c == null ? void 0 : c.editComponentProps) || {}, {
22448
+ value: config.row[c.field],
22449
+ "onUpdate:value": ($event) => config.row[c.field] = $event,
22450
+ bordered: false,
22451
+ showArrow: false,
22452
+ open: false,
22453
+ popoverVisible: false
22454
+ }), null, 16, ["value", "onUpdate:value"])
22455
+ ])) : (c == null ? void 0 : c.isEdit) && ((_d2 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_2, [
22456
+ createElementVNode("span", null, toDisplayString(getSwitchShowText(c, config.row)), 1)
22457
+ ])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(config.row[c.field]), 1))
22458
+ ], 64))
22459
+ ];
22460
+ })
22461
+ ]),
22462
+ header: withCtx(() => [
22463
+ renderSlot(_ctx.$slots, `${c.field}Header`, normalizeProps(guardReactiveProps({ c })), () => [
22464
+ createElementVNode("div", _hoisted_4, [
22465
+ createElementVNode("div", null, toDisplayString(c.title), 1),
22466
+ (column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
22467
+ key: 0,
22468
+ onChange: (type) => handleSortChange(column.field, type)
22469
+ }, null, 8, ["onChange"])) : createCommentVNode("", true)
22470
+ ])
22471
+ ])
22472
+ ]),
22473
+ _: 2
22474
+ }, 1032, ["field", "edit-render"]);
22475
+ }), 128))
22476
+ ]),
22477
+ _: 2
22478
+ }, 1032, ["title"])) : (openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: 1 }, column, {
22479
+ "edit-render": (column == null ? void 0 : column.editRender) || void 0
22480
+ }), {
22481
+ default: withCtx((config) => [
22482
+ renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
22483
+ var _a3, _b2, _c2, _d2;
22484
+ return [
22485
+ config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22486
+ ((_a3 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
22487
+ key: 0,
22488
+ checkedValue: 1,
22489
+ unCheckedValue: 0
22490
+ }, (column == null ? void 0 : column.editComponentProps) || {}, {
22491
+ checked: config.row[column.field],
22492
+ "onUpdate:checked": ($event) => config.row[column.field] = $event
22493
+ }), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (column == null ? void 0 : column.editComponentProps) || {}, {
22422
22494
  value: config.row[column.field],
22423
- "onUpdate:value": ($event) => config.row[column.field] = $event,
22424
- bordered: false,
22425
- showArrow: false,
22426
- open: false,
22427
- popoverVisible: false
22428
- }), null, 16, ["value", "onUpdate:value"])
22429
- ])) : (column == null ? void 0 : column.isEdit) && ((_d2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_2, [
22430
- createElementVNode("span", null, toDisplayString(getSwitchShowText(column, config.row)), 1)
22431
- ])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(config.row[column.field]), 1))
22432
- ], 64))
22433
- ];
22434
- })
22435
- ]),
22436
- header: withCtx(() => [
22437
- renderSlot(_ctx.$slots, `${column.field}Header`, normalizeProps(guardReactiveProps({ column })), () => [
22438
- createElementVNode("div", _hoisted_4, [
22439
- createElementVNode("div", null, toDisplayString(column.title), 1),
22440
- (column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
22441
- key: 0,
22442
- onChange: (type) => handleSortChange(column.field, type)
22443
- }, null, 8, ["onChange"])) : createCommentVNode("", true)
22495
+ "onUpdate:value": ($event) => config.row[column.field] = $event
22496
+ }), null, 16, ["value", "onUpdate:value"]))
22497
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22498
+ (column == null ? void 0 : column.isEdit) && ((_b2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _b2.component) === "Select" || ((_c2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _c2.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_5, [
22499
+ createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editComponentProps) || {}, {
22500
+ value: config.row[column.field],
22501
+ "onUpdate:value": ($event) => config.row[column.field] = $event,
22502
+ bordered: false,
22503
+ showArrow: false,
22504
+ open: false,
22505
+ popoverVisible: false
22506
+ }), null, 16, ["value", "onUpdate:value"])
22507
+ ])) : (column == null ? void 0 : column.isEdit) && ((_d2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_6, [
22508
+ createElementVNode("span", null, toDisplayString(getSwitchShowText(column, config.row)), 1)
22509
+ ])) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(config.row[column.field]), 1))
22510
+ ], 64))
22511
+ ];
22512
+ })
22513
+ ]),
22514
+ header: withCtx(() => [
22515
+ renderSlot(_ctx.$slots, `${column.field}Header`, normalizeProps(guardReactiveProps({ column })), () => [
22516
+ createElementVNode("div", _hoisted_8, [
22517
+ createElementVNode("div", null, toDisplayString(column.title), 1),
22518
+ (column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
22519
+ key: 0,
22520
+ onChange: (type) => handleSortChange(column.field, type)
22521
+ }, null, 8, ["onChange"])) : createCommentVNode("", true)
22522
+ ])
22444
22523
  ])
22445
- ])
22446
- ]),
22447
- _: 2
22448
- }, 1040, ["edit-render"]);
22524
+ ]),
22525
+ _: 2
22526
+ }, 1040, ["edit-render"]))
22527
+ ], 64);
22449
22528
  }), 128)),
22450
22529
  unref(getProps).isShowAction ? (openBlock(), createBlock(unref(VxeColumn), mergeProps({
22451
22530
  key: 3,
@@ -22454,7 +22533,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22454
22533
  align: "center"
22455
22534
  }, unref(getProps).actionColumn), {
22456
22535
  default: withCtx((config) => [
22457
- createElementVNode("div", _hoisted_5, [
22536
+ createElementVNode("div", _hoisted_9, [
22458
22537
  renderSlot(_ctx.$slots, "action", normalizeProps(guardReactiveProps(config)), () => [
22459
22538
  unref(getProps).isUseDefaultEditAction ? (openBlock(), createBlock(_sfc_main$7, {
22460
22539
  key: 0,