@juzhenfe/page-model 3.9.24 → 3.9.26

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/dist/index.es.js CHANGED
@@ -187,8 +187,8 @@ const throttle$1 = (fn, interval = 300) => {
187
187
  }
188
188
  };
189
189
  };
190
- const RANDOM_RANGE = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_=";
191
- const RANDOM_RANGE_LENGTH = 54;
190
+ const RANDOM_RANGE = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
191
+ const RANDOM_RANGE_LENGTH = 53;
192
192
  const randomStr = (len = 16) => {
193
193
  return Array(len).fill(0).map((_, index2) => {
194
194
  return RANDOM_RANGE[Math.floor(Math.random() * RANDOM_RANGE_LENGTH)];
@@ -217,11 +217,11 @@ function retryFunc(fn, isCanExecute, retryTimes = 3, interval = 100) {
217
217
  });
218
218
  };
219
219
  }
220
- const _hoisted_1$q = { class: "scenes-tab" };
220
+ const _hoisted_1$s = { class: "scenes-tab" };
221
221
  const __default__$n = {
222
222
  name: "ScenesTab"
223
223
  };
224
- const _sfc_main$P = defineComponent({
224
+ const _sfc_main$R = defineComponent({
225
225
  ...__default__$n,
226
226
  setup(__props, { expose: __expose }) {
227
227
  const getValue = () => {
@@ -231,7 +231,7 @@ const _sfc_main$P = defineComponent({
231
231
  getValue
232
232
  });
233
233
  return (_ctx, _cache) => {
234
- return openBlock(), createElementBlock("div", _hoisted_1$q);
234
+ return openBlock(), createElementBlock("div", _hoisted_1$s);
235
235
  };
236
236
  }
237
237
  });
@@ -239,7 +239,7 @@ var index_vue_vue_type_style_index_0_lang$c = "";
239
239
  const __default__$m = {
240
240
  name: "NormalTab"
241
241
  };
242
- const _sfc_main$O = defineComponent({
242
+ const _sfc_main$Q = defineComponent({
243
243
  ...__default__$m,
244
244
  props: {
245
245
  panes: {},
@@ -1035,7 +1035,7 @@ var index_vue_vue_type_style_index_0_lang$b = "";
1035
1035
  const __default__$l = {
1036
1036
  name: "TopTabs"
1037
1037
  };
1038
- const _sfc_main$N = defineComponent({
1038
+ const _sfc_main$P = defineComponent({
1039
1039
  ...__default__$l,
1040
1040
  props: {
1041
1041
  tabs: {},
@@ -1056,12 +1056,12 @@ const _sfc_main$N = defineComponent({
1056
1056
  const tabComponent = computed(() => {
1057
1057
  if (props.tabs.useScene) {
1058
1058
  return {
1059
- component: _sfc_main$P,
1059
+ component: _sfc_main$R,
1060
1060
  props: props.tabs.sceneTab
1061
1061
  };
1062
1062
  } else {
1063
1063
  return {
1064
- component: _sfc_main$O,
1064
+ component: _sfc_main$Q,
1065
1065
  props: {
1066
1066
  panes: props.tabs.panes,
1067
1067
  props: props.tabs.props
@@ -1676,9 +1676,51 @@ var _export_sfc$1 = (sfc, props) => {
1676
1676
  }
1677
1677
  return target;
1678
1678
  };
1679
- const _sfc_main$M = defineComponent({
1679
+ const _sfc_main$O = defineComponent({
1680
1680
  name: "ArrowDownBold"
1681
1681
  });
1682
+ const _hoisted_1$r = {
1683
+ class: "icon",
1684
+ width: "200",
1685
+ height: "200",
1686
+ viewBox: "0 0 1024 1024",
1687
+ xmlns: "http://www.w3.org/2000/svg"
1688
+ };
1689
+ const _hoisted_2$m = /* @__PURE__ */ createElementVNode("path", {
1690
+ fill: "currentColor",
1691
+ d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
1692
+ }, null, -1);
1693
+ const _hoisted_3$l = [
1694
+ _hoisted_2$m
1695
+ ];
1696
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
1697
+ return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$l);
1698
+ }
1699
+ var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$g]]);
1700
+ const _sfc_main$N = defineComponent({
1701
+ name: "ArrowDown"
1702
+ });
1703
+ const _hoisted_1$q = {
1704
+ class: "icon",
1705
+ width: "200",
1706
+ height: "200",
1707
+ viewBox: "0 0 1024 1024",
1708
+ xmlns: "http://www.w3.org/2000/svg"
1709
+ };
1710
+ const _hoisted_2$l = /* @__PURE__ */ createElementVNode("path", {
1711
+ fill: "currentColor",
1712
+ d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
1713
+ }, null, -1);
1714
+ const _hoisted_3$k = [
1715
+ _hoisted_2$l
1716
+ ];
1717
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
1718
+ return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_3$k);
1719
+ }
1720
+ var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$f]]);
1721
+ const _sfc_main$M = defineComponent({
1722
+ name: "CaretBottom"
1723
+ });
1682
1724
  const _hoisted_1$p = {
1683
1725
  class: "icon",
1684
1726
  width: "200",
@@ -1688,7 +1730,7 @@ const _hoisted_1$p = {
1688
1730
  };
1689
1731
  const _hoisted_2$k = /* @__PURE__ */ createElementVNode("path", {
1690
1732
  fill: "currentColor",
1691
- d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
1733
+ d: "M192 384l320 384 320-384z"
1692
1734
  }, null, -1);
1693
1735
  const _hoisted_3$j = [
1694
1736
  _hoisted_2$k
@@ -1696,9 +1738,9 @@ const _hoisted_3$j = [
1696
1738
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
1697
1739
  return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$j);
1698
1740
  }
1699
- var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$e]]);
1741
+ var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$e]]);
1700
1742
  const _sfc_main$L = defineComponent({
1701
- name: "ArrowDown"
1743
+ name: "CaretRight"
1702
1744
  });
1703
1745
  const _hoisted_1$o = {
1704
1746
  class: "icon",
@@ -1709,7 +1751,7 @@ const _hoisted_1$o = {
1709
1751
  };
1710
1752
  const _hoisted_2$j = /* @__PURE__ */ createElementVNode("path", {
1711
1753
  fill: "currentColor",
1712
- d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
1754
+ d: "M384 192v640l384-320.064z"
1713
1755
  }, null, -1);
1714
1756
  const _hoisted_3$i = [
1715
1757
  _hoisted_2$j
@@ -1717,9 +1759,9 @@ const _hoisted_3$i = [
1717
1759
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
1718
1760
  return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$i);
1719
1761
  }
1720
- var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$d]]);
1762
+ var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$d]]);
1721
1763
  const _sfc_main$K = defineComponent({
1722
- name: "CaretBottom"
1764
+ name: "CaretTop"
1723
1765
  });
1724
1766
  const _hoisted_1$n = {
1725
1767
  class: "icon",
@@ -1730,7 +1772,7 @@ const _hoisted_1$n = {
1730
1772
  };
1731
1773
  const _hoisted_2$i = /* @__PURE__ */ createElementVNode("path", {
1732
1774
  fill: "currentColor",
1733
- d: "M192 384l320 384 320-384z"
1775
+ d: "M512 320L192 704h639.936z"
1734
1776
  }, null, -1);
1735
1777
  const _hoisted_3$h = [
1736
1778
  _hoisted_2$i
@@ -1738,9 +1780,9 @@ const _hoisted_3$h = [
1738
1780
  function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
1739
1781
  return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$h);
1740
1782
  }
1741
- var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$c]]);
1783
+ var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$c]]);
1742
1784
  const _sfc_main$J = defineComponent({
1743
- name: "CaretRight"
1785
+ name: "CirclePlusFilled"
1744
1786
  });
