@tmagic/form 1.3.8 → 1.3.9

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.
@@ -1691,272 +1691,274 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1691
1691
  toggleRowSelection
1692
1692
  });
1693
1693
  return (_ctx, _cache) => {
1694
- return openBlock(), createBlock(Teleport, {
1695
- to: "body",
1696
- disabled: !isFullscreen.value
1697
- }, [
1698
- createElementVNode("div", {
1699
- ref_key: "mTable",
1700
- ref: mTable,
1701
- class: normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
1694
+ return openBlock(), createElementBlock("div", null, [
1695
+ (openBlock(), createBlock(Teleport, {
1696
+ to: "body",
1697
+ disabled: !isFullscreen.value
1702
1698
  }, [
1703
- _ctx.config.extra ? (openBlock(), createElementBlock("span", {
1704
- key: 0,
1705
- style: { "color": "rgba(0, 0, 0, 0.45)" },
1706
- innerHTML: _ctx.config.extra
1707
- }, null, 8, _hoisted_1$9)) : createCommentVNode("", true),
1708
- createVNode(unref(TMagicTooltip), {
1709
- content: "拖拽可排序",
1710
- placement: "left-start",
1711
- disabled: _ctx.config.dropSort !== true
1712
- }, {
1713
- default: withCtx(() => [
1714
- _ctx.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
1715
- ref_key: "tMagicTable",
1716
- ref: tMagicTable,
1717
- style: { "width": "100%" },
1718
- "row-key": _ctx.config.rowKey || "id",
1719
- data: data.value,
1720
- lastData: lastData.value,
1721
- border: _ctx.config.border,
1722
- "max-height": _ctx.config.maxHeight,
1723
- "default-expand-all": true,
1724
- key: updateKey.value,
1725
- onSelect: selectHandle,
1726
- onSortChange: sortChange
1727
- }, {
1728
- default: withCtx(() => [
1729
- _ctx.config.itemExtra ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1730
- key: 0,
1731
- fixed: "left",
1732
- width: "30",
1733
- type: "expand"
1734
- }, {
1735
- default: withCtx((scope) => [
1736
- createElementVNode("span", {
1737
- innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
1738
- class: "m-form-tip"
1739
- }, null, 8, _hoisted_2$3)
1740
- ]),
1741
- _: 1
1742
- })) : createCommentVNode("", true),
1743
- createVNode(unref(TMagicTableColumn), {
1744
- label: "操作",
1745
- width: _ctx.config.operateColWidth || 55,
1746
- align: "center",
1747
- fixed: _ctx.config.fixed === false ? void 0 : "left"
1748
- }, {
1749
- default: withCtx((scope) => [
1750
- renderSlot(_ctx.$slots, "operateCol", { scope }),
1751
- withDirectives(createVNode(unref(TMagicIcon), {
1752
- class: "m-table-delete-icon",
1753
- onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1754
- }, {
1755
- default: withCtx(() => [
1756
- createVNode(unref(Delete))
1757
- ]),
1758
- _: 2
1759
- }, 1032, ["onClick"]), [
1760
- [vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
1761
- ])
1762
- ]),
1763
- _: 3
1764
- }, 8, ["width", "fixed"]),
1765
- _ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1766
- key: 1,
1767
- label: "排序",
1768
- width: "60"
1769
- }, {
1770
- default: withCtx((scope) => [
1771
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== 0 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1772
- key: 0,
1773
- content: "点击上移,双击置顶",
1774
- placement: "top"
1775
- }, {
1776
- default: withCtx(() => [
1777
- createVNode(unref(TMagicButton), {
1778
- plain: "",
1779
- size: "small",
1780
- type: "primary",
1781
- icon: unref(ArrowUp),
1782
- disabled: _ctx.disabled,
1783
- text: "",
1784
- onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1785
- onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1786
- }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1787
- ]),
1788
- _: 2
1789
- }, 1024)) : createCommentVNode("", true),
1790
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1791
- key: 1,
1792
- content: "点击下移,双击置底",
1793
- placement: "top"
1794
- }, {
1795
- default: withCtx(() => [
1796
- createVNode(unref(TMagicButton), {
1797
- plain: "",
1798
- size: "small",
1799
- type: "primary",
1800
- icon: unref(ArrowDown),
1801
- disabled: _ctx.disabled,
1802
- text: "",
1803
- onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1804
- onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1805
- }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1806
- ]),
1807
- _: 2
1808
- }, 1024)) : createCommentVNode("", true)
1809
- ]),
1810
- _: 1
1811
- })) : createCommentVNode("", true),
1812
- selection.value ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1813
- key: 2,
1814
- align: "center",
1815
- "header-align": "center",
1816
- type: "selection",
1817
- width: "45"
1818
- })) : createCommentVNode("", true),
1819
- _ctx.showIndex && _ctx.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1820
- key: 3,
1821
- width: "60",
1822
- label: "序号"
1823
- }, {
1824
- default: withCtx((scope) => [
1825
- createTextVNode(toDisplayString(scope.$index + 1 + pagecontext.value * pagesize.value), 1)
1826
- ]),
1827
- _: 1
1828
- })) : createCommentVNode("", true),
1829
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.items, (column, index) => {
1830
- return openBlock(), createElementBlock(Fragment, null, [
1831
- column.type !== "hidden" && display$1(column.display) ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1832
- prop: column.name,
1833
- width: column.width,
1834
- label: column.label,
1835
- sortable: column.sortable,
1836
- "sort-orders": ["ascending", "descending"],
1837
- key: column[unref(mForm)?.keyProp || "__key"] ?? index,
1838
- "class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
1839
- }, {
1840
- default: withCtx((scope) => [
1841
- scope.$index > -1 ? (openBlock(), createBlock(_sfc_main$z, {
1842
- key: 0,
1843
- labelWidth: "0",
1844
- disabled: _ctx.disabled,
1845
- prop: getProp(scope.$index),
1846
- rules: column.rules,
1847
- config: makeConfig(column, scope.row),
1848
- model: scope.row,
1849
- lastValues: lastData.value[scope.$index],
1850
- "is-compare": _ctx.isCompare,
1851
- size: _ctx.size,
1852
- onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", _ctx.model[modelName.value])),
1853
- onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
1854
- }, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : createCommentVNode("", true)
1855
- ]),
1856
- _: 2
1857
- }, 1032, ["prop", "width", "label", "sortable", "class-name"])) : createCommentVNode("", true)
1858
- ], 64);
1859
- }), 256))
1860
- ]),
1861
- _: 3
1862
- }, 8, ["row-key", "data", "lastData", "border", "max-height"])) : createCommentVNode("", true)
1863
- ]),
1864
- _: 3
1865
- }, 8, ["disabled"]),
1866
- renderSlot(_ctx.$slots, "default"),
1867
- createElementVNode("div", _hoisted_3, [
1868
- addable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1699
+ createElementVNode("div", {
1700
+ ref_key: "mTable",
1701
+ ref: mTable,
1702
+ class: normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
1703
+ }, [
1704
+ _ctx.config.extra ? (openBlock(), createElementBlock("span", {
1869
1705
  key: 0,
1870
- size: "small",
1871
- type: "primary",
1872
- disabled: _ctx.disabled,
1873
- plain: "",
1874
- onClick: _cache[2] || (_cache[2] = ($event) => newHandler())
1706
+ style: { "color": "rgba(0, 0, 0, 0.45)" },
1707
+ innerHTML: _ctx.config.extra
1708
+ }, null, 8, _hoisted_1$9)) : createCommentVNode("", true),
1709
+ createVNode(unref(TMagicTooltip), {
1710
+ content: "拖拽可排序",
1711
+ placement: "left-start",
1712
+ disabled: _ctx.config.dropSort !== true
1875
1713
  }, {
1876
1714
  default: withCtx(() => [
1877
- createTextVNode("新增一行")
1715
+ _ctx.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
1716
+ ref_key: "tMagicTable",
1717
+ ref: tMagicTable,
1718
+ style: { "width": "100%" },
1719
+ "row-key": _ctx.config.rowKey || "id",
1720
+ data: data.value,
1721
+ lastData: lastData.value,
1722
+ border: _ctx.config.border,
1723
+ "max-height": _ctx.config.maxHeight,
1724
+ "default-expand-all": true,
1725
+ key: updateKey.value,
1726
+ onSelect: selectHandle,
1727
+ onSortChange: sortChange
1728
+ }, {
1729
+ default: withCtx(() => [
1730
+ _ctx.config.itemExtra ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1731
+ key: 0,
1732
+ fixed: "left",
1733
+ width: "30",
1734
+ type: "expand"
1735
+ }, {
1736
+ default: withCtx((scope) => [
1737
+ createElementVNode("span", {
1738
+ innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
1739
+ class: "m-form-tip"
1740
+ }, null, 8, _hoisted_2$3)
1741
+ ]),
1742
+ _: 1
1743
+ })) : createCommentVNode("", true),
1744
+ createVNode(unref(TMagicTableColumn), {
1745
+ label: "操作",
1746
+ width: _ctx.config.operateColWidth || 55,
1747
+ align: "center",
1748
+ fixed: _ctx.config.fixed === false ? void 0 : "left"
1749
+ }, {
1750
+ default: withCtx((scope) => [
1751
+ renderSlot(_ctx.$slots, "operateCol", { scope }),
1752
+ withDirectives(createVNode(unref(TMagicIcon), {
1753
+ class: "m-table-delete-icon",
1754
+ onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1755
+ }, {
1756
+ default: withCtx(() => [
1757
+ createVNode(unref(Delete))
1758
+ ]),
1759
+ _: 2
1760
+ }, 1032, ["onClick"]), [
1761
+ [vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
1762
+ ])
1763
+ ]),
1764
+ _: 3
1765
+ }, 8, ["width", "fixed"]),
1766
+ _ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1767
+ key: 1,
1768
+ label: "排序",
1769
+ width: "60"
1770
+ }, {
1771
+ default: withCtx((scope) => [
1772
+ scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== 0 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1773
+ key: 0,
1774
+ content: "点击上移,双击置顶",
1775
+ placement: "top"
1776
+ }, {
1777
+ default: withCtx(() => [
1778
+ createVNode(unref(TMagicButton), {
1779
+ plain: "",
1780
+ size: "small",
1781
+ type: "primary",
1782
+ icon: unref(ArrowUp),
1783
+ disabled: _ctx.disabled,
1784
+ text: "",
1785
+ onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1786
+ onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1787
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1788
+ ]),
1789
+ _: 2
1790
+ }, 1024)) : createCommentVNode("", true),
1791
+ scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (openBlock(), createBlock(unref(TMagicTooltip), {
1792
+ key: 1,
1793
+ content: "点击下移,双击置底",
1794
+ placement: "top"
1795
+ }, {
1796
+ default: withCtx(() => [
1797
+ createVNode(unref(TMagicButton), {
1798
+ plain: "",
1799
+ size: "small",
1800
+ type: "primary",
1801
+ icon: unref(ArrowDown),
1802
+ disabled: _ctx.disabled,
1803
+ text: "",
1804
+ onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1805
+ onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1806
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1807
+ ]),
1808
+ _: 2
1809
+ }, 1024)) : createCommentVNode("", true)
1810
+ ]),
1811
+ _: 1
1812
+ })) : createCommentVNode("", true),
1813
+ selection.value ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1814
+ key: 2,
1815
+ align: "center",
1816
+ "header-align": "center",
1817
+ type: "selection",
1818
+ width: "45"
1819
+ })) : createCommentVNode("", true),
1820
+ _ctx.showIndex && _ctx.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1821
+ key: 3,
1822
+ width: "60",
1823
+ label: "序号"
1824
+ }, {
1825
+ default: withCtx((scope) => [
1826
+ createTextVNode(toDisplayString(scope.$index + 1 + pagecontext.value * pagesize.value), 1)
1827
+ ]),
1828
+ _: 1
1829
+ })) : createCommentVNode("", true),
1830
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.items, (column, index) => {
1831
+ return openBlock(), createElementBlock(Fragment, null, [
1832
+ column.type !== "hidden" && display$1(column.display) ? (openBlock(), createBlock(unref(TMagicTableColumn), {
1833
+ prop: column.name,
1834
+ width: column.width,
1835
+ label: column.label,
1836
+ sortable: column.sortable,
1837
+ "sort-orders": ["ascending", "descending"],
1838
+ key: column[unref(mForm)?.keyProp || "__key"] ?? index,
1839
+ "class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
1840
+ }, {
1841
+ default: withCtx((scope) => [
1842
+ scope.$index > -1 ? (openBlock(), createBlock(_sfc_main$z, {
1843
+ key: 0,
1844
+ labelWidth: "0",
1845
+ disabled: _ctx.disabled,
1846
+ prop: getProp(scope.$index),
1847
+ rules: column.rules,
1848
+ config: makeConfig(column, scope.row),
1849
+ model: scope.row,
1850
+ lastValues: lastData.value[scope.$index],
1851
+ "is-compare": _ctx.isCompare,
1852
+ size: _ctx.size,
1853
+ onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", _ctx.model[modelName.value])),
1854
+ onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
1855
+ }, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : createCommentVNode("", true)
1856
+ ]),
1857
+ _: 2
1858
+ }, 1032, ["prop", "width", "label", "sortable", "class-name"])) : createCommentVNode("", true)
1859
+ ], 64);
1860
+ }), 256))
1861
+ ]),
1862
+ _: 3
1863
+ }, 8, ["row-key", "data", "lastData", "border", "max-height"])) : createCommentVNode("", true)
1878
1864
  ]),
