3h1-ui 2.14.5 → 2.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/es/index.js +184 -292
  2. package/es/style.css +62 -65
  3. package/lib/index.js +183 -291
  4. package/package.json +14 -14
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, VxeColgroup } from "vxe-table";
9
+ import { VxeTable, VxeColumn } 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_c3da4a85_lang = "";
4607
+ const StrengthMeter_vue_vue_type_style_index_0_scoped_eda28c94_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-c3da4a85"]]);
4639
+ const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$J], ["__scopeId", "data-v-eda28c94"]]);
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_905fa4a6_lang = "";
4675
+ const SvgIcon_vue_vue_type_style_index_0_scoped_fa64fe87_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-905fa4a6"]]);
4686
+ const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$I], ["__scopeId", "data-v-fa64fe87"]]);
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_fea26917_lang = "";
4983
- const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-fea26917"]]);
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"]]);
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_59bc8f76_lang = "";
5126
- const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-59bc8f76"]]);
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"]]);
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$2 = {
7068
+ const _hoisted_6$1 = {
7069
7069
  key: 1,
7070
7070
  class: "p-5"
7071
7071
  };
7072
- const _hoisted_7$2 = {
7072
+ const _hoisted_7$1 = {
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$2, [
7210
+ ])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [
7211
7211
  createVNode(unref(AEmpty))
7212
7212
  ]))
7213
7213
  ]),
