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