1745
1787
  const _hoisted_1$m = {
1746
1788
  class: "icon",
@@ -1751,7 +1793,7 @@ const _hoisted_1$m = {
1751
1793
  };
1752
1794
  const _hoisted_2$h = /* @__PURE__ */ createElementVNode("path", {
1753
1795
  fill: "currentColor",
1754
- d: "M384 192v640l384-320.064z"
1796
+ d: "M512 64a448 448 0 110 896 448 448 0 010-896zm-38.4 409.6H326.4a38.4 38.4 0 100 76.8h147.2v147.2a38.4 38.4 0 0076.8 0V550.4h147.2a38.4 38.4 0 000-76.8H550.4V326.4a38.4 38.4 0 10-76.8 0v147.2z"
1755
1797
  }, null, -1);
1756
1798
  const _hoisted_3$g = [
1757
1799
  _hoisted_2$h
@@ -1759,9 +1801,9 @@ const _hoisted_3$g = [
1759
1801
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
1760
1802
  return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$g);
1761
1803
  }
1762
- var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$b]]);
1804
+ var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$b]]);
1763
1805
  const _sfc_main$I = defineComponent({
1764
- name: "CaretTop"
1806
+ name: "CirclePlus"
1765
1807
  });
1766
1808
  const _hoisted_1$l = {
1767
1809
  class: "icon",
@@ -1772,17 +1814,27 @@ const _hoisted_1$l = {
1772
1814
  };
1773
1815
  const _hoisted_2$g = /* @__PURE__ */ createElementVNode("path", {
1774
1816
  fill: "currentColor",
1775
- d: "M512 320L192 704h639.936z"
1817
+ d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
1776
1818
  }, null, -1);
1777
- const _hoisted_3$f = [
1778
- _hoisted_2$g
1819
+ const _hoisted_3$f = /* @__PURE__ */ createElementVNode("path", {
1820
+ fill: "currentColor",
1821
+ d: "M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"
1822
+ }, null, -1);
1823
+ const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("path", {
1824
+ fill: "currentColor",
1825
+ d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
1826
+ }, null, -1);
1827
+ const _hoisted_5$3 = [
1828
+ _hoisted_2$g,
1829
+ _hoisted_3$f,
1830
+ _hoisted_4$5
1779
1831
  ];
1780
1832
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
1781
- return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_3$f);
1833
+ return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_5$3);
1782
1834
  }
1783
- var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$a]]);
1835
+ var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$a]]);
1784
1836
  const _sfc_main$H = defineComponent({
1785
- name: "CirclePlusFilled"
1837
+ name: "CloseBold"
1786
1838
  });
1787
1839
  const _hoisted_1$k = {
1788
1840
  class: "icon",
@@ -1793,7 +1845,7 @@ const _hoisted_1$k = {
1793
1845
  };
1794
1846
  const _hoisted_2$f = /* @__PURE__ */ createElementVNode("path", {
1795
1847
  fill: "currentColor",
1796
- d: "M512 64a448 448 0 110 896 448 448 0 010-896zm-38.4 409.6H326.4a38.4 38.4 0 100 76.8h147.2v147.2a38.4 38.4 0 0076.8 0V550.4h147.2a38.4 38.4 0 000-76.8H550.4V326.4a38.4 38.4 0 10-76.8 0v147.2z"
1848
+ d: "M195.2 195.2a64 64 0 0190.496 0L512 421.504 738.304 195.2a64 64 0 0190.496 90.496L602.496 512 828.8 738.304a64 64 0 01-90.496 90.496L512 602.496 285.696 828.8a64 64 0 01-90.496-90.496L421.504 512 195.2 285.696a64 64 0 010-90.496z"
1797
1849
  }, null, -1);
1798
1850
  const _hoisted_3$e = [
1799
1851
  _hoisted_2$f
@@ -1801,9 +1853,9 @@ const _hoisted_3$e = [
1801
1853
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
1802
1854
  return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$e);
1803
1855
  }
1804
- var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$9]]);
1856
+ var closeBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$9]]);
1805
1857
  const _sfc_main$G = defineComponent({
1806
- name: "CirclePlus"
1858
+ name: "Filter"
1807
1859
  });