7214
7214
  default: withCtx(() => [
7215
- isSvgMode && currentSelect.value ? (openBlock(), createElementBlock("span", _hoisted_7$2, [
7215
+ isSvgMode && currentSelect.value ? (openBlock(), createElementBlock("span", _hoisted_7$1, [
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_7465b460_lang = "";
7532
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-7465b460"]]);
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"]]);
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_fdc837af_lang = "";
9697
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-fdc837af"]]);
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"]]);
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_6d3f2554_lang = "";
10916
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-6d3f2554"]]);
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"]]);
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_44a47dbd_lang = "";
11805
+ const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_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-44a47dbd"]]);
11824
+ const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$r], ["__scopeId", "data-v-b4695833"]]);
11825
11825
  const _sfc_main$E = defineComponent({
11826
11826
  name: "PageWrapper",
11827
11827
  components: { PageFooter, PageHeader },
@@ -12368,6 +12368,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12368
12368
  clickOutside: ClickOutside
12369
12369
  },
12370
12370
  props: {
12371
+ zzz: {
12372
+ type: Object
12373
+ },
12371
12374
  value: {
12372
12375
  type: [String, Number, Boolean, Object],
12373
12376
  default: ""
@@ -12428,8 +12431,6 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12428
12431
  index: index2
12429
12432
  }) ?? {};
12430
12433
  }
12431
- compProps.onChangeTemp = compProps.onChange;
12432
- delete compProps.onChange;
12433
12434
  const component = unref(getComponent);
12434
12435
  const apiSelectProps = {};
12435
12436
  if (component === "ApiSelect") {
@@ -12437,7 +12438,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12437
12438
  }
12438
12439
  upEditDynamicDisabled(record, column, value);
12439
12440
  return {
12440
- // showCount: true,
12441
+ showCount: true,
12441
12442
  maxlength: 100,
12442
12443
  size: "small",
12443
12444
  getPopupContainer: () => unref(table2 == null ? void 0 : table2.wrapRef.value) ?? document.body,
@@ -12541,8 +12542,6 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12541
12542
  async function handleChange(e) {
12542
12543
  var _a2, _b;
12543
12544
  const component = unref(getComponent);
12544
- if (component === "Input" && e.type === "change")
12545
- ;
12546
12545
  if (!e) {
12547
12546
  currentValueRef.value = e;
12548
12547
  } else if (component === "Checkbox") {
@@ -12554,7 +12553,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12554
12553
  } else if (isString$3(e) || isBoolean(e) || isNumber$2(e) || isArray$3(e)) {
12555
12554
  currentValueRef.value = e;
12556
12555
  }
12557
- const onChange = (_a2 = unref(getComponentProps)) == null ? void 0 : _a2.onChangeTemp;
12556
+ const onChange = (_a2 = unref(getComponentProps)) == null ? void 0 : _a2.onChange;
12558
12557
  if (onChange && isFunction$4(onChange))
12559
12558
  onChange(...arguments);
12560
12559
  (_b = table2.emit) == null ? void 0 : _b.call(table2, "edit-change", {
@@ -12562,9 +12561,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12562
12561
  value: unref(currentValueRef),
12563
12562
  record: toRaw(props2.record)
12564
12563
  });
12565
- handleSubmitRule();
12564
+ handleSubmiRule();
12566
12565
  }
12567
- async function handleSubmitRule() {
12566
+ async function handleSubmiRule() {
12568
12567
  const {
12569
12568
  column,
12570
12569
  record
@@ -12582,7 +12581,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12582
12581
  }
12583
12582
  if (isFunction$4(editRule)) {
12584
12583
  const res = await editRule(currentValue, record);
12585
- if (res) {
12584
+ if (!!res) {
12586
12585
  ruleMessage.value = res;
12587
12586
  ruleVisible.value = true;
12588
12587
  return false;
@@ -12598,7 +12597,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12598
12597
  async function handleSubmit(needEmit = true, valid = true) {
12599
12598
  var _a2;
12600
12599
  if (valid) {
12601
- const isPass = await handleSubmitRule();
12600
+ const isPass = await handleSubmiRule();
12602
12601
  if (!isPass)
12603
12602
  return false;
12604
12603
  }
@@ -12726,31 +12725,34 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12726
12725
  isArray$3(props2.record[cbs]) ? (_a2 = props2.record[cbs]) == null ? void 0 : _a2.push(handle) : props2.record[cbs] = [handle];
12727
12726
  }
12728
12727
  }
12729
- if (props2.record) {
12730
- initCbs("submitCbs", handleSubmit);
12731
- initCbs("validCbs", handleSubmitRule);
12732
- initCbs("cancelCbs", handleCancel);
12733
- if (props2.column.dataIndex) {
12734
- if (!props2.record.editValueRefs)
12735
- props2.record.editValueRefs = {};
12736
- props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
12737
- }
12738
- props2.record.onCancelEdit = () => {
12739
- var _a2, _b;
12740
- isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
12741
- };
12742
- props2.record.onSubmitEdit = async () => {
12743
- var _a2, _b, _c, _d, _e;
12744
- if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
12745
- if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
12746
- return;
12747
- const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
12748
- submitFns.forEach((fn) => fn(false, false));
12749
- (_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
12750
- return true;
12728
+ const editHandler = () => {
12729
+ if (props2.record) {
12730
+ initCbs("submitCbs", handleSubmit);
12731
+ initCbs("validCbs", handleSubmiRule);
12732
+ initCbs("cancelCbs", handleCancel);
12733
+ if (props2.column.dataIndex) {
12734
+ if (!props2.record.editValueRefs)
12735
+ props2.record.editValueRefs = {};
12736
+ props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
12751
12737
  }
12752
- };
12753
- }
12738
+ props2.record.onCancelEdit = () => {
12739
+ var _a2, _b;
12740
+ isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
12741
+ };
12742
+ props2.record.onSubmitEdit = async () => {
12743
+ var _a2, _b, _c, _d, _e;
12744
+ if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
12745
+ if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
12746
+ return;
12747
+ const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
12748
+ submitFns.forEach((fn) => fn(false, false));
12749
+ (_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
12750
+ return true;
12751
+ }
12752
+ };
12753
+ }
12754
+ };
12755
+ editHandler();
12754
12756
  return {
12755
12757
  isEdit,
12756
12758
  prefixCls: prefixCls2,
@@ -12773,7 +12775,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12773
12775
  getValues,
12774
12776
  handleEnter,
12775
12777
  handleSubmitClick,
12776
- spinning
12778
+ spinning,
12779
+ editHandler
12777
12780
  };
12778
12781
  },
12779
12782
  render() {
@@ -12793,7 +12796,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12793
12796
  record: this.record,
12794
12797
  column: this.column,
12795
12798
  index: this.index
12796
- }) : this.getValues ?? " "]), !this.column.editRow && createVNode(FormOutlined$1, {
12799
+ }) : this.getValues ? this.getValues : " "]), !this.column.editRow && createVNode(FormOutlined$1, {
12797
12800
  "class": `${this.prefixCls}__normal-icon`
12798
12801
  }, null)]), [[vShow, !this.isEdit]]), this.isEdit && createVNode(Spin, {
12799
12802
  "spinning": this.spinning
@@ -12824,13 +12827,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12824
12827
  }
12825
12828
  });
12826
12829
  const EditableCell_vue_vue_type_style_index_0_lang = "";
12827
- let rowIndex = 0;
12828
- function isNeedRefresh() {
12829
- rowIndex++;
12830
- }
12831
12830
  function renderEditCell(column) {
12832
12831
  return ({ text: value, record, index: index2 }) => {
12833
- toRaw(record).onValid = async () => {
12832
+ const editableCellRef = ref();
12833
+ record.onValid = async () => {
12834
12834
  if (isArray$3(record == null ? void 0 : record.validCbs)) {
12835
12835
  const validFns = ((record == null ? void 0 : record.validCbs) || []).map((fn) => fn());
12836
12836
  const res = await Promise.all(validFns);
@@ -12839,15 +12839,16 @@ function renderEditCell(column) {
12839
12839
  return false;
12840
12840
  }
12841
12841
  };
12842
- toRaw(record).onEdit = async (edit, submit = false) => {
12843
- var _a2, _b;
12842
+ record.onEdit = async (edit, submit = false) => {
12843
+ var _a2, _b, _c;
12844
+ (_a2 = editableCellRef.value) == null ? void 0 : _a2.editHandler();
12844
12845
  if (!submit) {
12845
12846
  record.editable = edit;
12846
12847
  }
12847
12848
  if (!edit && submit) {
12848
12849
  if (!await record.onValid())
12849
12850
  return false;
12850
- const res = await ((_a2 = record.onSubmitEdit) == null ? void 0 : _a2.call(record));
12851
+ const res = await ((_b = record.onSubmitEdit) == null ? void 0 : _b.call(record));
12851
12852
  if (res) {
12852
12853
  record.editable = false;
12853
12854
  return true;
@@ -12855,16 +12856,16 @@ function renderEditCell(column) {
12855
12856
  return false;
12856
12857
  }
12857
12858
  if (!edit && !submit) {
12858
- (_b = record.onCancelEdit) == null ? void 0 : _b.call(record);
12859
+ (_c = record.onCancelEdit) == null ? void 0 : _c.call(record);
12859
12860
  }
12860
12861
  return true;
12861
12862
  };
12862
12863
  return h(_sfc_main$B, {
12864
+ ref: editableCellRef,
12863
12865
  value,
12864
12866
  record,
12865
12867
  column,
12866
- index: index2,
12867
- key: rowIndex
12868
+ index: index2
12868
12869
  });
12869
12870
  };
12870
12871
  }
@@ -13786,7 +13787,6 @@ function useCustomRow(propsRef, {
13786
13787
  emit
13787
13788
  }) {
13788
13789
  const customRow = (record, index2) => {
13789
- isNeedRefresh();
13790
13790
  return {
13791
13791
  onClick: (e) => {
13792
13792
  e == null ? void 0 : e.stopPropagation();
@@ -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_f74ee46a_lang = "";
14389
- const _withScopeId$1 = (n) => (pushScopeId("data-v-f74ee46a"), n = n(), popScopeId(), n);
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);
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-f74ee46a"]]);
14407
+ const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$l], ["__scopeId", "data-v-c5892da8"]]);
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$1 = /* @__PURE__ */ createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
14507
- const _hoisted_7$1 = {
14506
+ const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
14507
+ const _hoisted_7 = {
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$1 = ["onClick"];
14512
+ const _hoisted_8 = ["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$1,
14765
+ _hoisted_6,
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$1, [
14814
+ (schemasCurrent == null ? void 0 : schemasCurrent.length) !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
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$1),
14819
+ }, null, 8, _hoisted_8),
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_d97ebae4_lang = "";
15748
- const _withScopeId = (n) => (pushScopeId("data-v-d97ebae4"), n = n(), popScopeId(), n);
15747
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_7ebad8bb_lang = "";
15748
+ const _withScopeId = (n) => (pushScopeId("data-v-7ebad8bb"), 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-d97ebae4"]]);
15806
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$g], ["__scopeId", "data-v-7ebad8bb"]]);
15807
15807
  const _sfc_main$o = defineComponent({
15808
15808
  components: {
15809
15809
  TableAdvancedSearch,
@@ -16352,13 +16352,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16352
16352
  return isIfShow2;
16353
16353
  }
16354
16354
  const getActions = computed(() => {
16355
- const cacheActions = [];
16356
- return (toRaw(props2.actions) || []).filter((action, _) => {
16357
- if (isIfShow(action) && cacheActions.length < props2.showCount) {
16358
- cacheActions.push(action);
16359
- return true;
16360
- } else
16361
- return false;
16355
+ return (toRaw(props2.actions) || []).filter((action, index2) => {
16356
+ var _a2;
16357
+ if (((_a2 = props2.actions) == null ? void 0 : _a2.length) === props2.showCount) {
16358
+ return isIfShow(action);
16359
+ } else {
16360
+ return isIfShow(action) && index2 <= props2.showCount - 2;
16361
+ }
16362
16362
  }).map((action) => {
16363
16363
  const { popConfirm } = action;
16364
16364
  return {
@@ -16374,13 +16374,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16374
16374
  });
16375
16375
  });
16376
16376
  const getDropdownList = computed(() => {
16377
- const cacheActions = [];
16378
16377
  const list = (toRaw(props2.actions) || []).filter((action, index2) => {
16379
- if (isIfShow(action) && cacheActions.length < props2.showCount) {
16380
- cacheActions.push(action);
16378
+ if (props2.actions.length === props2.showCount) {
16381
16379
  return false;
16382
- } else if (isIfShow(action))
16383
- return true;
16380
+ } else {
16381
+ return isIfShow(action) && index2 >= props2.showCount - 1;
16382
+ }
16384
16383
  });
16385
16384
  return list.map((action, index2) => {
16386
16385
  const { label, popConfirm } = action;
@@ -16581,7 +16580,7 @@ const _sfc_main$k = defineComponent({
16581
16580
  setup() {
16582
16581
  }
16583
16582
  });
16584
- const TableDict_vue_vue_type_style_index_0_scoped_b15bfa99_lang = "";
16583
+ const TableDict_vue_vue_type_style_index_0_scoped_1ab38c8b_lang = "";
16585
16584
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16586
16585
  var _a2;
16587
16586
  const _component_Icon = resolveComponent("Icon");
@@ -16610,7 +16609,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16610
16609
  ]), 1032, ["color"])
16611
16610
  ]);
16612
16611
  }
16613
- const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$d], ["__scopeId", "data-v-b15bfa99"]]);
16612
+ const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$d], ["__scopeId", "data-v-1ab38c8b"]]);
16614
16613
  const index$1 = "";
16615
16614
  var RoleEnum = /* @__PURE__ */ ((RoleEnum2) => {
16616
16615
  RoleEnum2["SUPER"] = "super";
@@ -16654,53 +16653,42 @@ function useTable(tableProps) {
16654
16653
  }
16655
16654
  const methods2 = {
16656
16655
  reload: async (opt) => {
16657
- var _a2;
16658
- return await ((_a2 = getTableInstance()) == null ? void 0 : _a2.reload(opt));
16656
+ return await getTableInstance().reload(opt);
16659
16657
  },
16660
16658
  setProps: (props2) => {
16661
- var _a2;
16662
- (_a2 = getTableInstance()) == null ? void 0 : _a2.setProps(props2);
16659
+ getTableInstance().setProps(props2);
16663
16660
  },
16664
16661
  redoHeight: () => {
16665
- var _a2;
16666
- (_a2 = getTableInstance()) == null ? void 0 : _a2.redoHeight();
16662
+ getTableInstance().redoHeight();
16667
16663
  },
16668
16664
  setSelectedRows: (rows) => {
16669
- var _a2;
16670
- return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.setSelectedRows(rows));
16665
+ return toRaw(getTableInstance().setSelectedRows(rows));
16671
16666
  },
16672
16667
  setLoading: (loading) => {
16673
- var _a2;
16674
- (_a2 = getTableInstance()) == null ? void 0 : _a2.setLoading(loading);
16668
+ getTableInstance().setLoading(loading);
16675
16669
  },
16676
16670
  getDataSource: () => {
16677
16671
  var _a2;
16678
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.getDataSource();
16672
+ return ((_a2 = getTableInstance()) == null ? void 0 : _a2.getDataSource()) || false;
16679
16673
  },
16680
16674
  getRawDataSource: () => {
16681
- var _a2;
16682
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.getRawDataSource();
16675
+ return getTableInstance().getRawDataSource();
16683
16676
  },
16684
16677
  getColumns: ({ ignoreIndex = false } = {}) => {
16685
- var _a2;
16686
- const columns = ((_a2 = getTableInstance()) == null ? void 0 : _a2.getColumns({ ignoreIndex })) || [];
16678
+ const columns = getTableInstance().getColumns({ ignoreIndex }) || [];
16687
16679
  return toRaw(columns);
16688
16680
  },
16689
16681
  setColumns: (columns) => {
16690
- var _a2;
16691
- (_a2 = getTableInstance()) == null ? void 0 : _a2.setColumns(columns);
16682
+ getTableInstance().setColumns(columns);
16692
16683
  },
16693
16684
  setTableData: (values) => {
16694
- var _a2;
16695
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.setTableData(values);
16685
+ return getTableInstance().setTableData(values);
16696
16686
  },
16697
16687
  setPagination: (info) => {
16698
- var _a2;
16699
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.setPagination(info);
16688
+ return getTableInstance().setPagination(info);
16700
16689
  },
16701
16690
  deleteSelectRowByKey: (key2) => {
16702
- var _a2;
16703
- (_a2 = getTableInstance()) == null ? void 0 : _a2.deleteSelectRowByKey(key2);
16691
+ getTableInstance().deleteSelectRowByKey(key2);
16704
16692
  },
16705
16693
  getSelectRowKeys: () => {
16706
16694
  var _a2;
@@ -16711,75 +16699,58 @@ function useTable(tableProps) {
16711
16699
  return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getSelectRows());
16712
16700
  },
16713
16701
  clearSelectedRowKeys: () => {
16714
- var _a2;
16715
- (_a2 = getTableInstance()) == null ? void 0 : _a2.clearSelectedRowKeys();
16702
+ getTableInstance().clearSelectedRowKeys();
16716
16703
  },
16717
16704
  setSelectedRowKeys: (keys2) => {
16718
- var _a2;
16719
- (_a2 = getTableInstance()) == null ? void 0 : _a2.setSelectedRowKeys(keys2);
16705
+ getTableInstance().setSelectedRowKeys(keys2);
16720
16706
  },
16721
16707
  getPaginationRef: () => {
16722
- var _a2;
16723
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.getPaginationRef();
16708
+ return getTableInstance().getPaginationRef();
16724
16709
  },
16725
16710
  getSize: () => {
16726
- var _a2;
16727
- return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getSize());
16711
+ return toRaw(getTableInstance().getSize());
16728
16712
  },
16729
16713
  updateTableData: (index2, key2, value) => {
16730
- var _a2;
16731
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.updateTableData(index2, key2, value);
16714
+ return getTableInstance().updateTableData(index2, key2, value);
16732
16715
  },
16733
16716
  deleteTableDataRecord: (rowKey) => {
16734
- var _a2;
16735
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.deleteTableDataRecord(rowKey);
16717
+ return getTableInstance().deleteTableDataRecord(rowKey);
16736
16718
  },
16737
16719
  insertTableDataRecord: (record, index2) => {
16738
- var _a2;
16739
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.insertTableDataRecord(record, index2);
16720
+ return getTableInstance().insertTableDataRecord(record, index2);
16740
16721
  },
16741
16722
  updateTableDataRecord: (rowKey, record) => {
16742
- var _a2;
16743
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.updateTableDataRecord(rowKey, record);
16723
+ return getTableInstance().updateTableDataRecord(rowKey, record);
16744
16724
  },
16745
16725
  findTableDataRecord: (rowKey) => {
16746
- var _a2;
16747
- return (_a2 = getTableInstance()) == null ? void 0 : _a2.findTableDataRecord(rowKey);
16726
+ return getTableInstance().findTableDataRecord(rowKey);
16748
16727
  },
16749
16728
  getRowSelection: () => {
16750
- var _a2;
16751
- return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getRowSelection());
16729
+ return toRaw(getTableInstance().getRowSelection());
16752
16730
  },
16753
16731
  getCacheColumns: () => {
16754
- var _a2;
16755
- return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getCacheColumns());
16732
+ return toRaw(getTableInstance().getCacheColumns());
16756
16733
  },
16757
16734
  getForm: () => {
16758
16735
  return unref(formRef);
16759
16736
  },
16760
16737
  setShowPagination: async (show) => {
16761
- var _a2;
16762
- (_a2 = getTableInstance()) == null ? void 0 : _a2.setShowPagination(show);
16738
+ getTableInstance().setShowPagination(show);
16763
16739
  },
16764
16740
  getShowPagination: () => {
16765
- var _a2;
16766
- return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getShowPagination());
16741
+ return toRaw(getTableInstance().getShowPagination());
16767
16742
  },
