@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.
- package/dist/tmagic-form.js +248 -251
- package/dist/tmagic-form.js.map +1 -1
- package/dist/tmagic-form.umd.cjs +248 -251
- package/dist/tmagic-form.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/containers/Table.vue +148 -150
package/dist/tmagic-form.js
CHANGED
|
@@ -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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
898
|
+
const _hoisted_4$1 = /* @__PURE__ */ createElementVNode("span", { class: "el-table__empty-text" }, "暂无数据", -1);
|
|
899
899
|
const _hoisted_5$1 = [
|
|
900
|
-
_hoisted_4$
|
|
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
|
|
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
|
|
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 =
|
|
1321
|
-
const _hoisted_3 =
|
|
1322
|
-
|
|
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
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
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,
|