1808
1860
  const _hoisted_1$j = {
1809
1861
  class: "icon",
@@ -1814,27 +1866,17 @@ const _hoisted_1$j = {
1814
1866
  };
1815
1867
  const _hoisted_2$e = /* @__PURE__ */ createElementVNode("path", {
1816
1868
  fill: "currentColor",
1817
- d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
1818
- }, null, -1);
1819
- const _hoisted_3$d = /* @__PURE__ */ createElementVNode("path", {
1820
- fill: "currentColor",
1821
- d: "M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"
1822
- }, null, -1);
1823
- const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("path", {
1824
- fill: "currentColor",
1825
- d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
1869
+ d: "M384 523.392V928a32 32 0 0046.336 28.608l192-96A32 32 0 00640 832V523.392l280.768-343.104a32 32 0 10-49.536-40.576l-288 352A32 32 0 00576 512v300.224l-128 64V512a32 32 0 00-7.232-20.288L195.52 192H704a32 32 0 100-64H128a32 32 0 00-24.768 52.288L384 523.392z"
1826
1870
  }, null, -1);
1827
- const _hoisted_5$3 = [
1828
- _hoisted_2$e,
1829
- _hoisted_3$d,
1830
- _hoisted_4$5
1871
+ const _hoisted_3$d = [
1872
+ _hoisted_2$e
1831
1873
  ];
1832
1874
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
1833
- return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_5$3);
1875
+ return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$d);
1834
1876
  }
1835
- var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$8]]);
1877
+ var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$8]]);
1836
1878
  const _sfc_main$F = defineComponent({
1837
- name: "Filter"
1879
+ name: "Grid"
1838
1880
  });
1839
1881
  const _hoisted_1$i = {
1840
1882
  class: "icon",
@@ -1845,7 +1887,7 @@ const _hoisted_1$i = {
1845
1887
  };
1846
1888
  const _hoisted_2$d = /* @__PURE__ */ createElementVNode("path", {
1847
1889
  fill: "currentColor",
1848
- d: "M384 523.392V928a32 32 0 0046.336 28.608l192-96A32 32 0 00640 832V523.392l280.768-343.104a32 32 0 10-49.536-40.576l-288 352A32 32 0 00576 512v300.224l-128 64V512a32 32 0 00-7.232-20.288L195.52 192H704a32 32 0 100-64H128a32 32 0 00-24.768 52.288L384 523.392z"
1890
+ d: "M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"
1849
1891
  }, null, -1);
1850
1892
  const _hoisted_3$c = [
1851
1893
  _hoisted_2$d
@@ -1853,9 +1895,9 @@ const _hoisted_3$c = [
1853
1895
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
1854
1896
  return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$c);
1855
1897
  }
1856
- var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$7]]);
1898
+ var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$7]]);
1857
1899
  const _sfc_main$E = defineComponent({
1858
- name: "Grid"
1900
+ name: "Loading"
1859
1901
  });
1860
1902
  const _hoisted_1$h = {
1861
1903
  class: "icon",
@@ -1866,7 +1908,7 @@ const _hoisted_1$h = {
1866
1908
  };
1867
1909
  const _hoisted_2$c = /* @__PURE__ */ createElementVNode("path", {
1868
1910
  fill: "currentColor",
1869
- d: "M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"
1911
+ d: "M512 64a32 32 0 0132 32v192a32 32 0 01-64 0V96a32 32 0 0132-32zm0 640a32 32 0 0132 32v192a32 32 0 11-64 0V736a32 32 0 0132-32zm448-192a32 32 0 01-32 32H736a32 32 0 110-64h192a32 32 0 0132 32zm-640 0a32 32 0 01-32 32H96a32 32 0 010-64h192a32 32 0 0132 32zM195.2 195.2a32 32 0 0145.248 0L376.32 331.008a32 32 0 01-45.248 45.248L195.2 240.448a32 32 0 010-45.248zm452.544 452.544a32 32 0 0145.248 0L828.8 783.552a32 32 0 01-45.248 45.248L647.744 692.992a32 32 0 010-45.248zM828.8 195.264a32 32 0 010 45.184L692.992 376.32a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0zm-452.544 452.48a32 32 0 010 45.248L240.448 828.8a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0z"
1870
1912
  }, null, -1);
1871
1913
  const _hoisted_3$b = [
1872
1914
  _hoisted_2$c
@@ -1874,7 +1916,7 @@ const _hoisted_3$b = [
1874
1916
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
1875
1917
  return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_3$b);
1876
1918
  }
1877
- var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render$6]]);
1919
+ var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render$6]]);
1878
1920
  const _sfc_main$D = defineComponent({
1879
1921
  name: "QuestionFilled"
1880
1922
  });
@@ -6771,6 +6813,9 @@ class TableManager extends IManager {
6771
6813
  __publicField(this, "sortParams", {});
6772
6814
  __publicField(this, "randomRowKey", null);
6773
6815
  __publicField(this, "totalEls", []);
6816
+ __publicField(this, "focusCellKey");
6817
+ __publicField(this, "currentRow");
6818
+ __publicField(this, "currentColumn");
6774
6819
  __publicField(this, "radioData", null);
6775
6820
  __publicField(this, "currentRenderTableEls");
6776
6821
  __publicField(this, "innerFilters", null);
@@ -6803,8 +6848,8 @@ class TableManager extends IManager {
6803
6848
  this.tableRef = markRaw(tableRef);
6804
6849
  }
6805
6850
  }