16768
16743
  expandAll: () => {
16769
- var _a2;
16770
- (_a2 = getTableInstance()) == null ? void 0 : _a2.expandAll();
16744
+ getTableInstance().expandAll();
16771
16745
  },
16772
16746
  expandRows: (keys2) => {
16773
- var _a2;
16774
- (_a2 = getTableInstance()) == null ? void 0 : _a2.expandRows(keys2);
16747
+ getTableInstance().expandRows(keys2);
16775
16748
  },
16776
16749
  collapseAll: () => {
16777
- var _a2;
16778
- (_a2 = getTableInstance()) == null ? void 0 : _a2.collapseAll();
16750
+ getTableInstance().collapseAll();
16779
16751
  },
16780
16752
  scrollTo: (pos) => {
16781
- var _a2;
16782
- (_a2 = getTableInstance()) == null ? void 0 : _a2.scrollTo(pos);
16753
+ getTableInstance().scrollTo(pos);
16783
16754
  }
16784
16755
  };
16785
16756
  return [register, methods2];
@@ -16886,8 +16857,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16886
16857
  };
16887
16858
  }
16888
16859
  });
16889
- const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
16890
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-4dc415ac"]]);
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"]]);
16891
16862
  const _hoisted_1$9 = { class: "api-modal-select" };