1879
- _: 1
1880
- }, 8, ["disabled"])) : createCommentVNode("", true),
1881
- createElementVNode("div", _hoisted_4, [
1882
- _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
1865
+ _: 3
1866
+ }, 8, ["disabled"]),
1867
+ renderSlot(_ctx.$slots, "default"),
1868
+ createElementVNode("div", _hoisted_3, [
1869
+ addable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1883
1870
  key: 0,
1884
- icon: unref(Grid),
1885
1871
  size: "small",
1886
1872
  type: "primary",
1887
- onClick: toggleMode
1888
- }, {
1889
- default: withCtx(() => [
1890
- createTextVNode("展开配置")
1891
- ]),
1892
- _: 1
1893
- }, 8, ["icon"])) : createCommentVNode("", true),
1894
- _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
1895
- key: 1,
1896
- icon: unref(FullScreen),
1897
- size: "small",
1898
- type: "primary",
1899
- onClick: toggleFullscreen
1900
- }, {
1901
- default: withCtx(() => [
1902
- createTextVNode(toDisplayString(isFullscreen.value ? "退出全屏" : "全屏编辑"), 1)
1903
- ]),
1904
- _: 1
1905
- }, 8, ["icon"])) : createCommentVNode("", true),
1906
- importable.value ? (openBlock(), createBlock(unref(TMagicUpload), {
1907
- key: 2,
1908
- style: { "display": "inline-block" },
1909
- ref_key: "excelBtn",
1910
- ref: excelBtn,
1911
- action: "/noop",
1912
- disabled: _ctx.disabled,
1913
- "on-change": excelHandler,
1914
- "auto-upload": false
1915
- }, {
1916
- default: withCtx(() => [
1917
- createVNode(unref(TMagicButton), {
1918
- size: "small",
1919
- type: "success",
1920
- disabled: _ctx.disabled,
1921
- plain: ""
1922
- }, {
1923
- default: withCtx(() => [
1924
- createTextVNode("导入EXCEL")
1925
- ]),
1926
- _: 1
1927
- }, 8, ["disabled"])
1928
- ]),
1929
- _: 1
1930
- }, 8, ["disabled"])) : createCommentVNode("", true),
1931
- importable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1932
- key: 3,
1933
- size: "small",
1934
- type: "warning",
1935
1873
  disabled: _ctx.disabled,