6806
- updateLoading(loading) {
6807
- this.loadingData = loading;
6851
+ updateLoading(loading2) {
6852
+ this.loadingData = loading2;
6808
6853
  }
6809
6854
  getReqParams() {
6810
6855
  return {
@@ -6859,15 +6904,23 @@ class TableManager extends IManager {
6859
6904
  let noRepeatSelection = Object.keys(_selectionMap).map((rowKey2) => {
6860
6905
  return selection[_selectionMap[rowKey2]];
6861
6906
  });
6862
- const { adds, dels, upds } = compareTwoList(this.currentPageSelection, noRepeatSelection, rowKey);
6907
+ const { adds, dels, upds } = compareTwoList(
6908
+ this.currentPageSelection,
6909
+ noRepeatSelection,
6910
+ rowKey
6911
+ );
6863
6912
  dels.forEach((item) => {
6864
- const delIndex = this.selection.findIndex((a) => a[rowKey] === item[rowKey]);
6913
+ const delIndex = this.selection.findIndex(
6914
+ (a) => a[rowKey] === item[rowKey]
6915
+ );
6865
6916
  if (delIndex !== -1) {
6866
6917
  this.selection.splice(delIndex, 1);
6867
6918
  }
6868
6919
  });
6869
6920
  upds.forEach((item) => {
6870
- const updIndex = this.selection.findIndex((a) => a[rowKey] === item[rowKey]);
6921
+ const updIndex = this.selection.findIndex(
6922
+ (a) => a[rowKey] === item[rowKey]
6923
+ );
6871
6924
  if (updIndex !== -1) {
6872
6925
  this.selection[updIndex] = item;
6873
6926
  }
@@ -6889,7 +6942,11 @@ class TableManager extends IManager {
6889
6942
  } else {
6890
6943
  this.tableProps = {};
6891
6944
  }
6892
- this.tableProps = merge(cloneDeep(DEFAULT_TABLE_PROPS), oldTableProps, this.tableProps);
6945
+ this.tableProps = merge(
6946
+ cloneDeep(DEFAULT_TABLE_PROPS),
6947
+ oldTableProps,
6948
+ this.tableProps
6949
+ );
6893
6950
  this.size = ((_a = this.tableProps) == null ? void 0 : _a.size) || ((_b = this.config) == null ? void 0 : _b.size) || "default";
6894
6951
  }
6895
6952
  updateEvents() {
@@ -6927,7 +6984,9 @@ class TableManager extends IManager {
6927
6984
  this.tableEvents["rowClick"] = function(row, column, event) {
6928
6985
  _rowClick == null ? void 0 : _rowClick.call(this, row, column, event);
6929
6986
  const currentPageSelection = this.currentPageSelection;
6930
- const findIndex = currentPageSelection.findIndex((item) => item === row);
6987
+ const findIndex = currentPageSelection.findIndex(
6988
+ (item) => item === row
6989
+ );
6931
6990
  const selectList = [...currentPageSelection];
6932
6991
  if (findIndex === -1) {
6933
6992
  selectList.push(row);
@@ -6955,7 +7014,11 @@ class TableManager extends IManager {
6955
7014
  _sortChange == null ? void 0 : _sortChange.call(this, sort2);
6956
7015
  const index2 = _this.sortOrders.findIndex((val) => val === sort2.order);
6957
7016
  if (index2 !== -1) {
6958
- const elItems = _this.context.JZUtils.findDataFromTree(_this.table.els, "prop", sort2.prop);
7017
+ const elItems = _this.context.JZUtils.findDataFromTree(
7018
+ _this.table.els,
7019
+ "prop",
7020
+ sort2.prop
7021
+ );
6959
7022
  if (elItems.length) {
6960
7023
  const sortValues = elItems.slice(-1)[0].sortValues;
6961
7024
  _this.sortParams = sortValues[index2] || {};
@@ -6972,7 +7035,24 @@ class TableManager extends IManager {
6972
7035
  }
6973
7036
  composeTableCellKey(columnKey, rowIndex) {
6974
7037
  const currentPage = this.currentPage;
6975
- return `${columnKey}_${currentPage}_${rowIndex}`;
7038
+ return `column-${columnKey}_${currentPage}_${rowIndex}`;
7039
+ }
7040
+ blurCell(blurRowData, blurColumn) {
7041
+ if (this.focusCellKey) {
7042
+ const cellEle = document.querySelector(`#${this.focusCellKey}`);
7043
+ cellEle.setAttribute("data-focus", "false");
7044
+ if (cellEle.getAttribute("data-edit") === "true") {
7045
+ const tableEl = this.currentRenderTableEls.find((el) => el._key === blurColumn.columnKey);
7046
+ this.restoreCellValue(blurRowData, this.focusCellKey, tableEl.editData.prop || tableEl.prop);
7047
+ }
7048
+ this.closeCellEditing(this.focusCellKey);
7049
+ }
7050
+ }
7051
+ focusCell(cell) {
7052
+ if (this.focusCellKey) {
7053
+ let focusCell = cell != null ? cell : document.querySelector(`#${this.focusCellKey}`);
7054
+ focusCell.setAttribute("data-focus", "true");
7055
+ }
6976
7056
  }
6977
7057
  patchTableEditable() {
6978
7058
  if (!this.table.editable) {
@@ -6990,27 +7070,64 @@ class TableManager extends IManager {
6990
7070
  return false;
6991
7071
  }
6992
7072
  const rowIndex = cellInnerContainer.getAttribute("data-index");
6993
- const key = this.composeTableCellKey(column.columnKey, rowIndex);
6994
- this.setCellEditing(key, column.columnKey);
6995
- this.saveRowData(key, row);
7073
+ const cellKey = this.composeTableCellKey(column.columnKey, rowIndex);
7074
+ if (this.focusCellKey !== cellKey) {
7075
+ this.blurCell(this.currentRow, this.currentColumn);
7076
+ cell.id = this.focusCellKey = cellKey;
7077
+ this.focusCell(cell);
7078
+ return false;
7079
+ }
7080
+ this.currentRow = row;
7081
+ this.currentColumn = column;
7082
+ this.setCellEditing(cellKey);
7083
+ this.saveRowData(cellKey, row);
6996
7084
  }.bind(this);
6997
7085
  }
6998
- setCellEditing(mapKey, valueKey) {
6999
- const value = this.editableOpen.get(mapKey) || {};
7000
- value[valueKey] = true;
7001
- this.editableOpen.set(mapKey, value);
7086
+ setCellEditing(cellKey) {
7087
+ this.editableOpen.set(cellKey, true);
7088
+ const cellEle = document.querySelector(`#${this.focusCellKey}`);
7089
+ cellEle.setAttribute("data-edit", "true");
7090
+ nextTick(() => {
7091
+ var _a;
7092
+ (_a = cellEle.querySelector("input")) == null ? void 0 : _a.focus();
7093
+ });
7094
+ }
7095
+ closeCellEditing(cellKey) {
7096
+ this.editableOpen.set(cellKey, false);
7097
+ const cellEle = document.querySelector(`#${this.focusCellKey}`);
7098
+ cellEle.setAttribute("data-edit", "false");
7002
7099
  }
7003
- saveRowData(key, data) {
7004
- this.editableData.set(key, JSON.parse(JSON.stringify(data)));
7100
+ saveRowData(cellKey, data) {
7101
+ this.editableData.set(cellKey, JSON.parse(JSON.stringify(data)));
7005
7102
  }
7006
- closeCellEditing(mapKey, valueKey) {
7007
- const value = this.editableOpen.get(mapKey) || {};
7008
- value[valueKey] = false;
7009
- this.editableOpen.set(mapKey, value);
7103
+ clearRowData(cellKey) {
7104
+ this.editableData.delete(cellKey);
7105
+ }
7106
+ setRowUpdateLoading(cellKey, loading2) {
7107
+ this.editableOpen.set(`${cellKey}-loading`, loading2);
7108
+ }
7109
+ restoreCellValue(row, cellKey, restoreKey) {
7110
+ const originForm = this.editableData.get(cellKey);
7111
+ row[restoreKey] = originForm[restoreKey];
7112
+ }
7113
+ resetTableEdit() {
7114
+ if (this.table.editable) {
7115
+ if (this.focusCellKey) {
7116
+ this.blurCell(this.currentRow, this.currentColumn);
7117
+ }
7118
+ this.editableData.clear();
7119
+ this.editableOpen.clear();
7120
+ this.currentRow = null;
7121
+ this.currentColumn = null;
7122
+ this.focusCellKey = null;
7123
+ }
7010
7124
  }
7011
7125
  updatePagination() {
7012
7126
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
7013
- this.pagination = merge(cloneDeep(DEFAULT_PAGINATION_CONFIG), (_b = (_a = this.table) == null ? void 0 : _a.pagination) != null ? _b : {});
7127
+ this.pagination = merge(
7128
+ cloneDeep(DEFAULT_PAGINATION_CONFIG),
7129
+ (_b = (_a = this.table) == null ? void 0 : _a.pagination) != null ? _b : {}
7130
+ );
7014
7131
  this.pageSize = (_f = (_d = this.pagination.pageSize) != null ? _d : (_c = this.pagination.pageSizes) == null ? void 0 : _c[0]) != null ? _f : (_e = DEFAULT_PAGINATION_CONFIG.pageSizes) == null ? void 0 : _e[0];
7015
7132
  this.pagination.pageSizes = (_i = (_h = (_g = this.table) == null ? void 0 : _g.pagination) == null ? void 0 : _h.pageSizes) != null ? _i : DEFAULT_PAGINATION_CONFIG.pageSizes;
7016
7133
  }
@@ -7093,7 +7210,9 @@ class TableManager extends IManager {
7093
7210
  }
7094
7211
  _syncRadioData() {
7095
7212
  if (this.radioData) {
7096
- const data = this.tableData.find((a) => a[this.rowKey] === this.radioData[this.rowKey]);
7213
+ const data = this.tableData.find(
7214
+ (a) => a[this.rowKey] === this.radioData[this.rowKey]
7215
+ );
7097
7216
  if (data) {
7098
7217
  this.setRadioData(data);
7099
7218
  }
@@ -7113,7 +7232,10 @@ class TableManager extends IManager {
7113
7232
  }
7114
7233
  const loadXlsxStyleResult = await JZUtils.loadResource(
7115
7234
  "xlsx.full.min.js",
7116
- ["http://cdn-static.juzhentech.com/xlsx-style@0.8.13/", "/scripts/xlsx-style/"],
7235
+ [
7236
+ "http://cdn-static.juzhentech.com/xlsx-style@0.8.13/",
7237
+ "/scripts/xlsx-style/"
7238
+ ],
7117
7239
  "js"
7118
7240
  );
7119
7241
  return loadXlsxResult && loadXlsxStyleResult;
@@ -7195,7 +7317,11 @@ class TableManager extends IManager {
7195
7317
  };
7196
7318
  var sheet = window.oXlsx.utils.aoa_to_sheet(excelData);
7197
7319
  if (typeof ((_c = this.table.xlsx) == null ? void 0 : _c.mergeFn) === "function") {
7198
- sheet["!merges"] = this.table.xlsx.mergeFn.call(this, exportData, exportEls);
7320
+ sheet["!merges"] = this.table.xlsx.mergeFn.call(
7321
+ this,
7322
+ exportData,
7323
+ exportEls
7324
+ );
7199
7325
  }
7200
7326
  Object.keys(sheet).forEach((colKey) => {
7201
7327
  if (!colKey[0].match(/\w/)) {
@@ -7339,11 +7465,15 @@ const _hoisted_3$4 = {
7339
7465
  key: 0,
7340
7466
  class: "el-table-cell_editable"
7341
7467
  };
7342
- const _hoisted_4$3 = {
7468
+ const _hoisted_4$3 = { class: "el-table-cell_editable-inputer" };
7469
+ const _hoisted_5$2 = { class: "el-table-cell_editable-buttons" };
7470
+ const _hoisted_6$2 = ["onClick"];
7471
+ const _hoisted_7$2 = ["onClick"];
7472
+ const _hoisted_8 = {
7343
7473
  key: 1,
7344
7474
  class: "empty-edit"
7345
7475
  };
7346
- const _hoisted_5$2 = { key: 0 };
7476
+ const _hoisted_9 = { key: 0 };
7347
7477
  const __default__$g = {
7348
7478
  name: "TableColumn"
7349
7479
  };
@@ -7358,8 +7488,14 @@ const _sfc_main$p = defineComponent({
7358
7488
  const tableManager = computed(() => {
7359
7489
  return props.context;
7360
7490
  });
7361
- const onSaveEditContent = async (row, mapKey, column) => {
7362
- var _a, _b;
7491
+ const onUpdateTableCellModelValue = (row, prop, value) => {
7492
+ row[prop] = value;
7493
+ };
7494
+ const onSaveEditContent = async (row, cellKey, column) => {
7495
+ var _a;
7496
+ if (tableManager.value.editableOpen.get(`${cellKey}-loading`)) {
7497
+ return;
7498
+ }
7363
7499
  const manager = tableManager.value.manager;
7364
7500
  let submitData = await manager.getSubmitFormData(row, false);
7365
7501
  if (submitData === false) {
@@ -7374,40 +7510,44 @@ const _sfc_main$p = defineComponent({
7374
7510
  }
7375
7511
  }
7376
7512
  if (submitData === false) {
7513
+ onCancelEditContent(row, cellKey, column.editData.prop || column.prop);
7377
7514
  return false;
7378
7515
  }
7379
7516
  let updateResult;
7380
- if ((_b = column.editData) == null ? void 0 : _b.api) {
7381
- let api = typeof column.editData.api === "function" ? column.editData.api.call(tableManager, submitData) : column.editData.api;
7382
- updateResult = await manager.baseUpdDataRequest(
7383
- api,
7384
- column.editData.method || tableManager.value.config.updMethod,
7385
- submitData
7386
- );
7387
- } else {
7388
- updateResult = await manager.postUpdDataRequest(submitData);
7389
- }
7390
- if (updateResult) {
7391
- props.context.closeCellEditing(mapKey, column._key);
7392
- }
7393
- };
7394
- const onCellDataChange = (isShowEditable, row, mapKey, column) => {
7395
- if (isShowEditable) {
7396
- onSaveEditContent(row, mapKey, column);
7517
+ props.context.setRowUpdateLoading(cellKey, true);
7518
+ try {
7519
+ if (column.editData.api) {
7520
+ let api = typeof column.editData.api === "function" ? column.editData.api.call(tableManager, submitData) : column.editData.api;
7521
+ updateResult = await manager.baseUpdDataRequest(
7522
+ api,
7523
+ column.editData.method || tableManager.value.config.updMethod,
7524
+ submitData
7525
+ );
7526
+ } else {
7527
+ updateResult = await manager.postUpdDataRequest(submitData);
7528
+ }
7529
+ if (updateResult) {
7530
+ props.context.closeCellEditing(cellKey);
7531
+ } else {
7532
+ onCancelEditContent(row, cellKey, column.editData.prop || column.prop);
7533
+ ElMessage.error("\u66F4\u65B0\u5931\u8D25!");
7534
+ }
7535
+ } catch (error) {
7536
+ } finally {
7537
+ props.context.setRowUpdateLoading(cellKey, false);
7397
7538
  }
7398
7539
  };
7399
- const onCancelEditContent = (row, mapKey, valueKey) => {
7400
- props.context.closeCellEditing(mapKey, valueKey);
7401
- const originForm = tableManager.value.editableData.get(mapKey);
7402
- const el = props.els.find((a) => a._key === valueKey);
7403
- if (el.prop) {
7404
- row[el.prop] = originForm[el.prop];
7540
+ const onCancelEditContent = (row, cellKey, restoreKey) => {
7541
+ if (tableManager.value.editableOpen.get(`${cellKey}-loading`)) {
7542
+ return;
7405
7543
  }
7544
+ props.context.closeCellEditing(cellKey);
7545
+ props.context.restoreCellValue(row, cellKey, restoreKey);
7546
+ props.context.clearRowData(cellKey);
7406
7547
  };
7407
7548
  return (_ctx, _cache) => {
7408
7549
  const _component_el_icon = resolveComponent("el-icon");
7409
7550
  const _component_TableColumn = resolveComponent("TableColumn");
7410
- const _component_el_button = resolveComponent("el-button");
7411
7551
  const _component_el_table_column = resolveComponent("el-table-column");
7412
7552
  return openBlock(true), createElementBlock(Fragment, null, renderList(props.els, (column, index2) => {
7413
7553
  return openBlock(), createBlock(_component_el_table_column, mergeProps({
@@ -7433,91 +7573,99 @@ const _sfc_main$p = defineComponent({
7433
7573
  }, 1032, ["title"])) : createCommentVNode("", true)
7434
7574
  ])
7435
7575
  ]),
7436
- default: withCtx(({ row, $index, column: columnEl }) => {
7437
- var _a;
7438
- return [
7439
- column.children ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7440
- column.children ? (openBlock(), createBlock(_component_TableColumn, {
7441
- key: 0,
7442
- els: column.children,
7443
- context: props.context
7444
- }, null, 8, ["els", "context"])) : createCommentVNode("", true)
7445
- ], 64)) : (openBlock(), createElementBlock("div", {
7446
- key: 1,
7447
- "data-index": $index,
7448
- editable: column.editData ? 1 : 0,
7449
- class: normalizeClass([
7450
- "el-table-cell_inner",
7451
- column.showRowNumbers != null ? `show-${column.showRowNumbers}` : ""
7452
- ])
7453
- }, [
7454
- column.showEdit || ((_a = tableManager.value.editableOpen.get(
7455
- tableManager.value.composeTableCellKey(columnEl.columnKey, $index)
7456
- )) == null ? void 0 : _a[column._key]) ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
7457
- column.editData ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7576
+ default: withCtx(({ row, $index, column: columnEl }) => [
7577
+ column.children ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7578
+ column.children ? (openBlock(), createBlock(_component_TableColumn, {
7579
+ key: 0,
7580
+ els: column.children,
7581
+ context: props.context
7582
+ }, null, 8, ["els", "context"])) : createCommentVNode("", true)
7583
+ ], 64)) : (openBlock(), createElementBlock("div", {
7584
+ key: 1,
7585
+ "data-index": $index,
7586
+ editable: column.editData ? 1 : 0,
7587
+ class: normalizeClass([
7588
+ "el-table-cell_inner",
7589
+ column.showRowNumbers != null ? `show-${column.showRowNumbers}` : ""
7590
+ ])
7591
+ }, [
7592
+ column.showEdit || tableManager.value.editableOpen.get(
7593
+ tableManager.value.composeTableCellKey(columnEl.columnKey, $index)
7594
+ ) ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
7595
+ column.editData ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7596
+ createElementVNode("div", _hoisted_4$3, [
7458
7597
  createVNode(_sfc_main$u, {
7459
7598
  modelValue: row[column.editData.prop || column.prop],
7460
- "onUpdate:modelValue": ($event) => row[column.editData.prop || column.prop] = $event,
7461
7599
  renderFn: column.editData.renderFn,
7462
7600
  context: props.context,
7463
7601
  options: column.editData,
7464
7602
  model: row,
7465
- onChange: ($event) => onCellDataChange(
7466
- column.showEdit,
7603
+ "onUpdate:modelValue": ($event) => onUpdateTableCellModelValue(
7467
7604
  row,
7468
- tableManager.value.composeTableCellKey(columnEl.columnKey, $index),
7469
- column
7605
+ column.editData.prop || column.prop,
7606
+ $event
7470
7607
  )
7471
- }, null, 8, ["modelValue", "onUpdate:modelValue", "renderFn", "context", "options", "model", "onChange"]),
7472
- !column.showEdit ? (openBlock(), createBlock(_component_el_button, {
7608
+ }, null, 8, ["modelValue", "renderFn", "context", "options", "model", "onUpdate:modelValue"])
7609
+ ]),
7610
+ createElementVNode("div", _hoisted_5$2, [
7611
+ !column.showEdit ? (openBlock(), createElementBlock("span", {
7473
7612
  key: 0,
7474
- size: "small",
7475
- link: "",
7476
- type: "primary",
7477
- style: { "margin-left": "10px" },
7613
+ class: "el-table-cell_editable-button btn-save",
7614
+ title: "\u4FDD\u5B58",
7478
7615
  onClick: ($event) => onSaveEditContent(
7479
7616
  row,
7480
7617
  tableManager.value.composeTableCellKey(columnEl.columnKey, $index),
7481
7618
  column
7482
7619
  )
7483
- }, {
7484
- default: withCtx(() => [
7485
- createTextVNode(" \u4FDD\u5B58 ")
7486
- ]),
7487
- _: 2
7488
- }, 1032, ["onClick"])) : createCommentVNode("", true)
7489
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$3, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6")),
7490
- !column.showEdit ? (openBlock(), createBlock(_component_el_button, {
7491
- key: 2,
7492
- size: "small",
7493
- link: "",
7494
- type: "primary",
7495
- onClick: ($event) => onCancelEditContent(
7496
- row,
7497
- tableManager.value.composeTableCellKey(columnEl.columnKey, $index),
7498
- column._key
7499
- )
7500
- }, {
7501
- default: withCtx(() => [
7502
- createTextVNode(" \u53D6\u6D88 ")
7503
- ]),
7504
- _: 2
7505
- }, 1032, ["onClick"])) : createCommentVNode("", true)
7506
- ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7507
- column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$q, {
7508
- key: 0,
7509
- "render-fn": column.renderFn,
7510
- context: props.context,
7511
- pure: "",
7512
- row,
7513
- index: $index
7514
- }, null, 8, ["render-fn", "context", "row", "index"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7515
- column.prop ? (openBlock(), createElementBlock("span", _hoisted_5$2, toDisplayString(row[column.prop]), 1)) : createCommentVNode("", true)
7516
- ], 64))
7620
+ }, [
7621
+ createVNode(_component_el_icon, null, {
7622
+ default: withCtx(() => [
7623
+ tableManager.value.editableOpen.get(
7624
+ `${tableManager.value.composeTableCellKey(
7625
+ columnEl.columnKey,
7626
+ $index
7627
+ )}-loading`
7628
+ ) ? (openBlock(), createBlock(unref(loading), {
7629
+ key: 0,
7630
+ class: "el-table-cell_editable-icon-loading"
7631
+ })) : (openBlock(), createBlock(unref(select), { key: 1 }))
7632
+ ]),
7633
+ _: 2
7634
+ }, 1024)
7635
+ ], 8, _hoisted_6$2)) : createCommentVNode("", true),
7636
+ !column.showEdit ? (openBlock(), createElementBlock("span", {
7637
+ key: 1,
7638
+ class: "el-table-cell_editable-button btn-cancel",
7639
+ title: "\u4FDD\u5B58",
7640
+ onClick: ($event) => onCancelEditContent(
7641
+ row,
7642
+ tableManager.value.composeTableCellKey(columnEl.columnKey, $index),
7643
+ column.editData.prop || column.prop
7644
+ )
7645
+ }, [
7646
+ createVNode(_component_el_icon, null, {
7647
+ default: withCtx(() => [
7648
+ createVNode(unref(closeBold))
7649
+ ]),
7650
+ _: 1
7651
+ })
7652
+ ], 8, _hoisted_7$2)) : createCommentVNode("", true)
7653
+ ])
7654
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_8, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6"))
7655
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7656
+ column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$q, {
7657
+ key: 0,
7658
+ "render-fn": column.renderFn,
7659
+ context: props.context,
7660
+ pure: "",
7661
+ row,
7662
+ index: $index
7663
+ }, null, 8, ["render-fn", "context", "row", "index"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7664
+ column.prop ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(row[column.prop]), 1)) : createCommentVNode("", true)
7517
7665
  ], 64))
7518
- ], 10, _hoisted_2$5))
7519
- ];
7520
- }),
7666
+ ], 64))
7667
+ ], 10, _hoisted_2$5))
7668
+ ]),
7521
7669
  _: 2
7522
7670
  }, 1040, ["label", "prop", "width", "min-width", "fixed", "column-key"]);
7523
7671
  }), 128);
@@ -10965,6 +11113,7 @@ const _sfc_main$h = defineComponent({
10965
11113
  if (tableManager.currentPage !== current) {
10966
11114
  tableManager.currentPage = current;
10967
11115
  tableManager.refreshPage();
11116
+ tableManager.resetTableEdit();
10968
11117
  }
10969
11118
  };
10970
11119
  const onSaveColumns = async (columns) => {
@@ -11312,8 +11461,8 @@ class FormManager extends IManager {
11312
11461
  updateFormRef(formRef) {
11313
11462
  this.formRef = markRaw(formRef);
11314
11463
  }
11315
- updateSubmitLoading(loading) {
11316
- this.submitLoading = loading;
11464
+ updateSubmitLoading(loading2) {
11465
+ this.submitLoading = loading2;
11317
11466
  }
11318
11467
  updateReflections(reflections) {
11319
11468
  this.updateReflectionsData(reflections);
@@ -12441,7 +12590,7 @@ const _sfc_main$9 = defineComponent({
12441
12590
  }
12442
12591
  }
12443
12592
  });
12444
- const loading = computed(() => {
12593
+ const loading2 = computed(() => {
12445
12594
  var _a;
12446
12595
  return (_a = props.formManager) == null ? void 0 : _a.submitLoading;
12447
12596
  });
@@ -12467,7 +12616,7 @@ const _sfc_main$9 = defineComponent({
12467
12616
  createVNode(_component_el_button, {
12468
12617
  style: { "width": "80px" },
12469
12618
  type: "primary",
12470
- loading: loading.value,
12619
+ loading: loading2.value,
12471
12620
  onClick: submit
12472
12621
  }, {
12473
12622
  default: withCtx(() => [
@@ -12544,7 +12693,7 @@ const _sfc_main$8 = defineComponent({
12544
12693
  }
12545
12694
  }
12546
12695
  });
12547
- const loading = computed(() => {
12696
+ const loading2 = computed(() => {
12548
12697
  var _a;
12549
12698
  return (_a = props.formManager) == null ? void 0 : _a.submitLoading;
12550
12699
  });
@@ -12591,7 +12740,7 @@ const _sfc_main$8 = defineComponent({
12591
12740
  createVNode(_component_el_button, {
12592
12741
  style: { "width": "80px" },
12593
12742
  type: "primary",
12594
- loading: loading.value,
12743
+ loading: loading2.value,
12595
12744
  onClick: submit
12596
12745
  }, {
12597
12746
  default: withCtx(() => [
@@ -13743,7 +13892,7 @@ const _sfc_main$4 = defineComponent({
13743
13892
  key: 0,
13744
13893
  class: normalizeClass(unref(createBEMName)("top-tabs"))
13745
13894
  }, [
13746
- hasTabs.value ? (openBlock(), createBlock(_sfc_main$N, {
13895
+ hasTabs.value ? (openBlock(), createBlock(_sfc_main$P, {
13747
13896
  key: 0,
13748
13897
  tabs: uConfig.value.tabs,
13749
13898
  manager,
@@ -14722,7 +14871,7 @@ const defineEditableTable = function(config) {
14722
14871
  return reactive(config);
14723
14872
  };
14724
14873
  const name = "@juzhenfe/page-model";
14725
- const version = "3.9.24";
14874
+ const version = "3.9.26";
14726
14875
  const types = "dist/main.d.ts";
14727
14876
  const main = "dist/index.umd.js";
14728
14877
  const keywords = [
@@ -14768,6 +14917,7 @@ const devDependencies = {
14768
14917
  "xlsx-style": "^0.8.13"
14769
14918
  };
14770
14919
  const dependencies = {
14920
+ "@juzhenfe/page-model": "^3.9.25",
14771
14921
  interactjs: "^1.10.11",
14772
14922
  "lodash.clonedeep": "4.5.0",
14773
14923
  "lodash.isequal": "^4.5.0",