16892
16863
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
16893
16864
  __name: "ApiModalSelect",
@@ -17034,8 +17005,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
17034
17005
  };
17035
17006
  }
17036
17007
  });
17037
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
17038
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-fb4fe18d"]]);
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"]]);
17039
17010
  const Description$1 = "";
17040
17011
  const basicColProps = 24;
17041
17012
  const basicProps$2 = {
@@ -20949,7 +20920,7 @@ const _sfc_main$b = defineComponent({
20949
20920
  };
20950
20921
  }
20951
20922
  });
20952
- const CropperAvatar_vue_vue_type_style_index_0_scoped_763b4191_lang = "";
20923
+ const CropperAvatar_vue_vue_type_style_index_0_scoped_d163dca1_lang = "";
20953
20924
  const _hoisted_1$5 = ["src"];
20954
20925
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
20955
20926
  const _component_Icon = resolveComponent("Icon");
@@ -20999,7 +20970,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
20999
20970
  }, null, 8, ["onRegister", "onUploadSuccess", "uploadApi", "src"])
21000
20971
  ], 6);
21001
20972
  }
21002
- const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$7], ["__scopeId", "data-v-763b4191"]]);
20973
+ const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$7], ["__scopeId", "data-v-d163dca1"]]);
21003
20974
  const props = {
21004
20975
  startVal: { type: Number, default: 0 },
21005
20976
  endVal: { type: Number, default: 2021 },
@@ -21170,7 +21141,7 @@ const _sfc_main$8 = defineComponent({
21170
21141
  }
21171
21142
  }
21172
21143
  });
