@tmagic/form 1.3.0-alpha.18 → 1.3.0-alpha.19

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.
@@ -170,7 +170,7 @@ const initValue = async (mForm, { initValues, config }) => {
170
170
  const _hoisted_1$d = ["innerHTML"];
171
171
  const _hoisted_2$7 = ["innerHTML"];
172
172
  const _hoisted_3$4 = ["innerHTML"];
173
- const _hoisted_4$4 = ["innerHTML"];
173
+ const _hoisted_4$3 = ["innerHTML"];
174
174
  const _hoisted_5$3 = ["innerHTML"];
175
175
  const _hoisted_6$1 = ["innerHTML"];
176
176
  const _hoisted_7$1 = ["innerHTML"];
@@ -416,7 +416,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
416
416
  content: withCtx(() => [
417
417
  createElementVNode("div", {
418
418
  innerHTML: _ctx.config.tip
419
- }, null, 8, _hoisted_4$4)
419
+ }, null, 8, _hoisted_4$3)
420
420
  ]),
421
421
  default: withCtx(() => [
422
422
  createVNode(unref(TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
@@ -604,7 +604,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
604
604
  const _hoisted_1$c = ["innerHTML"];
605
605
  const _hoisted_2$6 = ["innerHTML"];
606
606
  const _hoisted_3$3 = { key: 1 };
607
- const _hoisted_4$3 = ["innerHTML"];
607
+ const _hoisted_4$2 = ["innerHTML"];
608
608
  const _hoisted_5$2 = ["innerHTML"];
609
609
  const _hoisted_6 = {
610
610
  key: 2,
@@ -685,7 +685,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
685
685
  })) : (openBlock(), createElementBlock("legend", _hoisted_3$3, [
686
686
  createElementVNode("span", {
687
687
  innerHTML: _ctx.config.legend
688
- }, null, 8, _hoisted_4$3),
688
+ }, null, 8, _hoisted_4$2),
689
689
  _ctx.config.extra ? (openBlock(), createElementBlock("span", {
690
690
  key: 0,
691
691
  innerHTML: _ctx.config.extra,
@@ -895,9 +895,9 @@ const _hoisted_3$2 = {
895
895
  key: 1,
896
896
  class: "el-table__empty-block"
897
897
  };
898
- const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("span", { class: "el-table__empty-text" }, "暂无数据", -1);
898
+ const _hoisted_4$1 = /* @__PURE__ */ createElementVNode("span", { class: "el-table__empty-text" }, "暂无数据", -1);
899
899
  const _hoisted_5$1 = [
900
- _hoisted_4$2
900
+ _hoisted_4$1
901
901
  ];
902
902
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
903
903
  ...{
@@ -1040,7 +1040,7 @@ const _hoisted_3$1 = {
1040
1040
  key: 0,
1041
1041
  style: { "display": "flex" }
1042
1042
  };
1043
- const _hoisted_4$1 = { style: { "flex": "1" } };
1043
+ const _hoisted_4 = { style: { "flex": "1" } };
1044
1044
  const _hoisted_5 = ["src"];
1045
1045
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
1046
1046
  ...{
@@ -1095,7 +1095,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1095
1095
  createElementVNode("div", null, [
1096
1096
  renderSlot(_ctx.$slots, "default"),
1097
1097
  _ctx.config.schematic ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1098
- createElementVNode("div", _hoisted_4$1, [
1098
+ createElementVNode("div", _hoisted_4, [
1099
1099
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
1100
1100
  return openBlock(), createBlock(_sfc_main$x, {
1101
1101
  key: item[unref(mForm)?.keyProp || "__key"] ?? index,
@@ -1317,10 +1317,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1317
1317
  });
1318
1318
 
1319
1319
  const _hoisted_1$8 = ["innerHTML"];
1320
- const _hoisted_2$2 = { class: "el-form-item__content" };
1321
- const _hoisted_3 = ["innerHTML"];
1322
- const _hoisted_4 = {
1323
- key: 1,
1320
+ const _hoisted_2$2 = ["innerHTML"];
1321
+ const _hoisted_3 = {
1322
+ key: 6,
1324
1323
  class: "bottom",
1325
1324
  style: { "text-align": "right" }
1326
1325
  };
@@ -1680,245 +1679,243 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1680
1679
  style: { "color": "rgba(0, 0, 0, 0.45)" },
1681
1680
  innerHTML: _ctx.config.extra
1682
1681
  }, null, 8, _hoisted_1$8)) : createCommentVNode("", true),
1683
- createElementVNode("div", _hoisted_2$2, [
1684
- createVNode(unref(TMagicTooltip), {
1685
- content: "拖拽可排序",
1686
- placement: "left-start",
1687
- disabled: _ctx.config.dropSort !== true
1688
- }, {
1689
- default: withCtx(() => [
1690
- _ctx.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
1691
- ref_key: "tMagicTable",
1692
- ref: tMagicTable,
1693
- style: { "width": "100%" },
1694
- "row-key": _ctx.config.rowKey || "id",
1695
- data: data.value,
1696
- lastData: lastData.value,
1697
- border: _ctx.config.border,
1698
- "max-height": _ctx.config.maxHeight,
1699
- "default-expand-all": true,
1700
- key: updateKey.value,
1701
- onSelect: selectHandle,
1702
- onSortChange: sortChange
1703
- }, {
1704
- default: withCtx(() => [
1705
- _ctx.config.itemExtra ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1706
- key: 0,
1707
- fixed: "left",
1708
- width: "30",
1709
- type: "expand"
1710
- }, {
1711
- default: withCtx((scope) => [
1712
- createElementVNode("span", {
1713
- innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
1714
- class: "m-form-tip"
1715
- }, null, 8, _hoisted_3)
1716
- ]),
1717
- _: 1
1718
- })) : createCommentVNode("", true),
1719
- createVNode(unref(TMagicTableColumn), {
1720
- label: "操作",
1721
- width: _ctx.config.operateColWidth || 55,
1722
- align: "center",
1723
- fixed: _ctx.config.fixed === false ? void 0 : "left"
1724
- }, {
1725
- default: withCtx((scope) => [
1726
- renderSlot(_ctx.$slots, "operateCol", { scope }),
1727
- withDirectives(createVNode(unref(TMagicIcon), {
1728
- class: "m-table-delete-icon",
1729
- onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1730
- }, {
1731
- default: withCtx(() => [
1732
- createVNode(unref(Delete))
1733
- ]),
1734
- _: 2
1735
- }, 1032, ["onClick"]), [
1736
- [vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
1737
- ])
1738
- ]),
1739
- _: 3
1740
- }, 8, ["width", "fixed"]),
1741
- _ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1742
- key: 1,
1743
- label: "排序",
1744
- width: "60"
1745
- }, {
1746
- default: withCtx((scope) => [
1747
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== 0 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1748
- key: 0,
1749
- content: "点击上移,双击置顶",
1750
- placement: "top"
1751
- }, {
1752
- default: withCtx(() => [
1753
- createVNode(unref(TMagicButton), {
1754
- plain: "",
1755
- size: "small",
1756
- type: "primary",
1757
- icon: unref(ArrowUp),
1758
- disabled: _ctx.disabled,
1759
- text: "",
1760
- onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1761
- onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1762
- }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1763
- ]),
1764
- _: 2
1765
- }, 1024)) : createCommentVNode("", true),
1766
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1767
- key: 1,
1768
- content: "点击下移,双击置底",
1769
- placement: "top"
1770
- }, {
1771
- default: withCtx(() => [
1772
- createVNode(unref(TMagicButton), {
1773
- plain: "",
1774
- size: "small",
1775
- type: "primary",
1776
- icon: unref(ArrowDown),
1777
- disabled: _ctx.disabled,
1778
- text: "",
1779
- onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1780
- onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1781
- }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1782
- ]),
1783
- _: 2
1784
- }, 1024)) : createCommentVNode("", true)
1785
- ]),
1786
- _: 1
1787
- })) : createCommentVNode("", true),
1788
- selection.value ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1789
- key: 2,
1790
- align: "center",
1791
- "header-align": "center",
1792
- type: "selection",
1793
- width: "45"
1794
- })) : createCommentVNode("", true),
1795
- _ctx.showIndex && _ctx.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1796
- key: 3,
1797
- width: "60",
1798
- label: "序号"
1799
- }, {
1800
- default: withCtx((scope) => [
1801
- createTextVNode(toDisplayString(scope.$index + 1 + pagecontext.value * pagesize.value), 1)
1802
- ]),
1803
- _: 1
1804
- })) : createCommentVNode("", true),
1805
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.items, (column, index) => {
1806
- return openBlock(), createElementBlock(Fragment, null, [
1807
- column.type !== "hidden" && display$1(column.display) ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1808
- prop: column.name,
1809
- width: column.width,
1810
- label: column.label,
1811
- sortable: column.sortable,
1812
- "sort-orders": ["ascending", "descending"],
1813
- key: column[unref(mForm)?.keyProp || "__key"] ?? index,
1814
- "class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
1815
- }, {
1816
- default: withCtx((scope) => [
1817
- scope.$index > -1 ? (openBlock(), createBlock(_sfc_main$x, {
1818
- key: 0,
1819
- labelWidth: "0",
1820
- disabled: _ctx.disabled,
1821
- prop: getProp(scope.$index),
1822
- rules: column.rules,
1823
- config: makeConfig(column, scope.row),
1824
- model: scope.row,
1825
- lastValues: lastData.value[scope.$index],
1826
- "is-compare": _ctx.isCompare,
1827
- size: _ctx.size,
1828
- onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", _ctx.model[modelName.value])),
1829
- onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
1830
- }, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : createCommentVNode("", true)
1831
- ]),
1832
- _: 2
1833
- }, 1032, ["prop", "width", "label", "sortable", "class-name"])) : createCommentVNode("", true)
1834
- ], 64);
1835
- }), 256))
1836
- ]),
1837
- _: 3
1838
- }, 8, ["row-key", "data", "lastData", "border", "max-height"])) : createCommentVNode("", true)
1839
- ]),
1840
- _: 3
1841
- }, 8, ["disabled"]),
1842
- renderSlot(_ctx.$slots, "default"),
1843
- addable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1844
- key: 0,
1845
- size: "small",
1846
- type: "primary",
1847
- disabled: _ctx.disabled,
1848
- plain: "",
1849
- onClick: _cache[2] || (_cache[2] = ($event) => newHandler())
1850
- }, {
1851
- default: withCtx(() => [
1852
- createTextVNode("新增一行")
1853
- ]),
1854
- _: 1
1855
- }, 8, ["disabled"])) : createCommentVNode("", true),
1856
- createTextVNode("   "),
1857
- _ctx.enableToggleMode && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
1858
- key: 1,
1859
- icon: unref(Grid),
1860
- size: "small",
1861
- type: "primary",
1862
- onClick: toggleMode
1863
- }, {
1864
- default: withCtx(() => [
1865
- createTextVNode("展开配置")
1866
- ]),
1867
- _: 1
1868
- }, 8, ["icon"])) : createCommentVNode("", true),
1869
- _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
1870
- key: 2,
1871
- icon: unref(FullScreen),
1872
- size: "small",
1873
- type: "primary",
1874
- onClick: toggleFullscreen
1875
- }, {
1876
- default: withCtx(() => [
1877
- createTextVNode(toDisplayString(isFullscreen.value ? "退出全屏" : "全屏编辑"), 1)
1878
- ]),
1879
- _: 1
1880
- }, 8, ["icon"])) : createCommentVNode("", true),
1881
- importable.value ? (openBlock(), createBlock(unref(TMagicUpload), {
1882
- key: 3,
1883
- style: { "display": "inline-block" },
1884
- ref_key: "excelBtn",
1885
- ref: excelBtn,
1886
- action: "/noop",
1887
- disabled: _ctx.disabled,
1888
- "on-change": excelHandler,
1889
- "auto-upload": false
1890
- }, {
1891
- default: withCtx(() => [
1892
- createVNode(unref(TMagicButton), {
1893
- size: "small",
1894
- type: "success",
1895
- disabled: _ctx.disabled,
1896
- plain: ""
1897
- }, {
1898
- default: withCtx(() => [
1899
- createTextVNode("导入EXCEL")
1900
- ]),
1901
- _: 1
1902
- }, 8, ["disabled"])
1903
- ]),
1904
- _: 1
1905
- }, 8, ["disabled"])) : createCommentVNode("", true),
1906
- createTextVNode("  "),
1907
- importable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1908
- key: 4,
1909
- size: "small",
1910
- type: "warning",
1911
- disabled: _ctx.disabled,
1912
- plain: "",
1913
- onClick: _cache[3] || (_cache[3] = ($event) => clearHandler())
1914
- }, {
1915
- default: withCtx(() => [
1916
- createTextVNode("清空")
1917
- ]),
1918
- _: 1
1919
- }, 8, ["disabled"])) : createCommentVNode("", true)
1920
- ]),
1921
- _ctx.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_4, [
1682
+ createVNode(unref(TMagicTooltip), {
1683
+ content: "拖拽可排序",
1684
+ placement: "left-start",
1685
+ disabled: _ctx.config.dropSort !== true
1686
+ }, {
1687
+ default: withCtx(() => [
1688
+ _ctx.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
1689
+ ref_key: "tMagicTable",
1690
+ ref: tMagicTable,
1691
+ style: { "width": "100%" },
1692
+ "row-key": _ctx.config.rowKey || "id",
1693
+ data: data.value,
1694
+ lastData: lastData.value,
1695
+ border: _ctx.config.border,
1696
+ "max-height": _ctx.config.maxHeight,
1697
+ "default-expand-all": true,
1698
+ key: updateKey.value,
1699
+ onSelect: selectHandle,
1700
+ onSortChange: sortChange
1701
+ }, {
1702
+ default: withCtx(() => [
1703
+ _ctx.config.itemExtra ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1704
+ key: 0,
1705
+ fixed: "left",
1706
+ width: "30",
1707
+ type: "expand"
1708
+ }, {
1709
+ default: withCtx((scope) => [
1710
+ createElementVNode("span", {
1711
+ innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
1712
+ class: "m-form-tip"
1713
+ }, null, 8, _hoisted_2$2)
1714
+ ]),
1715
+ _: 1
1716
+ })) : createCommentVNode("", true),
1717
+ createVNode(unref(TMagicTableColumn), {
1718
+ label: "操作",
1719
+ width: _ctx.config.operateColWidth || 55,
1720
+ align: "center",
1721
+ fixed: _ctx.config.fixed === false ? void 0 : "left"
1722
+ }, {
1723
+ default: withCtx((scope) => [
1724
+ renderSlot(_ctx.$slots, "operateCol", { scope }),
1725
+ withDirectives(createVNode(unref(TMagicIcon), {
1726
+ class: "m-table-delete-icon",
1727
+ onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1728
+ }, {
1729
+ default: withCtx(() => [
1730
+ createVNode(unref(Delete))
1731
+ ]),
1732
+ _: 2
1733
+ }, 1032, ["onClick"]), [
1734
+ [vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
1735
+ ])
1736
+ ]),
1737
+ _: 3
1738
+ }, 8, ["width", "fixed"]),
1739
+ _ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1740
+ key: 1,
1741
+ label: "排序",
1742
+ width: "60"
1743
+ }, {
1744
+ default: withCtx((scope) => [
1745
+ scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== 0 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1746
+ key: 0,
1747
+ content: "点击上移,双击置顶",
1748
+ placement: "top"
1749
+ }, {
1750
+ default: withCtx(() => [
1751
+ createVNode(unref(TMagicButton), {
1752
+ plain: "",
1753
+ size: "small",
1754
+ type: "primary",
1755
+ icon: unref(ArrowUp),
1756
+ disabled: _ctx.disabled,
1757
+ text: "",
1758
+ onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1759
+ onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1760
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1761
+ ]),
1762
+ _: 2
1763
+ }, 1024)) : createCommentVNode("", true),
1764
+ scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1765
+ key: 1,
1766
+ content: "点击下移,双击置底",
1767
+ placement: "top"
1768
+ }, {
1769
+ default: withCtx(() => [
1770
+ createVNode(unref(TMagicButton), {
1771
+ plain: "",
1772
+ size: "small",
1773
+ type: "primary",
1774
+ icon: unref(ArrowDown),
1775
+ disabled: _ctx.disabled,
1776
+ text: "",
1777
+ onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1778
+ onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1779
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1780
+ ]),
1781
+ _: 2
1782
+ }, 1024)) : createCommentVNode("", true)
1783
+ ]),
1784
+ _: 1
1785
+ })) : createCommentVNode("", true),
1786
+ selection.value ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1787
+ key: 2,
1788
+ align: "center",
1789
+ "header-align": "center",
1790
+ type: "selection",
1791
+ width: "45"
1792
+ })) : createCommentVNode("", true),
1793
+ _ctx.showIndex && _ctx.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1794
+ key: 3,
1795
+ width: "60",
1796
+ label: "序号"
1797
+ }, {
1798
+ default: withCtx((scope) => [
1799
+ createTextVNode(toDisplayString(scope.$index + 1 + pagecontext.value * pagesize.value), 1)
1800
+ ]),
1801
+ _: 1
1802
+ })) : createCommentVNode("", true),
1803
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.items, (column, index) => {
1804
+ return openBlock(), createElementBlock(Fragment, null, [
1805
+ column.type !== "hidden" && display$1(column.display) ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1806
+ prop: column.name,
1807
+ width: column.width,
1808
+ label: column.label,
1809
+ sortable: column.sortable,
1810
+ "sort-orders": ["ascending", "descending"],
1811
+ key: column[unref(mForm)?.keyProp || "__key"] ?? index,
1812
+ "class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
1813
+ }, {
1814
+ default: withCtx((scope) => [
1815
+ scope.$index > -1 ? (openBlock(), createBlock(_sfc_main$x, {
1816
+ key: 0,
1817
+ labelWidth: "0",
1818
+ disabled: _ctx.disabled,
1819
+ prop: getProp(scope.$index),
1820
+ rules: column.rules,
1821
+ config: makeConfig(column, scope.row),
1822
+ model: scope.row,
1823
+ lastValues: lastData.value[scope.$index],
1824
+ "is-compare": _ctx.isCompare,
1825
+ size: _ctx.size,
1826
+ onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", _ctx.model[modelName.value])),
1827
+ onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
1828
+ }, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : createCommentVNode("", true)
1829
+ ]),
1830
+ _: 2
1831
+ }, 1032, ["prop", "width", "label", "sortable", "class-name"])) : createCommentVNode("", true)
1832
+ ], 64);
1833
+ }), 256))
1834
+ ]),
1835
+ _: 3
1836
+ }, 8, ["row-key", "data", "lastData", "border", "max-height"])) : createCommentVNode("", true)
1837
+ ]),
1838
+ _: 3
1839
+ }, 8, ["disabled"]),
1840
+ renderSlot(_ctx.$slots, "default"),
1841
+ addable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1842
+ key: 1,
1843
+ size: "small",
1844
+ type: "primary",
1845
+ disabled: _ctx.disabled,
1846
+ plain: "",
1847
+ onClick: _cache[2] || (_cache[2] = ($event) => newHandler())
1848
+ }, {
1849
+ default: withCtx(() => [
1850
+ createTextVNode("新增一行")
1851
+ ]),
1852
+ _: 1
1853
+ }, 8, ["disabled"])) : createCommentVNode("", true),
1854
+ createTextVNode("   "),
1855
+ _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
1856
+ key: 2,
1857
+ icon: unref(Grid),
1858
+ size: "small",
1859
+ type: "primary",
1860
+ onClick: toggleMode
1861
+ }, {
1862
+ default: withCtx(() => [
1863
+ createTextVNode("展开配置")
1864
+ ]),
1865
+ _: 1
1866
+ }, 8, ["icon"])) : createCommentVNode("", true),
1867
+ _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
1868
+ key: 3,
1869
+ icon: unref(FullScreen),
1870
+ size: "small",
1871
+ type: "primary",
1872
+ onClick: toggleFullscreen
1873
+ }, {
1874
+ default: withCtx(() => [
1875
+ createTextVNode(toDisplayString(isFullscreen.value ? "退出全屏" : "全屏编辑"), 1)
1876
+ ]),
1877
+ _: 1
1878
+ }, 8, ["icon"])) : createCommentVNode("", true),
1879
+ importable.value ? (openBlock(), createBlock(unref(TMagicUpload), {
1880
+ key: 4,
1881
+ style: { "display": "inline-block" },
1882
+ ref_key: "excelBtn",
1883
+ ref: excelBtn,
1884
+ action: "/noop",
1885
+ disabled: _ctx.disabled,
1886
+ "on-change": excelHandler,
1887
+ "auto-upload": false
1888
+ }, {
1889
+ default: withCtx(() => [
1890
+ createVNode(unref(TMagicButton), {
1891
+ size: "small",
1892
+ type: "success",
1893
+ disabled: _ctx.disabled,
1894
+ plain: ""
1895
+ }, {
1896
+ default: withCtx(() => [
1897
+ createTextVNode("导入EXCEL")
1898
+ ]),
1899
+ _: 1
1900
+ }, 8, ["disabled"])
1901
+ ]),
1902
+ _: 1
1903
+ }, 8, ["disabled"])) : createCommentVNode("", true),
1904
+ createTextVNode("  "),
1905
+ importable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1906
+ key: 5,
1907
+ size: "small",
1908
+ type: "warning",
1909
+ disabled: _ctx.disabled,
1910
+ plain: "",
1911
+ onClick: _cache[3] || (_cache[3] = ($event) => clearHandler())
1912
+ }, {
1913
+ default: withCtx(() => [
1914
+ createTextVNode("清空")
1915
+ ]),
1916
+ _: 1
1917
+ }, 8, ["disabled"])) : createCommentVNode("", true),
1918
+ _ctx.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_3, [
1922
1919
  createVNode(unref(TMagicPagination), {
1923
1920
  layout: "total, sizes, prev, pager, next, jumper",
1924
1921
  "hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,