1936
1874
  plain: "",
1937
- onClick: _cache[3] || (_cache[3] = ($event) => clearHandler())
1875
+ onClick: _cache[2] || (_cache[2] = ($event) => newHandler())
1938
1876
  }, {
1939
1877
  default: withCtx(() => [
1940
- createTextVNode("清空")
1878
+ createTextVNode("新增一行")
1941
1879
  ]),
1942
1880
  _: 1
1943
- }, 8, ["disabled"])) : createCommentVNode("", true)
1944
- ])
1945
- ]),
1946
- _ctx.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_5, [
1947
- createVNode(unref(TMagicPagination), {
1948
- layout: "total, sizes, prev, pager, next, jumper",
1949
- "hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,
1950
- "current-page": pagecontext.value + 1,
1951
- "page-sizes": [pagesize.value, 60, 120, 300],
1952
- "page-size": pagesize.value,
1953
- total: _ctx.model[modelName.value].length,
1954
- onSizeChange: handleSizeChange,
1955
- onCurrentChange: handleCurrentChange
1956
- }, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
1957
- ])) : createCommentVNode("", true)
1958
- ], 2)
1959
- ], 8, ["disabled"]);
1881
+ }, 8, ["disabled"])) : createCommentVNode("", true),
1882
+ createElementVNode("div", _hoisted_4, [
1883
+ _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
1884
+ key: 0,
1885
+ icon: unref(Grid),
1886
+ size: "small",
1887
+ type: "primary",
1888
+ onClick: toggleMode
1889
+ }, {
1890
+ default: withCtx(() => [
1891
+ createTextVNode("展开配置")
1892
+ ]),
1893
+ _: 1
1894
+ }, 8, ["icon"])) : createCommentVNode("", true),
1895
+ _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
1896
+ key: 1,
1897
+ icon: unref(FullScreen),
1898
+ size: "small",
1899
+ type: "primary",
1900
+ onClick: toggleFullscreen
1901
+ }, {
1902
+ default: withCtx(() => [
1903
+ createTextVNode(toDisplayString(isFullscreen.value ? "退出全屏" : "全屏编辑"), 1)
1904
+ ]),
1905
+ _: 1
1906
+ }, 8, ["icon"])) : createCommentVNode("", true),
1907
+ importable.value ? (openBlock(), createBlock(unref(TMagicUpload), {
1908
+ key: 2,
1909
+ style: { "display": "inline-block" },
1910
+ ref_key: "excelBtn",
1911
+ ref: excelBtn,
1912
+ action: "/noop",
1913
+ disabled: _ctx.disabled,
1914
+ "on-change": excelHandler,
1915
+ "auto-upload": false
1916
+ }, {
1917
+ default: withCtx(() => [
1918
+ createVNode(unref(TMagicButton), {
1919
+ size: "small",
1920
+ type: "success",
1921
+ disabled: _ctx.disabled,
1922
+ plain: ""
1923
+ }, {
1924
+ default: withCtx(() => [
1925
+ createTextVNode("导入EXCEL")
1926
+ ]),
1927
+ _: 1
1928
+ }, 8, ["disabled"])
1929
+ ]),
1930
+ _: 1
1931
+ }, 8, ["disabled"])) : createCommentVNode("", true),
1932
+ importable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1933
+ key: 3,
1934
+ size: "small",
1935
+ type: "warning",
1936
+ disabled: _ctx.disabled,
1937
+ plain: "",
1938
+ onClick: _cache[3] || (_cache[3] = ($event) => clearHandler())
1939
+ }, {
1940
+ default: withCtx(() => [
1941
+ createTextVNode("清空")
1942
+ ]),
1943
+ _: 1
1944
+ }, 8, ["disabled"])) : createCommentVNode("", true)
1945
+ ])
1946
+ ]),
1947
+ _ctx.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_5, [
1948
+ createVNode(unref(TMagicPagination), {
1949
+ layout: "total, sizes, prev, pager, next, jumper",
1950
+ "hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,
1951
+ "current-page": pagecontext.value + 1,
1952
+ "page-sizes": [pagesize.value, 60, 120, 300],
1953
+ "page-size": pagesize.value,
1954
+ total: _ctx.model[modelName.value].length,
1955
+ onSizeChange: handleSizeChange,
1956
+ onCurrentChange: handleCurrentChange
1957
+ }, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
1958
+ ])) : createCommentVNode("", true)
1959
+ ], 2)
1960
+ ], 8, ["disabled"]))
1961
+ ]);
1960
1962
  };
1961
1963
  }
1962
1964
  });