vxe-table 4.7.1 → 4.7.4
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/es/colgroup/index.js +1 -1
- package/es/column/index.js +1 -1
- package/es/components.js +3 -1
- package/es/grid/index.js +1 -1
- package/es/grid/src/grid.js +3 -2
- package/es/index.esm.js +2 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/index.js +1 -1
- package/es/table/module/custom/hook.js +2 -2
- package/es/table/module/custom/panel.js +2 -1
- package/es/table/module/edit/hook.js +2 -1
- package/es/table/module/export/export-panel.js +2 -1
- package/es/table/module/export/hook.js +2 -1
- package/es/table/module/export/import-panel.js +2 -1
- package/es/table/module/filter/hook.js +2 -1
- package/es/table/module/filter/panel.js +2 -1
- package/es/table/module/keyboard/hook.js +2 -1
- package/es/table/module/menu/hook.js +2 -1
- package/es/table/module/validator/hook.js +2 -1
- package/es/table/render/index.js +2 -1
- package/es/table/src/body.js +2 -1
- package/es/table/src/cell.js +2 -1
- package/es/table/src/columnInfo.js +2 -1
- package/es/table/src/props.js +2 -1
- package/es/table/src/table.js +3 -2
- package/es/table/style.css +4 -2
- package/es/table/style.min.css +1 -1
- package/es/toolbar/index.js +1 -1
- package/es/toolbar/src/toolbar.js +3 -2
- package/es/ui/index.js +6 -4
- package/es/ui/src/utils.js +3 -3
- package/es/vxe-table/style.css +4 -2
- package/es/vxe-table/style.min.css +1 -1
- package/lib/colgroup/index.js +4 -4
- package/lib/colgroup/index.min.js +1 -1
- package/lib/column/index.js +4 -4
- package/lib/column/index.min.js +1 -1
- package/lib/components.js +10 -2
- package/lib/components.min.js +1 -1
- package/lib/grid/index.js +3 -3
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +59 -48
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.common.js +5 -5
- package/lib/index.umd.js +1017 -905
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/index.js +3 -3
- package/lib/table/index.min.js +1 -1
- package/lib/table/module/custom/hook.js +2 -2
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +30 -26
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +21 -14
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/export-panel.js +36 -32
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/hook.js +43 -37
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/export/import-panel.js +13 -9
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/filter/hook.js +8 -4
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/module/filter/panel.js +14 -9
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/keyboard/hook.js +4 -1
- package/lib/table/module/keyboard/hook.min.js +1 -1
- package/lib/table/module/menu/hook.js +12 -6
- package/lib/table/module/menu/hook.min.js +1 -1
- package/lib/table/module/validator/hook.js +14 -8
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/render/index.js +12 -6
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +8 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +27 -22
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +16 -11
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/props.js +28 -25
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +163 -149
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +4 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/index.js +3 -3
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +49 -39
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +5 -30
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/utils.js +2 -2
- package/lib/ui/src/utils.min.js +1 -1
- package/lib/vxe-table/style/style.css +4 -2
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +1 -1
- package/packages/column/index.ts +1 -1
- package/packages/components.ts +4 -1
- package/packages/grid/index.ts +1 -1
- package/packages/grid/src/grid.ts +5 -4
- package/packages/index.ts +2 -2
- package/packages/table/index.ts +1 -1
- package/packages/table/module/custom/hook.ts +2 -2
- package/packages/table/module/custom/panel.ts +4 -3
- package/packages/table/module/edit/hook.ts +3 -1
- package/packages/table/module/export/export-panel.ts +4 -3
- package/packages/table/module/export/hook.ts +3 -1
- package/packages/table/module/export/import-panel.ts +4 -3
- package/packages/table/module/filter/hook.ts +3 -1
- package/packages/table/module/filter/panel.ts +3 -1
- package/packages/table/module/keyboard/hook.ts +3 -1
- package/packages/table/module/menu/hook.ts +3 -1
- package/packages/table/module/validator/hook.ts +3 -1
- package/packages/table/render/index.ts +4 -3
- package/packages/table/src/body.ts +4 -2
- package/packages/table/src/cell.ts +4 -2
- package/packages/table/src/columnInfo.ts +2 -1
- package/packages/table/src/props.ts +3 -1
- package/packages/table/src/table.ts +5 -4
- package/packages/toolbar/index.ts +1 -1
- package/packages/toolbar/src/toolbar.ts +5 -4
- package/packages/ui/index.ts +5 -6
- package/packages/ui/src/utils.ts +3 -3
- package/packages/ui/src/vn.ts +2 -1
- package/styles/components/table.scss +5 -2
- package/styles/theme/base.scss +1 -0
package/lib/index.umd.js
CHANGED
|
@@ -1693,7 +1693,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1693
1693
|
commands: function() { return /* reexport */ commands; },
|
|
1694
1694
|
config: function() { return /* reexport */ config; },
|
|
1695
1695
|
"default": function() { return /* binding */ entry_lib; },
|
|
1696
|
-
drawer: function() { return /* reexport */
|
|
1696
|
+
drawer: function() { return /* reexport */ drawer; },
|
|
1697
1697
|
formats: function() { return /* reexport */ formats; },
|
|
1698
1698
|
getConfig: function() { return /* reexport */ getConfig; },
|
|
1699
1699
|
getI18n: function() { return /* reexport */ getI18n; },
|
|
@@ -1706,10 +1706,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1706
1706
|
interceptor: function() { return /* reexport */ interceptor; },
|
|
1707
1707
|
log: function() { return /* reexport */ log; },
|
|
1708
1708
|
menus: function() { return /* reexport */ menus; },
|
|
1709
|
-
modal: function() { return /* reexport */
|
|
1710
|
-
readFile: function() { return /* reexport */
|
|
1709
|
+
modal: function() { return /* reexport */ modal; },
|
|
1710
|
+
readFile: function() { return /* reexport */ readFile; },
|
|
1711
1711
|
renderer: function() { return /* reexport */ renderer; },
|
|
1712
|
-
saveFile: function() { return /* reexport */
|
|
1712
|
+
saveFile: function() { return /* reexport */ saveFile; },
|
|
1713
1713
|
setConfig: function() { return /* reexport */ setConfig; },
|
|
1714
1714
|
setI18n: function() { return /* reexport */ setI18n; },
|
|
1715
1715
|
setIcon: function() { return /* reexport */ setIcon; },
|
|
@@ -1741,7 +1741,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1741
1741
|
clipboard: function() { return clipboard; },
|
|
1742
1742
|
commands: function() { return commands; },
|
|
1743
1743
|
config: function() { return config; },
|
|
1744
|
-
drawer: function() { return
|
|
1744
|
+
drawer: function() { return drawer; },
|
|
1745
1745
|
formats: function() { return formats; },
|
|
1746
1746
|
getConfig: function() { return getConfig; },
|
|
1747
1747
|
getI18n: function() { return getI18n; },
|
|
@@ -1754,10 +1754,10 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1754
1754
|
interceptor: function() { return interceptor; },
|
|
1755
1755
|
log: function() { return log; },
|
|
1756
1756
|
menus: function() { return menus; },
|
|
1757
|
-
modal: function() { return
|
|
1758
|
-
readFile: function() { return
|
|
1757
|
+
modal: function() { return modal; },
|
|
1758
|
+
readFile: function() { return readFile; },
|
|
1759
1759
|
renderer: function() { return renderer; },
|
|
1760
|
-
saveFile: function() { return
|
|
1760
|
+
saveFile: function() { return saveFile; },
|
|
1761
1761
|
setConfig: function() { return setConfig; },
|
|
1762
1762
|
setI18n: function() { return setI18n; },
|
|
1763
1763
|
setIcon: function() { return setIcon; },
|
|
@@ -1788,78 +1788,359 @@ if (typeof window !== 'undefined') {
|
|
|
1788
1788
|
|
|
1789
1789
|
// EXTERNAL MODULE: external {"root":"VxeUI","commonjs":"vxe-pc-ui","commonjs2":"vxe-pc-ui","amd":"vxe-pc-ui"}
|
|
1790
1790
|
var external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_ = __webpack_require__(2847);
|
|
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
|
-
|
|
1791
|
+
var external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_default = /*#__PURE__*/__webpack_require__.n(external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_);
|
|
1792
|
+
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1793
|
+
|
|
1794
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.4";
|
|
1795
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.4";
|
|
1796
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig({
|
|
1797
|
+
emptyCell: ' ',
|
|
1798
|
+
table: {
|
|
1799
|
+
fit: true,
|
|
1800
|
+
showHeader: true,
|
|
1801
|
+
animat: true,
|
|
1802
|
+
delayHover: 250,
|
|
1803
|
+
autoResize: true,
|
|
1804
|
+
minHeight: 144,
|
|
1805
|
+
// keepSource: false,
|
|
1806
|
+
// showOverflow: null,
|
|
1807
|
+
// showHeaderOverflow: null,
|
|
1808
|
+
// showFooterOverflow: null,
|
|
1809
|
+
// resizeInterval: 500,
|
|
1810
|
+
// size: null,
|
|
1811
|
+
// zIndex: null,
|
|
1812
|
+
// stripe: false,
|
|
1813
|
+
// border: false,
|
|
1814
|
+
// round: false,
|
|
1815
|
+
// emptyText: '暂无数据',
|
|
1816
|
+
// emptyRender: {
|
|
1817
|
+
// name: ''
|
|
1818
|
+
// },
|
|
1819
|
+
// rowConfig: {
|
|
1820
|
+
// keyField: '_X_ROW_KEY' // 行数据的唯一主键字段名
|
|
1821
|
+
// },
|
|
1822
|
+
resizeConfig: {
|
|
1823
|
+
refreshDelay: 250
|
|
1824
|
+
},
|
|
1825
|
+
radioConfig: {
|
|
1826
|
+
// trigger: 'default'
|
|
1827
|
+
strict: true
|
|
1828
|
+
},
|
|
1829
|
+
checkboxConfig: {
|
|
1830
|
+
// trigger: 'default',
|
|
1831
|
+
strict: true
|
|
1832
|
+
},
|
|
1833
|
+
tooltipConfig: {
|
|
1834
|
+
enterable: true
|
|
1835
|
+
},
|
|
1836
|
+
validConfig: {
|
|
1837
|
+
showMessage: true,
|
|
1838
|
+
autoClear: true,
|
|
1839
|
+
autoPos: true,
|
|
1840
|
+
message: 'inline',
|
|
1841
|
+
msgMode: 'single'
|
|
1842
|
+
},
|
|
1843
|
+
columnConfig: {
|
|
1844
|
+
maxFixedSize: 4
|
|
1845
|
+
},
|
|
1846
|
+
// menuConfig: {
|
|
1847
|
+
// visibleMethod () {}
|
|
1848
|
+
// },
|
|
1849
|
+
customConfig: {
|
|
1850
|
+
allowFixed: true,
|
|
1851
|
+
showFooter: true
|
|
1852
|
+
// storage: false,
|
|
1853
|
+
// checkMethod () {}
|
|
1854
|
+
},
|
|
1855
|
+
sortConfig: {
|
|
1856
|
+
// remote: false,
|
|
1857
|
+
// trigger: 'default',
|
|
1858
|
+
// orders: ['asc', 'desc', null],
|
|
1859
|
+
// sortMethod: null,
|
|
1860
|
+
showIcon: true,
|
|
1861
|
+
iconLayout: 'vertical'
|
|
1862
|
+
},
|
|
1863
|
+
filterConfig: {
|
|
1864
|
+
// remote: false,
|
|
1865
|
+
// filterMethod: null,
|
|
1866
|
+
showIcon: true
|
|
1867
|
+
},
|
|
1868
|
+
treeConfig: {
|
|
1869
|
+
rowField: 'id',
|
|
1870
|
+
parentField: 'parentId',
|
|
1871
|
+
childrenField: 'children',
|
|
1872
|
+
hasChildField: 'hasChild',
|
|
1873
|
+
mapChildrenField: '_X_ROW_CHILD',
|
|
1874
|
+
indent: 20,
|
|
1875
|
+
showIcon: true
|
|
1876
|
+
},
|
|
1877
|
+
expandConfig: {
|
|
1878
|
+
// trigger: 'default',
|
|
1879
|
+
showIcon: true
|
|
1880
|
+
},
|
|
1881
|
+
editConfig: {
|
|
1882
|
+
// mode: 'cell',
|
|
1883
|
+
showIcon: true,
|
|
1884
|
+
showAsterisk: true
|
|
1885
|
+
},
|
|
1886
|
+
importConfig: {
|
|
1887
|
+
_typeMaps: {
|
|
1888
|
+
csv: 1,
|
|
1889
|
+
html: 1,
|
|
1890
|
+
xml: 1,
|
|
1891
|
+
txt: 1
|
|
1892
|
+
},
|
|
1893
|
+
modes: ['insert', 'covering']
|
|
1894
|
+
},
|
|
1895
|
+
exportConfig: {
|
|
1896
|
+
_typeMaps: {
|
|
1897
|
+
csv: 1,
|
|
1898
|
+
html: 1,
|
|
1899
|
+
xml: 1,
|
|
1900
|
+
txt: 1
|
|
1901
|
+
},
|
|
1902
|
+
modes: ['current', 'selected']
|
|
1903
|
+
},
|
|
1904
|
+
printConfig: {
|
|
1905
|
+
modes: ['current', 'selected']
|
|
1906
|
+
},
|
|
1907
|
+
mouseConfig: {
|
|
1908
|
+
extension: true
|
|
1909
|
+
},
|
|
1910
|
+
keyboardConfig: {
|
|
1911
|
+
isEsc: true
|
|
1912
|
+
},
|
|
1913
|
+
areaConfig: {
|
|
1914
|
+
autoClear: true,
|
|
1915
|
+
selectCellByHeader: true
|
|
1916
|
+
},
|
|
1917
|
+
clipConfig: {
|
|
1918
|
+
isCopy: true,
|
|
1919
|
+
isCut: true,
|
|
1920
|
+
isPaste: true
|
|
1921
|
+
},
|
|
1922
|
+
fnrConfig: {
|
|
1923
|
+
isFind: true,
|
|
1924
|
+
isReplace: true
|
|
1925
|
+
},
|
|
1926
|
+
scrollX: {
|
|
1927
|
+
// enabled: false,
|
|
1928
|
+
gt: 60
|
|
1929
|
+
// oSize: 0
|
|
1930
|
+
},
|
|
1931
|
+
scrollY: {
|
|
1932
|
+
// enabled: false,
|
|
1933
|
+
gt: 100
|
|
1934
|
+
// oSize: 0
|
|
1822
1935
|
}
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1936
|
+
},
|
|
1937
|
+
// export: {
|
|
1938
|
+
// types: {}
|
|
1939
|
+
// },
|
|
1940
|
+
grid: {
|
|
1941
|
+
// size: null,
|
|
1942
|
+
// zoomConfig: {
|
|
1943
|
+
// escRestore: true
|
|
1944
|
+
// },
|
|
1945
|
+
formConfig: {
|
|
1946
|
+
enabled: true
|
|
1947
|
+
},
|
|
1948
|
+
pagerConfig: {
|
|
1949
|
+
enabled: true
|
|
1950
|
+
// perfect: false
|
|
1951
|
+
},
|
|
1952
|
+
toolbarConfig: {
|
|
1953
|
+
enabled: true
|
|
1954
|
+
// perfect: false
|
|
1955
|
+
},
|
|
1956
|
+
proxyConfig: {
|
|
1957
|
+
enabled: true,
|
|
1958
|
+
autoLoad: true,
|
|
1959
|
+
message: true,
|
|
1960
|
+
props: {
|
|
1961
|
+
list: null,
|
|
1962
|
+
result: 'result',
|
|
1963
|
+
total: 'page.total',
|
|
1964
|
+
message: 'message'
|
|
1837
1965
|
}
|
|
1966
|
+
// beforeItem: null,
|
|
1967
|
+
// beforeColumn: null,
|
|
1968
|
+
// beforeQuery: null,
|
|
1969
|
+
// afterQuery: null,
|
|
1970
|
+
// beforeDelete: null,
|
|
1971
|
+
// afterDelete: null,
|
|
1972
|
+
// beforeSave: null,
|
|
1973
|
+
// afterSave: null
|
|
1838
1974
|
}
|
|
1975
|
+
},
|
|
1976
|
+
toolbar: {
|
|
1977
|
+
// size: null,
|
|
1978
|
+
// import: {
|
|
1979
|
+
// mode: 'covering'
|
|
1980
|
+
// },
|
|
1981
|
+
// export: {
|
|
1982
|
+
// types: ['csv', 'html', 'xml', 'txt']
|
|
1983
|
+
// },
|
|
1984
|
+
// buttons: []
|
|
1839
1985
|
}
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1986
|
+
});
|
|
1987
|
+
const iconPrefix = 'vxe-icon-';
|
|
1988
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setIcon({
|
|
1989
|
+
// table
|
|
1990
|
+
TABLE_SORT_ASC: iconPrefix + 'caret-up',
|
|
1991
|
+
TABLE_SORT_DESC: iconPrefix + 'caret-down',
|
|
1992
|
+
TABLE_FILTER_NONE: iconPrefix + 'funnel',
|
|
1993
|
+
TABLE_FILTER_MATCH: iconPrefix + 'funnel',
|
|
1994
|
+
TABLE_EDIT: iconPrefix + 'edit',
|
|
1995
|
+
TABLE_TITLE_PREFIX: iconPrefix + 'question-circle-fill',
|
|
1996
|
+
TABLE_TITLE_SUFFIX: iconPrefix + 'question-circle-fill',
|
|
1997
|
+
TABLE_TREE_LOADED: iconPrefix + 'spinner roll',
|
|
1998
|
+
TABLE_TREE_OPEN: iconPrefix + 'caret-right rotate90',
|
|
1999
|
+
TABLE_TREE_CLOSE: iconPrefix + 'caret-right',
|
|
2000
|
+
TABLE_EXPAND_LOADED: iconPrefix + 'spinner roll',
|
|
2001
|
+
TABLE_EXPAND_OPEN: iconPrefix + 'arrow-right rotate90',
|
|
2002
|
+
TABLE_EXPAND_CLOSE: iconPrefix + 'arrow-right',
|
|
2003
|
+
TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked-fill',
|
|
2004
|
+
TABLE_CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',
|
|
2005
|
+
TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate-fill',
|
|
2006
|
+
TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked-fill',
|
|
2007
|
+
TABLE_RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
|
|
2008
|
+
// toolbar
|
|
2009
|
+
TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
|
|
2010
|
+
TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + 'repeat roll',
|
|
2011
|
+
TOOLBAR_TOOLS_IMPORT: iconPrefix + 'upload',
|
|
2012
|
+
TOOLBAR_TOOLS_EXPORT: iconPrefix + 'download',
|
|
2013
|
+
TOOLBAR_TOOLS_PRINT: iconPrefix + 'print',
|
|
2014
|
+
TOOLBAR_TOOLS_FULLSCREEN: iconPrefix + 'fullscreen',
|
|
2015
|
+
TOOLBAR_TOOLS_MINIMIZE: iconPrefix + 'minimize',
|
|
2016
|
+
TOOLBAR_TOOLS_CUSTOM: iconPrefix + 'custom-column',
|
|
2017
|
+
TOOLBAR_TOOLS_FIXED_LEFT: iconPrefix + 'fixed-left',
|
|
2018
|
+
TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE: iconPrefix + 'fixed-left-fill',
|
|
2019
|
+
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + 'fixed-right',
|
|
2020
|
+
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + 'fixed-right-fill'
|
|
2021
|
+
});
|
|
2022
|
+
const setTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setTheme;
|
|
2023
|
+
const getTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getTheme;
|
|
2024
|
+
const setConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig;
|
|
2025
|
+
const getConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig;
|
|
2026
|
+
const setIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setIcon;
|
|
2027
|
+
const getIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getIcon;
|
|
2028
|
+
const setLanguage = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setLanguage;
|
|
2029
|
+
const setI18n = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setI18n;
|
|
2030
|
+
const getI18n = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getI18n;
|
|
2031
|
+
const globalEvents = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.globalEvents;
|
|
2032
|
+
const globalResize = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.globalResize;
|
|
2033
|
+
const renderer = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.renderer;
|
|
2034
|
+
const validators = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.validators;
|
|
2035
|
+
const menus = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.menus;
|
|
2036
|
+
const formats = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.formats;
|
|
2037
|
+
const commands = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.commands;
|
|
2038
|
+
const interceptor = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.interceptor;
|
|
2039
|
+
const clipboard = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.clipboard;
|
|
2040
|
+
const log = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.log;
|
|
2041
|
+
const hooks = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.hooks;
|
|
2042
|
+
const use = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.use;
|
|
2043
|
+
/**
|
|
2044
|
+
* 已废弃
|
|
2045
|
+
* @deprecated
|
|
2046
|
+
*/
|
|
2047
|
+
const setup = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setup;
|
|
2048
|
+
/**
|
|
2049
|
+
* 已废弃
|
|
2050
|
+
* @deprecated
|
|
2051
|
+
*/
|
|
2052
|
+
const config = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.config;
|
|
2053
|
+
/**
|
|
2054
|
+
* 已废弃
|
|
2055
|
+
* @deprecated
|
|
2056
|
+
*/
|
|
2057
|
+
const t = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.t;
|
|
2058
|
+
/**
|
|
2059
|
+
* 已废弃
|
|
2060
|
+
* @deprecated
|
|
2061
|
+
*/
|
|
2062
|
+
const _t = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI._t;
|
|
2063
|
+
/**
|
|
2064
|
+
* 已废弃,兼容老版本
|
|
2065
|
+
* @deprecated
|
|
2066
|
+
*/
|
|
2067
|
+
const VXETable = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
2068
|
+
const saveFile = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.readFile;
|
|
2069
|
+
const readFile = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.readFile;
|
|
2070
|
+
|
|
2071
|
+
/* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
|
|
2072
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
2073
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
2074
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2075
|
+
var es_array_push = __webpack_require__(4114);
|
|
2076
|
+
// EXTERNAL MODULE: external {"root":"XEUtils","commonjs":"xe-utils","commonjs2":"xe-utils","amd":"xe-utils"}
|
|
2077
|
+
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_ = __webpack_require__(8871);
|
|
2078
|
+
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_);
|
|
2079
|
+
;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
|
|
2080
|
+
var storeEl = null;
|
|
2081
|
+
var storeId = 'z-index-manage';
|
|
2082
|
+
var storeMainKey = 'm';
|
|
2083
|
+
var storeSubKey = 's';
|
|
2084
|
+
var storeData = {
|
|
2085
|
+
m: 1000,
|
|
2086
|
+
s: 1000
|
|
2087
|
+
};
|
|
2088
|
+
function isDocument() {
|
|
2089
|
+
return typeof document !== 'undefined';
|
|
2090
|
+
}
|
|
2091
|
+
function getDomMaxZIndex() {
|
|
2092
|
+
var max = 0;
|
|
2093
|
+
if (isDocument()) {
|
|
2094
|
+
var allElem = document.body.getElementsByTagName('*');
|
|
2095
|
+
for (var i = 0; i < allElem.length; i++) {
|
|
2096
|
+
var elem = allElem[i];
|
|
2097
|
+
if (elem && elem.style && elem.nodeType === 1) {
|
|
2098
|
+
var zIndex = elem.style.zIndex;
|
|
2099
|
+
if (zIndex && /^\d+$/.test(zIndex)) {
|
|
2100
|
+
max = Math.max(max, Number(zIndex));
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
return max;
|
|
2106
|
+
}
|
|
2107
|
+
function getDom() {
|
|
2108
|
+
if (!storeEl) {
|
|
2109
|
+
if (isDocument()) {
|
|
2110
|
+
storeEl = document.getElementById(storeId);
|
|
2111
|
+
if (!storeEl) {
|
|
2112
|
+
storeEl = document.createElement('div');
|
|
2113
|
+
storeEl.id = storeId;
|
|
2114
|
+
storeEl.style.display = 'none';
|
|
2115
|
+
document.body.appendChild(storeEl);
|
|
2116
|
+
setCurrent(storeData.m);
|
|
2117
|
+
setSubCurrent(storeData.s);
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
return storeEl;
|
|
2122
|
+
}
|
|
2123
|
+
function createSetHandle(key) {
|
|
2124
|
+
return function (value) {
|
|
2125
|
+
if (value) {
|
|
2126
|
+
value = Number(value);
|
|
2127
|
+
storeData[key] = value;
|
|
2128
|
+
var doc = getDom();
|
|
2129
|
+
if (doc) {
|
|
2130
|
+
if (doc.dataset) {
|
|
2131
|
+
doc.dataset[key] = value + '';
|
|
2132
|
+
} else {
|
|
2133
|
+
doc.setAttribute('data-' + key, value + '');
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
return storeData[key];
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
var setCurrent = createSetHandle(storeMainKey);
|
|
2141
|
+
function createGetHandle(key, nextMethod) {
|
|
2142
|
+
return function getCurrent(currZindex) {
|
|
2143
|
+
var zIndex;
|
|
1863
2144
|
var doc = getDom();
|
|
1864
2145
|
if (doc) {
|
|
1865
2146
|
var domVal = doc.dataset ? doc.dataset[key] : doc.getAttribute('data-' + key);
|
|
@@ -1936,13 +2217,13 @@ function hasChildrenList(item) {
|
|
|
1936
2217
|
}
|
|
1937
2218
|
function getFuncText(content) {
|
|
1938
2219
|
if (content) {
|
|
1939
|
-
const translate =
|
|
2220
|
+
const translate = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig().translate;
|
|
1940
2221
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(translate ? translate('' + content) : content);
|
|
1941
2222
|
}
|
|
1942
2223
|
return '';
|
|
1943
2224
|
}
|
|
1944
2225
|
function formatText(value, placeholder) {
|
|
1945
|
-
return '' + (isEmptyValue(value) ? placeholder ?
|
|
2226
|
+
return '' + (isEmptyValue(value) ? placeholder ? external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig().emptyCell : '' : value);
|
|
1946
2227
|
}
|
|
1947
2228
|
/**
|
|
1948
2229
|
* 判断值为:'' | null | undefined 时都属于空值
|
|
@@ -1955,6 +2236,11 @@ function eqEmptyValue(cellValue) {
|
|
|
1955
2236
|
|
|
1956
2237
|
|
|
1957
2238
|
|
|
2239
|
+
const {
|
|
2240
|
+
getI18n: columnInfo_getI18n,
|
|
2241
|
+
formats: columnInfo_formats,
|
|
2242
|
+
log: columnInfo_log
|
|
2243
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
1958
2244
|
class ColumnInfo {
|
|
1959
2245
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
1960
2246
|
constructor($xeTable, _vm, {
|
|
@@ -1969,16 +2255,16 @@ class ColumnInfo {
|
|
|
1969
2255
|
if (true) {
|
|
1970
2256
|
const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
|
|
1971
2257
|
if (_vm.type && types.indexOf(_vm.type) === -1) {
|
|
1972
|
-
|
|
2258
|
+
columnInfo_log.warn('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
|
|
1973
2259
|
}
|
|
1974
2260
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.cellRender) || _vm.cellRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.cellRender)) {
|
|
1975
|
-
|
|
2261
|
+
columnInfo_log.warn('vxe.error.errProp', [`column.cell-render=${_vm.cellRender}`, 'column.cell-render={}']);
|
|
1976
2262
|
}
|
|
1977
2263
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.editRender) || _vm.editRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.editRender)) {
|
|
1978
|
-
|
|
2264
|
+
columnInfo_log.warn('vxe.error.errProp', [`column.edit-render=${_vm.editRender}`, 'column.edit-render={}']);
|
|
1979
2265
|
}
|
|
1980
2266
|
if (_vm.cellRender && _vm.editRender) {
|
|
1981
|
-
|
|
2267
|
+
columnInfo_log.warn('vxe.error.errConflicts', ['column.cell-render', 'column.edit-render']);
|
|
1982
2268
|
}
|
|
1983
2269
|
if (_vm.type === 'expand') {
|
|
1984
2270
|
const {
|
|
@@ -1992,19 +2278,19 @@ class ColumnInfo {
|
|
|
1992
2278
|
} = $xeTable.getComputeMaps();
|
|
1993
2279
|
const treeOpts = computeTreeOpts.value;
|
|
1994
2280
|
if (treeConfig && (treeOpts.showLine || treeOpts.line)) {
|
|
1995
|
-
|
|
2281
|
+
columnInfo_log.err('vxe.error.errConflicts', ['tree-config.showLine', 'column.type=expand']);
|
|
1996
2282
|
}
|
|
1997
2283
|
}
|
|
1998
2284
|
if (formatter) {
|
|
1999
2285
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
2000
|
-
const gFormatOpts =
|
|
2286
|
+
const gFormatOpts = columnInfo_formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
|
|
2001
2287
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2002
|
-
|
|
2288
|
+
columnInfo_log.err('vxe.error.notFormats', [formatter]);
|
|
2003
2289
|
}
|
|
2004
2290
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
2005
|
-
const gFormatOpts =
|
|
2291
|
+
const gFormatOpts = columnInfo_formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
|
|
2006
2292
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2007
|
-
|
|
2293
|
+
columnInfo_log.err('vxe.error.notFormats', [formatter[0]]);
|
|
2008
2294
|
}
|
|
2009
2295
|
}
|
|
2010
2296
|
}
|
|
@@ -2102,7 +2388,7 @@ class ColumnInfo {
|
|
|
2102
2388
|
}
|
|
2103
2389
|
}
|
|
2104
2390
|
getTitle() {
|
|
2105
|
-
return getFuncText(this.title || (this.type === 'seq' ? (
|
|
2391
|
+
return getFuncText(this.title || (this.type === 'seq' ? columnInfo_getI18n('vxe.table.seqTitle') : ''));
|
|
2106
2392
|
}
|
|
2107
2393
|
getKey() {
|
|
2108
2394
|
return this.field || (this.type ? `type=${this.type}` : null);
|
|
@@ -2785,6 +3071,11 @@ function getSlotVNs(vns) {
|
|
|
2785
3071
|
|
|
2786
3072
|
|
|
2787
3073
|
|
|
3074
|
+
const {
|
|
3075
|
+
getI18n: cell_getI18n,
|
|
3076
|
+
getIcon: cell_getIcon,
|
|
3077
|
+
renderer: cell_renderer
|
|
3078
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
2788
3079
|
function renderTitlePrefixIcon(params) {
|
|
2789
3080
|
const {
|
|
2790
3081
|
$table,
|
|
@@ -2792,7 +3083,7 @@ function renderTitlePrefixIcon(params) {
|
|
|
2792
3083
|
} = params;
|
|
2793
3084
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
2794
3085
|
return titlePrefix ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
2795
|
-
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || (
|
|
3086
|
+
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || cell_getIcon().TABLE_TITLE_PREFIX],
|
|
2796
3087
|
onMouseenter(evnt) {
|
|
2797
3088
|
$table.triggerHeaderTitleEvent(evnt, titlePrefix, params);
|
|
2798
3089
|
},
|
|
@@ -2808,7 +3099,7 @@ function renderTitleSuffixIcon(params) {
|
|
|
2808
3099
|
} = params;
|
|
2809
3100
|
const titleSuffix = column.titleSuffix;
|
|
2810
3101
|
return titleSuffix ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
2811
|
-
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || (
|
|
3102
|
+
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || cell_getIcon().TABLE_TITLE_SUFFIX],
|
|
2812
3103
|
onMouseenter(evnt) {
|
|
2813
3104
|
$table.triggerHeaderTitleEvent(evnt, titleSuffix, params);
|
|
2814
3105
|
},
|
|
@@ -2892,7 +3183,7 @@ function getFooterContent(params) {
|
|
|
2892
3183
|
return $table.callSlot(footerSlot, params);
|
|
2893
3184
|
}
|
|
2894
3185
|
if (renderOpts) {
|
|
2895
|
-
const compConf =
|
|
3186
|
+
const compConf = cell_renderer.get(renderOpts.name);
|
|
2896
3187
|
if (compConf && compConf.renderFooter) {
|
|
2897
3188
|
return getSlotVNs(compConf.renderFooter(renderOpts, params));
|
|
2898
3189
|
}
|
|
@@ -2997,7 +3288,7 @@ const Cell = {
|
|
|
2997
3288
|
return renderTitleContent(params, $table.callSlot(headerSlot, params));
|
|
2998
3289
|
}
|
|
2999
3290
|
if (renderOpts) {
|
|
3000
|
-
const compConf =
|
|
3291
|
+
const compConf = cell_renderer.get(renderOpts.name);
|
|
3001
3292
|
if (compConf && compConf.renderHeader) {
|
|
3002
3293
|
return renderTitleContent(params, getSlotVNs(compConf.renderHeader(renderOpts, params)));
|
|
3003
3294
|
}
|
|
@@ -3025,7 +3316,7 @@ const Cell = {
|
|
|
3025
3316
|
}
|
|
3026
3317
|
if (renderOpts) {
|
|
3027
3318
|
const funName = editRender ? 'renderCell' : 'renderDefault';
|
|
3028
|
-
const compConf =
|
|
3319
|
+
const compConf = cell_renderer.get(renderOpts.name);
|
|
3029
3320
|
const compFn = compConf ? compConf[funName] : null;
|
|
3030
3321
|
if (compFn) {
|
|
3031
3322
|
return getSlotVNs(compFn(renderOpts, Object.assign({
|
|
@@ -3123,7 +3414,7 @@ const Cell = {
|
|
|
3123
3414
|
class: 'vxe-tree--btn-wrapper',
|
|
3124
3415
|
...ons
|
|
3125
3416
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3126
|
-
class: ['vxe-tree--node-btn', isLazyLoaded ? iconLoaded || (
|
|
3417
|
+
class: ['vxe-tree--node-btn', isLazyLoaded ? iconLoaded || cell_getIcon().TABLE_TREE_LOADED : isAceived ? iconOpen || cell_getIcon().TABLE_TREE_OPEN : iconClose || cell_getIcon().TABLE_TREE_CLOSE]
|
|
3127
3418
|
})])] : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
3128
3419
|
class: 'vxe-tree-cell'
|
|
3129
3420
|
}, cellVNodes)])];
|
|
@@ -3252,7 +3543,7 @@ const Cell = {
|
|
|
3252
3543
|
const radioVNs = [];
|
|
3253
3544
|
if (isVisible) {
|
|
3254
3545
|
radioVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3255
|
-
class: ['vxe-radio--icon', isChecked ? (
|
|
3546
|
+
class: ['vxe-radio--icon', isChecked ? cell_getIcon().TABLE_RADIO_CHECKED : cell_getIcon().TABLE_RADIO_UNCHECKED]
|
|
3256
3547
|
}));
|
|
3257
3548
|
}
|
|
3258
3549
|
if (defaultSlot || labelField) {
|
|
@@ -3330,10 +3621,10 @@ const Cell = {
|
|
|
3330
3621
|
'is--disabled': isAllCheckboxDisabled,
|
|
3331
3622
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
3332
3623
|
}],
|
|
3333
|
-
title: (
|
|
3624
|
+
title: cell_getI18n('vxe.table.allTitle'),
|
|
3334
3625
|
...ons
|
|
3335
3626
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3336
|
-
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? (
|
|
3627
|
+
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? cell_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllCheckboxSelected ? cell_getIcon().TABLE_CHECKBOX_CHECKED : cell_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3337
3628
|
})].concat(titleSlot || headerTitle ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3338
3629
|
class: 'vxe-checkbox--label'
|
|
3339
3630
|
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : headerTitle)] : []))]);
|
|
@@ -3410,7 +3701,7 @@ const Cell = {
|
|
|
3410
3701
|
const checkVNs = [];
|
|
3411
3702
|
if (isVisible) {
|
|
3412
3703
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3413
|
-
class: ['vxe-checkbox--icon', indeterminate ? (
|
|
3704
|
+
class: ['vxe-checkbox--icon', indeterminate ? cell_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? cell_getIcon().TABLE_CHECKBOX_CHECKED : cell_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3414
3705
|
}));
|
|
3415
3706
|
}
|
|
3416
3707
|
if (defaultSlot || labelField) {
|
|
@@ -3504,7 +3795,7 @@ const Cell = {
|
|
|
3504
3795
|
const checkVNs = [];
|
|
3505
3796
|
if (isVisible) {
|
|
3506
3797
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3507
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? (
|
|
3798
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? cell_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? cell_getIcon().TABLE_CHECKBOX_CHECKED : cell_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3508
3799
|
}));
|
|
3509
3800
|
if (defaultSlot || labelField) {
|
|
3510
3801
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
@@ -3581,7 +3872,7 @@ const Cell = {
|
|
|
3581
3872
|
$table.triggerRowExpandEvent(evnt, params);
|
|
3582
3873
|
}
|
|
3583
3874
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3584
|
-
class: ['vxe-table--expand-btn', isLazyLoaded ? iconLoaded || (
|
|
3875
|
+
class: ['vxe-table--expand-btn', isLazyLoaded ? iconLoaded || cell_getIcon().TABLE_EXPAND_LOADED : isAceived ? iconOpen || cell_getIcon().TABLE_EXPAND_OPEN : iconClose || cell_getIcon().TABLE_EXPAND_CLOSE]
|
|
3585
3876
|
})]) : null, defaultSlot || labelField ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3586
3877
|
class: 'vxe-table--expand-label'
|
|
3587
3878
|
}, defaultSlot ? $table.callSlot(defaultSlot, params) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, labelField)) : null];
|
|
@@ -3600,7 +3891,7 @@ const Cell = {
|
|
|
3600
3891
|
return $table.callSlot(contentSlot, params);
|
|
3601
3892
|
}
|
|
3602
3893
|
if (contentRender) {
|
|
3603
|
-
const compConf =
|
|
3894
|
+
const compConf = cell_renderer.get(contentRender.name);
|
|
3604
3895
|
if (compConf && compConf.renderExpand) {
|
|
3605
3896
|
return getSlotVNs(compConf.renderExpand(contentRender, params));
|
|
3606
3897
|
}
|
|
@@ -3664,19 +3955,19 @@ const Cell = {
|
|
|
3664
3955
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3665
3956
|
class: ['vxe-cell--sort', `vxe-cell--sort-${iconLayout}-layout`]
|
|
3666
3957
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3667
|
-
class: ['vxe-sort--asc-btn', iconAsc || (
|
|
3958
|
+
class: ['vxe-sort--asc-btn', iconAsc || cell_getIcon().TABLE_SORT_ASC, {
|
|
3668
3959
|
'sort--active': order === 'asc'
|
|
3669
3960
|
}],
|
|
3670
|
-
title: (
|
|
3961
|
+
title: cell_getI18n('vxe.table.sortAsc'),
|
|
3671
3962
|
onClick(evnt) {
|
|
3672
3963
|
evnt.stopPropagation();
|
|
3673
3964
|
$table.triggerSortEvent(evnt, column, 'asc');
|
|
3674
3965
|
}
|
|
3675
3966
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3676
|
-
class: ['vxe-sort--desc-btn', iconDesc || (
|
|
3967
|
+
class: ['vxe-sort--desc-btn', iconDesc || cell_getIcon().TABLE_SORT_DESC, {
|
|
3677
3968
|
'sort--active': order === 'desc'
|
|
3678
3969
|
}],
|
|
3679
|
-
title: (
|
|
3970
|
+
title: cell_getI18n('vxe.table.sortDesc'),
|
|
3680
3971
|
onClick(evnt) {
|
|
3681
3972
|
evnt.stopPropagation();
|
|
3682
3973
|
$table.triggerSortEvent(evnt, column, 'desc');
|
|
@@ -3717,8 +4008,8 @@ const Cell = {
|
|
|
3717
4008
|
'is--active': filterStore.visible && filterStore.column === column
|
|
3718
4009
|
}]
|
|
3719
4010
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3720
|
-
class: ['vxe-filter--btn', hasFilter ? iconMatch || (
|
|
3721
|
-
title: (
|
|
4011
|
+
class: ['vxe-filter--btn', hasFilter ? iconMatch || cell_getIcon().TABLE_FILTER_MATCH : iconNone || cell_getIcon().TABLE_FILTER_NONE],
|
|
4012
|
+
title: cell_getI18n('vxe.table.filter'),
|
|
3722
4013
|
onClick(evnt) {
|
|
3723
4014
|
if ($table.triggerFilterEvent) {
|
|
3724
4015
|
$table.triggerFilterEvent(evnt, params.column, params);
|
|
@@ -3760,7 +4051,7 @@ const Cell = {
|
|
|
3760
4051
|
return (isEnableConf(editConfig) ? [isRequired && editOpts.showAsterisk ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3761
4052
|
class: 'vxe-cell--required-icon'
|
|
3762
4053
|
}) : null, isEnableConf(editRender) && editOpts.showIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3763
|
-
class: ['vxe-cell--edit-icon', editOpts.icon || (
|
|
4054
|
+
class: ['vxe-cell--edit-icon', editOpts.icon || cell_getIcon().TABLE_EDIT]
|
|
3764
4055
|
}) : null] : []).concat(Cell.renderDefaultHeader(params)).concat(sortable ? Cell.renderSortIcon(params) : []).concat(filters ? Cell.renderFilterIcon(params) : []);
|
|
3765
4056
|
},
|
|
3766
4057
|
// 行格编辑模式
|
|
@@ -3821,7 +4112,7 @@ const Cell = {
|
|
|
3821
4112
|
} = column;
|
|
3822
4113
|
const defaultSlot = slots ? slots.default : null;
|
|
3823
4114
|
const editSlot = slots ? slots.edit : null;
|
|
3824
|
-
const compConf =
|
|
4115
|
+
const compConf = cell_renderer.get(editRender.name);
|
|
3825
4116
|
if (isEdit) {
|
|
3826
4117
|
if (editSlot) {
|
|
3827
4118
|
return $table.callSlot(editSlot, params);
|
|
@@ -4070,6 +4361,10 @@ const Colgroup = VxeColgroup;
|
|
|
4070
4361
|
|
|
4071
4362
|
|
|
4072
4363
|
|
|
4364
|
+
const {
|
|
4365
|
+
getI18n: body_getI18n,
|
|
4366
|
+
renderer: body_renderer
|
|
4367
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
4073
4368
|
const renderType = 'body';
|
|
4074
4369
|
const lineOffsetSizes = {
|
|
4075
4370
|
mini: 3,
|
|
@@ -4272,7 +4567,7 @@ const lineOffsetSizes = {
|
|
|
4272
4567
|
height: rowHeight
|
|
4273
4568
|
} = rowOpts;
|
|
4274
4569
|
const renderOpts = editRender || cellRender;
|
|
4275
|
-
const compConf = renderOpts ?
|
|
4570
|
+
const compConf = renderOpts ? body_renderer.get(renderOpts.name) : null;
|
|
4276
4571
|
const compCellClassName = compConf ? compConf.cellClassName : '';
|
|
4277
4572
|
const compCellStyle = compConf ? compConf.cellStyle : '';
|
|
4278
4573
|
const showAllTip = tooltipOpts.showAll;
|
|
@@ -5017,14 +5312,14 @@ const lineOffsetSizes = {
|
|
|
5017
5312
|
$grid: $xeTable.xegrid
|
|
5018
5313
|
});
|
|
5019
5314
|
} else {
|
|
5020
|
-
const compConf = emptyOpts.name ?
|
|
5315
|
+
const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
|
|
5021
5316
|
const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
5022
5317
|
if (renderTableEmptyView) {
|
|
5023
5318
|
emptyContent = getSlotVNs(renderTableEmptyView(emptyOpts, {
|
|
5024
5319
|
$table: $xeTable
|
|
5025
5320
|
}));
|
|
5026
5321
|
} else {
|
|
5027
|
-
emptyContent = tableProps.emptyText || (
|
|
5322
|
+
emptyContent = tableProps.emptyText || body_getI18n('vxe.table.emptyText');
|
|
5028
5323
|
}
|
|
5029
5324
|
}
|
|
5030
5325
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -5839,6 +6134,9 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5839
6134
|
}));
|
|
5840
6135
|
;// CONCATENATED MODULE: ./packages/table/src/props.ts
|
|
5841
6136
|
|
|
6137
|
+
const {
|
|
6138
|
+
getConfig: props_getConfig
|
|
6139
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
5842
6140
|
/* harmony default export */ var props = ({
|
|
5843
6141
|
/** 基本属性 */
|
|
5844
6142
|
id: String,
|
|
@@ -5849,81 +6147,81 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5849
6147
|
// 表格的最小高度
|
|
5850
6148
|
minHeight: {
|
|
5851
6149
|
type: [Number, String],
|
|
5852
|
-
default: () => (
|
|
6150
|
+
default: () => props_getConfig().table.minHeight
|
|
5853
6151
|
},
|
|
5854
6152
|
// 表格的最大高度
|
|
5855
6153
|
maxHeight: [Number, String],
|
|
5856
6154
|
// 已废弃,被 column-config.resizable 替换
|
|
5857
6155
|
resizable: {
|
|
5858
6156
|
type: Boolean,
|
|
5859
|
-
default: () => (
|
|
6157
|
+
default: () => props_getConfig().table.resizable
|
|
5860
6158
|
},
|
|
5861
6159
|
// 是否带有斑马纹
|
|
5862
6160
|
stripe: {
|
|
5863
6161
|
type: Boolean,
|
|
5864
|
-
default: () => (
|
|
6162
|
+
default: () => props_getConfig().table.stripe
|
|
5865
6163
|
},
|
|
5866
6164
|
// 是否带有边框
|
|
5867
6165
|
border: {
|
|
5868
6166
|
type: [Boolean, String],
|
|
5869
|
-
default: () => (
|
|
6167
|
+
default: () => props_getConfig().table.border
|
|
5870
6168
|
},
|
|
5871
6169
|
// 是否圆角边框
|
|
5872
6170
|
round: {
|
|
5873
6171
|
type: Boolean,
|
|
5874
|
-
default: () => (
|
|
6172
|
+
default: () => props_getConfig().table.round
|
|
5875
6173
|
},
|
|
5876
6174
|
// 表格的尺寸
|
|
5877
6175
|
size: {
|
|
5878
6176
|
type: String,
|
|
5879
|
-
default: () => (
|
|
6177
|
+
default: () => props_getConfig().table.size || props_getConfig().size
|
|
5880
6178
|
},
|
|
5881
6179
|
// 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
|
|
5882
6180
|
fit: {
|
|
5883
6181
|
type: Boolean,
|
|
5884
|
-
default: () => (
|
|
6182
|
+
default: () => props_getConfig().table.fit
|
|
5885
6183
|
},
|
|
5886
6184
|
// 表格是否加载中
|
|
5887
6185
|
loading: Boolean,
|
|
5888
6186
|
// 所有的列对其方式
|
|
5889
6187
|
align: {
|
|
5890
6188
|
type: String,
|
|
5891
|
-
default: () => (
|
|
6189
|
+
default: () => props_getConfig().table.align
|
|
5892
6190
|
},
|
|
5893
6191
|
// 所有的表头列的对齐方式
|
|
5894
6192
|
headerAlign: {
|
|
5895
6193
|
type: String,
|
|
5896
|
-
default: () => (
|
|
6194
|
+
default: () => props_getConfig().table.headerAlign
|
|
5897
6195
|
},
|
|
5898
6196
|
// 所有的表尾列的对齐方式
|
|
5899
6197
|
footerAlign: {
|
|
5900
6198
|
type: String,
|
|
5901
|
-
default: () => (
|
|
6199
|
+
default: () => props_getConfig().table.footerAlign
|
|
5902
6200
|
},
|
|
5903
6201
|
// 是否显示表头
|
|
5904
6202
|
showHeader: {
|
|
5905
6203
|
type: Boolean,
|
|
5906
|
-
default: () => (
|
|
6204
|
+
default: () => props_getConfig().table.showHeader
|
|
5907
6205
|
},
|
|
5908
6206
|
// (即将废弃)是否要高亮当前选中行
|
|
5909
6207
|
highlightCurrentRow: {
|
|
5910
6208
|
type: Boolean,
|
|
5911
|
-
default: () => (
|
|
6209
|
+
default: () => props_getConfig().table.highlightCurrentRow
|
|
5912
6210
|
},
|
|
5913
6211
|
// (即将废弃)鼠标移到行是否要高亮显示
|
|
5914
6212
|
highlightHoverRow: {
|
|
5915
6213
|
type: Boolean,
|
|
5916
|
-
default: () => (
|
|
6214
|
+
default: () => props_getConfig().table.highlightHoverRow
|
|
5917
6215
|
},
|
|
5918
6216
|
// (即将废弃)是否要高亮当前选中列
|
|
5919
6217
|
highlightCurrentColumn: {
|
|
5920
6218
|
type: Boolean,
|
|
5921
|
-
default: () => (
|
|
6219
|
+
default: () => props_getConfig().table.highlightCurrentColumn
|
|
5922
6220
|
},
|
|
5923
6221
|
// (即将废弃)鼠标移到列是否要高亮显示
|
|
5924
6222
|
highlightHoverColumn: {
|
|
5925
6223
|
type: Boolean,
|
|
5926
|
-
default: () => (
|
|
6224
|
+
default: () => props_getConfig().table.highlightHoverColumn
|
|
5927
6225
|
},
|
|
5928
6226
|
// (即将废弃)激活单元格编辑时是否高亮显示
|
|
5929
6227
|
highlightCell: Boolean,
|
|
@@ -5968,17 +6266,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5968
6266
|
// 设置所有内容过长时显示为省略号
|
|
5969
6267
|
showOverflow: {
|
|
5970
6268
|
type: [Boolean, String],
|
|
5971
|
-
default: () => (
|
|
6269
|
+
default: () => props_getConfig().table.showOverflow
|
|
5972
6270
|
},
|
|
5973
6271
|
// 设置表头所有内容过长时显示为省略号
|
|
5974
6272
|
showHeaderOverflow: {
|
|
5975
6273
|
type: [Boolean, String],
|
|
5976
|
-
default: () => (
|
|
6274
|
+
default: () => props_getConfig().table.showHeaderOverflow
|
|
5977
6275
|
},
|
|
5978
6276
|
// 设置表尾所有内容过长时显示为省略号
|
|
5979
6277
|
showFooterOverflow: {
|
|
5980
6278
|
type: [Boolean, String],
|
|
5981
|
-
default: () => (
|
|
6279
|
+
default: () => props_getConfig().table.showFooterOverflow
|
|
5982
6280
|
},
|
|
5983
6281
|
/** 高级属性 */
|
|
5984
6282
|
// (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
|
|
@@ -5988,21 +6286,21 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5988
6286
|
// (即将废弃)rowId 已废弃,被 row-config.keyField 替换
|
|
5989
6287
|
rowId: {
|
|
5990
6288
|
type: String,
|
|
5991
|
-
default: () => (
|
|
6289
|
+
default: () => props_getConfig().table.rowId
|
|
5992
6290
|
},
|
|
5993
6291
|
zIndex: Number,
|
|
5994
6292
|
emptyText: {
|
|
5995
6293
|
type: String,
|
|
5996
|
-
default: () => (
|
|
6294
|
+
default: () => props_getConfig().table.emptyText
|
|
5997
6295
|
},
|
|
5998
6296
|
keepSource: {
|
|
5999
6297
|
type: Boolean,
|
|
6000
|
-
default: () => (
|
|
6298
|
+
default: () => props_getConfig().table.keepSource
|
|
6001
6299
|
},
|
|
6002
6300
|
// 是否自动监听父容器变化去更新响应式表格宽高
|
|
6003
6301
|
autoResize: {
|
|
6004
6302
|
type: Boolean,
|
|
6005
|
-
default: () => (
|
|
6303
|
+
default: () => props_getConfig().table.autoResize
|
|
6006
6304
|
},
|
|
6007
6305
|
// 是否自动根据状态属性去更新响应式表格宽高
|
|
6008
6306
|
syncResize: [Boolean, String, Number],
|
|
@@ -6067,12 +6365,12 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6067
6365
|
// (即将废弃)优化相关
|
|
6068
6366
|
animat: {
|
|
6069
6367
|
type: Boolean,
|
|
6070
|
-
default: () => (
|
|
6368
|
+
default: () => props_getConfig().table.animat
|
|
6071
6369
|
},
|
|
6072
6370
|
// (可能会被废弃的参数,不要使用)
|
|
6073
6371
|
delayHover: {
|
|
6074
6372
|
type: Number,
|
|
6075
|
-
default: () => (
|
|
6373
|
+
default: () => props_getConfig().table.delayHover
|
|
6076
6374
|
},
|
|
6077
6375
|
// 额外的参数
|
|
6078
6376
|
params: Object
|
|
@@ -6086,6 +6384,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6086
6384
|
|
|
6087
6385
|
|
|
6088
6386
|
|
|
6387
|
+
const {
|
|
6388
|
+
getI18n: panel_getI18n,
|
|
6389
|
+
getIcon: panel_getIcon
|
|
6390
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
6089
6391
|
/* harmony default export */ var panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6090
6392
|
name: 'TableCustomPanel',
|
|
6091
6393
|
props: {
|
|
@@ -6144,7 +6446,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6144
6446
|
const resetPopupCustomEvent = evnt => {
|
|
6145
6447
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
6146
6448
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.confirm({
|
|
6147
|
-
content: (
|
|
6449
|
+
content: panel_getI18n('vxe.custom.cstmConfirmRestore'),
|
|
6148
6450
|
className: 'vxe-table--ignore-clear',
|
|
6149
6451
|
escClosable: true
|
|
6150
6452
|
}).then(type => {
|
|
@@ -6390,26 +6692,26 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6390
6692
|
}
|
|
6391
6693
|
}
|
|
6392
6694
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6393
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? (
|
|
6695
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6394
6696
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6395
6697
|
class: 'vxe-checkbox--label'
|
|
6396
6698
|
}, colTitle)]), !parent && customOpts.allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6397
6699
|
class: 'vxe-table-custom--fixed-option'
|
|
6398
6700
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6399
|
-
class: ['vxe-table-custom--fixed-left-option', column.fixed === 'left' ? (
|
|
6701
|
+
class: ['vxe-table-custom--fixed-left-option', column.fixed === 'left' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT, {
|
|
6400
6702
|
'is--checked': column.fixed === 'left',
|
|
6401
6703
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
6402
6704
|
}],
|
|
6403
|
-
title: (
|
|
6705
|
+
title: panel_getI18n(column.fixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft'),
|
|
6404
6706
|
onClick: () => {
|
|
6405
6707
|
changeFixedOption(column, 'left');
|
|
6406
6708
|
}
|
|
6407
6709
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6408
|
-
class: ['vxe-table-custom--fixed-right-option', column.fixed === 'right' ? (
|
|
6710
|
+
class: ['vxe-table-custom--fixed-right-option', column.fixed === 'right' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT, {
|
|
6409
6711
|
'is--checked': column.fixed === 'right',
|
|
6410
6712
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
6411
6713
|
}],
|
|
6412
|
-
title: (
|
|
6714
|
+
title: panel_getI18n(column.fixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight'),
|
|
6413
6715
|
onClick: () => {
|
|
6414
6716
|
changeFixedOption(column, 'right');
|
|
6415
6717
|
}
|
|
@@ -6433,13 +6735,13 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6433
6735
|
'is--checked': isAllChecked,
|
|
6434
6736
|
'is--indeterminate': isAllIndeterminate
|
|
6435
6737
|
}],
|
|
6436
|
-
title: (
|
|
6738
|
+
title: panel_getI18n('vxe.table.allTitle'),
|
|
6437
6739
|
onClick: allCustomEvent
|
|
6438
6740
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6439
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? (
|
|
6741
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6440
6742
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6441
6743
|
class: 'vxe-checkbox--label'
|
|
6442
|
-
}, (
|
|
6744
|
+
}, panel_getI18n('vxe.toolbar.customAll'))])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
6443
6745
|
class: 'vxe-table-custom--body',
|
|
6444
6746
|
style: maxHeight ? {
|
|
6445
6747
|
maxHeight: `${maxHeight}px`
|
|
@@ -6450,10 +6752,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6450
6752
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6451
6753
|
class: 'btn--reset',
|
|
6452
6754
|
onClick: resetCustomEvent
|
|
6453
|
-
}, customOpts.resetButtonText || (
|
|
6755
|
+
}, customOpts.resetButtonText || panel_getI18n('vxe.toolbar.customRestore')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6454
6756
|
class: 'btn--confirm',
|
|
6455
6757
|
onClick: confirmCustomEvent
|
|
6456
|
-
}, customOpts.confirmButtonText || (
|
|
6758
|
+
}, customOpts.confirmButtonText || panel_getI18n('vxe.toolbar.customConfirm'))]) : null]);
|
|
6457
6759
|
};
|
|
6458
6760
|
const renderPopupPanel = () => {
|
|
6459
6761
|
const {
|
|
@@ -6518,7 +6820,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6518
6820
|
}
|
|
6519
6821
|
}
|
|
6520
6822
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6521
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? (
|
|
6823
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6522
6824
|
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6523
6825
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
6524
6826
|
}, [!parent && customOpts.allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-radio-group'), {
|
|
@@ -6526,14 +6828,14 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6526
6828
|
type: 'button',
|
|
6527
6829
|
size: 'mini',
|
|
6528
6830
|
options: [{
|
|
6529
|
-
label: (
|
|
6831
|
+
label: panel_getI18n('vxe.custom.setting.fixedLeft'),
|
|
6530
6832
|
value: 'left',
|
|
6531
6833
|
disabled: isMaxFixedColumn
|
|
6532
6834
|
}, {
|
|
6533
|
-
label: (
|
|
6835
|
+
label: panel_getI18n('vxe.custom.setting.fixedUnset'),
|
|
6534
6836
|
value: ''
|
|
6535
6837
|
}, {
|
|
6536
|
-
label: (
|
|
6838
|
+
label: panel_getI18n('vxe.custom.setting.fixedRight'),
|
|
6537
6839
|
value: 'right',
|
|
6538
6840
|
disabled: isMaxFixedColumn
|
|
6539
6841
|
}],
|
|
@@ -6550,7 +6852,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6550
6852
|
key: 'popup',
|
|
6551
6853
|
className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
|
|
6552
6854
|
modelValue: customStore.visible,
|
|
6553
|
-
title: (
|
|
6855
|
+
title: panel_getI18n('vxe.custom.cstmTitle'),
|
|
6554
6856
|
width: '40vw',
|
|
6555
6857
|
minWidth: 520,
|
|
6556
6858
|
height: '50vh',
|
|
@@ -6585,16 +6887,16 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6585
6887
|
}
|
|
6586
6888
|
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('thead', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6587
6889
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
6588
|
-
}, (
|
|
6890
|
+
}, panel_getI18n('vxe.custom.setting.colSort')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-tooltip'), {
|
|
6589
6891
|
enterable: true,
|
|
6590
|
-
content: (
|
|
6892
|
+
content: panel_getI18n('vxe.custom.setting.sortHelpTip')
|
|
6591
6893
|
}, {
|
|
6592
6894
|
default: () => {
|
|
6593
6895
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6594
6896
|
class: 'vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill'
|
|
6595
6897
|
});
|
|
6596
6898
|
}
|
|
6597
|
-
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, (
|
|
6899
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colVisible')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0]))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
6598
6900
|
class: 'vxe-table-custom--body',
|
|
6599
6901
|
tag: 'tbody',
|
|
6600
6902
|
name: 'vxe-table-custom--list'
|
|
@@ -6603,20 +6905,20 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6603
6905
|
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6604
6906
|
ref: dragHintElemRef,
|
|
6605
6907
|
class: 'vxe-table-custom-popup--drag-hint'
|
|
6606
|
-
}, (
|
|
6908
|
+
}, panel_getI18n('vxe.custom.cstmDragTarget', [dragColumn.value ? dragColumn.value.getTitle() : '']))]);
|
|
6607
6909
|
},
|
|
6608
6910
|
footer: () => {
|
|
6609
6911
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6610
6912
|
class: 'vxe-table-custom-popup--footer'
|
|
6611
6913
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6612
|
-
content: customOpts.resetButtonText || (
|
|
6914
|
+
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmRestore'),
|
|
6613
6915
|
onClick: resetPopupCustomEvent
|
|
6614
6916
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6615
|
-
content: customOpts.resetButtonText || (
|
|
6917
|
+
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmCancel'),
|
|
6616
6918
|
onClick: cancelCustomEvent
|
|
6617
6919
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6618
6920
|
status: 'primary',
|
|
6619
|
-
content: customOpts.confirmButtonText || (
|
|
6921
|
+
content: customOpts.confirmButtonText || panel_getI18n('vxe.custom.cstmConfirm'),
|
|
6620
6922
|
onClick: confirmCustomEvent
|
|
6621
6923
|
})]);
|
|
6622
6924
|
}
|
|
@@ -6638,6 +6940,11 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6638
6940
|
|
|
6639
6941
|
|
|
6640
6942
|
|
|
6943
|
+
const {
|
|
6944
|
+
getI18n: filter_panel_getI18n,
|
|
6945
|
+
getIcon: filter_panel_getIcon,
|
|
6946
|
+
renderer: panel_renderer
|
|
6947
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
6641
6948
|
/* harmony default export */ var filter_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6642
6949
|
name: 'VxeTableFilterPanel',
|
|
6643
6950
|
props: {
|
|
@@ -6780,15 +7087,15 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6780
7087
|
'is--checked': isAllChecked,
|
|
6781
7088
|
'is--indeterminate': isAllIndeterminate
|
|
6782
7089
|
}],
|
|
6783
|
-
title: (
|
|
7090
|
+
title: filter_panel_getI18n(multiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter'),
|
|
6784
7091
|
onClick: evnt => {
|
|
6785
7092
|
changeAllOption(evnt, !filterStore.isAllSelected);
|
|
6786
7093
|
}
|
|
6787
7094
|
}, (multiple ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6788
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? (
|
|
7095
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? filter_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? filter_panel_getIcon().TABLE_CHECKBOX_CHECKED : filter_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6789
7096
|
})] : []).concat([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6790
7097
|
class: 'vxe-checkbox--label'
|
|
6791
|
-
}, (
|
|
7098
|
+
}, filter_panel_getI18n('vxe.table.allFilter'))]))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
6792
7099
|
class: 'vxe-table--filter-body',
|
|
6793
7100
|
style: maxHeight ? {
|
|
6794
7101
|
maxHeight: `${maxHeight}px`
|
|
@@ -6805,7 +7112,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6805
7112
|
changeOption(evnt, !item._checked, item);
|
|
6806
7113
|
}
|
|
6807
7114
|
}, (multiple ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6808
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? (
|
|
7115
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? filter_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? filter_panel_getIcon().TABLE_CHECKBOX_CHECKED : filter_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6809
7116
|
})] : []).concat([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6810
7117
|
class: 'vxe-checkbox--label'
|
|
6811
7118
|
}, formatText(item.label, 1))]));
|
|
@@ -6822,7 +7129,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6822
7129
|
const filterOpts = computeFilterOpts.value;
|
|
6823
7130
|
const hasCheckOption = computeHasCheckOption.value;
|
|
6824
7131
|
const filterRender = column.filterRender;
|
|
6825
|
-
const compConf = filterRender ?
|
|
7132
|
+
const compConf = filterRender ? panel_renderer.get(filterRender.name) : null;
|
|
6826
7133
|
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
6827
7134
|
return multiple && (!compConf || compConf.showFilterFooter !== false) ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6828
7135
|
class: 'vxe-table--filter-footer'
|
|
@@ -6832,9 +7139,9 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6832
7139
|
},
|
|
6833
7140
|
disabled: isDisabled,
|
|
6834
7141
|
onClick: confirmFilter
|
|
6835
|
-
}, filterOpts.confirmButtonText || (
|
|
7142
|
+
}, filterOpts.confirmButtonText || filter_panel_getI18n('vxe.table.confirmFilter')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6836
7143
|
onClick: resetFilter
|
|
6837
|
-
}, filterOpts.resetButtonText || (
|
|
7144
|
+
}, filterOpts.resetButtonText || filter_panel_getI18n('vxe.table.resetFilter'))])] : [];
|
|
6838
7145
|
};
|
|
6839
7146
|
const renderVN = () => {
|
|
6840
7147
|
const {
|
|
@@ -6847,7 +7154,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6847
7154
|
column
|
|
6848
7155
|
} = filterStore;
|
|
6849
7156
|
const filterRender = column ? column.filterRender : null;
|
|
6850
|
-
const compConf = filterRender ?
|
|
7157
|
+
const compConf = filterRender ? panel_renderer.get(filterRender.name) : null;
|
|
6851
7158
|
const filterClassName = compConf ? compConf.filterClassName : '';
|
|
6852
7159
|
const params = Object.assign({}, tableInternalData._currFilterParams, {
|
|
6853
7160
|
$panel,
|
|
@@ -6870,6 +7177,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6870
7177
|
|
|
6871
7178
|
|
|
6872
7179
|
|
|
7180
|
+
const {
|
|
7181
|
+
getI18n: import_panel_getI18n,
|
|
7182
|
+
getIcon: import_panel_getIcon
|
|
7183
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
6873
7184
|
/* harmony default export */ var import_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6874
7185
|
name: 'VxeTableImportPanel',
|
|
6875
7186
|
props: {
|
|
@@ -6907,7 +7218,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6907
7218
|
} = storeData;
|
|
6908
7219
|
if (type) {
|
|
6909
7220
|
const selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(typeList, item => type === item.value);
|
|
6910
|
-
return selectItem ? (
|
|
7221
|
+
return selectItem ? import_panel_getI18n(selectItem.label) : '*.*';
|
|
6911
7222
|
}
|
|
6912
7223
|
return `*.${typeList.map(item => item.value).join(', *.')}`;
|
|
6913
7224
|
});
|
|
@@ -6973,7 +7284,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6973
7284
|
const parseTypeLabel = computeParseTypeLabel.value;
|
|
6974
7285
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), {
|
|
6975
7286
|
modelValue: storeData.visible,
|
|
6976
|
-
title: (
|
|
7287
|
+
title: import_panel_getI18n('vxe.import.impTitle'),
|
|
6977
7288
|
className: 'vxe-table-import-popup-wrapper',
|
|
6978
7289
|
width: 440,
|
|
6979
7290
|
mask: true,
|
|
@@ -6994,17 +7305,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6994
7305
|
cellspacing: 0,
|
|
6995
7306
|
cellpadding: 0,
|
|
6996
7307
|
border: 0
|
|
6997
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7308
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impFile')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [hasFile ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6998
7309
|
class: 'vxe-import-selected--file',
|
|
6999
7310
|
title: selectName
|
|
7000
7311
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', selectName), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
7001
|
-
class: (
|
|
7312
|
+
class: import_panel_getIcon().INPUT_CLEAR,
|
|
7002
7313
|
onClick: clearFileEvent
|
|
7003
7314
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
7004
7315
|
ref: refFileBtn,
|
|
7005
7316
|
class: 'vxe-import-select--file',
|
|
7006
7317
|
onClick: selectFileEvent
|
|
7007
|
-
}, (
|
|
7318
|
+
}, import_panel_getI18n('vxe.import.impSelect'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', parseTypeLabel)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impOpts')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-radio-group'), {
|
|
7008
7319
|
modelValue: defaultOptions.mode,
|
|
7009
7320
|
'onUpdate:modelValue'(value) {
|
|
7010
7321
|
defaultOptions.mode = value;
|
|
@@ -7012,17 +7323,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7012
7323
|
}, {
|
|
7013
7324
|
default: () => storeData.modeList.map(item => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-radio'), {
|
|
7014
7325
|
label: item.value,
|
|
7015
|
-
content: (
|
|
7326
|
+
content: import_panel_getI18n(item.label)
|
|
7016
7327
|
}))
|
|
7017
7328
|
})])])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7018
7329
|
class: 'vxe-export--panel-btns'
|
|
7019
7330
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7020
|
-
content: (
|
|
7331
|
+
content: import_panel_getI18n('vxe.import.impCancel'),
|
|
7021
7332
|
onClick: cancelEvent
|
|
7022
7333
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7023
7334
|
status: 'primary',
|
|
7024
7335
|
disabled: !hasFile,
|
|
7025
|
-
content: (
|
|
7336
|
+
content: import_panel_getI18n('vxe.import.impConfirm'),
|
|
7026
7337
|
onClick: importEvent
|
|
7027
7338
|
})])]);
|
|
7028
7339
|
}
|
|
@@ -7037,6 +7348,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7037
7348
|
|
|
7038
7349
|
|
|
7039
7350
|
|
|
7351
|
+
const {
|
|
7352
|
+
getI18n: export_panel_getI18n,
|
|
7353
|
+
getIcon: export_panel_getIcon
|
|
7354
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
7040
7355
|
/* harmony default export */ var export_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
7041
7356
|
name: 'VxeTableExportPanel',
|
|
7042
7357
|
props: {
|
|
@@ -7241,14 +7556,14 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7241
7556
|
}
|
|
7242
7557
|
}
|
|
7243
7558
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7244
|
-
class: ['vxe-checkbox--icon', indeterminate ? (
|
|
7559
|
+
class: ['vxe-checkbox--icon', indeterminate ? export_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? export_panel_getIcon().TABLE_CHECKBOX_CHECKED : export_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
7245
7560
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7246
7561
|
class: 'vxe-checkbox--label'
|
|
7247
7562
|
}, colTitle)]));
|
|
7248
7563
|
});
|
|
7249
7564
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), {
|
|
7250
7565
|
modelValue: storeData.visible,
|
|
7251
|
-
title: (
|
|
7566
|
+
title: export_panel_getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
7252
7567
|
className: 'vxe-table-export-popup-wrapper',
|
|
7253
7568
|
width: 660,
|
|
7254
7569
|
mask: true,
|
|
@@ -7269,47 +7584,47 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7269
7584
|
cellspacing: 0,
|
|
7270
7585
|
cellpadding: 0,
|
|
7271
7586
|
border: 0
|
|
7272
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [[isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7587
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [[isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expName')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-input'), {
|
|
7273
7588
|
ref: xInputFilename,
|
|
7274
7589
|
modelValue: defaultOptions.filename,
|
|
7275
7590
|
type: 'text',
|
|
7276
7591
|
clearable: true,
|
|
7277
|
-
placeholder: (
|
|
7592
|
+
placeholder: export_panel_getI18n('vxe.export.expNamePlaceholder'),
|
|
7278
7593
|
'onUpdate:modelValue'(value) {
|
|
7279
7594
|
defaultOptions.filename = value;
|
|
7280
7595
|
}
|
|
7281
|
-
})])]), isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7596
|
+
})])]), isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-select'), {
|
|
7282
7597
|
modelValue: defaultOptions.type,
|
|
7283
7598
|
options: storeData.typeList.map(item => {
|
|
7284
7599
|
return {
|
|
7285
7600
|
value: item.value,
|
|
7286
|
-
label: (
|
|
7601
|
+
label: export_panel_getI18n(item.label)
|
|
7287
7602
|
};
|
|
7288
7603
|
}),
|
|
7289
7604
|
'onUpdate:modelValue'(value) {
|
|
7290
7605
|
defaultOptions.type = value;
|
|
7291
7606
|
}
|
|
7292
|
-
})])]), isPrint || showSheet ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7607
|
+
})])]), isPrint || showSheet ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expSheetName')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-input'), {
|
|
7293
7608
|
ref: xInputSheetname,
|
|
7294
7609
|
modelValue: defaultOptions.sheetName,
|
|
7295
7610
|
type: 'text',
|
|
7296
7611
|
clearable: true,
|
|
7297
|
-
placeholder: (
|
|
7612
|
+
placeholder: export_panel_getI18n('vxe.export.expSheetNamePlaceholder'),
|
|
7298
7613
|
'onUpdate:modelValue'(value) {
|
|
7299
7614
|
defaultOptions.sheetName = value;
|
|
7300
7615
|
}
|
|
7301
|
-
})])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7616
|
+
})])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expMode')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-select'), {
|
|
7302
7617
|
modelValue: defaultOptions.mode,
|
|
7303
7618
|
options: storeData.modeList.map(item => {
|
|
7304
7619
|
return {
|
|
7305
7620
|
value: item.value,
|
|
7306
|
-
label: (
|
|
7621
|
+
label: export_panel_getI18n(item.label)
|
|
7307
7622
|
};
|
|
7308
7623
|
}),
|
|
7309
7624
|
'onUpdate:modelValue'(value) {
|
|
7310
7625
|
defaultOptions.mode = value;
|
|
7311
7626
|
}
|
|
7312
|
-
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(
|
|
7627
|
+
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [export_panel_getI18n('vxe.export.expColumn')]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7313
7628
|
class: 'vxe-export--panel-column'
|
|
7314
7629
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
7315
7630
|
class: 'vxe-export--panel-column-header'
|
|
@@ -7318,35 +7633,35 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7318
7633
|
'is--checked': isAllChecked,
|
|
7319
7634
|
'is--indeterminate': isAllIndeterminate
|
|
7320
7635
|
}],
|
|
7321
|
-
title: (
|
|
7636
|
+
title: export_panel_getI18n('vxe.table.allTitle'),
|
|
7322
7637
|
onClick: allColumnEvent
|
|
7323
7638
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7324
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? (
|
|
7639
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? export_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? export_panel_getIcon().TABLE_CHECKBOX_CHECKED : export_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
7325
7640
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7326
7641
|
class: 'vxe-checkbox--label'
|
|
7327
|
-
}, (
|
|
7642
|
+
}, export_panel_getI18n('vxe.export.expCurrentColumn'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
7328
7643
|
class: 'vxe-export--panel-column-body'
|
|
7329
|
-
}, cols)])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7644
|
+
}, cols)])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expOpts')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7330
7645
|
class: 'vxe-export--panel-option-row'
|
|
7331
7646
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7332
7647
|
modelValue: defaultOptions.isHeader,
|
|
7333
|
-
title: (
|
|
7334
|
-
content: (
|
|
7648
|
+
title: export_panel_getI18n('vxe.export.expHeaderTitle'),
|
|
7649
|
+
content: export_panel_getI18n('vxe.export.expOptHeader'),
|
|
7335
7650
|
'onUpdate:modelValue'(value) {
|
|
7336
7651
|
defaultOptions.isHeader = value;
|
|
7337
7652
|
}
|
|
7338
7653
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7339
7654
|
modelValue: defaultOptions.isFooter,
|
|
7340
7655
|
disabled: !storeData.hasFooter,
|
|
7341
|
-
title: (
|
|
7342
|
-
content: (
|
|
7656
|
+
title: export_panel_getI18n('vxe.export.expFooterTitle'),
|
|
7657
|
+
content: export_panel_getI18n('vxe.export.expOptFooter'),
|
|
7343
7658
|
'onUpdate:modelValue'(value) {
|
|
7344
7659
|
defaultOptions.isFooter = value;
|
|
7345
7660
|
}
|
|
7346
7661
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7347
7662
|
modelValue: defaultOptions.original,
|
|
7348
|
-
title: (
|
|
7349
|
-
content: (
|
|
7663
|
+
title: export_panel_getI18n('vxe.export.expOriginalTitle'),
|
|
7664
|
+
content: export_panel_getI18n('vxe.export.expOptOriginal'),
|
|
7350
7665
|
'onUpdate:modelValue'(value) {
|
|
7351
7666
|
defaultOptions.original = value;
|
|
7352
7667
|
}
|
|
@@ -7354,45 +7669,45 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7354
7669
|
class: 'vxe-export--panel-option-row'
|
|
7355
7670
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7356
7671
|
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
7357
|
-
title: (
|
|
7672
|
+
title: export_panel_getI18n('vxe.export.expColgroupTitle'),
|
|
7358
7673
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
7359
|
-
content: (
|
|
7674
|
+
content: export_panel_getI18n('vxe.export.expOptColgroup'),
|
|
7360
7675
|
'onUpdate:modelValue'(value) {
|
|
7361
7676
|
defaultOptions.isColgroup = value;
|
|
7362
7677
|
}
|
|
7363
7678
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7364
7679
|
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
7365
|
-
title: (
|
|
7680
|
+
title: export_panel_getI18n('vxe.export.expMergeTitle'),
|
|
7366
7681
|
disabled: !hasMerge || !supportMerge || !checkedAll,
|
|
7367
|
-
content: (
|
|
7682
|
+
content: export_panel_getI18n('vxe.export.expOptMerge'),
|
|
7368
7683
|
'onUpdate:modelValue'(value) {
|
|
7369
7684
|
defaultOptions.isMerge = value;
|
|
7370
7685
|
}
|
|
7371
7686
|
}), isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7372
7687
|
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
7373
7688
|
disabled: !supportStyle,
|
|
7374
|
-
title: (
|
|
7375
|
-
content: (
|
|
7689
|
+
title: export_panel_getI18n('vxe.export.expUseStyleTitle'),
|
|
7690
|
+
content: export_panel_getI18n('vxe.export.expOptUseStyle'),
|
|
7376
7691
|
'onUpdate:modelValue'(value) {
|
|
7377
7692
|
defaultOptions.useStyle = value;
|
|
7378
7693
|
}
|
|
7379
7694
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7380
7695
|
modelValue: hasTree ? defaultOptions.isAllExpand : false,
|
|
7381
7696
|
disabled: !hasTree,
|
|
7382
|
-
title: (
|
|
7383
|
-
content: (
|
|
7697
|
+
title: export_panel_getI18n('vxe.export.expAllExpandTitle'),
|
|
7698
|
+
content: export_panel_getI18n('vxe.export.expOptAllExpand'),
|
|
7384
7699
|
'onUpdate:modelValue'(value) {
|
|
7385
7700
|
defaultOptions.isAllExpand = value;
|
|
7386
7701
|
}
|
|
7387
7702
|
})])])])]])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7388
7703
|
class: 'vxe-export--panel-btns'
|
|
7389
7704
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7390
|
-
content: (
|
|
7705
|
+
content: export_panel_getI18n('vxe.export.expCancel'),
|
|
7391
7706
|
onClick: cancelEvent
|
|
7392
7707
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7393
7708
|
ref: xButtonConfirm,
|
|
7394
7709
|
status: 'primary',
|
|
7395
|
-
content: (
|
|
7710
|
+
content: export_panel_getI18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm'),
|
|
7396
7711
|
onClick: confirmEvent
|
|
7397
7712
|
})])]);
|
|
7398
7713
|
}
|
|
@@ -7527,6 +7842,20 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7527
7842
|
|
|
7528
7843
|
|
|
7529
7844
|
|
|
7845
|
+
const {
|
|
7846
|
+
getConfig: table_getConfig,
|
|
7847
|
+
getI18n: table_getI18n,
|
|
7848
|
+
renderer: table_renderer,
|
|
7849
|
+
formats: table_formats,
|
|
7850
|
+
createEvent,
|
|
7851
|
+
globalResize: table_globalResize,
|
|
7852
|
+
interceptor: table_interceptor,
|
|
7853
|
+
hooks: table_hooks,
|
|
7854
|
+
globalEvents: table_globalEvents,
|
|
7855
|
+
GLOBAL_EVENT_KEYS,
|
|
7856
|
+
log: table_log,
|
|
7857
|
+
useFns
|
|
7858
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
7530
7859
|
const isWebkit = browse['-webkit'] && !browse.edge;
|
|
7531
7860
|
const resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH';
|
|
7532
7861
|
const visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
@@ -7544,7 +7873,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7544
7873
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
7545
7874
|
const {
|
|
7546
7875
|
computeSize
|
|
7547
|
-
} =
|
|
7876
|
+
} = useFns.useSize(props);
|
|
7548
7877
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
7549
7878
|
// 低性能的静态列
|
|
7550
7879
|
staticColumns: [],
|
|
@@ -7853,13 +8182,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7853
8182
|
const $xeGrid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeGrid', null);
|
|
7854
8183
|
let $xeToolbar;
|
|
7855
8184
|
const computeValidOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7856
|
-
return Object.assign({}, (
|
|
8185
|
+
return Object.assign({}, table_getConfig().table.validConfig, props.validConfig);
|
|
7857
8186
|
});
|
|
7858
8187
|
const computeSXOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7859
|
-
return Object.assign({}, (
|
|
8188
|
+
return Object.assign({}, table_getConfig().table.scrollX, props.scrollX);
|
|
7860
8189
|
});
|
|
7861
8190
|
const computeSYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7862
|
-
return Object.assign({}, (
|
|
8191
|
+
return Object.assign({}, table_getConfig().table.scrollY, props.scrollY);
|
|
7863
8192
|
});
|
|
7864
8193
|
const computeRowHeightMaps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7865
8194
|
return {
|
|
@@ -7870,31 +8199,31 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7870
8199
|
};
|
|
7871
8200
|
});
|
|
7872
8201
|
const computeColumnOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7873
|
-
return Object.assign({}, (
|
|
8202
|
+
return Object.assign({}, table_getConfig().table.columnConfig, props.columnConfig);
|
|
7874
8203
|
});
|
|
7875
8204
|
const computeRowOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7876
|
-
return Object.assign({}, (
|
|
8205
|
+
return Object.assign({}, table_getConfig().table.rowConfig, props.rowConfig);
|
|
7877
8206
|
});
|
|
7878
8207
|
const computeResizeleOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7879
|
-
return Object.assign({}, (
|
|
8208
|
+
return Object.assign({}, table_getConfig().table.resizeConfig, props.resizeConfig);
|
|
7880
8209
|
});
|
|
7881
8210
|
const computeResizableOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7882
|
-
return Object.assign({}, (
|
|
8211
|
+
return Object.assign({}, table_getConfig().table.resizableConfig, props.resizableConfig);
|
|
7883
8212
|
});
|
|
7884
8213
|
const computeSeqOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7885
8214
|
return Object.assign({
|
|
7886
8215
|
startIndex: 0
|
|
7887
|
-
}, (
|
|
8216
|
+
}, table_getConfig().table.seqConfig, props.seqConfig);
|
|
7888
8217
|
});
|
|
7889
8218
|
const computeRadioOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7890
|
-
return Object.assign({}, (
|
|
8219
|
+
return Object.assign({}, table_getConfig().table.radioConfig, props.radioConfig);
|
|
7891
8220
|
});
|
|
7892
8221
|
const computeCheckboxOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7893
|
-
return Object.assign({}, (
|
|
8222
|
+
return Object.assign({}, table_getConfig().table.checkboxConfig, props.checkboxConfig);
|
|
7894
8223
|
});
|
|
7895
8224
|
let computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
7896
8225
|
computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7897
|
-
return Object.assign({}, (
|
|
8226
|
+
return Object.assign({}, table_getConfig().tooltip, table_getConfig().table.tooltipConfig, props.tooltipConfig);
|
|
7898
8227
|
});
|
|
7899
8228
|
const computeTipConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7900
8229
|
const tooltipOpts = computeTooltipOpts.value;
|
|
@@ -7909,33 +8238,33 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7909
8238
|
}, tooltipOpts);
|
|
7910
8239
|
});
|
|
7911
8240
|
const computeEditOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7912
|
-
return Object.assign({}, (
|
|
8241
|
+
return Object.assign({}, table_getConfig().table.editConfig, props.editConfig);
|
|
7913
8242
|
});
|
|
7914
8243
|
const computeSortOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7915
8244
|
return Object.assign({
|
|
7916
8245
|
orders: ['asc', 'desc', null]
|
|
7917
|
-
}, (
|
|
8246
|
+
}, table_getConfig().table.sortConfig, props.sortConfig);
|
|
7918
8247
|
});
|
|
7919
8248
|
const computeFilterOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7920
|
-
return Object.assign({}, (
|
|
8249
|
+
return Object.assign({}, table_getConfig().table.filterConfig, props.filterConfig);
|
|
7921
8250
|
});
|
|
7922
8251
|
const computeMouseOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7923
|
-
return Object.assign({}, (
|
|
8252
|
+
return Object.assign({}, table_getConfig().table.mouseConfig, props.mouseConfig);
|
|
7924
8253
|
});
|
|
7925
8254
|
const computeAreaOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7926
|
-
return Object.assign({}, (
|
|
8255
|
+
return Object.assign({}, table_getConfig().table.areaConfig, props.areaConfig);
|
|
7927
8256
|
});
|
|
7928
8257
|
const computeKeyboardOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7929
|
-
return Object.assign({}, (
|
|
8258
|
+
return Object.assign({}, table_getConfig().table.keyboardConfig, props.keyboardConfig);
|
|
7930
8259
|
});
|
|
7931
8260
|
const computeClipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7932
|
-
return Object.assign({}, (
|
|
8261
|
+
return Object.assign({}, table_getConfig().table.clipConfig, props.clipConfig);
|
|
7933
8262
|
});
|
|
7934
8263
|
const computeFNROpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7935
|
-
return Object.assign({}, (
|
|
8264
|
+
return Object.assign({}, table_getConfig().table.fnrConfig, props.fnrConfig);
|
|
7936
8265
|
});
|
|
7937
8266
|
const computeMenuOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7938
|
-
return Object.assign({}, (
|
|
8267
|
+
return Object.assign({}, table_getConfig().table.menuConfig, props.menuConfig);
|
|
7939
8268
|
});
|
|
7940
8269
|
const computeHeaderMenu = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7941
8270
|
const menuOpts = computeMenuOpts.value;
|
|
@@ -7972,31 +8301,31 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7972
8301
|
return rest;
|
|
7973
8302
|
});
|
|
7974
8303
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7975
|
-
return Object.assign({}, (
|
|
8304
|
+
return Object.assign({}, table_getConfig().table.exportConfig, props.exportConfig);
|
|
7976
8305
|
});
|
|
7977
8306
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7978
|
-
return Object.assign({}, (
|
|
8307
|
+
return Object.assign({}, table_getConfig().table.importConfig, props.importConfig);
|
|
7979
8308
|
});
|
|
7980
8309
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7981
|
-
return Object.assign({}, (
|
|
8310
|
+
return Object.assign({}, table_getConfig().table.printConfig, props.printConfig);
|
|
7982
8311
|
});
|
|
7983
8312
|
const computeExpandOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7984
|
-
return Object.assign({}, (
|
|
8313
|
+
return Object.assign({}, table_getConfig().table.expandConfig, props.expandConfig);
|
|
7985
8314
|
});
|
|
7986
8315
|
const computeTreeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7987
|
-
return Object.assign({}, (
|
|
8316
|
+
return Object.assign({}, table_getConfig().table.treeConfig, props.treeConfig);
|
|
7988
8317
|
});
|
|
7989
8318
|
const computeEmptyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7990
|
-
return Object.assign({}, (
|
|
8319
|
+
return Object.assign({}, table_getConfig().table.emptyRender, props.emptyRender);
|
|
7991
8320
|
});
|
|
7992
8321
|
const computeLoadingOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7993
|
-
return Object.assign({}, (
|
|
8322
|
+
return Object.assign({}, table_getConfig().table.loadingConfig, props.loadingConfig);
|
|
7994
8323
|
});
|
|
7995
8324
|
const computeCellOffsetWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7996
8325
|
return props.border ? Math.max(2, Math.ceil(reactData.scrollbarWidth / reactData.tableColumn.length)) : 1;
|
|
7997
8326
|
});
|
|
7998
8327
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7999
|
-
return Object.assign({}, (
|
|
8328
|
+
return Object.assign({}, table_getConfig().table.customConfig, props.customConfig);
|
|
8000
8329
|
});
|
|
8001
8330
|
const computeFixedColumnSize = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8002
8331
|
const {
|
|
@@ -8155,7 +8484,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8155
8484
|
return orders[oIndex < orders.length ? oIndex : 0];
|
|
8156
8485
|
};
|
|
8157
8486
|
const getCustomStorageMap = key => {
|
|
8158
|
-
const version = (
|
|
8487
|
+
const version = table_getConfig().version;
|
|
8159
8488
|
const rest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringJSON(localStorage.getItem(key) || '');
|
|
8160
8489
|
return rest && rest._v === version ? rest : {
|
|
8161
8490
|
_v: version
|
|
@@ -8286,7 +8615,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8286
8615
|
merges = [merges];
|
|
8287
8616
|
}
|
|
8288
8617
|
if (treeConfig && merges.length) {
|
|
8289
|
-
|
|
8618
|
+
table_log.err('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8290
8619
|
}
|
|
8291
8620
|
merges.forEach(item => {
|
|
8292
8621
|
let {
|
|
@@ -8344,7 +8673,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8344
8673
|
merges = [merges];
|
|
8345
8674
|
}
|
|
8346
8675
|
if (treeConfig && merges.length) {
|
|
8347
|
-
|
|
8676
|
+
table_log.err('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8348
8677
|
}
|
|
8349
8678
|
merges.forEach(item => {
|
|
8350
8679
|
let {
|
|
@@ -8416,7 +8745,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8416
8745
|
if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
8417
8746
|
const customMap = {};
|
|
8418
8747
|
if (!id) {
|
|
8419
|
-
|
|
8748
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
8420
8749
|
return;
|
|
8421
8750
|
}
|
|
8422
8751
|
// 自定义列宽
|
|
@@ -8573,7 +8902,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8573
8902
|
if (field) {
|
|
8574
8903
|
if (true) {
|
|
8575
8904
|
if (fullColumnFieldData[field]) {
|
|
8576
|
-
|
|
8905
|
+
table_log.warn('vxe.error.colRepet', ['field', field]);
|
|
8577
8906
|
}
|
|
8578
8907
|
}
|
|
8579
8908
|
fullColumnFieldData[field] = rest;
|
|
@@ -8587,7 +8916,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8587
8916
|
if (treeNode) {
|
|
8588
8917
|
if (true) {
|
|
8589
8918
|
if (treeNodeColumn) {
|
|
8590
|
-
|
|
8919
|
+
table_log.warn('vxe.error.colRepet', ['tree-node', treeNode]);
|
|
8591
8920
|
}
|
|
8592
8921
|
}
|
|
8593
8922
|
if (!treeNodeColumn) {
|
|
@@ -8596,7 +8925,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8596
8925
|
} else if (type === 'expand') {
|
|
8597
8926
|
if (true) {
|
|
8598
8927
|
if (expandColumn) {
|
|
8599
|
-
|
|
8928
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8600
8929
|
}
|
|
8601
8930
|
}
|
|
8602
8931
|
if (!expandColumn) {
|
|
@@ -8606,14 +8935,14 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8606
8935
|
if (true) {
|
|
8607
8936
|
if (type === 'checkbox') {
|
|
8608
8937
|
if (checkboxColumn) {
|
|
8609
|
-
|
|
8938
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8610
8939
|
}
|
|
8611
8940
|
if (!checkboxColumn) {
|
|
8612
8941
|
checkboxColumn = column;
|
|
8613
8942
|
}
|
|
8614
8943
|
} else if (type === 'radio') {
|
|
8615
8944
|
if (radioColumn) {
|
|
8616
|
-
|
|
8945
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8617
8946
|
}
|
|
8618
8947
|
if (!radioColumn) {
|
|
8619
8948
|
radioColumn = column;
|
|
@@ -8624,7 +8953,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8624
8953
|
isAllOverflow = false;
|
|
8625
8954
|
}
|
|
8626
8955
|
if (fullColumnIdData[colid]) {
|
|
8627
|
-
|
|
8956
|
+
table_log.err('vxe.error.colRepet', ['colId', colid]);
|
|
8628
8957
|
}
|
|
8629
8958
|
fullColumnIdData[colid] = rest;
|
|
8630
8959
|
};
|
|
@@ -8638,16 +8967,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8638
8967
|
}
|
|
8639
8968
|
if (true) {
|
|
8640
8969
|
if (expandColumn && mouseOpts.area) {
|
|
8641
|
-
|
|
8970
|
+
table_log.err('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
8642
8971
|
}
|
|
8643
8972
|
}
|
|
8644
8973
|
if (true) {
|
|
8645
8974
|
if (htmlColumn) {
|
|
8646
8975
|
if (!columnOpts.useKey) {
|
|
8647
|
-
|
|
8976
|
+
table_log.err('vxe.error.reqProp', ['column-config.useKey', 'column.type=html']);
|
|
8648
8977
|
}
|
|
8649
8978
|
if (!rowOpts.useKey) {
|
|
8650
|
-
|
|
8979
|
+
table_log.err('vxe.error.reqProp', ['row-config.useKey', 'column.type=html']);
|
|
8651
8980
|
}
|
|
8652
8981
|
}
|
|
8653
8982
|
}
|
|
@@ -9022,7 +9351,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9022
9351
|
filterMethod,
|
|
9023
9352
|
filterRender
|
|
9024
9353
|
} = column;
|
|
9025
|
-
const compConf = filterRender ?
|
|
9354
|
+
const compConf = filterRender ? table_renderer.get(filterRender.name) : null;
|
|
9026
9355
|
const compFilterMethod = compConf ? compConf.filterMethod : null;
|
|
9027
9356
|
const defaultFilterMethod = compConf ? compConf.defaultFilterMethod : null;
|
|
9028
9357
|
const cellValue = getCellValue(row, column);
|
|
@@ -10074,19 +10403,19 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10074
10403
|
// 树结构自动转换
|
|
10075
10404
|
if (true) {
|
|
10076
10405
|
if (!treeOpts.rowField) {
|
|
10077
|
-
|
|
10406
|
+
table_log.err('vxe.error.reqProp', ['tree-config.rowField']);
|
|
10078
10407
|
}
|
|
10079
10408
|
if (!treeOpts.parentField) {
|
|
10080
|
-
|
|
10409
|
+
table_log.err('vxe.error.reqProp', ['tree-config.parentField']);
|
|
10081
10410
|
}
|
|
10082
10411
|
if (!childrenField) {
|
|
10083
|
-
|
|
10412
|
+
table_log.err('vxe.error.reqProp', ['tree-config.childrenField']);
|
|
10084
10413
|
}
|
|
10085
10414
|
if (!treeOpts.mapChildrenField) {
|
|
10086
|
-
|
|
10415
|
+
table_log.err('vxe.error.reqProp', ['tree-config.mapChildrenField']);
|
|
10087
10416
|
}
|
|
10088
10417
|
if (childrenField === treeOpts.mapChildrenField) {
|
|
10089
|
-
|
|
10418
|
+
table_log.err('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
|
|
10090
10419
|
}
|
|
10091
10420
|
// fullData.forEach(row => {
|
|
10092
10421
|
// if (row[treeOpts.children] && row[treeOpts.children].length) {
|
|
@@ -10128,13 +10457,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10128
10457
|
if (true) {
|
|
10129
10458
|
if (sYLoad) {
|
|
10130
10459
|
if (!(props.height || props.maxHeight)) {
|
|
10131
|
-
|
|
10460
|
+
table_log.err('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
|
|
10132
10461
|
}
|
|
10133
10462
|
if (!props.showOverflow) {
|
|
10134
|
-
|
|
10463
|
+
table_log.warn('vxe.error.reqProp', ['table.show-overflow']);
|
|
10135
10464
|
}
|
|
10136
10465
|
if (props.spanMethod) {
|
|
10137
|
-
|
|
10466
|
+
table_log.warn('vxe.error.scrollErrProp', ['table.span-method']);
|
|
10138
10467
|
}
|
|
10139
10468
|
}
|
|
10140
10469
|
}
|
|
@@ -10290,7 +10619,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10290
10619
|
column.fixed = parent.fixed;
|
|
10291
10620
|
}
|
|
10292
10621
|
if (parent && column.fixed !== parent.fixed) {
|
|
10293
|
-
|
|
10622
|
+
table_log.err('vxe.error.groupFixed');
|
|
10294
10623
|
}
|
|
10295
10624
|
if (isColGroup) {
|
|
10296
10625
|
column.visible = !!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(column.children, subColumn => hasChildrenList(subColumn) ? false : subColumn.visible);
|
|
@@ -10348,10 +10677,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10348
10677
|
// log.warn('vxe.error.reqProp', ['show-footer-overflow'])
|
|
10349
10678
|
// }
|
|
10350
10679
|
if (props.spanMethod) {
|
|
10351
|
-
|
|
10680
|
+
table_log.warn('vxe.error.scrollErrProp', ['span-method']);
|
|
10352
10681
|
}
|
|
10353
10682
|
if (props.footerSpanMethod) {
|
|
10354
|
-
|
|
10683
|
+
table_log.warn('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
10355
10684
|
}
|
|
10356
10685
|
}
|
|
10357
10686
|
const {
|
|
@@ -10411,7 +10740,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10411
10740
|
tablePrivateMethods.handleTableData(true);
|
|
10412
10741
|
if (true) {
|
|
10413
10742
|
if ((reactData.scrollXLoad || reactData.scrollYLoad) && reactData.expandColumn) {
|
|
10414
|
-
|
|
10743
|
+
table_log.warn('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
10415
10744
|
}
|
|
10416
10745
|
}
|
|
10417
10746
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -10614,7 +10943,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10614
10943
|
let keyCtxTimeout;
|
|
10615
10944
|
tableMethods = {
|
|
10616
10945
|
dispatchEvent(type, params, evnt) {
|
|
10617
|
-
emit(type,
|
|
10946
|
+
emit(type, createEvent(evnt, {
|
|
10618
10947
|
$table: $xeTable,
|
|
10619
10948
|
$grid: $xeGrid
|
|
10620
10949
|
}, params));
|
|
@@ -10631,7 +10960,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10631
10960
|
* 对于某些特殊的场景,比如深层树节点元素发生变动时可能会用到
|
|
10632
10961
|
*/
|
|
10633
10962
|
syncData() {
|
|
10634
|
-
|
|
10963
|
+
table_log.warn('vxe.error.delFunc', ['syncData', 'getData']);
|
|
10635
10964
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
10636
10965
|
reactData.tableData = [];
|
|
10637
10966
|
emit('update:data', internalData.tableFullData);
|
|
@@ -10755,7 +11084,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10755
11084
|
reactData.tableData = tableData.slice(0);
|
|
10756
11085
|
} else {
|
|
10757
11086
|
if (true) {
|
|
10758
|
-
|
|
11087
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
10759
11088
|
}
|
|
10760
11089
|
}
|
|
10761
11090
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -10965,7 +11294,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10965
11294
|
} = internalData;
|
|
10966
11295
|
if (!keepSource) {
|
|
10967
11296
|
if (true) {
|
|
10968
|
-
|
|
11297
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
10969
11298
|
}
|
|
10970
11299
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
10971
11300
|
}
|
|
@@ -11263,7 +11592,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
11263
11592
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
11264
11593
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
11265
11594
|
status: 'error',
|
|
11266
|
-
content: (
|
|
11595
|
+
content: table_getI18n('vxe.table.maxFixedCol', [maxFixedSize])
|
|
11267
11596
|
});
|
|
11268
11597
|
}
|
|
11269
11598
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -12096,7 +12425,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12096
12425
|
},
|
|
12097
12426
|
reloadExpandContent(row) {
|
|
12098
12427
|
if (true) {
|
|
12099
|
-
|
|
12428
|
+
table_log.warn('vxe.error.delFunc', ['reloadExpandContent', 'reloadRowExpand']);
|
|
12100
12429
|
}
|
|
12101
12430
|
// 即将废弃
|
|
12102
12431
|
return tableMethods.reloadRowExpand(row);
|
|
@@ -12220,7 +12549,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12220
12549
|
isExpandByRow(row) {
|
|
12221
12550
|
// 已废弃
|
|
12222
12551
|
if (true) {
|
|
12223
|
-
|
|
12552
|
+
table_log.warn('vxe.error.delFunc', ['isExpandByRow', 'isRowExpandByRow']);
|
|
12224
12553
|
}
|
|
12225
12554
|
return tableMethods.isRowExpandByRow(row);
|
|
12226
12555
|
},
|
|
@@ -12336,7 +12665,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12336
12665
|
},
|
|
12337
12666
|
reloadTreeChilds(row) {
|
|
12338
12667
|
if (true) {
|
|
12339
|
-
|
|
12668
|
+
table_log.warn('vxe.error.delFunc', ['reloadTreeChilds', 'reloadTreeExpand']);
|
|
12340
12669
|
}
|
|
12341
12670
|
// 即将废弃
|
|
12342
12671
|
return tableMethods.reloadTreeExpand(row);
|
|
@@ -12639,7 +12968,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12639
12968
|
*/
|
|
12640
12969
|
setMergeCells(merges) {
|
|
12641
12970
|
if (props.spanMethod) {
|
|
12642
|
-
|
|
12971
|
+
table_log.err('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
12643
12972
|
}
|
|
12644
12973
|
setMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
12645
12974
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12653,7 +12982,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12653
12982
|
*/
|
|
12654
12983
|
removeMergeCells(merges) {
|
|
12655
12984
|
if (props.spanMethod) {
|
|
12656
|
-
|
|
12985
|
+
table_log.err('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
12657
12986
|
}
|
|
12658
12987
|
const rest = removeMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
12659
12988
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12679,7 +13008,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12679
13008
|
},
|
|
12680
13009
|
setMergeFooterItems(merges) {
|
|
12681
13010
|
if (props.footerSpanMethod) {
|
|
12682
|
-
|
|
13011
|
+
table_log.err('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
12683
13012
|
}
|
|
12684
13013
|
setMerges(merges, reactData.mergeFooterList);
|
|
12685
13014
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12689,7 +13018,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12689
13018
|
},
|
|
12690
13019
|
removeMergeFooterItems(merges) {
|
|
12691
13020
|
if (props.footerSpanMethod) {
|
|
12692
|
-
|
|
13021
|
+
table_log.err('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
12693
13022
|
}
|
|
12694
13023
|
const rest = removeMerges(merges, reactData.mergeFooterList);
|
|
12695
13024
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12743,7 +13072,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12743
13072
|
$table: $xeTable
|
|
12744
13073
|
});
|
|
12745
13074
|
} else {
|
|
12746
|
-
|
|
13075
|
+
table_log.err('vxe.error.barUnableLink');
|
|
12747
13076
|
}
|
|
12748
13077
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
12749
13078
|
}
|
|
@@ -12916,7 +13245,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12916
13245
|
const {
|
|
12917
13246
|
actived
|
|
12918
13247
|
} = editStore;
|
|
12919
|
-
const isEsc =
|
|
13248
|
+
const isEsc = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
12920
13249
|
if (isEsc) {
|
|
12921
13250
|
tablePrivateMethods.preventEvent(evnt, 'event.keydown', null, () => {
|
|
12922
13251
|
tableMethods.dispatchEvent('keydown-start', {}, evnt);
|
|
@@ -12979,18 +13308,18 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12979
13308
|
} = editStore;
|
|
12980
13309
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
12981
13310
|
const keyCode = evnt.keyCode;
|
|
12982
|
-
const isEsc =
|
|
12983
|
-
const isBack =
|
|
12984
|
-
const isTab =
|
|
12985
|
-
const isEnter =
|
|
12986
|
-
const isSpacebar =
|
|
12987
|
-
const isLeftArrow =
|
|
12988
|
-
const isUpArrow =
|
|
12989
|
-
const isRightArrow =
|
|
12990
|
-
const isDwArrow =
|
|
12991
|
-
const isDel =
|
|
12992
|
-
const isF2 =
|
|
12993
|
-
const isContextMenu =
|
|
13311
|
+
const isEsc = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
13312
|
+
const isBack = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.BACKSPACE);
|
|
13313
|
+
const isTab = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
13314
|
+
const isEnter = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
13315
|
+
const isSpacebar = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR);
|
|
13316
|
+
const isLeftArrow = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
13317
|
+
const isUpArrow = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
13318
|
+
const isRightArrow = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
13319
|
+
const isDwArrow = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
13320
|
+
const isDel = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
13321
|
+
const isF2 = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.F2);
|
|
13322
|
+
const isContextMenu = table_globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.CONTEXT_MENU);
|
|
12994
13323
|
const hasMetaKey = evnt.metaKey;
|
|
12995
13324
|
const hasCtrlKey = evnt.ctrlKey;
|
|
12996
13325
|
const hasShiftKey = evnt.shiftKey;
|
|
@@ -13356,7 +13685,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13356
13685
|
*/
|
|
13357
13686
|
tablePrivateMethods = {
|
|
13358
13687
|
getSetupOptions() {
|
|
13359
|
-
return (
|
|
13688
|
+
return table_getConfig();
|
|
13360
13689
|
},
|
|
13361
13690
|
updateAfterDataIndex,
|
|
13362
13691
|
callSlot(slotFunc, params) {
|
|
@@ -13644,7 +13973,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13644
13973
|
const columnWidthStorageMap = getCustomStorageMap(resizableStorageKey);
|
|
13645
13974
|
let columnWidthStorage;
|
|
13646
13975
|
if (!id) {
|
|
13647
|
-
|
|
13976
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13648
13977
|
return;
|
|
13649
13978
|
}
|
|
13650
13979
|
if (!isReset) {
|
|
@@ -13681,7 +14010,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13681
14010
|
const columnSortStorageMap = getCustomStorageMap(sortStorageKey);
|
|
13682
14011
|
let columnWidthStorage;
|
|
13683
14012
|
if (!id) {
|
|
13684
|
-
|
|
14013
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13685
14014
|
return;
|
|
13686
14015
|
}
|
|
13687
14016
|
if (!isReset) {
|
|
@@ -13719,7 +14048,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13719
14048
|
const columnFixedStorageMap = getCustomStorageMap(fixedStorageKey);
|
|
13720
14049
|
const colFixeds = [];
|
|
13721
14050
|
if (!id) {
|
|
13722
|
-
|
|
14051
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13723
14052
|
return;
|
|
13724
14053
|
}
|
|
13725
14054
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -13755,7 +14084,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13755
14084
|
const colHides = [];
|
|
13756
14085
|
const colShows = [];
|
|
13757
14086
|
if (!id) {
|
|
13758
|
-
|
|
14087
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13759
14088
|
return;
|
|
13760
14089
|
}
|
|
13761
14090
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -13804,13 +14133,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13804
14133
|
reactData.reColumnFlag++;
|
|
13805
14134
|
},
|
|
13806
14135
|
preventEvent(evnt, type, args, next, end) {
|
|
13807
|
-
let evntList =
|
|
14136
|
+
let evntList = table_interceptor.get(type);
|
|
13808
14137
|
// 兼容老版本
|
|
13809
14138
|
if (!evntList.length && type === 'event.clearEdit') {
|
|
13810
|
-
evntList =
|
|
14139
|
+
evntList = table_interceptor.get('event.clearActived');
|
|
13811
14140
|
if (true) {
|
|
13812
14141
|
if (evntList.length) {
|
|
13813
|
-
|
|
14142
|
+
table_log.warn('vxe.error.delEvent', ['event.clearActived', 'event.clearEdit']);
|
|
13814
14143
|
}
|
|
13815
14144
|
}
|
|
13816
14145
|
}
|
|
@@ -14896,10 +15225,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14896
15225
|
columnIndex: tableMethods.getColumnIndex(column)
|
|
14897
15226
|
};
|
|
14898
15227
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
14899
|
-
const gFormatOpts =
|
|
15228
|
+
const gFormatOpts = table_formats.get(formatter);
|
|
14900
15229
|
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams) : '';
|
|
14901
15230
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
14902
|
-
const gFormatOpts =
|
|
15231
|
+
const gFormatOpts = table_formats.get(formatter[0]);
|
|
14903
15232
|
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams, ...formatter.slice(1)) : '';
|
|
14904
15233
|
} else {
|
|
14905
15234
|
cellLabel = formatter(formatParams);
|
|
@@ -14930,12 +15259,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14930
15259
|
if (true) {
|
|
14931
15260
|
'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
|
|
14932
15261
|
$xeTable[name] = function () {
|
|
14933
|
-
|
|
15262
|
+
table_log.err('vxe.error.reqModule', ['VxeTableExportModule']);
|
|
14934
15263
|
};
|
|
14935
15264
|
});
|
|
14936
15265
|
'clearValidate,fullValidate,validate'.split(',').forEach(name => {
|
|
14937
15266
|
$xeTable[name] = function () {
|
|
14938
|
-
|
|
15267
|
+
table_log.err('vxe.error.reqModule', ['VxeTableValidatorModule']);
|
|
14939
15268
|
};
|
|
14940
15269
|
});
|
|
14941
15270
|
}
|
|
@@ -14992,13 +15321,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14992
15321
|
if (slots.empty) {
|
|
14993
15322
|
return slots.empty(params);
|
|
14994
15323
|
} else {
|
|
14995
|
-
const compConf = emptyOpts.name ?
|
|
15324
|
+
const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
|
|
14996
15325
|
const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
14997
15326
|
if (renderTableEmptyView) {
|
|
14998
15327
|
return getSlotVNs(renderTableEmptyView(emptyOpts, params));
|
|
14999
15328
|
}
|
|
15000
15329
|
}
|
|
15001
|
-
return getFuncText(props.emptyText) || (
|
|
15330
|
+
return getFuncText(props.emptyText) || table_getI18n('vxe.table.emptyText');
|
|
15002
15331
|
};
|
|
15003
15332
|
function handleUupdateResize() {
|
|
15004
15333
|
const el = refElem.value;
|
|
@@ -15039,7 +15368,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15039
15368
|
// log.warn('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
15040
15369
|
// }
|
|
15041
15370
|
if ((scrollXLoad || scrollYLoad) && expandColumn) {
|
|
15042
|
-
|
|
15371
|
+
table_log.warn('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
15043
15372
|
}
|
|
15044
15373
|
}
|
|
15045
15374
|
tableMethods.recalculate();
|
|
@@ -15140,7 +15469,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15140
15469
|
}
|
|
15141
15470
|
});
|
|
15142
15471
|
});
|
|
15143
|
-
|
|
15472
|
+
table_hooks.forEach(options => {
|
|
15144
15473
|
const {
|
|
15145
15474
|
setupTable
|
|
15146
15475
|
} = options;
|
|
@@ -15187,28 +15516,28 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15187
15516
|
const rowOpts = computeRowOpts.value;
|
|
15188
15517
|
if (true) {
|
|
15189
15518
|
if (props.rowId) {
|
|
15190
|
-
|
|
15519
|
+
table_log.warn('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
15191
15520
|
}
|
|
15192
15521
|
if (props.rowKey) {
|
|
15193
|
-
|
|
15522
|
+
table_log.warn('vxe.error.delProp', ['row-key', 'row-config.useKey']);
|
|
15194
15523
|
}
|
|
15195
15524
|
if (props.columnKey) {
|
|
15196
|
-
|
|
15525
|
+
table_log.warn('vxe.error.delProp', ['column-id', 'column-config.useKey']);
|
|
15197
15526
|
}
|
|
15198
15527
|
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
15199
|
-
|
|
15528
|
+
table_log.warn('vxe.error.reqProp', ['row-config.keyField']);
|
|
15200
15529
|
}
|
|
15201
15530
|
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
15202
|
-
|
|
15531
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
15203
15532
|
}
|
|
15204
15533
|
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
15205
|
-
|
|
15534
|
+
table_log.warn('vxe.error.reqProp', ['row-config.useKey | show-overflow']);
|
|
15206
15535
|
}
|
|
15207
15536
|
if (treeConfig && props.stripe) {
|
|
15208
|
-
|
|
15537
|
+
table_log.warn('vxe.error.noTree', ['stripe']);
|
|
15209
15538
|
}
|
|
15210
15539
|
if (props.showFooter && !(props.footerMethod || props.footerData)) {
|
|
15211
|
-
|
|
15540
|
+
table_log.warn('vxe.error.reqProp', ['footer-data | footer-method']);
|
|
15212
15541
|
}
|
|
15213
15542
|
// if (props.highlightCurrentRow) {
|
|
15214
15543
|
// log.warn('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
@@ -15230,10 +15559,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15230
15559
|
const exportOpts = computeExportOpts.value;
|
|
15231
15560
|
const importOpts = computeImportOpts.value;
|
|
15232
15561
|
if (importConfig && importOpts.types && !importOpts.importMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), importOpts.types)) {
|
|
15233
|
-
|
|
15562
|
+
table_log.warn('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps).join(',')]);
|
|
15234
15563
|
}
|
|
15235
15564
|
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
15236
|
-
|
|
15565
|
+
table_log.warn('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps).join(',')]);
|
|
15237
15566
|
}
|
|
15238
15567
|
}
|
|
15239
15568
|
if (true) {
|
|
@@ -15241,64 +15570,64 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15241
15570
|
const mouseOpts = computeMouseOpts.value;
|
|
15242
15571
|
const rowOpts = computeRowOpts.value;
|
|
15243
15572
|
if (!props.id && props.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
|
|
15244
|
-
|
|
15573
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
15245
15574
|
}
|
|
15246
15575
|
if (props.treeConfig && checkboxOpts.range) {
|
|
15247
|
-
|
|
15576
|
+
table_log.err('vxe.error.noTree', ['checkbox-config.range']);
|
|
15248
15577
|
}
|
|
15249
15578
|
if (rowOpts.height && !props.showOverflow) {
|
|
15250
|
-
|
|
15579
|
+
table_log.warn('vxe.error.notProp', ['table.show-overflow']);
|
|
15251
15580
|
}
|
|
15252
15581
|
if (!$xeTable.handleUpdateCellAreas) {
|
|
15253
15582
|
if (props.clipConfig) {
|
|
15254
|
-
|
|
15583
|
+
table_log.warn('vxe.error.notProp', ['clip-config']);
|
|
15255
15584
|
}
|
|
15256
15585
|
if (props.fnrConfig) {
|
|
15257
|
-
|
|
15586
|
+
table_log.warn('vxe.error.notProp', ['fnr-config']);
|
|
15258
15587
|
}
|
|
15259
15588
|
if (mouseOpts.area) {
|
|
15260
|
-
|
|
15589
|
+
table_log.err('vxe.error.notProp', ['mouse-config.area']);
|
|
15261
15590
|
return;
|
|
15262
15591
|
}
|
|
15263
15592
|
}
|
|
15264
15593
|
if (props.treeConfig && treeOpts.children) {
|
|
15265
|
-
|
|
15594
|
+
table_log.warn('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
15266
15595
|
}
|
|
15267
15596
|
if (props.treeConfig && treeOpts.line) {
|
|
15268
|
-
|
|
15597
|
+
table_log.warn('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine']);
|
|
15269
15598
|
}
|
|
15270
15599
|
if (mouseOpts.area && mouseOpts.selected) {
|
|
15271
|
-
|
|
15600
|
+
table_log.warn('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
15272
15601
|
}
|
|
15273
15602
|
if (mouseOpts.area && checkboxOpts.range) {
|
|
15274
|
-
|
|
15603
|
+
table_log.warn('vxe.error.errConflicts', ['mouse-config.area', 'checkbox-config.range']);
|
|
15275
15604
|
}
|
|
15276
15605
|
if (props.treeConfig && mouseOpts.area) {
|
|
15277
|
-
|
|
15606
|
+
table_log.err('vxe.error.noTree', ['mouse-config.area']);
|
|
15278
15607
|
}
|
|
15279
15608
|
if (props.editConfig && editOpts.activeMethod) {
|
|
15280
|
-
|
|
15609
|
+
table_log.warn('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod']);
|
|
15281
15610
|
}
|
|
15282
15611
|
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
15283
|
-
|
|
15612
|
+
table_log.err('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
15284
15613
|
}
|
|
15285
15614
|
if (checkboxOpts.halfField) {
|
|
15286
|
-
|
|
15615
|
+
table_log.warn('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
15287
15616
|
}
|
|
15288
15617
|
}
|
|
15289
15618
|
// 检查是否有安装需要的模块
|
|
15290
15619
|
if (true) {
|
|
15291
15620
|
if (props.editConfig && !$xeTable.insert) {
|
|
15292
|
-
|
|
15621
|
+
table_log.err('vxe.error.reqModule', ['Edit']);
|
|
15293
15622
|
}
|
|
15294
15623
|
if (props.editRules && !$xeTable.validate) {
|
|
15295
|
-
|
|
15624
|
+
table_log.err('vxe.error.reqModule', ['Validator']);
|
|
15296
15625
|
}
|
|
15297
15626
|
if ((checkboxOpts.range || props.keyboardConfig || props.mouseConfig) && !$xeTable.triggerCellMousedownEvent) {
|
|
15298
|
-
|
|
15627
|
+
table_log.err('vxe.error.reqModule', ['Keyboard']);
|
|
15299
15628
|
}
|
|
15300
15629
|
if ((props.printConfig || props.importConfig || props.exportConfig) && !$xeTable.exportData) {
|
|
15301
|
-
|
|
15630
|
+
table_log.err('vxe.error.reqModule', ['Export']);
|
|
15302
15631
|
}
|
|
15303
15632
|
}
|
|
15304
15633
|
Object.assign(scrollYStore, {
|
|
@@ -15332,7 +15661,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15332
15661
|
leading: true,
|
|
15333
15662
|
trailing: true
|
|
15334
15663
|
}) : null;
|
|
15335
|
-
resizeObserver =
|
|
15664
|
+
resizeObserver = table_globalResize.create(handleOptimizeResize ? () => {
|
|
15336
15665
|
if (props.autoResize) {
|
|
15337
15666
|
requestAnimationFrame(handleOptimizeResize);
|
|
15338
15667
|
}
|
|
@@ -15349,16 +15678,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15349
15678
|
}
|
|
15350
15679
|
}
|
|
15351
15680
|
});
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15681
|
+
table_globalEvents.on($xeTable, 'paste', handleGlobalPasteEvent);
|
|
15682
|
+
table_globalEvents.on($xeTable, 'copy', handleGlobalCopyEvent);
|
|
15683
|
+
table_globalEvents.on($xeTable, 'cut', handleGlobalCutEvent);
|
|
15684
|
+
table_globalEvents.on($xeTable, 'mousedown', handleGlobalMousedownEvent);
|
|
15685
|
+
table_globalEvents.on($xeTable, 'blur', handleGlobalBlurEvent);
|
|
15686
|
+
table_globalEvents.on($xeTable, 'mousewheel', handleGlobalMousewheelEvent);
|
|
15687
|
+
table_globalEvents.on($xeTable, 'keydown', handleGlobalKeydownEvent);
|
|
15688
|
+
table_globalEvents.on($xeTable, 'resize', handleGlobalResizeEvent);
|
|
15360
15689
|
if ($xeTable.handleGlobalContextmenuEvent) {
|
|
15361
|
-
|
|
15690
|
+
table_globalEvents.on($xeTable, 'contextmenu', $xeTable.handleGlobalContextmenuEvent);
|
|
15362
15691
|
}
|
|
15363
15692
|
tablePrivateMethods.preventEvent(null, 'mounted', {
|
|
15364
15693
|
$table: $xeTable
|
|
@@ -15377,15 +15706,15 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15377
15706
|
});
|
|
15378
15707
|
});
|
|
15379
15708
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15709
|
+
table_globalEvents.off($xeTable, 'paste');
|
|
15710
|
+
table_globalEvents.off($xeTable, 'copy');
|
|
15711
|
+
table_globalEvents.off($xeTable, 'cut');
|
|
15712
|
+
table_globalEvents.off($xeTable, 'mousedown');
|
|
15713
|
+
table_globalEvents.off($xeTable, 'blur');
|
|
15714
|
+
table_globalEvents.off($xeTable, 'mousewheel');
|
|
15715
|
+
table_globalEvents.off($xeTable, 'keydown');
|
|
15716
|
+
table_globalEvents.off($xeTable, 'resize');
|
|
15717
|
+
table_globalEvents.off($xeTable, 'contextmenu');
|
|
15389
15718
|
tablePrivateMethods.preventEvent(null, 'unmounted', {
|
|
15390
15719
|
$table: $xeTable
|
|
15391
15720
|
});
|
|
@@ -15443,7 +15772,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15443
15772
|
[`size--${vSize}`]: vSize,
|
|
15444
15773
|
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
15445
15774
|
'vxe-editable': !!editConfig,
|
|
15446
|
-
'old-cell-valid': editRules && (
|
|
15775
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete',
|
|
15447
15776
|
'cell--highlight': highlightCell,
|
|
15448
15777
|
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
15449
15778
|
'cell--area': mouseConfig && mouseOpts.area,
|
|
@@ -15606,7 +15935,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15606
15935
|
props.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-tooltip'), {
|
|
15607
15936
|
ref: refValidTooltip,
|
|
15608
15937
|
class: [{
|
|
15609
|
-
'old-cell-valid': editRules && (
|
|
15938
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete'
|
|
15610
15939
|
}, 'vxe-table--valid-error'],
|
|
15611
15940
|
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {})
|
|
15612
15941
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
|
|
@@ -15627,8 +15956,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15627
15956
|
|
|
15628
15957
|
|
|
15629
15958
|
|
|
15959
|
+
const {
|
|
15960
|
+
renderer: hook_renderer,
|
|
15961
|
+
hooks: hook_hooks
|
|
15962
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
15630
15963
|
const tableFilterMethodKeys = ['setFilter', 'clearFilter', 'getCheckedFilters'];
|
|
15631
|
-
|
|
15964
|
+
hook_hooks.add('tableFilterModule', {
|
|
15632
15965
|
setupTable($xeTable) {
|
|
15633
15966
|
const {
|
|
15634
15967
|
props,
|
|
@@ -15680,7 +16013,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15680
16013
|
filterMultiple,
|
|
15681
16014
|
filterRender
|
|
15682
16015
|
} = column;
|
|
15683
|
-
const compConf = filterRender ?
|
|
16016
|
+
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
15684
16017
|
const filterRecoverMethod = column.filterRecoverMethod || (compConf ? compConf.filterRecoverMethod : null);
|
|
15685
16018
|
internalData._currFilterParams = params;
|
|
15686
16019
|
Object.assign(filterStore, {
|
|
@@ -15775,7 +16108,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15775
16108
|
filterRender
|
|
15776
16109
|
} = column;
|
|
15777
16110
|
if (filters) {
|
|
15778
|
-
const compConf = filterRender ?
|
|
16111
|
+
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
15779
16112
|
const filterResetMethod = column.filterResetMethod || (compConf ? compConf.filterResetMethod : null);
|
|
15780
16113
|
filters.forEach(item => {
|
|
15781
16114
|
item._checked = false;
|
|
@@ -15992,8 +16325,14 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15992
16325
|
|
|
15993
16326
|
|
|
15994
16327
|
|
|
16328
|
+
const {
|
|
16329
|
+
menus: hook_menus,
|
|
16330
|
+
hooks: menu_hook_hooks,
|
|
16331
|
+
globalEvents: hook_globalEvents,
|
|
16332
|
+
GLOBAL_EVENT_KEYS: hook_GLOBAL_EVENT_KEYS
|
|
16333
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
15995
16334
|
const tableMenuMethodKeys = ['closeMenu'];
|
|
15996
|
-
|
|
16335
|
+
menu_hook_hooks.add('tableMenuModule', {
|
|
15997
16336
|
setupTable($xeTable) {
|
|
15998
16337
|
const {
|
|
15999
16338
|
xID,
|
|
@@ -16135,7 +16474,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16135
16474
|
ctxMenuStore.showChild = false;
|
|
16136
16475
|
ctxMenuStore.selectChild = null;
|
|
16137
16476
|
}
|
|
16138
|
-
} else if (
|
|
16477
|
+
} else if (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ARROW_UP)) {
|
|
16139
16478
|
for (let len = selectIndex - 1; len >= 0; len--) {
|
|
16140
16479
|
if (menuList[len].visible !== false) {
|
|
16141
16480
|
selectItem = menuList[len];
|
|
@@ -16143,7 +16482,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16143
16482
|
}
|
|
16144
16483
|
}
|
|
16145
16484
|
ctxMenuStore[property] = selectItem || menuList[menuList.length - 1];
|
|
16146
|
-
} else if (
|
|
16485
|
+
} else if (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ARROW_DOWN)) {
|
|
16147
16486
|
for (let index = selectIndex + 1; index < menuList.length; index++) {
|
|
16148
16487
|
if (menuList[index].visible !== false) {
|
|
16149
16488
|
selectItem = menuList[index];
|
|
@@ -16151,7 +16490,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16151
16490
|
}
|
|
16152
16491
|
}
|
|
16153
16492
|
ctxMenuStore[property] = selectItem || menuList[0];
|
|
16154
|
-
} else if (ctxMenuStore[property] && (
|
|
16493
|
+
} else if (ctxMenuStore[property] && (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ENTER) || hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.SPACEBAR))) {
|
|
16155
16494
|
menuPrivateMethods.ctxMenuLinkEvent(evnt, ctxMenuStore[property]);
|
|
16156
16495
|
}
|
|
16157
16496
|
},
|
|
@@ -16327,7 +16666,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16327
16666
|
ctxMenuLinkEvent(evnt, menu) {
|
|
16328
16667
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
16329
16668
|
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
16330
|
-
const gMenuOpts =
|
|
16669
|
+
const gMenuOpts = hook_menus.get(menu.code);
|
|
16331
16670
|
const params = Object.assign({}, internalData._currMenuParams, {
|
|
16332
16671
|
menu,
|
|
16333
16672
|
$table: $xeTable,
|
|
@@ -16359,8 +16698,15 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16359
16698
|
|
|
16360
16699
|
|
|
16361
16700
|
|
|
16701
|
+
const {
|
|
16702
|
+
getConfig: hook_getConfig,
|
|
16703
|
+
renderer: edit_hook_renderer,
|
|
16704
|
+
hooks: edit_hook_hooks,
|
|
16705
|
+
log: hook_log,
|
|
16706
|
+
getI18n: hook_getI18n
|
|
16707
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
16362
16708
|
const tableEditMethodKeys = ['insert', 'insertAt', 'insertNextAt', 'remove', 'removeCheckboxRow', 'removeRadioRow', 'removeCurrentRow', 'getRecordset', 'getInsertRecords', 'getRemoveRecords', 'getUpdateRecords', 'getEditRecord', 'getActiveRecord', 'getSelectedCell', 'clearEdit', 'clearActived', 'clearSelected', 'isEditByRow', 'isActiveByRow', 'setEditRow', 'setActiveRow', 'setEditCell', 'setActiveCell', 'setSelectCell'];
|
|
16363
|
-
|
|
16709
|
+
edit_hook_hooks.add('tableEditModule', {
|
|
16364
16710
|
setupTable($xeTable) {
|
|
16365
16711
|
const {
|
|
16366
16712
|
props,
|
|
@@ -16482,7 +16828,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16482
16828
|
} else {
|
|
16483
16829
|
if (true) {
|
|
16484
16830
|
if (parentRowId) {
|
|
16485
|
-
|
|
16831
|
+
hook_log.warn('vxe.error.unableInsert');
|
|
16486
16832
|
}
|
|
16487
16833
|
}
|
|
16488
16834
|
afterFullData[funcName](item);
|
|
@@ -16586,7 +16932,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16586
16932
|
if (true) {
|
|
16587
16933
|
if (item[treeOpts.parentField]) {
|
|
16588
16934
|
if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
|
|
16589
|
-
|
|
16935
|
+
hook_log.err('vxe.error.errProp', [`${treeOpts.parentField}=${item[treeOpts.parentField]}`, `${treeOpts.parentField}=${parentRow[rowField]}`]);
|
|
16590
16936
|
}
|
|
16591
16937
|
}
|
|
16592
16938
|
}
|
|
@@ -16628,13 +16974,13 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16628
16974
|
}
|
|
16629
16975
|
} else {
|
|
16630
16976
|
if (true) {
|
|
16631
|
-
|
|
16977
|
+
hook_log.warn('vxe.error.unableInsert');
|
|
16632
16978
|
}
|
|
16633
16979
|
insertTreeRow(newRecords, true);
|
|
16634
16980
|
}
|
|
16635
16981
|
} else {
|
|
16636
16982
|
if (treeConfig) {
|
|
16637
|
-
throw new Error((
|
|
16983
|
+
throw new Error(hook_getI18n('vxe.error.noTree', ['insert']));
|
|
16638
16984
|
}
|
|
16639
16985
|
let afIndex = -1;
|
|
16640
16986
|
// 如果是可视索引
|
|
@@ -16650,7 +16996,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16650
16996
|
afIndex = Math.min(afterFullData.length, afIndex + 1);
|
|
16651
16997
|
}
|
|
16652
16998
|
if (afIndex === -1) {
|
|
16653
|
-
throw new Error(
|
|
16999
|
+
throw new Error(hook_log.err('vxe.error.unableInsert'));
|
|
16654
17000
|
}
|
|
16655
17001
|
afterFullData.splice(afIndex, 0, ...newRecords);
|
|
16656
17002
|
tableFullData.splice($xeTable.findRowIndexOf(tableFullData, row), 0, ...newRecords);
|
|
@@ -16969,7 +17315,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16969
17315
|
},
|
|
16970
17316
|
getActiveRecord() {
|
|
16971
17317
|
if (true) {
|
|
16972
|
-
|
|
17318
|
+
hook_log.warn('vxe.error.delFunc', ['getActiveRecord', 'getEditRecord']);
|
|
16973
17319
|
}
|
|
16974
17320
|
return this.getEditRecord();
|
|
16975
17321
|
},
|
|
@@ -17009,7 +17355,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17009
17355
|
clearActived(evnt) {
|
|
17010
17356
|
// 即将废弃
|
|
17011
17357
|
if (true) {
|
|
17012
|
-
|
|
17358
|
+
hook_log.warn('vxe.error.delFunc', ['clearActived', 'clearEdit']);
|
|
17013
17359
|
}
|
|
17014
17360
|
return this.clearEdit(evnt);
|
|
17015
17361
|
},
|
|
@@ -17043,7 +17389,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17043
17389
|
$columnIndex: $xeTable.getVMColumnIndex(column)
|
|
17044
17390
|
}, evnt || null);
|
|
17045
17391
|
}
|
|
17046
|
-
if ((
|
|
17392
|
+
if (hook_getConfig().cellVaildMode === 'obsolete') {
|
|
17047
17393
|
if ($xeTable.clearValidate) {
|
|
17048
17394
|
return $xeTable.clearValidate();
|
|
17049
17395
|
}
|
|
@@ -17069,7 +17415,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17069
17415
|
},
|
|
17070
17416
|
isActiveByRow(row) {
|
|
17071
17417
|
if (true) {
|
|
17072
|
-
|
|
17418
|
+
hook_log.warn('vxe.error.delFunc', ['isActiveByRow', 'isEditByRow']);
|
|
17073
17419
|
}
|
|
17074
17420
|
// 即将废弃
|
|
17075
17421
|
return this.isEditByRow(row);
|
|
@@ -17086,7 +17432,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17086
17432
|
},
|
|
17087
17433
|
setActiveRow(row) {
|
|
17088
17434
|
if (true) {
|
|
17089
|
-
|
|
17435
|
+
hook_log.warn('vxe.error.delFunc', ['setActiveRow', 'setEditRow']);
|
|
17090
17436
|
}
|
|
17091
17437
|
// 即将废弃
|
|
17092
17438
|
return editMethods.setEditRow(row);
|
|
@@ -17106,7 +17452,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17106
17452
|
},
|
|
17107
17453
|
setActiveCell(row, fieldOrColumn) {
|
|
17108
17454
|
if (true) {
|
|
17109
|
-
|
|
17455
|
+
hook_log.warn('vxe.error.delFunc', ['setActiveCell', 'setEditCell']);
|
|
17110
17456
|
}
|
|
17111
17457
|
// 即将废弃
|
|
17112
17458
|
return editMethods.setEditCell(row, fieldOrColumn);
|
|
@@ -17307,7 +17653,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17307
17653
|
editRender
|
|
17308
17654
|
} = column;
|
|
17309
17655
|
if (isEnableConf(editRender)) {
|
|
17310
|
-
const compRender =
|
|
17656
|
+
const compRender = edit_hook_renderer.get(editRender.name);
|
|
17311
17657
|
let {
|
|
17312
17658
|
autofocus,
|
|
17313
17659
|
autoselect
|
|
@@ -17442,6 +17788,12 @@ function createHtmlPage(opts, content) {
|
|
|
17442
17788
|
|
|
17443
17789
|
|
|
17444
17790
|
|
|
17791
|
+
const {
|
|
17792
|
+
getI18n: export_hook_getI18n,
|
|
17793
|
+
hooks: export_hook_hooks,
|
|
17794
|
+
renderer: export_hook_renderer,
|
|
17795
|
+
log: export_hook_log
|
|
17796
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
17445
17797
|
let htmlCellElem;
|
|
17446
17798
|
const csvBOM = '\ufeff';
|
|
17447
17799
|
const enterSymbol = '\r\n';
|
|
@@ -17702,7 +18054,7 @@ function checkImportData(columns, fields) {
|
|
|
17702
18054
|
return fields.some(field => tableFields.indexOf(field) > -1);
|
|
17703
18055
|
}
|
|
17704
18056
|
const tableExportMethodKeys = ['exportData', 'importByFile', 'importData', 'saveFile', 'readFile', 'print', 'openImport', 'openExport', 'openPrint'];
|
|
17705
|
-
|
|
18057
|
+
export_hook_hooks.add('tableExportModule', {
|
|
17706
18058
|
setupTable($xeTable) {
|
|
17707
18059
|
const {
|
|
17708
18060
|
props,
|
|
@@ -17789,7 +18141,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17789
18141
|
const renderOpts = column.editRender || column.cellRender;
|
|
17790
18142
|
let bodyExportMethod = column.exportMethod;
|
|
17791
18143
|
if (!bodyExportMethod && renderOpts && renderOpts.name) {
|
|
17792
|
-
const compConf =
|
|
18144
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17793
18145
|
if (compConf) {
|
|
17794
18146
|
bodyExportMethod = compConf.exportMethod;
|
|
17795
18147
|
}
|
|
@@ -17859,7 +18211,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17859
18211
|
const renderOpts = column.editRender || column.cellRender;
|
|
17860
18212
|
let exportLabelMethod = column.exportMethod;
|
|
17861
18213
|
if (!exportLabelMethod && renderOpts && renderOpts.name) {
|
|
17862
|
-
const compConf =
|
|
18214
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17863
18215
|
if (compConf) {
|
|
17864
18216
|
exportLabelMethod = compConf.exportMethod;
|
|
17865
18217
|
}
|
|
@@ -17931,7 +18283,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17931
18283
|
const renderOpts = column.editRender || column.cellRender;
|
|
17932
18284
|
let footLabelMethod = column.footerExportMethod;
|
|
17933
18285
|
if (!footLabelMethod && renderOpts && renderOpts.name) {
|
|
17934
|
-
const compConf =
|
|
18286
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17935
18287
|
if (compConf) {
|
|
17936
18288
|
footLabelMethod = compConf.footerExportMethod;
|
|
17937
18289
|
}
|
|
@@ -18236,7 +18588,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18236
18588
|
if (opts.message !== false) {
|
|
18237
18589
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18238
18590
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18239
|
-
content: (
|
|
18591
|
+
content: export_hook_getI18n('vxe.table.expSuccess'),
|
|
18240
18592
|
status: 'success'
|
|
18241
18593
|
});
|
|
18242
18594
|
}
|
|
@@ -18344,7 +18696,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18344
18696
|
if (opts.message !== false) {
|
|
18345
18697
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18346
18698
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18347
|
-
content: (
|
|
18699
|
+
content: export_hook_getI18n('vxe.table.impSuccess', [rows.length]),
|
|
18348
18700
|
status: 'success'
|
|
18349
18701
|
});
|
|
18350
18702
|
}
|
|
@@ -18360,7 +18712,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18360
18712
|
} else if (opts.message !== false) {
|
|
18361
18713
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18362
18714
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18363
|
-
content: (
|
|
18715
|
+
content: export_hook_getI18n('vxe.error.impFields'),
|
|
18364
18716
|
status: 'error'
|
|
18365
18717
|
});
|
|
18366
18718
|
}
|
|
@@ -18386,7 +18738,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18386
18738
|
if (opts.message !== false) {
|
|
18387
18739
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18388
18740
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18389
|
-
content: (
|
|
18741
|
+
content: export_hook_getI18n('vxe.error.notType', [type]),
|
|
18390
18742
|
status: 'error'
|
|
18391
18743
|
});
|
|
18392
18744
|
}
|
|
@@ -18447,7 +18799,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18447
18799
|
}, () => {
|
|
18448
18800
|
const reader = new FileReader();
|
|
18449
18801
|
reader.onerror = () => {
|
|
18450
|
-
|
|
18802
|
+
export_hook_log.err('vxe.error.notType', [type]);
|
|
18451
18803
|
_importReject({
|
|
18452
18804
|
status: false
|
|
18453
18805
|
});
|
|
@@ -18461,7 +18813,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18461
18813
|
} else {
|
|
18462
18814
|
// 不支持的浏览器
|
|
18463
18815
|
if (true) {
|
|
18464
|
-
|
|
18816
|
+
export_hook_log.err('vxe.error.notExp');
|
|
18465
18817
|
}
|
|
18466
18818
|
_importResolve({
|
|
18467
18819
|
status: true
|
|
@@ -18714,7 +19066,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18714
19066
|
opts.columns = cols;
|
|
18715
19067
|
opts.colgroups = convertToRows(groups);
|
|
18716
19068
|
if (!opts.filename) {
|
|
18717
|
-
opts.filename = (
|
|
19069
|
+
opts.filename = export_hook_getI18n(opts.original ? 'vxe.table.expOriginFilename' : 'vxe.table.expFilename', [external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(Date.now(), 'yyyyMMddHHmmss')]);
|
|
18718
19070
|
}
|
|
18719
19071
|
if (!opts.sheetName) {
|
|
18720
19072
|
opts.sheetName = document.title;
|
|
@@ -18722,7 +19074,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18722
19074
|
// 检查类型,如果为自定义导出,则不需要校验类型
|
|
18723
19075
|
if (!opts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)) {
|
|
18724
19076
|
if (true) {
|
|
18725
|
-
|
|
19077
|
+
export_hook_log.err('vxe.error.notType', [type]);
|
|
18726
19078
|
}
|
|
18727
19079
|
const params = {
|
|
18728
19080
|
status: false
|
|
@@ -18752,7 +19104,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18752
19104
|
} else if (mode === 'all') {
|
|
18753
19105
|
if (true) {
|
|
18754
19106
|
if (!$xeGrid) {
|
|
18755
|
-
|
|
19107
|
+
export_hook_log.warn('vxe.error.errProp', ['all', 'mode=current,selected']);
|
|
18756
19108
|
}
|
|
18757
19109
|
}
|
|
18758
19110
|
if ($xeGrid && !opts.remote) {
|
|
@@ -18772,7 +19124,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18772
19124
|
const ajaxMethods = ajax.queryAll;
|
|
18773
19125
|
if (true) {
|
|
18774
19126
|
if (!ajaxMethods) {
|
|
18775
|
-
|
|
19127
|
+
export_hook_log.warn('vxe.error.notFunc', ['proxy-config.ajax.queryAll']);
|
|
18776
19128
|
}
|
|
18777
19129
|
}
|
|
18778
19130
|
if (ajaxMethods) {
|
|
@@ -18911,7 +19263,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18911
19263
|
if (defOpts.message) {
|
|
18912
19264
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18913
19265
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18914
|
-
content: (
|
|
19266
|
+
content: export_hook_getI18n('vxe.error.treeNotImp'),
|
|
18915
19267
|
status: 'error'
|
|
18916
19268
|
});
|
|
18917
19269
|
}
|
|
@@ -18919,7 +19271,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18919
19271
|
return;
|
|
18920
19272
|
}
|
|
18921
19273
|
if (!importConfig) {
|
|
18922
|
-
|
|
19274
|
+
export_hook_log.err('vxe.error.reqProp', ['import-config']);
|
|
18923
19275
|
}
|
|
18924
19276
|
// 处理类型
|
|
18925
19277
|
const typeList = types.map(value => {
|
|
@@ -18949,7 +19301,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18949
19301
|
const exportOpts = computeExportOpts.value;
|
|
18950
19302
|
if (true) {
|
|
18951
19303
|
if (!props.exportConfig) {
|
|
18952
|
-
|
|
19304
|
+
export_hook_log.err('vxe.error.reqProp', ['export-config']);
|
|
18953
19305
|
}
|
|
18954
19306
|
}
|
|
18955
19307
|
handleExportAndPrint(Object.assign({}, exportOpts, options));
|
|
@@ -18958,7 +19310,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18958
19310
|
const printOpts = computePrintOpts.value;
|
|
18959
19311
|
if (true) {
|
|
18960
19312
|
if (!props.printConfig) {
|
|
18961
|
-
|
|
19313
|
+
export_hook_log.err('vxe.error.reqProp', ['print-config']);
|
|
18962
19314
|
}
|
|
18963
19315
|
}
|
|
18964
19316
|
handleExportAndPrint(Object.assign({}, printOpts, options), true);
|
|
@@ -18975,6 +19327,9 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18975
19327
|
|
|
18976
19328
|
|
|
18977
19329
|
|
|
19330
|
+
const {
|
|
19331
|
+
hooks: keyboard_hook_hooks
|
|
19332
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
18978
19333
|
function getTargetOffset(target, container) {
|
|
18979
19334
|
let offsetTop = 0;
|
|
18980
19335
|
let offsetLeft = 0;
|
|
@@ -18999,7 +19354,7 @@ function getTargetOffset(target, container) {
|
|
|
18999
19354
|
offsetLeft
|
|
19000
19355
|
};
|
|
19001
19356
|
}
|
|
19002
|
-
|
|
19357
|
+
keyboard_hook_hooks.add('tableKeyboardModule', {
|
|
19003
19358
|
setupTable($xeTable) {
|
|
19004
19359
|
const {
|
|
19005
19360
|
props,
|
|
@@ -19433,6 +19788,12 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19433
19788
|
|
|
19434
19789
|
|
|
19435
19790
|
|
|
19791
|
+
const {
|
|
19792
|
+
getConfig: validator_hook_getConfig,
|
|
19793
|
+
validators: hook_validators,
|
|
19794
|
+
hooks: validator_hook_hooks,
|
|
19795
|
+
log: validator_hook_log
|
|
19796
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
19436
19797
|
/**
|
|
19437
19798
|
* 校验规则
|
|
19438
19799
|
*/
|
|
@@ -19462,7 +19823,7 @@ class Rule {
|
|
|
19462
19823
|
}
|
|
19463
19824
|
}
|
|
19464
19825
|
const tableValidatorMethodKeys = ['fullValidate', 'validate', 'clearValidate'];
|
|
19465
|
-
|
|
19826
|
+
validator_hook_hooks.add('tableValidatorModule', {
|
|
19466
19827
|
setupTable($xeTable) {
|
|
19467
19828
|
const {
|
|
19468
19829
|
props,
|
|
@@ -19623,7 +19984,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19623
19984
|
cb(validRest);
|
|
19624
19985
|
resolve();
|
|
19625
19986
|
} else {
|
|
19626
|
-
if ((
|
|
19987
|
+
if (validator_hook_getConfig().validToReject === 'obsolete') {
|
|
19627
19988
|
// 已废弃,校验失败将不会执行catch
|
|
19628
19989
|
reject(validRest);
|
|
19629
19990
|
} else {
|
|
@@ -19671,7 +20032,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19671
20032
|
fullValidate(rows, cb) {
|
|
19672
20033
|
if (true) {
|
|
19673
20034
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
19674
|
-
|
|
20035
|
+
validator_hook_log.warn('vxe.error.notValidators', ['fullValidate(rows, callback)', 'fullValidate(rows)']);
|
|
19675
20036
|
}
|
|
19676
20037
|
}
|
|
19677
20038
|
return beginValidate(rows, cb, true);
|
|
@@ -19682,7 +20043,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19682
20043
|
validate(rows, cb) {
|
|
19683
20044
|
if (true) {
|
|
19684
20045
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
19685
|
-
|
|
20046
|
+
validator_hook_log.warn('vxe.error.notValidators', ['validate(rows, callback)', 'validate(rows)']);
|
|
19686
20047
|
}
|
|
19687
20048
|
}
|
|
19688
20049
|
return beginValidate(rows, cb);
|
|
@@ -19811,18 +20172,18 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19811
20172
|
};
|
|
19812
20173
|
let customValid;
|
|
19813
20174
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
|
|
19814
|
-
const gvItem =
|
|
20175
|
+
const gvItem = hook_validators.get(validator);
|
|
19815
20176
|
if (gvItem) {
|
|
19816
20177
|
if (gvItem.cellValidatorMethod) {
|
|
19817
20178
|
customValid = gvItem.cellValidatorMethod(validParams);
|
|
19818
20179
|
} else {
|
|
19819
20180
|
if (true) {
|
|
19820
|
-
|
|
20181
|
+
validator_hook_log.warn('vxe.error.notValidators', [validator]);
|
|
19821
20182
|
}
|
|
19822
20183
|
}
|
|
19823
20184
|
} else {
|
|
19824
20185
|
if (true) {
|
|
19825
|
-
|
|
20186
|
+
validator_hook_log.err('vxe.error.notValidators', [validator]);
|
|
19826
20187
|
}
|
|
19827
20188
|
}
|
|
19828
20189
|
} else {
|
|
@@ -20008,7 +20369,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
20008
20369
|
|
|
20009
20370
|
|
|
20010
20371
|
const tableCustomMethodKeys = ['openCustom', 'closeCustom'];
|
|
20011
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.add('tableCustomModule', {
|
|
20372
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.hooks.add('tableCustomModule', {
|
|
20012
20373
|
setupTable($xeTable) {
|
|
20013
20374
|
const {
|
|
20014
20375
|
reactData,
|
|
@@ -20150,6 +20511,12 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
20150
20511
|
|
|
20151
20512
|
|
|
20152
20513
|
|
|
20514
|
+
const {
|
|
20515
|
+
getConfig: render_getConfig,
|
|
20516
|
+
renderer: render_renderer,
|
|
20517
|
+
getI18n: render_getI18n,
|
|
20518
|
+
log: render_log
|
|
20519
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
20153
20520
|
const componentDefaultModelProp = 'modelValue';
|
|
20154
20521
|
const defaultCompProps = {
|
|
20155
20522
|
transfer: true
|
|
@@ -20184,7 +20551,7 @@ function getFormatDate(value, props, defaultFormat) {
|
|
|
20184
20551
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(parseDate(value, props), dateConfig.labelFormat || defaultFormat);
|
|
20185
20552
|
}
|
|
20186
20553
|
function getLabelFormatDate(value, props) {
|
|
20187
|
-
return getFormatDate(value, props, (
|
|
20554
|
+
return getFormatDate(value, props, render_getI18n(`vxe.input.date.labelFormat.${props.type}`));
|
|
20188
20555
|
}
|
|
20189
20556
|
/**
|
|
20190
20557
|
* 已废弃
|
|
@@ -20331,7 +20698,7 @@ function getComponentOns(renderOpts, params, modelFunc, changeFunc) {
|
|
|
20331
20698
|
ons[getOnName(key)] = function (...args) {
|
|
20332
20699
|
if (true) {
|
|
20333
20700
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
20334
|
-
|
|
20701
|
+
render_log.err('vxe.error.errFunc', [func]);
|
|
20335
20702
|
}
|
|
20336
20703
|
}
|
|
20337
20704
|
func(params, ...args);
|
|
@@ -20696,7 +21063,7 @@ function handleExportSelectMethod(params) {
|
|
|
20696
21063
|
/**
|
|
20697
21064
|
* 表格 - 渲染器
|
|
20698
21065
|
*/
|
|
20699
|
-
|
|
21066
|
+
render_renderer.mixin({
|
|
20700
21067
|
input: {
|
|
20701
21068
|
autofocus: 'input',
|
|
20702
21069
|
renderEdit: nativeEditRender,
|
|
@@ -20741,7 +21108,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.render
|
|
|
20741
21108
|
row,
|
|
20742
21109
|
column
|
|
20743
21110
|
} = params;
|
|
20744
|
-
const digits = props.digits || (
|
|
21111
|
+
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
20745
21112
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.property);
|
|
20746
21113
|
if (cellValue) {
|
|
20747
21114
|
switch (props.type) {
|
|
@@ -20834,7 +21201,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.render
|
|
|
20834
21201
|
row,
|
|
20835
21202
|
column
|
|
20836
21203
|
} = params;
|
|
20837
|
-
const digits = props.digits || (
|
|
21204
|
+
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
20838
21205
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.property);
|
|
20839
21206
|
if (cellValue) {
|
|
20840
21207
|
switch (props.type) {
|
|
@@ -20938,6 +21305,16 @@ const Table = VxeTable;
|
|
|
20938
21305
|
|
|
20939
21306
|
|
|
20940
21307
|
|
|
21308
|
+
const {
|
|
21309
|
+
getConfig: toolbar_getConfig,
|
|
21310
|
+
getIcon: toolbar_getIcon,
|
|
21311
|
+
getI18n: toolbar_getI18n,
|
|
21312
|
+
renderer: toolbar_renderer,
|
|
21313
|
+
commands: toolbar_commands,
|
|
21314
|
+
log: toolbar_log,
|
|
21315
|
+
createEvent: toolbar_createEvent,
|
|
21316
|
+
useFns: toolbar_useFns
|
|
21317
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
20941
21318
|
/* harmony default export */ var toolbar = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
20942
21319
|
name: 'VxeToolbar',
|
|
20943
21320
|
props: {
|
|
@@ -20950,19 +21327,19 @@ const Table = VxeTable;
|
|
|
20950
21327
|
custom: [Boolean, Object],
|
|
20951
21328
|
buttons: {
|
|
20952
21329
|
type: Array,
|
|
20953
|
-
default: () => (
|
|
21330
|
+
default: () => toolbar_getConfig().toolbar.buttons
|
|
20954
21331
|
},
|
|
20955
21332
|
tools: {
|
|
20956
21333
|
type: Array,
|
|
20957
|
-
default: () => (
|
|
21334
|
+
default: () => toolbar_getConfig().toolbar.tools
|
|
20958
21335
|
},
|
|
20959
21336
|
perfect: {
|
|
20960
21337
|
type: Boolean,
|
|
20961
|
-
default: () => (
|
|
21338
|
+
default: () => toolbar_getConfig().toolbar.perfect
|
|
20962
21339
|
},
|
|
20963
21340
|
size: {
|
|
20964
21341
|
type: String,
|
|
20965
|
-
default: () => (
|
|
21342
|
+
default: () => toolbar_getConfig().toolbar.size || toolbar_getConfig().size
|
|
20966
21343
|
},
|
|
20967
21344
|
className: [String, Function]
|
|
20968
21345
|
},
|
|
@@ -20975,7 +21352,7 @@ const Table = VxeTable;
|
|
|
20975
21352
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
20976
21353
|
const {
|
|
20977
21354
|
computeSize
|
|
20978
|
-
} =
|
|
21355
|
+
} = toolbar_useFns.useSize(props);
|
|
20979
21356
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
20980
21357
|
isRefresh: false,
|
|
20981
21358
|
columns: []
|
|
@@ -20996,22 +21373,22 @@ const Table = VxeTable;
|
|
|
20996
21373
|
let $xeTable;
|
|
20997
21374
|
const connectFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
20998
21375
|
const computeRefreshOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20999
|
-
return Object.assign({}, (
|
|
21376
|
+
return Object.assign({}, toolbar_getConfig().toolbar.refresh, props.refresh);
|
|
21000
21377
|
});
|
|
21001
21378
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21002
|
-
return Object.assign({}, (
|
|
21379
|
+
return Object.assign({}, toolbar_getConfig().toolbar.import, props.import);
|
|
21003
21380
|
});
|
|
21004
21381
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21005
|
-
return Object.assign({}, (
|
|
21382
|
+
return Object.assign({}, toolbar_getConfig().toolbar.export, props.export);
|
|
21006
21383
|
});
|
|
21007
21384
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21008
|
-
return Object.assign({}, (
|
|
21385
|
+
return Object.assign({}, toolbar_getConfig().toolbar.print, props.print);
|
|
21009
21386
|
});
|
|
21010
21387
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21011
|
-
return Object.assign({}, (
|
|
21388
|
+
return Object.assign({}, toolbar_getConfig().toolbar.zoom, props.zoom);
|
|
21012
21389
|
});
|
|
21013
21390
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21014
|
-
return Object.assign({}, (
|
|
21391
|
+
return Object.assign({}, toolbar_getConfig().toolbar.custom, props.custom);
|
|
21015
21392
|
});
|
|
21016
21393
|
const computeTableCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21017
21394
|
if (connectFlag.value || $xeTable) {
|
|
@@ -21032,7 +21409,7 @@ const Table = VxeTable;
|
|
|
21032
21409
|
if ($xeTable) {
|
|
21033
21410
|
return true;
|
|
21034
21411
|
}
|
|
21035
|
-
|
|
21412
|
+
toolbar_log.err('vxe.error.barUnableLink');
|
|
21036
21413
|
};
|
|
21037
21414
|
const handleClickSettingEvent = ({
|
|
21038
21415
|
$event
|
|
@@ -21041,7 +21418,7 @@ const Table = VxeTable;
|
|
|
21041
21418
|
if ($xeTable.triggerCustomEvent) {
|
|
21042
21419
|
$xeTable.triggerCustomEvent($event);
|
|
21043
21420
|
} else {
|
|
21044
|
-
|
|
21421
|
+
toolbar_log.err('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21045
21422
|
}
|
|
21046
21423
|
}
|
|
21047
21424
|
};
|
|
@@ -21051,7 +21428,7 @@ const Table = VxeTable;
|
|
|
21051
21428
|
if ($xeTable) {
|
|
21052
21429
|
$xeTable.customOpenEvent($event);
|
|
21053
21430
|
} else {
|
|
21054
|
-
|
|
21431
|
+
toolbar_log.err('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21055
21432
|
}
|
|
21056
21433
|
};
|
|
21057
21434
|
const handleMouseleaveSettingEvent = ({
|
|
@@ -21106,7 +21483,7 @@ const Table = VxeTable;
|
|
|
21106
21483
|
if ($xeGrid) {
|
|
21107
21484
|
$xeGrid.triggerToolbarBtnEvent(item, evnt);
|
|
21108
21485
|
} else {
|
|
21109
|
-
const gCommandOpts =
|
|
21486
|
+
const gCommandOpts = toolbar_commands.get(code);
|
|
21110
21487
|
const params = {
|
|
21111
21488
|
code,
|
|
21112
21489
|
button: item,
|
|
@@ -21119,7 +21496,7 @@ const Table = VxeTable;
|
|
|
21119
21496
|
gCommandOpts.commandMethod(params);
|
|
21120
21497
|
} else {
|
|
21121
21498
|
if (true) {
|
|
21122
|
-
|
|
21499
|
+
toolbar_log.err('vxe.error.notCommands', [code]);
|
|
21123
21500
|
}
|
|
21124
21501
|
}
|
|
21125
21502
|
}
|
|
@@ -21135,7 +21512,7 @@ const Table = VxeTable;
|
|
|
21135
21512
|
if ($xeGrid) {
|
|
21136
21513
|
$xeGrid.triggerToolbarTolEvent(item, evnt);
|
|
21137
21514
|
} else {
|
|
21138
|
-
const gCommandOpts =
|
|
21515
|
+
const gCommandOpts = toolbar_commands.get(code);
|
|
21139
21516
|
const params = {
|
|
21140
21517
|
code,
|
|
21141
21518
|
tool: item,
|
|
@@ -21148,7 +21525,7 @@ const Table = VxeTable;
|
|
|
21148
21525
|
gCommandOpts.commandMethod(params);
|
|
21149
21526
|
} else {
|
|
21150
21527
|
if (true) {
|
|
21151
|
-
|
|
21528
|
+
toolbar_log.err('vxe.error.notCommands', [code]);
|
|
21152
21529
|
}
|
|
21153
21530
|
}
|
|
21154
21531
|
}
|
|
@@ -21219,7 +21596,7 @@ const Table = VxeTable;
|
|
|
21219
21596
|
buttonRender
|
|
21220
21597
|
} = item;
|
|
21221
21598
|
if (item.visible !== false) {
|
|
21222
|
-
const compConf = buttonRender ?
|
|
21599
|
+
const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
|
|
21223
21600
|
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
21224
21601
|
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
21225
21602
|
const params = {
|
|
@@ -21276,7 +21653,7 @@ const Table = VxeTable;
|
|
|
21276
21653
|
} = item;
|
|
21277
21654
|
if (item.visible !== false) {
|
|
21278
21655
|
const rdName = toolRender ? toolRender.name : null;
|
|
21279
|
-
const compConf = toolRender ?
|
|
21656
|
+
const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
|
|
21280
21657
|
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
21281
21658
|
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
21282
21659
|
const params = {
|
|
@@ -21317,8 +21694,8 @@ const Table = VxeTable;
|
|
|
21317
21694
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21318
21695
|
key: 'import',
|
|
21319
21696
|
circle: true,
|
|
21320
|
-
icon: importOpts.icon || (
|
|
21321
|
-
title: (
|
|
21697
|
+
icon: importOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_IMPORT,
|
|
21698
|
+
title: toolbar_getI18n('vxe.toolbar.import'),
|
|
21322
21699
|
onClick: importEvent
|
|
21323
21700
|
});
|
|
21324
21701
|
};
|
|
@@ -21327,8 +21704,8 @@ const Table = VxeTable;
|
|
|
21327
21704
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21328
21705
|
key: 'export',
|
|
21329
21706
|
circle: true,
|
|
21330
|
-
icon: exportOpts.icon || (
|
|
21331
|
-
title: (
|
|
21707
|
+
icon: exportOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_EXPORT,
|
|
21708
|
+
title: toolbar_getI18n('vxe.toolbar.export'),
|
|
21332
21709
|
onClick: exportEvent
|
|
21333
21710
|
});
|
|
21334
21711
|
};
|
|
@@ -21337,8 +21714,8 @@ const Table = VxeTable;
|
|
|
21337
21714
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21338
21715
|
key: 'print',
|
|
21339
21716
|
circle: true,
|
|
21340
|
-
icon: printOpts.icon || (
|
|
21341
|
-
title: (
|
|
21717
|
+
icon: printOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_PRINT,
|
|
21718
|
+
title: toolbar_getI18n('vxe.toolbar.print'),
|
|
21342
21719
|
onClick: printEvent
|
|
21343
21720
|
});
|
|
21344
21721
|
};
|
|
@@ -21347,8 +21724,8 @@ const Table = VxeTable;
|
|
|
21347
21724
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21348
21725
|
key: 'refresh',
|
|
21349
21726
|
circle: true,
|
|
21350
|
-
icon: reactData.isRefresh ? refreshOpts.iconLoading || (
|
|
21351
|
-
title: (
|
|
21727
|
+
icon: reactData.isRefresh ? refreshOpts.iconLoading || toolbar_getIcon().TOOLBAR_TOOLS_REFRESH_LOADING : refreshOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_REFRESH,
|
|
21728
|
+
title: toolbar_getI18n('vxe.toolbar.refresh'),
|
|
21352
21729
|
onClick: refreshEvent
|
|
21353
21730
|
});
|
|
21354
21731
|
};
|
|
@@ -21357,8 +21734,8 @@ const Table = VxeTable;
|
|
|
21357
21734
|
return $xeGrid ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21358
21735
|
key: 'zoom',
|
|
21359
21736
|
circle: true,
|
|
21360
|
-
icon: $xeGrid.isMaximized() ? zoomOpts.iconOut || (
|
|
21361
|
-
title: (
|
|
21737
|
+
icon: $xeGrid.isMaximized() ? zoomOpts.iconOut || toolbar_getIcon().TOOLBAR_TOOLS_MINIMIZE : zoomOpts.iconIn || toolbar_getIcon().TOOLBAR_TOOLS_FULLSCREEN,
|
|
21738
|
+
title: toolbar_getI18n(`vxe.toolbar.zoom${$xeGrid.isMaximized() ? 'Out' : 'In'}`),
|
|
21362
21739
|
onClick: zoomEvent
|
|
21363
21740
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
21364
21741
|
};
|
|
@@ -21379,15 +21756,15 @@ const Table = VxeTable;
|
|
|
21379
21756
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21380
21757
|
key: 'custom',
|
|
21381
21758
|
circle: true,
|
|
21382
|
-
icon: customOpts.icon || (
|
|
21383
|
-
title: (
|
|
21759
|
+
icon: customOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_CUSTOM,
|
|
21760
|
+
title: toolbar_getI18n('vxe.toolbar.custom'),
|
|
21384
21761
|
className: 'vxe-toolbar-custom-target',
|
|
21385
21762
|
...customBtnOns
|
|
21386
21763
|
});
|
|
21387
21764
|
};
|
|
21388
21765
|
toolbarMethods = {
|
|
21389
21766
|
dispatchEvent(type, params, evnt) {
|
|
21390
|
-
emit(type, (
|
|
21767
|
+
emit(type, toolbar_createEvent(evnt, {
|
|
21391
21768
|
$toolbar: $xeToolbar
|
|
21392
21769
|
}, params));
|
|
21393
21770
|
},
|
|
@@ -21408,21 +21785,21 @@ const Table = VxeTable;
|
|
|
21408
21785
|
const refreshOpts = computeRefreshOpts.value;
|
|
21409
21786
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
21410
21787
|
if (refresh && !$xeGrid && !queryMethod) {
|
|
21411
|
-
|
|
21788
|
+
toolbar_log.warn('vxe.error.notFunc', ['queryMethod']);
|
|
21412
21789
|
}
|
|
21413
21790
|
const customOpts = computeCustomOpts.value;
|
|
21414
21791
|
if (true) {
|
|
21415
21792
|
if (customOpts.isFooter) {
|
|
21416
|
-
|
|
21793
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
|
|
21417
21794
|
}
|
|
21418
21795
|
if (customOpts.showFooter) {
|
|
21419
|
-
|
|
21796
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
|
|
21420
21797
|
}
|
|
21421
21798
|
if (customOpts.immediate) {
|
|
21422
|
-
|
|
21799
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
|
|
21423
21800
|
}
|
|
21424
21801
|
if (customOpts.trigger) {
|
|
21425
|
-
|
|
21802
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
|
|
21426
21803
|
}
|
|
21427
21804
|
}
|
|
21428
21805
|
});
|
|
@@ -21485,6 +21862,17 @@ const Toolbar = VxeToolbar;
|
|
|
21485
21862
|
|
|
21486
21863
|
|
|
21487
21864
|
|
|
21865
|
+
const {
|
|
21866
|
+
getConfig: grid_getConfig,
|
|
21867
|
+
getI18n: grid_getI18n,
|
|
21868
|
+
commands: grid_commands,
|
|
21869
|
+
hooks: grid_hooks,
|
|
21870
|
+
log: grid_log,
|
|
21871
|
+
useFns: grid_useFns,
|
|
21872
|
+
createEvent: grid_createEvent,
|
|
21873
|
+
globalEvents: grid_globalEvents,
|
|
21874
|
+
GLOBAL_EVENT_KEYS: grid_GLOBAL_EVENT_KEYS
|
|
21875
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
21488
21876
|
const tableComponentPropKeys = Object.keys(props);
|
|
21489
21877
|
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'openTooltip', 'focus', 'blur', 'connect'];
|
|
21490
21878
|
const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom'];
|
|
@@ -21501,7 +21889,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21501
21889
|
zoomConfig: Object,
|
|
21502
21890
|
size: {
|
|
21503
21891
|
type: String,
|
|
21504
|
-
default: () => (
|
|
21892
|
+
default: () => grid_getConfig().grid.size || grid_getConfig().size
|
|
21505
21893
|
}
|
|
21506
21894
|
},
|
|
21507
21895
|
emits: gridComponentEmits,
|
|
@@ -21513,7 +21901,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21513
21901
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
21514
21902
|
const {
|
|
21515
21903
|
computeSize
|
|
21516
|
-
} =
|
|
21904
|
+
} = grid_useFns.useSize(props);
|
|
21517
21905
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
21518
21906
|
tableLoading: false,
|
|
21519
21907
|
proxyInited: false,
|
|
@@ -21525,7 +21913,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21525
21913
|
tZindex: 0,
|
|
21526
21914
|
tablePage: {
|
|
21527
21915
|
total: 0,
|
|
21528
|
-
pageSize: (
|
|
21916
|
+
pageSize: grid_getConfig().pager?.pageSize || 10,
|
|
21529
21917
|
currentPage: 1
|
|
21530
21918
|
}
|
|
21531
21919
|
});
|
|
@@ -21561,23 +21949,23 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21561
21949
|
};
|
|
21562
21950
|
});
|
|
21563
21951
|
const computeProxyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21564
|
-
return Object.assign({}, (
|
|
21952
|
+
return Object.assign({}, grid_getConfig().grid.proxyConfig, props.proxyConfig);
|
|
21565
21953
|
});
|
|
21566
21954
|
const computeIsMsg = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21567
21955
|
const proxyOpts = computeProxyOpts.value;
|
|
21568
21956
|
return proxyOpts.message !== false;
|
|
21569
21957
|
});
|
|
21570
21958
|
const computePagerOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21571
|
-
return Object.assign({}, (
|
|
21959
|
+
return Object.assign({}, grid_getConfig().grid.pagerConfig, props.pagerConfig);
|
|
21572
21960
|
});
|
|
21573
21961
|
const computeFormOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21574
|
-
return Object.assign({}, (
|
|
21962
|
+
return Object.assign({}, grid_getConfig().grid.formConfig, props.formConfig);
|
|
21575
21963
|
});
|
|
21576
21964
|
const computeToolbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21577
|
-
return Object.assign({}, (
|
|
21965
|
+
return Object.assign({}, grid_getConfig().grid.toolbarConfig, props.toolbarConfig);
|
|
21578
21966
|
});
|
|
21579
21967
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21580
|
-
return Object.assign({}, (
|
|
21968
|
+
return Object.assign({}, grid_getConfig().grid.zoomConfig, props.zoomConfig);
|
|
21581
21969
|
});
|
|
21582
21970
|
const computeStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21583
21971
|
return reactData.isZMax ? {
|
|
@@ -21698,7 +22086,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21698
22086
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21699
22087
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
21700
22088
|
id: code,
|
|
21701
|
-
content: (
|
|
22089
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
21702
22090
|
status: 'warning'
|
|
21703
22091
|
});
|
|
21704
22092
|
}
|
|
@@ -21716,7 +22104,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21716
22104
|
$grid: $xeGrid
|
|
21717
22105
|
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, messageProp);
|
|
21718
22106
|
}
|
|
21719
|
-
return msg || (
|
|
22107
|
+
return msg || grid_getI18n(defaultMsg);
|
|
21720
22108
|
};
|
|
21721
22109
|
const handleDeleteRow = (code, alertKey, callback) => {
|
|
21722
22110
|
const isMsg = computeIsMsg.value;
|
|
@@ -21726,7 +22114,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21726
22114
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21727
22115
|
return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.confirm({
|
|
21728
22116
|
id: `cfm_${code}`,
|
|
21729
|
-
content: (
|
|
22117
|
+
content: grid_getI18n(alertKey),
|
|
21730
22118
|
escClosable: true
|
|
21731
22119
|
}).then(type => {
|
|
21732
22120
|
if (type === 'confirm') {
|
|
@@ -21738,7 +22126,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21738
22126
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21739
22127
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
21740
22128
|
id: `msg_${code}`,
|
|
21741
|
-
content: (
|
|
22129
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
21742
22130
|
status: 'warning'
|
|
21743
22131
|
});
|
|
21744
22132
|
}
|
|
@@ -21880,7 +22268,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21880
22268
|
return slots[funcSlot];
|
|
21881
22269
|
} else {
|
|
21882
22270
|
if (true) {
|
|
21883
|
-
|
|
22271
|
+
grid_log.err('vxe.error.notSlot', [funcSlot]);
|
|
21884
22272
|
}
|
|
21885
22273
|
}
|
|
21886
22274
|
} else {
|
|
@@ -22138,7 +22526,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22138
22526
|
layouts
|
|
22139
22527
|
} = props;
|
|
22140
22528
|
const vns = [];
|
|
22141
|
-
const currLayouts = layouts && layouts.length ? layouts : (
|
|
22529
|
+
const currLayouts = layouts && layouts.length ? layouts : grid_getConfig().grid.layouts || defaultLayouts;
|
|
22142
22530
|
currLayouts.forEach(name => {
|
|
22143
22531
|
switch (name) {
|
|
22144
22532
|
case 'Form':
|
|
@@ -22164,7 +22552,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22164
22552
|
break;
|
|
22165
22553
|
default:
|
|
22166
22554
|
if (true) {
|
|
22167
|
-
|
|
22555
|
+
grid_log.err('vxe.error.notProp', [`layouts -> ${name}`]);
|
|
22168
22556
|
}
|
|
22169
22557
|
break;
|
|
22170
22558
|
}
|
|
@@ -22228,7 +22616,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22228
22616
|
};
|
|
22229
22617
|
const gridMethods = {
|
|
22230
22618
|
dispatchEvent(type, params, evnt) {
|
|
22231
|
-
emit(type, (
|
|
22619
|
+
emit(type, grid_createEvent(evnt, {
|
|
22232
22620
|
$grid: $xeGrid
|
|
22233
22621
|
}, params));
|
|
22234
22622
|
},
|
|
@@ -22420,7 +22808,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22420
22808
|
});
|
|
22421
22809
|
} else {
|
|
22422
22810
|
if (true) {
|
|
22423
|
-
|
|
22811
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
22424
22812
|
}
|
|
22425
22813
|
}
|
|
22426
22814
|
break;
|
|
@@ -22489,7 +22877,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22489
22877
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
22490
22878
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
22491
22879
|
id: code,
|
|
22492
|
-
content: (
|
|
22880
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
22493
22881
|
status: 'warning'
|
|
22494
22882
|
});
|
|
22495
22883
|
}
|
|
@@ -22497,7 +22885,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22497
22885
|
}
|
|
22498
22886
|
} else {
|
|
22499
22887
|
if (true) {
|
|
22500
|
-
|
|
22888
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
22501
22889
|
}
|
|
22502
22890
|
}
|
|
22503
22891
|
break;
|
|
@@ -22581,7 +22969,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22581
22969
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
22582
22970
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
22583
22971
|
id: code,
|
|
22584
|
-
content: (
|
|
22972
|
+
content: grid_getI18n('vxe.grid.dataUnchanged'),
|
|
22585
22973
|
status: 'info'
|
|
22586
22974
|
});
|
|
22587
22975
|
}
|
|
@@ -22590,14 +22978,14 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22590
22978
|
});
|
|
22591
22979
|
} else {
|
|
22592
22980
|
if (true) {
|
|
22593
|
-
|
|
22981
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
22594
22982
|
}
|
|
22595
22983
|
}
|
|
22596
22984
|
break;
|
|
22597
22985
|
}
|
|
22598
22986
|
default:
|
|
22599
22987
|
{
|
|
22600
|
-
const gCommandOpts =
|
|
22988
|
+
const gCommandOpts = grid_commands.get(code);
|
|
22601
22989
|
if (gCommandOpts) {
|
|
22602
22990
|
if (gCommandOpts.commandMethod) {
|
|
22603
22991
|
gCommandOpts.commandMethod({
|
|
@@ -22608,7 +22996,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22608
22996
|
}, ...args);
|
|
22609
22997
|
} else {
|
|
22610
22998
|
if (true) {
|
|
22611
|
-
|
|
22999
|
+
grid_log.err('vxe.error.notCommands', [code]);
|
|
22612
23000
|
}
|
|
22613
23001
|
}
|
|
22614
23002
|
}
|
|
@@ -22693,7 +23081,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22693
23081
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(column.slots, func => {
|
|
22694
23082
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
22695
23083
|
if (!slots[func]) {
|
|
22696
|
-
|
|
23084
|
+
grid_log.err('vxe.error.notSlot', [func]);
|
|
22697
23085
|
}
|
|
22698
23086
|
}
|
|
22699
23087
|
});
|
|
@@ -22723,448 +23111,170 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22723
23111
|
return [];
|
|
22724
23112
|
},
|
|
22725
23113
|
/**
|
|
22726
|
-
* 获取需要排除的高度
|
|
22727
|
-
*/
|
|
22728
|
-
getExcludeHeight() {
|
|
22729
|
-
const {
|
|
22730
|
-
height
|
|
22731
|
-
} = props;
|
|
22732
|
-
const {
|
|
22733
|
-
isZMax
|
|
22734
|
-
} = reactData;
|
|
22735
|
-
const el = refElem.value;
|
|
22736
|
-
const formWrapper = refFormWrapper.value;
|
|
22737
|
-
const toolbarWrapper = refToolbarWrapper.value;
|
|
22738
|
-
const topWrapper = refTopWrapper.value;
|
|
22739
|
-
const bottomWrapper = refBottomWrapper.value;
|
|
22740
|
-
const pagerWrapper = refPagerWrapper.value;
|
|
22741
|
-
const parentPaddingSize = isZMax || height !== 'auto' ? 0 : getPaddingTopBottomSize(el.parentNode);
|
|
22742
|
-
return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
|
|
22743
|
-
},
|
|
22744
|
-
getParentHeight() {
|
|
22745
|
-
const el = refElem.value;
|
|
22746
|
-
if (el) {
|
|
22747
|
-
return (reactData.isZMax ? getDomNode().visibleHeight : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(el.parentNode).height)) - gridPrivateMethods.getExcludeHeight();
|
|
22748
|
-
}
|
|
22749
|
-
return 0;
|
|
22750
|
-
},
|
|
22751
|
-
triggerToolbarCommitEvent(params, evnt) {
|
|
22752
|
-
const {
|
|
22753
|
-
code
|
|
22754
|
-
} = params;
|
|
22755
|
-
return gridMethods.commitProxy(params, evnt).then(rest => {
|
|
22756
|
-
if (code && rest && rest.status && ['query', 'reload', 'delete', 'save'].includes(code)) {
|
|
22757
|
-
gridMethods.dispatchEvent(code === 'delete' || code === 'save' ? `proxy-${code}` : 'proxy-query', {
|
|
22758
|
-
...rest,
|
|
22759
|
-
isReload: code === 'reload'
|
|
22760
|
-
}, evnt);
|
|
22761
|
-
}
|
|
22762
|
-
});
|
|
22763
|
-
},
|
|
22764
|
-
triggerToolbarBtnEvent(button, evnt) {
|
|
22765
|
-
gridPrivateMethods.triggerToolbarCommitEvent(button, evnt);
|
|
22766
|
-
gridMethods.dispatchEvent('toolbar-button-click', {
|
|
22767
|
-
code: button.code,
|
|
22768
|
-
button
|
|
22769
|
-
}, evnt);
|
|
22770
|
-
},
|
|
22771
|
-
triggerToolbarTolEvent(tool, evnt) {
|
|
22772
|
-
gridPrivateMethods.triggerToolbarCommitEvent(tool, evnt);
|
|
22773
|
-
gridMethods.dispatchEvent('toolbar-tool-click', {
|
|
22774
|
-
code: tool.code,
|
|
22775
|
-
tool
|
|
22776
|
-
}, evnt);
|
|
22777
|
-
},
|
|
22778
|
-
triggerZoomEvent(evnt) {
|
|
22779
|
-
gridMethods.zoom();
|
|
22780
|
-
gridMethods.dispatchEvent('zoom', {
|
|
22781
|
-
type: reactData.isZMax ? 'max' : 'revert'
|
|
22782
|
-
}, evnt);
|
|
22783
|
-
}
|
|
22784
|
-
};
|
|
22785
|
-
Object.assign($xeGrid, gridExtendTableMethods, gridMethods, gridPrivateMethods);
|
|
22786
|
-
const columnFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
22787
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.columns ? props.columns.length : -1, () => {
|
|
22788
|
-
columnFlag.value++;
|
|
22789
|
-
});
|
|
22790
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.columns, () => {
|
|
22791
|
-
columnFlag.value++;
|
|
22792
|
-
});
|
|
22793
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(columnFlag, () => {
|
|
22794
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => $xeGrid.loadColumn(props.columns || []));
|
|
22795
|
-
});
|
|
22796
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.toolbarConfig, () => {
|
|
22797
|
-
initToolbar();
|
|
22798
|
-
});
|
|
22799
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.pagerConfig, () => {
|
|
22800
|
-
initPages();
|
|
22801
|
-
});
|
|
22802
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.proxyConfig, () => {
|
|
22803
|
-
initProxy();
|
|
22804
|
-
});
|
|
22805
|
-
const handleGlobalKeydownEvent = evnt => {
|
|
22806
|
-
const zoomOpts = computeZoomOpts.value;
|
|
22807
|
-
const isEsc = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.globalEvents.hasKey(evnt, external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.GLOBAL_EVENT_KEYS.ESCAPE);
|
|
22808
|
-
if (isEsc && reactData.isZMax && zoomOpts.escRestore !== false) {
|
|
22809
|
-
gridPrivateMethods.triggerZoomEvent(evnt);
|
|
22810
|
-
}
|
|
22811
|
-
};
|
|
22812
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.forEach(options => {
|
|
22813
|
-
const {
|
|
22814
|
-
setupGrid
|
|
22815
|
-
} = options;
|
|
22816
|
-
if (setupGrid) {
|
|
22817
|
-
const hookRest = setupGrid($xeGrid);
|
|
22818
|
-
if (hookRest && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(hookRest)) {
|
|
22819
|
-
Object.assign($xeGrid, hookRest);
|
|
22820
|
-
}
|
|
22821
|
-
}
|
|
22822
|
-
});
|
|
22823
|
-
initPages();
|
|
22824
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
22825
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
22826
|
-
const {
|
|
22827
|
-
data,
|
|
22828
|
-
columns,
|
|
22829
|
-
proxyConfig
|
|
22830
|
-
} = props;
|
|
22831
|
-
const proxyOpts = computeProxyOpts.value;
|
|
22832
|
-
const formOpts = computeFormOpts.value;
|
|
22833
|
-
if (isEnableConf(proxyConfig) && (data || proxyOpts.form && formOpts.data)) {
|
|
22834
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.log.err('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config']);
|
|
22835
|
-
}
|
|
22836
|
-
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
22837
|
-
// if (proxyOpts.props) {
|
|
22838
|
-
// warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response'])
|
|
22839
|
-
// }
|
|
22840
|
-
// }
|
|
22841
|
-
if (columns && columns.length) {
|
|
22842
|
-
$xeGrid.loadColumn(columns);
|
|
22843
|
-
}
|
|
22844
|
-
initToolbar();
|
|
22845
|
-
});
|
|
22846
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.globalEvents.on($xeGrid, 'keydown', handleGlobalKeydownEvent);
|
|
22847
|
-
});
|
|
22848
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
22849
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.globalEvents.off($xeGrid, 'keydown');
|
|
22850
|
-
});
|
|
22851
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
22852
|
-
initProxy();
|
|
22853
|
-
});
|
|
22854
|
-
const renderVN = () => {
|
|
22855
|
-
const vSize = computeSize.value;
|
|
22856
|
-
const styles = computeStyles.value;
|
|
22857
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
22858
|
-
ref: refElem,
|
|
22859
|
-
class: ['vxe-grid', {
|
|
22860
|
-
[`size--${vSize}`]: vSize,
|
|
22861
|
-
'is--animat': !!props.animat,
|
|
22862
|
-
'is--round': props.round,
|
|
22863
|
-
'is--maximize': reactData.isZMax,
|
|
22864
|
-
'is--loading': props.loading || reactData.tableLoading
|
|
22865
|
-
}],
|
|
22866
|
-
style: styles
|
|
22867
|
-
}, renderLayout());
|
|
22868
|
-
};
|
|
22869
|
-
$xeGrid.renderVN = renderVN;
|
|
22870
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeGrid', $xeGrid);
|
|
22871
|
-
return $xeGrid;
|
|
22872
|
-
},
|
|
22873
|
-
render() {
|
|
22874
|
-
return this.renderVN();
|
|
22875
|
-
}
|
|
22876
|
-
}));
|
|
22877
|
-
;// CONCATENATED MODULE: ./packages/grid/index.ts
|
|
22878
|
-
|
|
22879
|
-
|
|
22880
|
-
const VxeGrid = Object.assign({}, grid, {
|
|
22881
|
-
install(app) {
|
|
22882
|
-
app.component(grid.name, grid);
|
|
22883
|
-
}
|
|
22884
|
-
});
|
|
22885
|
-
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.dynamicApp) {
|
|
22886
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.dynamicApp.component(grid.name, grid);
|
|
22887
|
-
}
|
|
22888
|
-
const Grid = VxeGrid;
|
|
22889
|
-
/* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
|
|
22890
|
-
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
22891
|
-
|
|
22892
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.1";
|
|
22893
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.1";
|
|
22894
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig({
|
|
22895
|
-
emptyCell: ' ',
|
|
22896
|
-
table: {
|
|
22897
|
-
fit: true,
|
|
22898
|
-
showHeader: true,
|
|
22899
|
-
animat: true,
|
|
22900
|
-
delayHover: 250,
|
|
22901
|
-
autoResize: true,
|
|
22902
|
-
minHeight: 144,
|
|
22903
|
-
// keepSource: false,
|
|
22904
|
-
// showOverflow: null,
|
|
22905
|
-
// showHeaderOverflow: null,
|
|
22906
|
-
// showFooterOverflow: null,
|
|
22907
|
-
// resizeInterval: 500,
|
|
22908
|
-
// size: null,
|
|
22909
|
-
// zIndex: null,
|
|
22910
|
-
// stripe: false,
|
|
22911
|
-
// border: false,
|
|
22912
|
-
// round: false,
|
|
22913
|
-
// emptyText: '暂无数据',
|
|
22914
|
-
// emptyRender: {
|
|
22915
|
-
// name: ''
|
|
22916
|
-
// },
|
|
22917
|
-
// rowConfig: {
|
|
22918
|
-
// keyField: '_X_ROW_KEY' // 行数据的唯一主键字段名
|
|
22919
|
-
// },
|
|
22920
|
-
resizeConfig: {
|
|
22921
|
-
refreshDelay: 250
|
|
22922
|
-
},
|
|
22923
|
-
radioConfig: {
|
|
22924
|
-
// trigger: 'default'
|
|
22925
|
-
strict: true
|
|
22926
|
-
},
|
|
22927
|
-
checkboxConfig: {
|
|
22928
|
-
// trigger: 'default',
|
|
22929
|
-
strict: true
|
|
22930
|
-
},
|
|
22931
|
-
tooltipConfig: {
|
|
22932
|
-
enterable: true
|
|
22933
|
-
},
|
|
22934
|
-
validConfig: {
|
|
22935
|
-
showMessage: true,
|
|
22936
|
-
autoClear: true,
|
|
22937
|
-
autoPos: true,
|
|
22938
|
-
message: 'inline',
|
|
22939
|
-
msgMode: 'single'
|
|
22940
|
-
},
|
|
22941
|
-
columnConfig: {
|
|
22942
|
-
maxFixedSize: 4
|
|
22943
|
-
},
|
|
22944
|
-
// menuConfig: {
|
|
22945
|
-
// visibleMethod () {}
|
|
22946
|
-
// },
|
|
22947
|
-
customConfig: {
|
|
22948
|
-
allowFixed: true,
|
|
22949
|
-
showFooter: true
|
|
22950
|
-
// storage: false,
|
|
22951
|
-
// checkMethod () {}
|
|
22952
|
-
},
|
|
22953
|
-
sortConfig: {
|
|
22954
|
-
// remote: false,
|
|
22955
|
-
// trigger: 'default',
|
|
22956
|
-
// orders: ['asc', 'desc', null],
|
|
22957
|
-
// sortMethod: null,
|
|
22958
|
-
showIcon: true,
|
|
22959
|
-
iconLayout: 'vertical'
|
|
22960
|
-
},
|
|
22961
|
-
filterConfig: {
|
|
22962
|
-
// remote: false,
|
|
22963
|
-
// filterMethod: null,
|
|
22964
|
-
showIcon: true
|
|
22965
|
-
},
|
|
22966
|
-
treeConfig: {
|
|
22967
|
-
rowField: 'id',
|
|
22968
|
-
parentField: 'parentId',
|
|
22969
|
-
childrenField: 'children',
|
|
22970
|
-
hasChildField: 'hasChild',
|
|
22971
|
-
mapChildrenField: '_X_ROW_CHILD',
|
|
22972
|
-
indent: 20,
|
|
22973
|
-
showIcon: true
|
|
22974
|
-
},
|
|
22975
|
-
expandConfig: {
|
|
22976
|
-
// trigger: 'default',
|
|
22977
|
-
showIcon: true
|
|
22978
|
-
},
|
|
22979
|
-
editConfig: {
|
|
22980
|
-
// mode: 'cell',
|
|
22981
|
-
showIcon: true,
|
|
22982
|
-
showAsterisk: true
|
|
22983
|
-
},
|
|
22984
|
-
importConfig: {
|
|
22985
|
-
_typeMaps: {
|
|
22986
|
-
csv: 1,
|
|
22987
|
-
html: 1,
|
|
22988
|
-
xml: 1,
|
|
22989
|
-
txt: 1
|
|
22990
|
-
},
|
|
22991
|
-
modes: ['insert', 'covering']
|
|
22992
|
-
},
|
|
22993
|
-
exportConfig: {
|
|
22994
|
-
_typeMaps: {
|
|
22995
|
-
csv: 1,
|
|
22996
|
-
html: 1,
|
|
22997
|
-
xml: 1,
|
|
22998
|
-
txt: 1
|
|
22999
|
-
},
|
|
23000
|
-
modes: ['current', 'selected']
|
|
23001
|
-
},
|
|
23002
|
-
printConfig: {
|
|
23003
|
-
modes: ['current', 'selected']
|
|
23004
|
-
},
|
|
23005
|
-
mouseConfig: {
|
|
23006
|
-
extension: true
|
|
23007
|
-
},
|
|
23008
|
-
keyboardConfig: {
|
|
23009
|
-
isEsc: true
|
|
23010
|
-
},
|
|
23011
|
-
areaConfig: {
|
|
23012
|
-
autoClear: true,
|
|
23013
|
-
selectCellByHeader: true
|
|
23014
|
-
},
|
|
23015
|
-
clipConfig: {
|
|
23016
|
-
isCopy: true,
|
|
23017
|
-
isCut: true,
|
|
23018
|
-
isPaste: true
|
|
23019
|
-
},
|
|
23020
|
-
fnrConfig: {
|
|
23021
|
-
isFind: true,
|
|
23022
|
-
isReplace: true
|
|
23023
|
-
},
|
|
23024
|
-
scrollX: {
|
|
23025
|
-
// enabled: false,
|
|
23026
|
-
gt: 60
|
|
23027
|
-
// oSize: 0
|
|
23028
|
-
},
|
|
23029
|
-
scrollY: {
|
|
23030
|
-
// enabled: false,
|
|
23031
|
-
gt: 100
|
|
23032
|
-
// oSize: 0
|
|
23033
|
-
}
|
|
23034
|
-
},
|
|
23035
|
-
// export: {
|
|
23036
|
-
// types: {}
|
|
23037
|
-
// },
|
|
23038
|
-
grid: {
|
|
23039
|
-
// size: null,
|
|
23040
|
-
// zoomConfig: {
|
|
23041
|
-
// escRestore: true
|
|
23042
|
-
// },
|
|
23043
|
-
formConfig: {
|
|
23044
|
-
enabled: true
|
|
23045
|
-
},
|
|
23046
|
-
pagerConfig: {
|
|
23047
|
-
enabled: true
|
|
23048
|
-
// perfect: false
|
|
23049
|
-
},
|
|
23050
|
-
toolbarConfig: {
|
|
23051
|
-
enabled: true
|
|
23052
|
-
// perfect: false
|
|
23053
|
-
},
|
|
23054
|
-
proxyConfig: {
|
|
23055
|
-
enabled: true,
|
|
23056
|
-
autoLoad: true,
|
|
23057
|
-
message: true,
|
|
23058
|
-
props: {
|
|
23059
|
-
list: null,
|
|
23060
|
-
result: 'result',
|
|
23061
|
-
total: 'page.total',
|
|
23062
|
-
message: 'message'
|
|
23114
|
+
* 获取需要排除的高度
|
|
23115
|
+
*/
|
|
23116
|
+
getExcludeHeight() {
|
|
23117
|
+
const {
|
|
23118
|
+
height
|
|
23119
|
+
} = props;
|
|
23120
|
+
const {
|
|
23121
|
+
isZMax
|
|
23122
|
+
} = reactData;
|
|
23123
|
+
const el = refElem.value;
|
|
23124
|
+
const formWrapper = refFormWrapper.value;
|
|
23125
|
+
const toolbarWrapper = refToolbarWrapper.value;
|
|
23126
|
+
const topWrapper = refTopWrapper.value;
|
|
23127
|
+
const bottomWrapper = refBottomWrapper.value;
|
|
23128
|
+
const pagerWrapper = refPagerWrapper.value;
|
|
23129
|
+
const parentPaddingSize = isZMax || height !== 'auto' ? 0 : getPaddingTopBottomSize(el.parentNode);
|
|
23130
|
+
return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
|
|
23131
|
+
},
|
|
23132
|
+
getParentHeight() {
|
|
23133
|
+
const el = refElem.value;
|
|
23134
|
+
if (el) {
|
|
23135
|
+
return (reactData.isZMax ? getDomNode().visibleHeight : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(el.parentNode).height)) - gridPrivateMethods.getExcludeHeight();
|
|
23136
|
+
}
|
|
23137
|
+
return 0;
|
|
23138
|
+
},
|
|
23139
|
+
triggerToolbarCommitEvent(params, evnt) {
|
|
23140
|
+
const {
|
|
23141
|
+
code
|
|
23142
|
+
} = params;
|
|
23143
|
+
return gridMethods.commitProxy(params, evnt).then(rest => {
|
|
23144
|
+
if (code && rest && rest.status && ['query', 'reload', 'delete', 'save'].includes(code)) {
|
|
23145
|
+
gridMethods.dispatchEvent(code === 'delete' || code === 'save' ? `proxy-${code}` : 'proxy-query', {
|
|
23146
|
+
...rest,
|
|
23147
|
+
isReload: code === 'reload'
|
|
23148
|
+
}, evnt);
|
|
23149
|
+
}
|
|
23150
|
+
});
|
|
23151
|
+
},
|
|
23152
|
+
triggerToolbarBtnEvent(button, evnt) {
|
|
23153
|
+
gridPrivateMethods.triggerToolbarCommitEvent(button, evnt);
|
|
23154
|
+
gridMethods.dispatchEvent('toolbar-button-click', {
|
|
23155
|
+
code: button.code,
|
|
23156
|
+
button
|
|
23157
|
+
}, evnt);
|
|
23158
|
+
},
|
|
23159
|
+
triggerToolbarTolEvent(tool, evnt) {
|
|
23160
|
+
gridPrivateMethods.triggerToolbarCommitEvent(tool, evnt);
|
|
23161
|
+
gridMethods.dispatchEvent('toolbar-tool-click', {
|
|
23162
|
+
code: tool.code,
|
|
23163
|
+
tool
|
|
23164
|
+
}, evnt);
|
|
23165
|
+
},
|
|
23166
|
+
triggerZoomEvent(evnt) {
|
|
23167
|
+
gridMethods.zoom();
|
|
23168
|
+
gridMethods.dispatchEvent('zoom', {
|
|
23169
|
+
type: reactData.isZMax ? 'max' : 'revert'
|
|
23170
|
+
}, evnt);
|
|
23063
23171
|
}
|
|
23064
|
-
|
|
23065
|
-
|
|
23066
|
-
|
|
23067
|
-
|
|
23068
|
-
|
|
23069
|
-
|
|
23070
|
-
|
|
23071
|
-
|
|
23072
|
-
}
|
|
23172
|
+
};
|
|
23173
|
+
Object.assign($xeGrid, gridExtendTableMethods, gridMethods, gridPrivateMethods);
|
|
23174
|
+
const columnFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
23175
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.columns ? props.columns.length : -1, () => {
|
|
23176
|
+
columnFlag.value++;
|
|
23177
|
+
});
|
|
23178
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.columns, () => {
|
|
23179
|
+
columnFlag.value++;
|
|
23180
|
+
});
|
|
23181
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(columnFlag, () => {
|
|
23182
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => $xeGrid.loadColumn(props.columns || []));
|
|
23183
|
+
});
|
|
23184
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.toolbarConfig, () => {
|
|
23185
|
+
initToolbar();
|
|
23186
|
+
});
|
|
23187
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.pagerConfig, () => {
|
|
23188
|
+
initPages();
|
|
23189
|
+
});
|
|
23190
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.proxyConfig, () => {
|
|
23191
|
+
initProxy();
|
|
23192
|
+
});
|
|
23193
|
+
const handleGlobalKeydownEvent = evnt => {
|
|
23194
|
+
const zoomOpts = computeZoomOpts.value;
|
|
23195
|
+
const isEsc = grid_globalEvents.hasKey(evnt, grid_GLOBAL_EVENT_KEYS.ESCAPE);
|
|
23196
|
+
if (isEsc && reactData.isZMax && zoomOpts.escRestore !== false) {
|
|
23197
|
+
gridPrivateMethods.triggerZoomEvent(evnt);
|
|
23198
|
+
}
|
|
23199
|
+
};
|
|
23200
|
+
grid_hooks.forEach(options => {
|
|
23201
|
+
const {
|
|
23202
|
+
setupGrid
|
|
23203
|
+
} = options;
|
|
23204
|
+
if (setupGrid) {
|
|
23205
|
+
const hookRest = setupGrid($xeGrid);
|
|
23206
|
+
if (hookRest && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(hookRest)) {
|
|
23207
|
+
Object.assign($xeGrid, hookRest);
|
|
23208
|
+
}
|
|
23209
|
+
}
|
|
23210
|
+
});
|
|
23211
|
+
initPages();
|
|
23212
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
23213
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
23214
|
+
const {
|
|
23215
|
+
data,
|
|
23216
|
+
columns,
|
|
23217
|
+
proxyConfig
|
|
23218
|
+
} = props;
|
|
23219
|
+
const proxyOpts = computeProxyOpts.value;
|
|
23220
|
+
const formOpts = computeFormOpts.value;
|
|
23221
|
+
if (isEnableConf(proxyConfig) && (data || proxyOpts.form && formOpts.data)) {
|
|
23222
|
+
grid_log.err('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config']);
|
|
23223
|
+
}
|
|
23224
|
+
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
23225
|
+
// if (proxyOpts.props) {
|
|
23226
|
+
// warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response'])
|
|
23227
|
+
// }
|
|
23228
|
+
// }
|
|
23229
|
+
if (columns && columns.length) {
|
|
23230
|
+
$xeGrid.loadColumn(columns);
|
|
23231
|
+
}
|
|
23232
|
+
initToolbar();
|
|
23233
|
+
});
|
|
23234
|
+
grid_globalEvents.on($xeGrid, 'keydown', handleGlobalKeydownEvent);
|
|
23235
|
+
});
|
|
23236
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
23237
|
+
grid_globalEvents.off($xeGrid, 'keydown');
|
|
23238
|
+
});
|
|
23239
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
23240
|
+
initProxy();
|
|
23241
|
+
});
|
|
23242
|
+
const renderVN = () => {
|
|
23243
|
+
const vSize = computeSize.value;
|
|
23244
|
+
const styles = computeStyles.value;
|
|
23245
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
23246
|
+
ref: refElem,
|
|
23247
|
+
class: ['vxe-grid', {
|
|
23248
|
+
[`size--${vSize}`]: vSize,
|
|
23249
|
+
'is--animat': !!props.animat,
|
|
23250
|
+
'is--round': props.round,
|
|
23251
|
+
'is--maximize': reactData.isZMax,
|
|
23252
|
+
'is--loading': props.loading || reactData.tableLoading
|
|
23253
|
+
}],
|
|
23254
|
+
style: styles
|
|
23255
|
+
}, renderLayout());
|
|
23256
|
+
};
|
|
23257
|
+
$xeGrid.renderVN = renderVN;
|
|
23258
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeGrid', $xeGrid);
|
|
23259
|
+
return $xeGrid;
|
|
23073
23260
|
},
|
|
23074
|
-
|
|
23075
|
-
|
|
23076
|
-
// import: {
|
|
23077
|
-
// mode: 'covering'
|
|
23078
|
-
// },
|
|
23079
|
-
// export: {
|
|
23080
|
-
// types: ['csv', 'html', 'xml', 'txt']
|
|
23081
|
-
// },
|
|
23082
|
-
// buttons: []
|
|
23261
|
+
render() {
|
|
23262
|
+
return this.renderVN();
|
|
23083
23263
|
}
|
|
23084
|
-
});
|
|
23085
|
-
|
|
23086
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setIcon({
|
|
23087
|
-
// table
|
|
23088
|
-
TABLE_SORT_ASC: iconPrefix + 'caret-up',
|
|
23089
|
-
TABLE_SORT_DESC: iconPrefix + 'caret-down',
|
|
23090
|
-
TABLE_FILTER_NONE: iconPrefix + 'funnel',
|
|
23091
|
-
TABLE_FILTER_MATCH: iconPrefix + 'funnel',
|
|
23092
|
-
TABLE_EDIT: iconPrefix + 'edit',
|
|
23093
|
-
TABLE_TITLE_PREFIX: iconPrefix + 'question-circle-fill',
|
|
23094
|
-
TABLE_TITLE_SUFFIX: iconPrefix + 'question-circle-fill',
|
|
23095
|
-
TABLE_TREE_LOADED: iconPrefix + 'spinner roll',
|
|
23096
|
-
TABLE_TREE_OPEN: iconPrefix + 'caret-right rotate90',
|
|
23097
|
-
TABLE_TREE_CLOSE: iconPrefix + 'caret-right',
|
|
23098
|
-
TABLE_EXPAND_LOADED: iconPrefix + 'spinner roll',
|
|
23099
|
-
TABLE_EXPAND_OPEN: iconPrefix + 'arrow-right rotate90',
|
|
23100
|
-
TABLE_EXPAND_CLOSE: iconPrefix + 'arrow-right',
|
|
23101
|
-
TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked-fill',
|
|
23102
|
-
TABLE_CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',
|
|
23103
|
-
TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate-fill',
|
|
23104
|
-
TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked-fill',
|
|
23105
|
-
TABLE_RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
|
|
23106
|
-
// toolbar
|
|
23107
|
-
TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
|
|
23108
|
-
TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + 'repeat roll',
|
|
23109
|
-
TOOLBAR_TOOLS_IMPORT: iconPrefix + 'upload',
|
|
23110
|
-
TOOLBAR_TOOLS_EXPORT: iconPrefix + 'download',
|
|
23111
|
-
TOOLBAR_TOOLS_PRINT: iconPrefix + 'print',
|
|
23112
|
-
TOOLBAR_TOOLS_FULLSCREEN: iconPrefix + 'fullscreen',
|
|
23113
|
-
TOOLBAR_TOOLS_MINIMIZE: iconPrefix + 'minimize',
|
|
23114
|
-
TOOLBAR_TOOLS_CUSTOM: iconPrefix + 'custom-column',
|
|
23115
|
-
TOOLBAR_TOOLS_FIXED_LEFT: iconPrefix + 'fixed-left',
|
|
23116
|
-
TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE: iconPrefix + 'fixed-left-fill',
|
|
23117
|
-
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + 'fixed-right',
|
|
23118
|
-
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + 'fixed-right-fill'
|
|
23119
|
-
});
|
|
23120
|
-
const setTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setTheme;
|
|
23121
|
-
const getTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getTheme;
|
|
23122
|
-
const setConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig;
|
|
23123
|
-
const getConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig;
|
|
23124
|
-
const setIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setIcon;
|
|
23125
|
-
const getIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getIcon;
|
|
23126
|
-
const setLanguage = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setLanguage;
|
|
23127
|
-
const setI18n = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setI18n;
|
|
23128
|
-
const getI18n = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getI18n;
|
|
23129
|
-
const globalEvents = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.globalEvents;
|
|
23130
|
-
const globalResize = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.globalResize;
|
|
23131
|
-
const renderer = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.renderer;
|
|
23132
|
-
const validators = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.validators;
|
|
23133
|
-
const menus = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.menus;
|
|
23134
|
-
const formats = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.formats;
|
|
23135
|
-
const commands = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.commands;
|
|
23136
|
-
const interceptor = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.interceptor;
|
|
23137
|
-
const clipboard = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.clipboard;
|
|
23138
|
-
const log = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.log;
|
|
23139
|
-
const hooks = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.hooks;
|
|
23140
|
-
const use = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.use;
|
|
23141
|
-
/**
|
|
23142
|
-
* 已废弃
|
|
23143
|
-
* @deprecated
|
|
23144
|
-
*/
|
|
23145
|
-
const setup = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setup;
|
|
23146
|
-
/**
|
|
23147
|
-
* 已废弃
|
|
23148
|
-
* @deprecated
|
|
23149
|
-
*/
|
|
23150
|
-
const config = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.config;
|
|
23151
|
-
/**
|
|
23152
|
-
* 已废弃
|
|
23153
|
-
* @deprecated
|
|
23154
|
-
*/
|
|
23155
|
-
const t = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.t;
|
|
23156
|
-
/**
|
|
23157
|
-
* 已废弃
|
|
23158
|
-
* @deprecated
|
|
23159
|
-
*/
|
|
23160
|
-
const _t = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI._t;
|
|
23161
|
-
/**
|
|
23162
|
-
* 已废弃,兼容老版本
|
|
23163
|
-
* @deprecated
|
|
23164
|
-
*/
|
|
23165
|
-
const VXETable = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
23264
|
+
}));
|
|
23265
|
+
;// CONCATENATED MODULE: ./packages/grid/index.ts
|
|
23166
23266
|
|
|
23167
|
-
|
|
23267
|
+
|
|
23268
|
+
const VxeGrid = Object.assign({}, grid, {
|
|
23269
|
+
install(app) {
|
|
23270
|
+
app.component(grid.name, grid);
|
|
23271
|
+
}
|
|
23272
|
+
});
|
|
23273
|
+
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.dynamicApp) {
|
|
23274
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.dynamicApp.component(grid.name, grid);
|
|
23275
|
+
}
|
|
23276
|
+
const Grid = VxeGrid;
|
|
23277
|
+
/* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
|
|
23168
23278
|
;// CONCATENATED MODULE: ./packages/components.ts
|
|
23169
23279
|
|
|
23170
23280
|
|
|
@@ -23178,6 +23288,8 @@ function install(app, options) {
|
|
|
23178
23288
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig(options);
|
|
23179
23289
|
components.forEach(component => component.install(app));
|
|
23180
23290
|
}
|
|
23291
|
+
const modal = (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_default()).drawer;
|
|
23292
|
+
const drawer = (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_default()).drawer;
|
|
23181
23293
|
|
|
23182
23294
|
// Components
|
|
23183
23295
|
|