21173
- const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
21144
+ const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
21174
21145
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
21175
21146
  const _component_Spin = resolveComponent("Spin");
21176
21147
  return withDirectives((openBlock(), createElementBlock("section", {
@@ -21186,7 +21157,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
21186
21157
  [vShow, _ctx.loading]
21187
21158
  ]);
21188
21159
  }
21189
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$5], ["__scopeId", "data-v-ee545744"]]);
21160
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$5], ["__scopeId", "data-v-33b23b82"]]);
21190
21161
  function createLoading(props2, target, wait = false) {
21191
21162
  let vm = null;
21192
21163
  const data = reactive({
@@ -21410,14 +21381,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21410
21381
  setup(__props, { emit }) {
21411
21382
  const props2 = __props;
21412
21383
  const getActions = computed(() => {
21413
- var _a2;
21414
21384
  return [
21415
21385
  {
21416
21386
  label: "编辑",
21417
21387
  onClick: () => {
21418
21388
  emit("updateStatusEdit", true);
21419
21389
  },
21420
- ifShow: ((_a2 = props2 == null ? void 0 : props2.row) == null ? void 0 : _a2._isEdit) === false
21390
+ ifShow: props2.row._isEdit === false
21421
21391
  },
21422
21392
  {
21423
21393
  label: "删除",
@@ -22015,14 +21985,7 @@ const TableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
22015
21985
  const useColumns = (getProps, tableRef) => {
22016
21986
  const getColumnsRef = computed(() => {
22017
21987
  return getProps.value.columns.map((column) => {
22018
- if (column == null ? void 0 : column.children) {
22019
- column.children = column.children.map((item) => {
22020
- return deepMergeObjects(basicColumn, item);
22021
- });
22022
- return column;
22023
- } else {
22024
- return deepMergeObjects(basicColumn, column);
22025
- }
21988
+ return deepMergeObjects(basicColumn, column);
22026
21989
  });
22027
21990
  });
22028
21991
  const getColumns = () => {
@@ -22127,11 +22090,7 @@ const _hoisted_1 = { key: 0 };
22127
22090
  const _hoisted_2 = { key: 1 };
22128
22091
  const _hoisted_3 = { key: 2 };
22129
22092
  const _hoisted_4 = { style: { "display": "flex", "justify-content": "space-between" } };
22130
- const _hoisted_5 = { key: 0 };
22131
- const _hoisted_6 = { key: 1 };
22132
- const _hoisted_7 = { key: 2 };
22133
- const _hoisted_8 = { style: { "display": "flex", "justify-content": "space-between" } };
22134
- const _hoisted_9 = { class: "flex items-center" };
22093
+ const _hoisted_5 = { class: "flex items-center" };
22135
22094
  const _sfc_main = /* @__PURE__ */ defineComponent({
22136
22095
  __name: "TablePlus",
22137
22096
  props: {
@@ -22314,6 +22273,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22314
22273
  return tableRef.value;
22315
22274
  };
22316
22275
  const setSelectRowByKeys = (keys2, checked) => {
22276
+ tableRef.value.getTableData();
22317
22277
  const rows = [];
22318
22278
  keys2.forEach((key2) => {
22319
22279
  const row = tableRef.value.getRowById(key2);
@@ -22329,9 +22289,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22329
22289
  resetColumn,
22330
22290
  refreshColumn
22331
22291
  } = useColumns(getProps, tableRef);
22332
- watchEffect(() => {
22333
- console.log("getColumnsRef", getColumnsRef.value);
22334
- });
22335
22292
  const tableAction = {
22336
22293
  reload,
22337
22294
  setTableData,
@@ -22439,121 +22396,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22439
22396
  align: "center",
22440
22397
  title: "序号"
22441
22398
  }, unref(getProps).columnSeq), null, 16)) : createCommentVNode("", true),
22442
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumnsRef), (column) => {
22443
- return openBlock(), createElementBlock(Fragment, {
22444
- key: column.field
22445
- }, [
22446
- (column == null ? void 0 : column.groupName) ? (openBlock(), createBlock(unref(VxeColgroup), {
22447
- key: 0,
22448
- title: column.groupName
22449
- }, {
22450
- default: withCtx(() => [
22451
- (openBlock(true), createElementBlock(Fragment, null, renderList(column.children, (c) => {
22452
- return openBlock(), createBlock(unref(VxeColumn), {
22453
- key: c.field,
22454
- title: "a",
22455
- field: c.field,
22456
- "edit-render": (c == null ? void 0 : c.editRender) || void 0
22457
- }, {
22458
- default: withCtx((config) => [
22459
- renderSlot(_ctx.$slots, c.field, normalizeProps(guardReactiveProps(config)), () => {
22460
- var _a3, _b2, _c2, _d2;
22461
- return [
22462
- config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22463
- ((_a3 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
22464
- key: 0,
22465
- checkedValue: 1,
22466
- unCheckedValue: 0
22467
- }, (c == null ? void 0 : c.editComponentProps) || {}, {
22468
- checked: config.row[c.field],
22469
- "onUpdate:checked": ($event) => config.row[c.field] = $event
22470
- }), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (c == null ? void 0 : c.editComponentProps) || {}, {
22471
- value: config.row[c.field],
22472
- "onUpdate:value": ($event) => config.row[c.field] = $event
22473
- }), null, 16, ["value", "onUpdate:value"]))
22474
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22475
- (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, [
22476
- createVNode(unref(CellComponent), mergeProps((c == null ? void 0 : c.editComponentProps) || {}, {
22477
- value: config.row[c.field],
22478
- "onUpdate:value": ($event) => config.row[c.field] = $event,
22479
- bordered: false,
22480
- showArrow: false,
22481
- open: false,
22482
- popoverVisible: false
22483
- }), null, 16, ["value", "onUpdate:value"])
22484
- ])) : (c == null ? void 0 : c.isEdit) && ((_d2 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_2, [
22485
- createElementVNode("span", null, toDisplayString(getSwitchShowText(c, config.row)), 1)
22486
- ])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(config.row[c.field]), 1))
22487
- ], 64))
22488
- ];
22489
- })
22490
- ]),
22491
- header: withCtx(() => [
22492
- renderSlot(_ctx.$slots, `${c.field}Header`, normalizeProps(guardReactiveProps({ c })), () => [
22493
- createElementVNode("div", _hoisted_4, [
22494
- createElementVNode("div", null, toDisplayString(c.title), 1),
22495
- (column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
22496
- key: 0,
22497
- onChange: (type) => handleSortChange(column.field, type)
22498
- }, null, 8, ["onChange"])) : createCommentVNode("", true)
22499
- ])
22500
- ])
22501
- ]),
22502
- _: 2
22503
- }, 1032, ["field", "edit-render"]);
22504
- }), 128))
22505
- ]),
22506
- _: 2
22507
- }, 1032, ["title"])) : (openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: 1 }, column, {
22508
- "edit-render": (column == null ? void 0 : column.editRender) || void 0
22509
- }), {
22510
- default: withCtx((config) => [
22511
- renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
22512
- var _a3, _b2, _c2, _d2;
22513
- return [
22514
- config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22515
- ((_a3 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
22516
- key: 0,
22517
- checkedValue: 1,
22518
- unCheckedValue: 0
22519
- }, (column == null ? void 0 : column.editComponentProps) || {}, {
22520
- checked: config.row[column.field],
22521
- "onUpdate:checked": ($event) => config.row[column.field] = $event
22522
- }), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (column == null ? void 0 : column.editComponentProps) || {}, {
22523
- value: config.row[column.field],
22524
- "onUpdate:value": ($event) => config.row[column.field] = $event
22525
- }), null, 16, ["value", "onUpdate:value"]))
22526
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22527
- (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, [
22528
- createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editComponentProps) || {}, {
22529
- value: config.row[column.field],
22530
- "onUpdate:value": ($event) => config.row[column.field] = $event,
22531
- bordered: false,
22532
- showArrow: false,
22533
- open: false,
22534
- popoverVisible: false
22535
- }), null, 16, ["value", "onUpdate:value"])
22536
- ])) : (column == null ? void 0 : column.isEdit) && ((_d2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_6, [
22537
- createElementVNode("span", null, toDisplayString(getSwitchShowText(column, config.row)), 1)
22538
- ])) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(config.row[column.field]), 1))
22539
- ], 64))
22540
- ];
22541
- })
22542
- ]),
22543
- header: withCtx(() => [
22544
- renderSlot(_ctx.$slots, `${column.field}Header`, normalizeProps(guardReactiveProps({ column })), () => [
22545
- createElementVNode("div", _hoisted_8, [
22546
- createElementVNode("div", null, toDisplayString(column.title), 1),
22547
- (column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
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({
22548
22409
  key: 0,
22549
- onChange: (type) => handleSortChange(column.field, type)
22550
- }, null, 8, ["onChange"])) : createCommentVNode("", true)
22551
- ])
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) || {}, {
22422
+ 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)
22552
22444
  ])
22553
- ]),
22554
- _: 2
22555
- }, 1040, ["edit-render"]))
22556
- ], 64);
22445
+ ])
22446
+ ]),
22447
+ _: 2
22448
+ }, 1040, ["edit-render"]);
22557
22449
  }), 128)),
22558
22450
  unref(getProps).isShowAction ? (openBlock(), createBlock(unref(VxeColumn), mergeProps({
22559
22451
  key: 3,
@@ -22562,7 +22454,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22562
22454
  align: "center"
22563
22455
  }, unref(getProps).actionColumn), {
22564
22456
  default: withCtx((config) => [
22565
- createElementVNode("div", _hoisted_9, [
22457
+ createElementVNode("div", _hoisted_5, [
22566
22458
  renderSlot(_ctx.$slots, "action", normalizeProps(guardReactiveProps(config)), () => [
22567
22459
  unref(getProps).isUseDefaultEditAction ? (openBlock(), createBlock(_sfc_main$7, {
22568
22460
  key: 0,