vxe-table 4.7.0 → 4.7.3
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/components.js +3 -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/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 +16 -2
- package/es/table/style.css +4 -2
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +3 -2
- package/es/ui/index.js +4 -2
- package/es/ui/src/utils.js +3 -3
- package/es/v-x-e-table/index.js +3 -0
- package/es/v-x-e-table/style.css +0 -0
- package/es/v-x-e-table/style.min.css +0 -0
- package/es/vxe-table/style.css +4 -2
- package/es/vxe-table/style.min.css +1 -1
- package/es/vxe-v-x-e-table/index.js +3 -0
- package/es/vxe-v-x-e-table/style.css +0 -0
- package/es/vxe-v-x-e-table/style.min.css +0 -0
- package/lib/components.js +10 -2
- package/lib/components.min.js +1 -1
- package/lib/grid/src/grid.js +40 -29
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.common.js +5 -5
- package/lib/index.umd.js +570 -437
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +1 -1
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +27 -23
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +20 -13
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/export-panel.js +35 -31
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/hook.js +24 -18
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/export/import-panel.js +12 -8
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/filter/hook.js +7 -3
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/module/filter/panel.js +13 -8
- 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 +11 -5
- package/lib/table/module/menu/hook.min.js +1 -1
- package/lib/table/module/validator/hook.js +13 -7
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/render/index.js +11 -5
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +7 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +26 -21
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +15 -10
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/props.js +27 -24
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +173 -146
- 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/src/toolbar.js +48 -38
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +5 -3
- 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/v-x-e-table/index.js +22 -0
- package/lib/v-x-e-table/index.min.js +1 -0
- package/lib/v-x-e-table/style/index.js +1 -0
- package/lib/v-x-e-table/style/style.css +0 -0
- package/lib/v-x-e-table/style/style.min.css +0 -0
- package/lib/vxe-table/style/style.css +4 -2
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-v-x-e-table/index.js +22 -0
- package/lib/vxe-v-x-e-table/index.min.js +1 -0
- package/lib/vxe-v-x-e-table/style/index.js +1 -0
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- package/package.json +2 -2
- package/packages/components.ts +4 -1
- package/packages/grid/src/grid.ts +5 -4
- package/packages/index.ts +2 -2
- 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 +18 -4
- package/packages/toolbar/src/toolbar.ts +5 -4
- package/packages/ui/index.ts +3 -0
- package/packages/ui/src/utils.ts +3 -3
- package/packages/ui/src/vn.ts +2 -1
- package/packages/v-x-e-table/index.d.ts +4 -0
- package/packages/v-x-e-table/index.ts +4 -0
- package/styles/components/table.scss +5 -2
- package/styles/components/v-x-e-table.scss +0 -0
- package/styles/theme/base.scss +1 -0
- package/types/all.d.ts +0 -22
package/lib/index.umd.js
CHANGED
|
@@ -1690,22 +1690,26 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1690
1690
|
VxeUI: function() { return /* reexport */ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI; },
|
|
1691
1691
|
_t: function() { return /* reexport */ _t; },
|
|
1692
1692
|
clipboard: function() { return /* reexport */ clipboard; },
|
|
1693
|
-
commands: function() { return /* reexport */
|
|
1693
|
+
commands: function() { return /* reexport */ ui_commands; },
|
|
1694
1694
|
config: function() { return /* reexport */ config; },
|
|
1695
1695
|
"default": function() { return /* binding */ entry_lib; },
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1696
|
+
drawer: function() { return /* reexport */ drawer; },
|
|
1697
|
+
formats: function() { return /* reexport */ ui_formats; },
|
|
1698
|
+
getConfig: function() { return /* reexport */ ui_getConfig; },
|
|
1699
|
+
getI18n: function() { return /* reexport */ ui_getI18n; },
|
|
1700
|
+
getIcon: function() { return /* reexport */ ui_getIcon; },
|
|
1700
1701
|
getTheme: function() { return /* reexport */ getTheme; },
|
|
1701
|
-
globalEvents: function() { return /* reexport */
|
|
1702
|
-
globalResize: function() { return /* reexport */
|
|
1703
|
-
hooks: function() { return /* reexport */
|
|
1702
|
+
globalEvents: function() { return /* reexport */ ui_globalEvents; },
|
|
1703
|
+
globalResize: function() { return /* reexport */ ui_globalResize; },
|
|
1704
|
+
hooks: function() { return /* reexport */ ui_hooks; },
|
|
1704
1705
|
install: function() { return /* reexport */ install; },
|
|
1705
|
-
interceptor: function() { return /* reexport */
|
|
1706
|
-
log: function() { return /* reexport */
|
|
1707
|
-
menus: function() { return /* reexport */
|
|
1708
|
-
|
|
1706
|
+
interceptor: function() { return /* reexport */ ui_interceptor; },
|
|
1707
|
+
log: function() { return /* reexport */ ui_log; },
|
|
1708
|
+
menus: function() { return /* reexport */ ui_menus; },
|
|
1709
|
+
modal: function() { return /* reexport */ modal; },
|
|
1710
|
+
readFile: function() { return /* reexport */ readFile; },
|
|
1711
|
+
renderer: function() { return /* reexport */ ui_renderer; },
|
|
1712
|
+
saveFile: function() { return /* reexport */ saveFile; },
|
|
1709
1713
|
setConfig: function() { return /* reexport */ setConfig; },
|
|
1710
1714
|
setI18n: function() { return /* reexport */ setI18n; },
|
|
1711
1715
|
setIcon: function() { return /* reexport */ setIcon; },
|
|
@@ -1714,7 +1718,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1714
1718
|
setup: function() { return /* reexport */ setup; },
|
|
1715
1719
|
t: function() { return /* reexport */ t; },
|
|
1716
1720
|
use: function() { return /* reexport */ use; },
|
|
1717
|
-
validators: function() { return /* reexport */
|
|
1721
|
+
validators: function() { return /* reexport */ ui_validators; }
|
|
1718
1722
|
});
|
|
1719
1723
|
|
|
1720
1724
|
// NAMESPACE OBJECT: ./packages/components.ts
|
|
@@ -1735,21 +1739,25 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1735
1739
|
VxeUI: function() { return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI; },
|
|
1736
1740
|
_t: function() { return _t; },
|
|
1737
1741
|
clipboard: function() { return clipboard; },
|
|
1738
|
-
commands: function() { return
|
|
1742
|
+
commands: function() { return ui_commands; },
|
|
1739
1743
|
config: function() { return config; },
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
+
drawer: function() { return drawer; },
|
|
1745
|
+
formats: function() { return ui_formats; },
|
|
1746
|
+
getConfig: function() { return ui_getConfig; },
|
|
1747
|
+
getI18n: function() { return ui_getI18n; },
|
|
1748
|
+
getIcon: function() { return ui_getIcon; },
|
|
1744
1749
|
getTheme: function() { return getTheme; },
|
|
1745
|
-
globalEvents: function() { return
|
|
1746
|
-
globalResize: function() { return
|
|
1747
|
-
hooks: function() { return
|
|
1750
|
+
globalEvents: function() { return ui_globalEvents; },
|
|
1751
|
+
globalResize: function() { return ui_globalResize; },
|
|
1752
|
+
hooks: function() { return ui_hooks; },
|
|
1748
1753
|
install: function() { return install; },
|
|
1749
|
-
interceptor: function() { return
|
|
1750
|
-
log: function() { return
|
|
1751
|
-
menus: function() { return
|
|
1752
|
-
|
|
1754
|
+
interceptor: function() { return ui_interceptor; },
|
|
1755
|
+
log: function() { return ui_log; },
|
|
1756
|
+
menus: function() { return ui_menus; },
|
|
1757
|
+
modal: function() { return modal; },
|
|
1758
|
+
readFile: function() { return readFile; },
|
|
1759
|
+
renderer: function() { return ui_renderer; },
|
|
1760
|
+
saveFile: function() { return saveFile; },
|
|
1753
1761
|
setConfig: function() { return setConfig; },
|
|
1754
1762
|
setI18n: function() { return setI18n; },
|
|
1755
1763
|
setIcon: function() { return setIcon; },
|
|
@@ -1758,7 +1766,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1758
1766
|
setup: function() { return setup; },
|
|
1759
1767
|
t: function() { return t; },
|
|
1760
1768
|
use: function() { return use; },
|
|
1761
|
-
validators: function() { return
|
|
1769
|
+
validators: function() { return ui_validators; }
|
|
1762
1770
|
});
|
|
1763
1771
|
|
|
1764
1772
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -1780,6 +1788,7 @@ if (typeof window !== 'undefined') {
|
|
|
1780
1788
|
|
|
1781
1789
|
// EXTERNAL MODULE: external {"root":"VxeUI","commonjs":"vxe-pc-ui","commonjs2":"vxe-pc-ui","amd":"vxe-pc-ui"}
|
|
1782
1790
|
var external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_ = __webpack_require__(2847);
|
|
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_);
|
|
1783
1792
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1784
1793
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
1785
1794
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
@@ -1928,13 +1937,13 @@ function hasChildrenList(item) {
|
|
|
1928
1937
|
}
|
|
1929
1938
|
function getFuncText(content) {
|
|
1930
1939
|
if (content) {
|
|
1931
|
-
const translate =
|
|
1940
|
+
const translate = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig().translate;
|
|
1932
1941
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(translate ? translate('' + content) : content);
|
|
1933
1942
|
}
|
|
1934
1943
|
return '';
|
|
1935
1944
|
}
|
|
1936
1945
|
function formatText(value, placeholder) {
|
|
1937
|
-
return '' + (isEmptyValue(value) ? placeholder ?
|
|
1946
|
+
return '' + (isEmptyValue(value) ? placeholder ? external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig().emptyCell : '' : value);
|
|
1938
1947
|
}
|
|
1939
1948
|
/**
|
|
1940
1949
|
* 判断值为:'' | null | undefined 时都属于空值
|
|
@@ -1947,6 +1956,11 @@ function eqEmptyValue(cellValue) {
|
|
|
1947
1956
|
|
|
1948
1957
|
|
|
1949
1958
|
|
|
1959
|
+
const {
|
|
1960
|
+
getI18n,
|
|
1961
|
+
formats,
|
|
1962
|
+
log
|
|
1963
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
1950
1964
|
class ColumnInfo {
|
|
1951
1965
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
1952
1966
|
constructor($xeTable, _vm, {
|
|
@@ -1961,16 +1975,16 @@ class ColumnInfo {
|
|
|
1961
1975
|
if (true) {
|
|
1962
1976
|
const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
|
|
1963
1977
|
if (_vm.type && types.indexOf(_vm.type) === -1) {
|
|
1964
|
-
|
|
1978
|
+
log.warn('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
|
|
1965
1979
|
}
|
|
1966
1980
|
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)) {
|
|
1967
|
-
|
|
1981
|
+
log.warn('vxe.error.errProp', [`column.cell-render=${_vm.cellRender}`, 'column.cell-render={}']);
|
|
1968
1982
|
}
|
|
1969
1983
|
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)) {
|
|
1970
|
-
|
|
1984
|
+
log.warn('vxe.error.errProp', [`column.edit-render=${_vm.editRender}`, 'column.edit-render={}']);
|
|
1971
1985
|
}
|
|
1972
1986
|
if (_vm.cellRender && _vm.editRender) {
|
|
1973
|
-
|
|
1987
|
+
log.warn('vxe.error.errConflicts', ['column.cell-render', 'column.edit-render']);
|
|
1974
1988
|
}
|
|
1975
1989
|
if (_vm.type === 'expand') {
|
|
1976
1990
|
const {
|
|
@@ -1984,19 +1998,19 @@ class ColumnInfo {
|
|
|
1984
1998
|
} = $xeTable.getComputeMaps();
|
|
1985
1999
|
const treeOpts = computeTreeOpts.value;
|
|
1986
2000
|
if (treeConfig && (treeOpts.showLine || treeOpts.line)) {
|
|
1987
|
-
|
|
2001
|
+
log.err('vxe.error.errConflicts', ['tree-config.showLine', 'column.type=expand']);
|
|
1988
2002
|
}
|
|
1989
2003
|
}
|
|
1990
2004
|
if (formatter) {
|
|
1991
2005
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
1992
|
-
const gFormatOpts =
|
|
2006
|
+
const gFormatOpts = formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
|
|
1993
2007
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
1994
|
-
|
|
2008
|
+
log.err('vxe.error.notFormats', [formatter]);
|
|
1995
2009
|
}
|
|
1996
2010
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
1997
|
-
const gFormatOpts =
|
|
2011
|
+
const gFormatOpts = formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
|
|
1998
2012
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
1999
|
-
|
|
2013
|
+
log.err('vxe.error.notFormats', [formatter[0]]);
|
|
2000
2014
|
}
|
|
2001
2015
|
}
|
|
2002
2016
|
}
|
|
@@ -2094,7 +2108,7 @@ class ColumnInfo {
|
|
|
2094
2108
|
}
|
|
2095
2109
|
}
|
|
2096
2110
|
getTitle() {
|
|
2097
|
-
return getFuncText(this.title || (this.type === 'seq' ?
|
|
2111
|
+
return getFuncText(this.title || (this.type === 'seq' ? getI18n('vxe.table.seqTitle') : ''));
|
|
2098
2112
|
}
|
|
2099
2113
|
getKey() {
|
|
2100
2114
|
return this.field || (this.type ? `type=${this.type}` : null);
|
|
@@ -2777,6 +2791,11 @@ function getSlotVNs(vns) {
|
|
|
2777
2791
|
|
|
2778
2792
|
|
|
2779
2793
|
|
|
2794
|
+
const {
|
|
2795
|
+
getI18n: cell_getI18n,
|
|
2796
|
+
getIcon,
|
|
2797
|
+
renderer
|
|
2798
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
2780
2799
|
function renderTitlePrefixIcon(params) {
|
|
2781
2800
|
const {
|
|
2782
2801
|
$table,
|
|
@@ -2784,7 +2803,7 @@ function renderTitlePrefixIcon(params) {
|
|
|
2784
2803
|
} = params;
|
|
2785
2804
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
2786
2805
|
return titlePrefix ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
2787
|
-
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon ||
|
|
2806
|
+
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || getIcon().TABLE_TITLE_PREFIX],
|
|
2788
2807
|
onMouseenter(evnt) {
|
|
2789
2808
|
$table.triggerHeaderTitleEvent(evnt, titlePrefix, params);
|
|
2790
2809
|
},
|
|
@@ -2800,7 +2819,7 @@ function renderTitleSuffixIcon(params) {
|
|
|
2800
2819
|
} = params;
|
|
2801
2820
|
const titleSuffix = column.titleSuffix;
|
|
2802
2821
|
return titleSuffix ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
2803
|
-
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon ||
|
|
2822
|
+
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX],
|
|
2804
2823
|
onMouseenter(evnt) {
|
|
2805
2824
|
$table.triggerHeaderTitleEvent(evnt, titleSuffix, params);
|
|
2806
2825
|
},
|
|
@@ -2884,7 +2903,7 @@ function getFooterContent(params) {
|
|
|
2884
2903
|
return $table.callSlot(footerSlot, params);
|
|
2885
2904
|
}
|
|
2886
2905
|
if (renderOpts) {
|
|
2887
|
-
const compConf =
|
|
2906
|
+
const compConf = renderer.get(renderOpts.name);
|
|
2888
2907
|
if (compConf && compConf.renderFooter) {
|
|
2889
2908
|
return getSlotVNs(compConf.renderFooter(renderOpts, params));
|
|
2890
2909
|
}
|
|
@@ -2989,7 +3008,7 @@ const Cell = {
|
|
|
2989
3008
|
return renderTitleContent(params, $table.callSlot(headerSlot, params));
|
|
2990
3009
|
}
|
|
2991
3010
|
if (renderOpts) {
|
|
2992
|
-
const compConf =
|
|
3011
|
+
const compConf = renderer.get(renderOpts.name);
|
|
2993
3012
|
if (compConf && compConf.renderHeader) {
|
|
2994
3013
|
return renderTitleContent(params, getSlotVNs(compConf.renderHeader(renderOpts, params)));
|
|
2995
3014
|
}
|
|
@@ -3017,7 +3036,7 @@ const Cell = {
|
|
|
3017
3036
|
}
|
|
3018
3037
|
if (renderOpts) {
|
|
3019
3038
|
const funName = editRender ? 'renderCell' : 'renderDefault';
|
|
3020
|
-
const compConf =
|
|
3039
|
+
const compConf = renderer.get(renderOpts.name);
|
|
3021
3040
|
const compFn = compConf ? compConf[funName] : null;
|
|
3022
3041
|
if (compFn) {
|
|
3023
3042
|
return getSlotVNs(compFn(renderOpts, Object.assign({
|
|
@@ -3115,7 +3134,7 @@ const Cell = {
|
|
|
3115
3134
|
class: 'vxe-tree--btn-wrapper',
|
|
3116
3135
|
...ons
|
|
3117
3136
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3118
|
-
class: ['vxe-tree--node-btn', isLazyLoaded ? iconLoaded ||
|
|
3137
|
+
class: ['vxe-tree--node-btn', isLazyLoaded ? iconLoaded || getIcon().TABLE_TREE_LOADED : isAceived ? iconOpen || getIcon().TABLE_TREE_OPEN : iconClose || getIcon().TABLE_TREE_CLOSE]
|
|
3119
3138
|
})])] : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
3120
3139
|
class: 'vxe-tree-cell'
|
|
3121
3140
|
}, cellVNodes)])];
|
|
@@ -3244,7 +3263,7 @@ const Cell = {
|
|
|
3244
3263
|
const radioVNs = [];
|
|
3245
3264
|
if (isVisible) {
|
|
3246
3265
|
radioVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3247
|
-
class: ['vxe-radio--icon', isChecked ?
|
|
3266
|
+
class: ['vxe-radio--icon', isChecked ? getIcon().TABLE_RADIO_CHECKED : getIcon().TABLE_RADIO_UNCHECKED]
|
|
3248
3267
|
}));
|
|
3249
3268
|
}
|
|
3250
3269
|
if (defaultSlot || labelField) {
|
|
@@ -3322,10 +3341,10 @@ const Cell = {
|
|
|
3322
3341
|
'is--disabled': isAllCheckboxDisabled,
|
|
3323
3342
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
3324
3343
|
}],
|
|
3325
|
-
title: (
|
|
3344
|
+
title: cell_getI18n('vxe.table.allTitle'),
|
|
3326
3345
|
...ons
|
|
3327
3346
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3328
|
-
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ?
|
|
3347
|
+
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllCheckboxSelected ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3329
3348
|
})].concat(titleSlot || headerTitle ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3330
3349
|
class: 'vxe-checkbox--label'
|
|
3331
3350
|
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : headerTitle)] : []))]);
|
|
@@ -3402,7 +3421,7 @@ const Cell = {
|
|
|
3402
3421
|
const checkVNs = [];
|
|
3403
3422
|
if (isVisible) {
|
|
3404
3423
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3405
|
-
class: ['vxe-checkbox--icon', indeterminate ?
|
|
3424
|
+
class: ['vxe-checkbox--icon', indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3406
3425
|
}));
|
|
3407
3426
|
}
|
|
3408
3427
|
if (defaultSlot || labelField) {
|
|
@@ -3496,7 +3515,7 @@ const Cell = {
|
|
|
3496
3515
|
const checkVNs = [];
|
|
3497
3516
|
if (isVisible) {
|
|
3498
3517
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3499
|
-
class: ['vxe-checkbox--icon', isIndeterminate ?
|
|
3518
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3500
3519
|
}));
|
|
3501
3520
|
if (defaultSlot || labelField) {
|
|
3502
3521
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
@@ -3573,7 +3592,7 @@ const Cell = {
|
|
|
3573
3592
|
$table.triggerRowExpandEvent(evnt, params);
|
|
3574
3593
|
}
|
|
3575
3594
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3576
|
-
class: ['vxe-table--expand-btn', isLazyLoaded ? iconLoaded ||
|
|
3595
|
+
class: ['vxe-table--expand-btn', isLazyLoaded ? iconLoaded || getIcon().TABLE_EXPAND_LOADED : isAceived ? iconOpen || getIcon().TABLE_EXPAND_OPEN : iconClose || getIcon().TABLE_EXPAND_CLOSE]
|
|
3577
3596
|
})]) : null, defaultSlot || labelField ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3578
3597
|
class: 'vxe-table--expand-label'
|
|
3579
3598
|
}, defaultSlot ? $table.callSlot(defaultSlot, params) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, labelField)) : null];
|
|
@@ -3592,7 +3611,7 @@ const Cell = {
|
|
|
3592
3611
|
return $table.callSlot(contentSlot, params);
|
|
3593
3612
|
}
|
|
3594
3613
|
if (contentRender) {
|
|
3595
|
-
const compConf =
|
|
3614
|
+
const compConf = renderer.get(contentRender.name);
|
|
3596
3615
|
if (compConf && compConf.renderExpand) {
|
|
3597
3616
|
return getSlotVNs(compConf.renderExpand(contentRender, params));
|
|
3598
3617
|
}
|
|
@@ -3656,19 +3675,19 @@ const Cell = {
|
|
|
3656
3675
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3657
3676
|
class: ['vxe-cell--sort', `vxe-cell--sort-${iconLayout}-layout`]
|
|
3658
3677
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3659
|
-
class: ['vxe-sort--asc-btn', iconAsc ||
|
|
3678
|
+
class: ['vxe-sort--asc-btn', iconAsc || getIcon().TABLE_SORT_ASC, {
|
|
3660
3679
|
'sort--active': order === 'asc'
|
|
3661
3680
|
}],
|
|
3662
|
-
title: (
|
|
3681
|
+
title: cell_getI18n('vxe.table.sortAsc'),
|
|
3663
3682
|
onClick(evnt) {
|
|
3664
3683
|
evnt.stopPropagation();
|
|
3665
3684
|
$table.triggerSortEvent(evnt, column, 'asc');
|
|
3666
3685
|
}
|
|
3667
3686
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3668
|
-
class: ['vxe-sort--desc-btn', iconDesc ||
|
|
3687
|
+
class: ['vxe-sort--desc-btn', iconDesc || getIcon().TABLE_SORT_DESC, {
|
|
3669
3688
|
'sort--active': order === 'desc'
|
|
3670
3689
|
}],
|
|
3671
|
-
title: (
|
|
3690
|
+
title: cell_getI18n('vxe.table.sortDesc'),
|
|
3672
3691
|
onClick(evnt) {
|
|
3673
3692
|
evnt.stopPropagation();
|
|
3674
3693
|
$table.triggerSortEvent(evnt, column, 'desc');
|
|
@@ -3709,8 +3728,8 @@ const Cell = {
|
|
|
3709
3728
|
'is--active': filterStore.visible && filterStore.column === column
|
|
3710
3729
|
}]
|
|
3711
3730
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3712
|
-
class: ['vxe-filter--btn', hasFilter ? iconMatch ||
|
|
3713
|
-
title: (
|
|
3731
|
+
class: ['vxe-filter--btn', hasFilter ? iconMatch || getIcon().TABLE_FILTER_MATCH : iconNone || getIcon().TABLE_FILTER_NONE],
|
|
3732
|
+
title: cell_getI18n('vxe.table.filter'),
|
|
3714
3733
|
onClick(evnt) {
|
|
3715
3734
|
if ($table.triggerFilterEvent) {
|
|
3716
3735
|
$table.triggerFilterEvent(evnt, params.column, params);
|
|
@@ -3752,7 +3771,7 @@ const Cell = {
|
|
|
3752
3771
|
return (isEnableConf(editConfig) ? [isRequired && editOpts.showAsterisk ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3753
3772
|
class: 'vxe-cell--required-icon'
|
|
3754
3773
|
}) : null, isEnableConf(editRender) && editOpts.showIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3755
|
-
class: ['vxe-cell--edit-icon', editOpts.icon ||
|
|
3774
|
+
class: ['vxe-cell--edit-icon', editOpts.icon || getIcon().TABLE_EDIT]
|
|
3756
3775
|
}) : null] : []).concat(Cell.renderDefaultHeader(params)).concat(sortable ? Cell.renderSortIcon(params) : []).concat(filters ? Cell.renderFilterIcon(params) : []);
|
|
3757
3776
|
},
|
|
3758
3777
|
// 行格编辑模式
|
|
@@ -3813,7 +3832,7 @@ const Cell = {
|
|
|
3813
3832
|
} = column;
|
|
3814
3833
|
const defaultSlot = slots ? slots.default : null;
|
|
3815
3834
|
const editSlot = slots ? slots.edit : null;
|
|
3816
|
-
const compConf =
|
|
3835
|
+
const compConf = renderer.get(editRender.name);
|
|
3817
3836
|
if (isEdit) {
|
|
3818
3837
|
if (editSlot) {
|
|
3819
3838
|
return $table.callSlot(editSlot, params);
|
|
@@ -4062,6 +4081,10 @@ const Colgroup = VxeColgroup;
|
|
|
4062
4081
|
|
|
4063
4082
|
|
|
4064
4083
|
|
|
4084
|
+
const {
|
|
4085
|
+
getI18n: body_getI18n,
|
|
4086
|
+
renderer: body_renderer
|
|
4087
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
4065
4088
|
const renderType = 'body';
|
|
4066
4089
|
const lineOffsetSizes = {
|
|
4067
4090
|
mini: 3,
|
|
@@ -4264,7 +4287,7 @@ const lineOffsetSizes = {
|
|
|
4264
4287
|
height: rowHeight
|
|
4265
4288
|
} = rowOpts;
|
|
4266
4289
|
const renderOpts = editRender || cellRender;
|
|
4267
|
-
const compConf = renderOpts ?
|
|
4290
|
+
const compConf = renderOpts ? body_renderer.get(renderOpts.name) : null;
|
|
4268
4291
|
const compCellClassName = compConf ? compConf.cellClassName : '';
|
|
4269
4292
|
const compCellStyle = compConf ? compConf.cellStyle : '';
|
|
4270
4293
|
const showAllTip = tooltipOpts.showAll;
|
|
@@ -5009,14 +5032,14 @@ const lineOffsetSizes = {
|
|
|
5009
5032
|
$grid: $xeTable.xegrid
|
|
5010
5033
|
});
|
|
5011
5034
|
} else {
|
|
5012
|
-
const compConf = emptyOpts.name ?
|
|
5035
|
+
const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
|
|
5013
5036
|
const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
5014
5037
|
if (renderTableEmptyView) {
|
|
5015
5038
|
emptyContent = getSlotVNs(renderTableEmptyView(emptyOpts, {
|
|
5016
5039
|
$table: $xeTable
|
|
5017
5040
|
}));
|
|
5018
5041
|
} else {
|
|
5019
|
-
emptyContent = tableProps.emptyText || (
|
|
5042
|
+
emptyContent = tableProps.emptyText || body_getI18n('vxe.table.emptyText');
|
|
5020
5043
|
}
|
|
5021
5044
|
}
|
|
5022
5045
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -5831,6 +5854,9 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5831
5854
|
}));
|
|
5832
5855
|
;// CONCATENATED MODULE: ./packages/table/src/props.ts
|
|
5833
5856
|
|
|
5857
|
+
const {
|
|
5858
|
+
getConfig
|
|
5859
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
5834
5860
|
/* harmony default export */ var props = ({
|
|
5835
5861
|
/** 基本属性 */
|
|
5836
5862
|
id: String,
|
|
@@ -5841,81 +5867,81 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5841
5867
|
// 表格的最小高度
|
|
5842
5868
|
minHeight: {
|
|
5843
5869
|
type: [Number, String],
|
|
5844
|
-
default: () =>
|
|
5870
|
+
default: () => getConfig().table.minHeight
|
|
5845
5871
|
},
|
|
5846
5872
|
// 表格的最大高度
|
|
5847
5873
|
maxHeight: [Number, String],
|
|
5848
5874
|
// 已废弃,被 column-config.resizable 替换
|
|
5849
5875
|
resizable: {
|
|
5850
5876
|
type: Boolean,
|
|
5851
|
-
default: () =>
|
|
5877
|
+
default: () => getConfig().table.resizable
|
|
5852
5878
|
},
|
|
5853
5879
|
// 是否带有斑马纹
|
|
5854
5880
|
stripe: {
|
|
5855
5881
|
type: Boolean,
|
|
5856
|
-
default: () =>
|
|
5882
|
+
default: () => getConfig().table.stripe
|
|
5857
5883
|
},
|
|
5858
5884
|
// 是否带有边框
|
|
5859
5885
|
border: {
|
|
5860
5886
|
type: [Boolean, String],
|
|
5861
|
-
default: () =>
|
|
5887
|
+
default: () => getConfig().table.border
|
|
5862
5888
|
},
|
|
5863
5889
|
// 是否圆角边框
|
|
5864
5890
|
round: {
|
|
5865
5891
|
type: Boolean,
|
|
5866
|
-
default: () =>
|
|
5892
|
+
default: () => getConfig().table.round
|
|
5867
5893
|
},
|
|
5868
5894
|
// 表格的尺寸
|
|
5869
5895
|
size: {
|
|
5870
5896
|
type: String,
|
|
5871
|
-
default: () =>
|
|
5897
|
+
default: () => getConfig().table.size || getConfig().size
|
|
5872
5898
|
},
|
|
5873
5899
|
// 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
|
|
5874
5900
|
fit: {
|
|
5875
5901
|
type: Boolean,
|
|
5876
|
-
default: () =>
|
|
5902
|
+
default: () => getConfig().table.fit
|
|
5877
5903
|
},
|
|
5878
5904
|
// 表格是否加载中
|
|
5879
5905
|
loading: Boolean,
|
|
5880
5906
|
// 所有的列对其方式
|
|
5881
5907
|
align: {
|
|
5882
5908
|
type: String,
|
|
5883
|
-
default: () =>
|
|
5909
|
+
default: () => getConfig().table.align
|
|
5884
5910
|
},
|
|
5885
5911
|
// 所有的表头列的对齐方式
|
|
5886
5912
|
headerAlign: {
|
|
5887
5913
|
type: String,
|
|
5888
|
-
default: () =>
|
|
5914
|
+
default: () => getConfig().table.headerAlign
|
|
5889
5915
|
},
|
|
5890
5916
|
// 所有的表尾列的对齐方式
|
|
5891
5917
|
footerAlign: {
|
|
5892
5918
|
type: String,
|
|
5893
|
-
default: () =>
|
|
5919
|
+
default: () => getConfig().table.footerAlign
|
|
5894
5920
|
},
|
|
5895
5921
|
// 是否显示表头
|
|
5896
5922
|
showHeader: {
|
|
5897
5923
|
type: Boolean,
|
|
5898
|
-
default: () =>
|
|
5924
|
+
default: () => getConfig().table.showHeader
|
|
5899
5925
|
},
|
|
5900
5926
|
// (即将废弃)是否要高亮当前选中行
|
|
5901
5927
|
highlightCurrentRow: {
|
|
5902
5928
|
type: Boolean,
|
|
5903
|
-
default: () =>
|
|
5929
|
+
default: () => getConfig().table.highlightCurrentRow
|
|
5904
5930
|
},
|
|
5905
5931
|
// (即将废弃)鼠标移到行是否要高亮显示
|
|
5906
5932
|
highlightHoverRow: {
|
|
5907
5933
|
type: Boolean,
|
|
5908
|
-
default: () =>
|
|
5934
|
+
default: () => getConfig().table.highlightHoverRow
|
|
5909
5935
|
},
|
|
5910
5936
|
// (即将废弃)是否要高亮当前选中列
|
|
5911
5937
|
highlightCurrentColumn: {
|
|
5912
5938
|
type: Boolean,
|
|
5913
|
-
default: () =>
|
|
5939
|
+
default: () => getConfig().table.highlightCurrentColumn
|
|
5914
5940
|
},
|
|
5915
5941
|
// (即将废弃)鼠标移到列是否要高亮显示
|
|
5916
5942
|
highlightHoverColumn: {
|
|
5917
5943
|
type: Boolean,
|
|
5918
|
-
default: () =>
|
|
5944
|
+
default: () => getConfig().table.highlightHoverColumn
|
|
5919
5945
|
},
|
|
5920
5946
|
// (即将废弃)激活单元格编辑时是否高亮显示
|
|
5921
5947
|
highlightCell: Boolean,
|
|
@@ -5960,17 +5986,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5960
5986
|
// 设置所有内容过长时显示为省略号
|
|
5961
5987
|
showOverflow: {
|
|
5962
5988
|
type: [Boolean, String],
|
|
5963
|
-
default: () =>
|
|
5989
|
+
default: () => getConfig().table.showOverflow
|
|
5964
5990
|
},
|
|
5965
5991
|
// 设置表头所有内容过长时显示为省略号
|
|
5966
5992
|
showHeaderOverflow: {
|
|
5967
5993
|
type: [Boolean, String],
|
|
5968
|
-
default: () =>
|
|
5994
|
+
default: () => getConfig().table.showHeaderOverflow
|
|
5969
5995
|
},
|
|
5970
5996
|
// 设置表尾所有内容过长时显示为省略号
|
|
5971
5997
|
showFooterOverflow: {
|
|
5972
5998
|
type: [Boolean, String],
|
|
5973
|
-
default: () =>
|
|
5999
|
+
default: () => getConfig().table.showFooterOverflow
|
|
5974
6000
|
},
|
|
5975
6001
|
/** 高级属性 */
|
|
5976
6002
|
// (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
|
|
@@ -5980,21 +6006,21 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5980
6006
|
// (即将废弃)rowId 已废弃,被 row-config.keyField 替换
|
|
5981
6007
|
rowId: {
|
|
5982
6008
|
type: String,
|
|
5983
|
-
default: () =>
|
|
6009
|
+
default: () => getConfig().table.rowId
|
|
5984
6010
|
},
|
|
5985
6011
|
zIndex: Number,
|
|
5986
6012
|
emptyText: {
|
|
5987
6013
|
type: String,
|
|
5988
|
-
default: () =>
|
|
6014
|
+
default: () => getConfig().table.emptyText
|
|
5989
6015
|
},
|
|
5990
6016
|
keepSource: {
|
|
5991
6017
|
type: Boolean,
|
|
5992
|
-
default: () =>
|
|
6018
|
+
default: () => getConfig().table.keepSource
|
|
5993
6019
|
},
|
|
5994
6020
|
// 是否自动监听父容器变化去更新响应式表格宽高
|
|
5995
6021
|
autoResize: {
|
|
5996
6022
|
type: Boolean,
|
|
5997
|
-
default: () =>
|
|
6023
|
+
default: () => getConfig().table.autoResize
|
|
5998
6024
|
},
|
|
5999
6025
|
// 是否自动根据状态属性去更新响应式表格宽高
|
|
6000
6026
|
syncResize: [Boolean, String, Number],
|
|
@@ -6059,12 +6085,12 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6059
6085
|
// (即将废弃)优化相关
|
|
6060
6086
|
animat: {
|
|
6061
6087
|
type: Boolean,
|
|
6062
|
-
default: () =>
|
|
6088
|
+
default: () => getConfig().table.animat
|
|
6063
6089
|
},
|
|
6064
6090
|
// (可能会被废弃的参数,不要使用)
|
|
6065
6091
|
delayHover: {
|
|
6066
6092
|
type: Number,
|
|
6067
|
-
default: () =>
|
|
6093
|
+
default: () => getConfig().table.delayHover
|
|
6068
6094
|
},
|
|
6069
6095
|
// 额外的参数
|
|
6070
6096
|
params: Object
|
|
@@ -6078,6 +6104,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6078
6104
|
|
|
6079
6105
|
|
|
6080
6106
|
|
|
6107
|
+
const {
|
|
6108
|
+
getI18n: panel_getI18n,
|
|
6109
|
+
getIcon: panel_getIcon
|
|
6110
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
6081
6111
|
/* harmony default export */ var panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6082
6112
|
name: 'TableCustomPanel',
|
|
6083
6113
|
props: {
|
|
@@ -6136,7 +6166,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6136
6166
|
const resetPopupCustomEvent = evnt => {
|
|
6137
6167
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
6138
6168
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.confirm({
|
|
6139
|
-
content: (
|
|
6169
|
+
content: panel_getI18n('vxe.custom.cstmConfirmRestore'),
|
|
6140
6170
|
className: 'vxe-table--ignore-clear',
|
|
6141
6171
|
escClosable: true
|
|
6142
6172
|
}).then(type => {
|
|
@@ -6382,26 +6412,26 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6382
6412
|
}
|
|
6383
6413
|
}
|
|
6384
6414
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6385
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? (
|
|
6415
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6386
6416
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6387
6417
|
class: 'vxe-checkbox--label'
|
|
6388
6418
|
}, colTitle)]), !parent && customOpts.allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6389
6419
|
class: 'vxe-table-custom--fixed-option'
|
|
6390
6420
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6391
|
-
class: ['vxe-table-custom--fixed-left-option', column.fixed === 'left' ? (
|
|
6421
|
+
class: ['vxe-table-custom--fixed-left-option', column.fixed === 'left' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT, {
|
|
6392
6422
|
'is--checked': column.fixed === 'left',
|
|
6393
6423
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
6394
6424
|
}],
|
|
6395
|
-
title: (
|
|
6425
|
+
title: panel_getI18n(column.fixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft'),
|
|
6396
6426
|
onClick: () => {
|
|
6397
6427
|
changeFixedOption(column, 'left');
|
|
6398
6428
|
}
|
|
6399
6429
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6400
|
-
class: ['vxe-table-custom--fixed-right-option', column.fixed === 'right' ? (
|
|
6430
|
+
class: ['vxe-table-custom--fixed-right-option', column.fixed === 'right' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT, {
|
|
6401
6431
|
'is--checked': column.fixed === 'right',
|
|
6402
6432
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
6403
6433
|
}],
|
|
6404
|
-
title: (
|
|
6434
|
+
title: panel_getI18n(column.fixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight'),
|
|
6405
6435
|
onClick: () => {
|
|
6406
6436
|
changeFixedOption(column, 'right');
|
|
6407
6437
|
}
|
|
@@ -6425,13 +6455,13 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6425
6455
|
'is--checked': isAllChecked,
|
|
6426
6456
|
'is--indeterminate': isAllIndeterminate
|
|
6427
6457
|
}],
|
|
6428
|
-
title: (
|
|
6458
|
+
title: panel_getI18n('vxe.table.allTitle'),
|
|
6429
6459
|
onClick: allCustomEvent
|
|
6430
6460
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6431
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? (
|
|
6461
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6432
6462
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6433
6463
|
class: 'vxe-checkbox--label'
|
|
6434
|
-
}, (
|
|
6464
|
+
}, panel_getI18n('vxe.toolbar.customAll'))])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
6435
6465
|
class: 'vxe-table-custom--body',
|
|
6436
6466
|
style: maxHeight ? {
|
|
6437
6467
|
maxHeight: `${maxHeight}px`
|
|
@@ -6442,10 +6472,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6442
6472
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6443
6473
|
class: 'btn--reset',
|
|
6444
6474
|
onClick: resetCustomEvent
|
|
6445
|
-
}, customOpts.resetButtonText || (
|
|
6475
|
+
}, customOpts.resetButtonText || panel_getI18n('vxe.toolbar.customRestore')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6446
6476
|
class: 'btn--confirm',
|
|
6447
6477
|
onClick: confirmCustomEvent
|
|
6448
|
-
}, customOpts.confirmButtonText || (
|
|
6478
|
+
}, customOpts.confirmButtonText || panel_getI18n('vxe.toolbar.customConfirm'))]) : null]);
|
|
6449
6479
|
};
|
|
6450
6480
|
const renderPopupPanel = () => {
|
|
6451
6481
|
const {
|
|
@@ -6510,7 +6540,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6510
6540
|
}
|
|
6511
6541
|
}
|
|
6512
6542
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6513
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? (
|
|
6543
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6514
6544
|
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6515
6545
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
6516
6546
|
}, [!parent && customOpts.allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-radio-group'), {
|
|
@@ -6518,14 +6548,14 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6518
6548
|
type: 'button',
|
|
6519
6549
|
size: 'mini',
|
|
6520
6550
|
options: [{
|
|
6521
|
-
label: (
|
|
6551
|
+
label: panel_getI18n('vxe.custom.setting.fixedLeft'),
|
|
6522
6552
|
value: 'left',
|
|
6523
6553
|
disabled: isMaxFixedColumn
|
|
6524
6554
|
}, {
|
|
6525
|
-
label: (
|
|
6555
|
+
label: panel_getI18n('vxe.custom.setting.fixedUnset'),
|
|
6526
6556
|
value: ''
|
|
6527
6557
|
}, {
|
|
6528
|
-
label: (
|
|
6558
|
+
label: panel_getI18n('vxe.custom.setting.fixedRight'),
|
|
6529
6559
|
value: 'right',
|
|
6530
6560
|
disabled: isMaxFixedColumn
|
|
6531
6561
|
}],
|
|
@@ -6542,7 +6572,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6542
6572
|
key: 'popup',
|
|
6543
6573
|
className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
|
|
6544
6574
|
modelValue: customStore.visible,
|
|
6545
|
-
title: (
|
|
6575
|
+
title: panel_getI18n('vxe.custom.cstmTitle'),
|
|
6546
6576
|
width: '40vw',
|
|
6547
6577
|
minWidth: 520,
|
|
6548
6578
|
height: '50vh',
|
|
@@ -6577,16 +6607,16 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6577
6607
|
}
|
|
6578
6608
|
})]), (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', {
|
|
6579
6609
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
6580
|
-
}, (
|
|
6610
|
+
}, 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'), {
|
|
6581
6611
|
enterable: true,
|
|
6582
|
-
content: (
|
|
6612
|
+
content: panel_getI18n('vxe.custom.setting.sortHelpTip')
|
|
6583
6613
|
}, {
|
|
6584
6614
|
default: () => {
|
|
6585
6615
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6586
6616
|
class: 'vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill'
|
|
6587
6617
|
});
|
|
6588
6618
|
}
|
|
6589
|
-
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, (
|
|
6619
|
+
})]), (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, {
|
|
6590
6620
|
class: 'vxe-table-custom--body',
|
|
6591
6621
|
tag: 'tbody',
|
|
6592
6622
|
name: 'vxe-table-custom--list'
|
|
@@ -6595,20 +6625,20 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6595
6625
|
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6596
6626
|
ref: dragHintElemRef,
|
|
6597
6627
|
class: 'vxe-table-custom-popup--drag-hint'
|
|
6598
|
-
}, (
|
|
6628
|
+
}, panel_getI18n('vxe.custom.cstmDragTarget', [dragColumn.value ? dragColumn.value.getTitle() : '']))]);
|
|
6599
6629
|
},
|
|
6600
6630
|
footer: () => {
|
|
6601
6631
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6602
6632
|
class: 'vxe-table-custom-popup--footer'
|
|
6603
6633
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6604
|
-
content: customOpts.resetButtonText || (
|
|
6634
|
+
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmRestore'),
|
|
6605
6635
|
onClick: resetPopupCustomEvent
|
|
6606
6636
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6607
|
-
content: customOpts.resetButtonText || (
|
|
6637
|
+
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmCancel'),
|
|
6608
6638
|
onClick: cancelCustomEvent
|
|
6609
6639
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6610
6640
|
status: 'primary',
|
|
6611
|
-
content: customOpts.confirmButtonText || (
|
|
6641
|
+
content: customOpts.confirmButtonText || panel_getI18n('vxe.custom.cstmConfirm'),
|
|
6612
6642
|
onClick: confirmCustomEvent
|
|
6613
6643
|
})]);
|
|
6614
6644
|
}
|
|
@@ -6630,6 +6660,11 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6630
6660
|
|
|
6631
6661
|
|
|
6632
6662
|
|
|
6663
|
+
const {
|
|
6664
|
+
getI18n: filter_panel_getI18n,
|
|
6665
|
+
getIcon: filter_panel_getIcon,
|
|
6666
|
+
renderer: panel_renderer
|
|
6667
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
6633
6668
|
/* harmony default export */ var filter_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6634
6669
|
name: 'VxeTableFilterPanel',
|
|
6635
6670
|
props: {
|
|
@@ -6772,15 +6807,15 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6772
6807
|
'is--checked': isAllChecked,
|
|
6773
6808
|
'is--indeterminate': isAllIndeterminate
|
|
6774
6809
|
}],
|
|
6775
|
-
title: (
|
|
6810
|
+
title: filter_panel_getI18n(multiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter'),
|
|
6776
6811
|
onClick: evnt => {
|
|
6777
6812
|
changeAllOption(evnt, !filterStore.isAllSelected);
|
|
6778
6813
|
}
|
|
6779
6814
|
}, (multiple ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6780
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? (
|
|
6815
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? filter_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? filter_panel_getIcon().TABLE_CHECKBOX_CHECKED : filter_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6781
6816
|
})] : []).concat([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6782
6817
|
class: 'vxe-checkbox--label'
|
|
6783
|
-
}, (
|
|
6818
|
+
}, filter_panel_getI18n('vxe.table.allFilter'))]))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
6784
6819
|
class: 'vxe-table--filter-body',
|
|
6785
6820
|
style: maxHeight ? {
|
|
6786
6821
|
maxHeight: `${maxHeight}px`
|
|
@@ -6797,7 +6832,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6797
6832
|
changeOption(evnt, !item._checked, item);
|
|
6798
6833
|
}
|
|
6799
6834
|
}, (multiple ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6800
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? (
|
|
6835
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? filter_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? filter_panel_getIcon().TABLE_CHECKBOX_CHECKED : filter_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6801
6836
|
})] : []).concat([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6802
6837
|
class: 'vxe-checkbox--label'
|
|
6803
6838
|
}, formatText(item.label, 1))]));
|
|
@@ -6814,7 +6849,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6814
6849
|
const filterOpts = computeFilterOpts.value;
|
|
6815
6850
|
const hasCheckOption = computeHasCheckOption.value;
|
|
6816
6851
|
const filterRender = column.filterRender;
|
|
6817
|
-
const compConf = filterRender ?
|
|
6852
|
+
const compConf = filterRender ? panel_renderer.get(filterRender.name) : null;
|
|
6818
6853
|
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
6819
6854
|
return multiple && (!compConf || compConf.showFilterFooter !== false) ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6820
6855
|
class: 'vxe-table--filter-footer'
|
|
@@ -6824,9 +6859,9 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6824
6859
|
},
|
|
6825
6860
|
disabled: isDisabled,
|
|
6826
6861
|
onClick: confirmFilter
|
|
6827
|
-
}, filterOpts.confirmButtonText || (
|
|
6862
|
+
}, filterOpts.confirmButtonText || filter_panel_getI18n('vxe.table.confirmFilter')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6828
6863
|
onClick: resetFilter
|
|
6829
|
-
}, filterOpts.resetButtonText || (
|
|
6864
|
+
}, filterOpts.resetButtonText || filter_panel_getI18n('vxe.table.resetFilter'))])] : [];
|
|
6830
6865
|
};
|
|
6831
6866
|
const renderVN = () => {
|
|
6832
6867
|
const {
|
|
@@ -6839,7 +6874,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6839
6874
|
column
|
|
6840
6875
|
} = filterStore;
|
|
6841
6876
|
const filterRender = column ? column.filterRender : null;
|
|
6842
|
-
const compConf = filterRender ?
|
|
6877
|
+
const compConf = filterRender ? panel_renderer.get(filterRender.name) : null;
|
|
6843
6878
|
const filterClassName = compConf ? compConf.filterClassName : '';
|
|
6844
6879
|
const params = Object.assign({}, tableInternalData._currFilterParams, {
|
|
6845
6880
|
$panel,
|
|
@@ -6862,6 +6897,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6862
6897
|
|
|
6863
6898
|
|
|
6864
6899
|
|
|
6900
|
+
const {
|
|
6901
|
+
getI18n: import_panel_getI18n,
|
|
6902
|
+
getIcon: import_panel_getIcon
|
|
6903
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
6865
6904
|
/* harmony default export */ var import_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6866
6905
|
name: 'VxeTableImportPanel',
|
|
6867
6906
|
props: {
|
|
@@ -6899,7 +6938,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6899
6938
|
} = storeData;
|
|
6900
6939
|
if (type) {
|
|
6901
6940
|
const selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(typeList, item => type === item.value);
|
|
6902
|
-
return selectItem ? (
|
|
6941
|
+
return selectItem ? import_panel_getI18n(selectItem.label) : '*.*';
|
|
6903
6942
|
}
|
|
6904
6943
|
return `*.${typeList.map(item => item.value).join(', *.')}`;
|
|
6905
6944
|
});
|
|
@@ -6965,7 +7004,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6965
7004
|
const parseTypeLabel = computeParseTypeLabel.value;
|
|
6966
7005
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), {
|
|
6967
7006
|
modelValue: storeData.visible,
|
|
6968
|
-
title: (
|
|
7007
|
+
title: import_panel_getI18n('vxe.import.impTitle'),
|
|
6969
7008
|
className: 'vxe-table-import-popup-wrapper',
|
|
6970
7009
|
width: 440,
|
|
6971
7010
|
mask: true,
|
|
@@ -6986,17 +7025,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6986
7025
|
cellspacing: 0,
|
|
6987
7026
|
cellpadding: 0,
|
|
6988
7027
|
border: 0
|
|
6989
|
-
}, [(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', (
|
|
7028
|
+
}, [(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', {
|
|
6990
7029
|
class: 'vxe-import-selected--file',
|
|
6991
7030
|
title: selectName
|
|
6992
7031
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', selectName), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6993
|
-
class: (
|
|
7032
|
+
class: import_panel_getIcon().INPUT_CLEAR,
|
|
6994
7033
|
onClick: clearFileEvent
|
|
6995
7034
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6996
7035
|
ref: refFileBtn,
|
|
6997
7036
|
class: 'vxe-import-select--file',
|
|
6998
7037
|
onClick: selectFileEvent
|
|
6999
|
-
}, (
|
|
7038
|
+
}, 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'), {
|
|
7000
7039
|
modelValue: defaultOptions.mode,
|
|
7001
7040
|
'onUpdate:modelValue'(value) {
|
|
7002
7041
|
defaultOptions.mode = value;
|
|
@@ -7004,17 +7043,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7004
7043
|
}, {
|
|
7005
7044
|
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'), {
|
|
7006
7045
|
label: item.value,
|
|
7007
|
-
content: (
|
|
7046
|
+
content: import_panel_getI18n(item.label)
|
|
7008
7047
|
}))
|
|
7009
7048
|
})])])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7010
7049
|
class: 'vxe-export--panel-btns'
|
|
7011
7050
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7012
|
-
content: (
|
|
7051
|
+
content: import_panel_getI18n('vxe.import.impCancel'),
|
|
7013
7052
|
onClick: cancelEvent
|
|
7014
7053
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7015
7054
|
status: 'primary',
|
|
7016
7055
|
disabled: !hasFile,
|
|
7017
|
-
content: (
|
|
7056
|
+
content: import_panel_getI18n('vxe.import.impConfirm'),
|
|
7018
7057
|
onClick: importEvent
|
|
7019
7058
|
})])]);
|
|
7020
7059
|
}
|
|
@@ -7029,6 +7068,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7029
7068
|
|
|
7030
7069
|
|
|
7031
7070
|
|
|
7071
|
+
const {
|
|
7072
|
+
getI18n: export_panel_getI18n,
|
|
7073
|
+
getIcon: export_panel_getIcon
|
|
7074
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
7032
7075
|
/* harmony default export */ var export_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
7033
7076
|
name: 'VxeTableExportPanel',
|
|
7034
7077
|
props: {
|
|
@@ -7233,14 +7276,14 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7233
7276
|
}
|
|
7234
7277
|
}
|
|
7235
7278
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7236
|
-
class: ['vxe-checkbox--icon', indeterminate ? (
|
|
7279
|
+
class: ['vxe-checkbox--icon', indeterminate ? export_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? export_panel_getIcon().TABLE_CHECKBOX_CHECKED : export_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
7237
7280
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7238
7281
|
class: 'vxe-checkbox--label'
|
|
7239
7282
|
}, colTitle)]));
|
|
7240
7283
|
});
|
|
7241
7284
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), {
|
|
7242
7285
|
modelValue: storeData.visible,
|
|
7243
|
-
title: (
|
|
7286
|
+
title: export_panel_getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
7244
7287
|
className: 'vxe-table-export-popup-wrapper',
|
|
7245
7288
|
width: 660,
|
|
7246
7289
|
mask: true,
|
|
@@ -7261,47 +7304,47 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7261
7304
|
cellspacing: 0,
|
|
7262
7305
|
cellpadding: 0,
|
|
7263
7306
|
border: 0
|
|
7264
|
-
}, [(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', (
|
|
7307
|
+
}, [(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'), {
|
|
7265
7308
|
ref: xInputFilename,
|
|
7266
7309
|
modelValue: defaultOptions.filename,
|
|
7267
7310
|
type: 'text',
|
|
7268
7311
|
clearable: true,
|
|
7269
|
-
placeholder: (
|
|
7312
|
+
placeholder: export_panel_getI18n('vxe.export.expNamePlaceholder'),
|
|
7270
7313
|
'onUpdate:modelValue'(value) {
|
|
7271
7314
|
defaultOptions.filename = value;
|
|
7272
7315
|
}
|
|
7273
|
-
})])]), 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', (
|
|
7316
|
+
})])]), 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'), {
|
|
7274
7317
|
modelValue: defaultOptions.type,
|
|
7275
7318
|
options: storeData.typeList.map(item => {
|
|
7276
7319
|
return {
|
|
7277
7320
|
value: item.value,
|
|
7278
|
-
label: (
|
|
7321
|
+
label: export_panel_getI18n(item.label)
|
|
7279
7322
|
};
|
|
7280
7323
|
}),
|
|
7281
7324
|
'onUpdate:modelValue'(value) {
|
|
7282
7325
|
defaultOptions.type = value;
|
|
7283
7326
|
}
|
|
7284
|
-
})])]), isPrint || showSheet ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7327
|
+
})])]), 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'), {
|
|
7285
7328
|
ref: xInputSheetname,
|
|
7286
7329
|
modelValue: defaultOptions.sheetName,
|
|
7287
7330
|
type: 'text',
|
|
7288
7331
|
clearable: true,
|
|
7289
|
-
placeholder: (
|
|
7332
|
+
placeholder: export_panel_getI18n('vxe.export.expSheetNamePlaceholder'),
|
|
7290
7333
|
'onUpdate:modelValue'(value) {
|
|
7291
7334
|
defaultOptions.sheetName = value;
|
|
7292
7335
|
}
|
|
7293
|
-
})])]) : (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', (
|
|
7336
|
+
})])]) : (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'), {
|
|
7294
7337
|
modelValue: defaultOptions.mode,
|
|
7295
7338
|
options: storeData.modeList.map(item => {
|
|
7296
7339
|
return {
|
|
7297
7340
|
value: item.value,
|
|
7298
|
-
label: (
|
|
7341
|
+
label: export_panel_getI18n(item.label)
|
|
7299
7342
|
};
|
|
7300
7343
|
}),
|
|
7301
7344
|
'onUpdate:modelValue'(value) {
|
|
7302
7345
|
defaultOptions.mode = value;
|
|
7303
7346
|
}
|
|
7304
|
-
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(
|
|
7347
|
+
})])]), (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', {
|
|
7305
7348
|
class: 'vxe-export--panel-column'
|
|
7306
7349
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
7307
7350
|
class: 'vxe-export--panel-column-header'
|
|
@@ -7310,35 +7353,35 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7310
7353
|
'is--checked': isAllChecked,
|
|
7311
7354
|
'is--indeterminate': isAllIndeterminate
|
|
7312
7355
|
}],
|
|
7313
|
-
title: (
|
|
7356
|
+
title: export_panel_getI18n('vxe.table.allTitle'),
|
|
7314
7357
|
onClick: allColumnEvent
|
|
7315
7358
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7316
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? (
|
|
7359
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? export_panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? export_panel_getIcon().TABLE_CHECKBOX_CHECKED : export_panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
7317
7360
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7318
7361
|
class: 'vxe-checkbox--label'
|
|
7319
|
-
}, (
|
|
7362
|
+
}, export_panel_getI18n('vxe.export.expCurrentColumn'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
7320
7363
|
class: 'vxe-export--panel-column-body'
|
|
7321
|
-
}, cols)])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
7364
|
+
}, 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', {
|
|
7322
7365
|
class: 'vxe-export--panel-option-row'
|
|
7323
7366
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7324
7367
|
modelValue: defaultOptions.isHeader,
|
|
7325
|
-
title: (
|
|
7326
|
-
content: (
|
|
7368
|
+
title: export_panel_getI18n('vxe.export.expHeaderTitle'),
|
|
7369
|
+
content: export_panel_getI18n('vxe.export.expOptHeader'),
|
|
7327
7370
|
'onUpdate:modelValue'(value) {
|
|
7328
7371
|
defaultOptions.isHeader = value;
|
|
7329
7372
|
}
|
|
7330
7373
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7331
7374
|
modelValue: defaultOptions.isFooter,
|
|
7332
7375
|
disabled: !storeData.hasFooter,
|
|
7333
|
-
title: (
|
|
7334
|
-
content: (
|
|
7376
|
+
title: export_panel_getI18n('vxe.export.expFooterTitle'),
|
|
7377
|
+
content: export_panel_getI18n('vxe.export.expOptFooter'),
|
|
7335
7378
|
'onUpdate:modelValue'(value) {
|
|
7336
7379
|
defaultOptions.isFooter = value;
|
|
7337
7380
|
}
|
|
7338
7381
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7339
7382
|
modelValue: defaultOptions.original,
|
|
7340
|
-
title: (
|
|
7341
|
-
content: (
|
|
7383
|
+
title: export_panel_getI18n('vxe.export.expOriginalTitle'),
|
|
7384
|
+
content: export_panel_getI18n('vxe.export.expOptOriginal'),
|
|
7342
7385
|
'onUpdate:modelValue'(value) {
|
|
7343
7386
|
defaultOptions.original = value;
|
|
7344
7387
|
}
|
|
@@ -7346,45 +7389,45 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7346
7389
|
class: 'vxe-export--panel-option-row'
|
|
7347
7390
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7348
7391
|
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
7349
|
-
title: (
|
|
7392
|
+
title: export_panel_getI18n('vxe.export.expColgroupTitle'),
|
|
7350
7393
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
7351
|
-
content: (
|
|
7394
|
+
content: export_panel_getI18n('vxe.export.expOptColgroup'),
|
|
7352
7395
|
'onUpdate:modelValue'(value) {
|
|
7353
7396
|
defaultOptions.isColgroup = value;
|
|
7354
7397
|
}
|
|
7355
7398
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7356
7399
|
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
7357
|
-
title: (
|
|
7400
|
+
title: export_panel_getI18n('vxe.export.expMergeTitle'),
|
|
7358
7401
|
disabled: !hasMerge || !supportMerge || !checkedAll,
|
|
7359
|
-
content: (
|
|
7402
|
+
content: export_panel_getI18n('vxe.export.expOptMerge'),
|
|
7360
7403
|
'onUpdate:modelValue'(value) {
|
|
7361
7404
|
defaultOptions.isMerge = value;
|
|
7362
7405
|
}
|
|
7363
7406
|
}), 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'), {
|
|
7364
7407
|
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
7365
7408
|
disabled: !supportStyle,
|
|
7366
|
-
title: (
|
|
7367
|
-
content: (
|
|
7409
|
+
title: export_panel_getI18n('vxe.export.expUseStyleTitle'),
|
|
7410
|
+
content: export_panel_getI18n('vxe.export.expOptUseStyle'),
|
|
7368
7411
|
'onUpdate:modelValue'(value) {
|
|
7369
7412
|
defaultOptions.useStyle = value;
|
|
7370
7413
|
}
|
|
7371
7414
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7372
7415
|
modelValue: hasTree ? defaultOptions.isAllExpand : false,
|
|
7373
7416
|
disabled: !hasTree,
|
|
7374
|
-
title: (
|
|
7375
|
-
content: (
|
|
7417
|
+
title: export_panel_getI18n('vxe.export.expAllExpandTitle'),
|
|
7418
|
+
content: export_panel_getI18n('vxe.export.expOptAllExpand'),
|
|
7376
7419
|
'onUpdate:modelValue'(value) {
|
|
7377
7420
|
defaultOptions.isAllExpand = value;
|
|
7378
7421
|
}
|
|
7379
7422
|
})])])])]])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7380
7423
|
class: 'vxe-export--panel-btns'
|
|
7381
7424
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7382
|
-
content: (
|
|
7425
|
+
content: export_panel_getI18n('vxe.export.expCancel'),
|
|
7383
7426
|
onClick: cancelEvent
|
|
7384
7427
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7385
7428
|
ref: xButtonConfirm,
|
|
7386
7429
|
status: 'primary',
|
|
7387
|
-
content: (
|
|
7430
|
+
content: export_panel_getI18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm'),
|
|
7388
7431
|
onClick: confirmEvent
|
|
7389
7432
|
})])]);
|
|
7390
7433
|
}
|
|
@@ -7519,6 +7562,20 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7519
7562
|
|
|
7520
7563
|
|
|
7521
7564
|
|
|
7565
|
+
const {
|
|
7566
|
+
getConfig: table_getConfig,
|
|
7567
|
+
getI18n: table_getI18n,
|
|
7568
|
+
renderer: table_renderer,
|
|
7569
|
+
formats: table_formats,
|
|
7570
|
+
createEvent,
|
|
7571
|
+
globalResize,
|
|
7572
|
+
interceptor,
|
|
7573
|
+
hooks,
|
|
7574
|
+
globalEvents,
|
|
7575
|
+
GLOBAL_EVENT_KEYS,
|
|
7576
|
+
log: table_log,
|
|
7577
|
+
useFns
|
|
7578
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
7522
7579
|
const isWebkit = browse['-webkit'] && !browse.edge;
|
|
7523
7580
|
const resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH';
|
|
7524
7581
|
const visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
@@ -7536,7 +7593,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7536
7593
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
7537
7594
|
const {
|
|
7538
7595
|
computeSize
|
|
7539
|
-
} =
|
|
7596
|
+
} = useFns.useSize(props);
|
|
7540
7597
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
7541
7598
|
// 低性能的静态列
|
|
7542
7599
|
staticColumns: [],
|
|
@@ -7845,13 +7902,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7845
7902
|
const $xeGrid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeGrid', null);
|
|
7846
7903
|
let $xeToolbar;
|
|
7847
7904
|
const computeValidOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7848
|
-
return Object.assign({}, (
|
|
7905
|
+
return Object.assign({}, table_getConfig().table.validConfig, props.validConfig);
|
|
7849
7906
|
});
|
|
7850
7907
|
const computeSXOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7851
|
-
return Object.assign({}, (
|
|
7908
|
+
return Object.assign({}, table_getConfig().table.scrollX, props.scrollX);
|
|
7852
7909
|
});
|
|
7853
7910
|
const computeSYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7854
|
-
return Object.assign({}, (
|
|
7911
|
+
return Object.assign({}, table_getConfig().table.scrollY, props.scrollY);
|
|
7855
7912
|
});
|
|
7856
7913
|
const computeRowHeightMaps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7857
7914
|
return {
|
|
@@ -7862,31 +7919,31 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7862
7919
|
};
|
|
7863
7920
|
});
|
|
7864
7921
|
const computeColumnOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7865
|
-
return Object.assign({}, (
|
|
7922
|
+
return Object.assign({}, table_getConfig().table.columnConfig, props.columnConfig);
|
|
7866
7923
|
});
|
|
7867
7924
|
const computeRowOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7868
|
-
return Object.assign({}, (
|
|
7925
|
+
return Object.assign({}, table_getConfig().table.rowConfig, props.rowConfig);
|
|
7869
7926
|
});
|
|
7870
7927
|
const computeResizeleOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7871
|
-
return Object.assign({}, (
|
|
7928
|
+
return Object.assign({}, table_getConfig().table.resizeConfig, props.resizeConfig);
|
|
7872
7929
|
});
|
|
7873
7930
|
const computeResizableOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7874
|
-
return Object.assign({}, (
|
|
7931
|
+
return Object.assign({}, table_getConfig().table.resizableConfig, props.resizableConfig);
|
|
7875
7932
|
});
|
|
7876
7933
|
const computeSeqOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7877
7934
|
return Object.assign({
|
|
7878
7935
|
startIndex: 0
|
|
7879
|
-
}, (
|
|
7936
|
+
}, table_getConfig().table.seqConfig, props.seqConfig);
|
|
7880
7937
|
});
|
|
7881
7938
|
const computeRadioOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7882
|
-
return Object.assign({}, (
|
|
7939
|
+
return Object.assign({}, table_getConfig().table.radioConfig, props.radioConfig);
|
|
7883
7940
|
});
|
|
7884
7941
|
const computeCheckboxOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7885
|
-
return Object.assign({}, (
|
|
7942
|
+
return Object.assign({}, table_getConfig().table.checkboxConfig, props.checkboxConfig);
|
|
7886
7943
|
});
|
|
7887
7944
|
let computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
7888
7945
|
computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7889
|
-
return Object.assign({}, (
|
|
7946
|
+
return Object.assign({}, table_getConfig().tooltip, table_getConfig().table.tooltipConfig, props.tooltipConfig);
|
|
7890
7947
|
});
|
|
7891
7948
|
const computeTipConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7892
7949
|
const tooltipOpts = computeTooltipOpts.value;
|
|
@@ -7901,33 +7958,33 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7901
7958
|
}, tooltipOpts);
|
|
7902
7959
|
});
|
|
7903
7960
|
const computeEditOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7904
|
-
return Object.assign({}, (
|
|
7961
|
+
return Object.assign({}, table_getConfig().table.editConfig, props.editConfig);
|
|
7905
7962
|
});
|
|
7906
7963
|
const computeSortOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7907
7964
|
return Object.assign({
|
|
7908
7965
|
orders: ['asc', 'desc', null]
|
|
7909
|
-
}, (
|
|
7966
|
+
}, table_getConfig().table.sortConfig, props.sortConfig);
|
|
7910
7967
|
});
|
|
7911
7968
|
const computeFilterOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7912
|
-
return Object.assign({}, (
|
|
7969
|
+
return Object.assign({}, table_getConfig().table.filterConfig, props.filterConfig);
|
|
7913
7970
|
});
|
|
7914
7971
|
const computeMouseOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7915
|
-
return Object.assign({}, (
|
|
7972
|
+
return Object.assign({}, table_getConfig().table.mouseConfig, props.mouseConfig);
|
|
7916
7973
|
});
|
|
7917
7974
|
const computeAreaOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7918
|
-
return Object.assign({}, (
|
|
7975
|
+
return Object.assign({}, table_getConfig().table.areaConfig, props.areaConfig);
|
|
7919
7976
|
});
|
|
7920
7977
|
const computeKeyboardOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7921
|
-
return Object.assign({}, (
|
|
7978
|
+
return Object.assign({}, table_getConfig().table.keyboardConfig, props.keyboardConfig);
|
|
7922
7979
|
});
|
|
7923
7980
|
const computeClipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7924
|
-
return Object.assign({}, (
|
|
7981
|
+
return Object.assign({}, table_getConfig().table.clipConfig, props.clipConfig);
|
|
7925
7982
|
});
|
|
7926
7983
|
const computeFNROpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7927
|
-
return Object.assign({}, (
|
|
7984
|
+
return Object.assign({}, table_getConfig().table.fnrConfig, props.fnrConfig);
|
|
7928
7985
|
});
|
|
7929
7986
|
const computeMenuOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7930
|
-
return Object.assign({}, (
|
|
7987
|
+
return Object.assign({}, table_getConfig().table.menuConfig, props.menuConfig);
|
|
7931
7988
|
});
|
|
7932
7989
|
const computeHeaderMenu = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7933
7990
|
const menuOpts = computeMenuOpts.value;
|
|
@@ -7964,31 +8021,31 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7964
8021
|
return rest;
|
|
7965
8022
|
});
|
|
7966
8023
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7967
|
-
return Object.assign({}, (
|
|
8024
|
+
return Object.assign({}, table_getConfig().table.exportConfig, props.exportConfig);
|
|
7968
8025
|
});
|
|
7969
8026
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7970
|
-
return Object.assign({}, (
|
|
8027
|
+
return Object.assign({}, table_getConfig().table.importConfig, props.importConfig);
|
|
7971
8028
|
});
|
|
7972
8029
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7973
|
-
return Object.assign({}, (
|
|
8030
|
+
return Object.assign({}, table_getConfig().table.printConfig, props.printConfig);
|
|
7974
8031
|
});
|
|
7975
8032
|
const computeExpandOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7976
|
-
return Object.assign({}, (
|
|
8033
|
+
return Object.assign({}, table_getConfig().table.expandConfig, props.expandConfig);
|
|
7977
8034
|
});
|
|
7978
8035
|
const computeTreeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7979
|
-
return Object.assign({}, (
|
|
8036
|
+
return Object.assign({}, table_getConfig().table.treeConfig, props.treeConfig);
|
|
7980
8037
|
});
|
|
7981
8038
|
const computeEmptyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7982
|
-
return Object.assign({}, (
|
|
8039
|
+
return Object.assign({}, table_getConfig().table.emptyRender, props.emptyRender);
|
|
7983
8040
|
});
|
|
7984
8041
|
const computeLoadingOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7985
|
-
return Object.assign({}, (
|
|
8042
|
+
return Object.assign({}, table_getConfig().table.loadingConfig, props.loadingConfig);
|
|
7986
8043
|
});
|
|
7987
8044
|
const computeCellOffsetWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7988
8045
|
return props.border ? Math.max(2, Math.ceil(reactData.scrollbarWidth / reactData.tableColumn.length)) : 1;
|
|
7989
8046
|
});
|
|
7990
8047
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7991
|
-
return Object.assign({}, (
|
|
8048
|
+
return Object.assign({}, table_getConfig().table.customConfig, props.customConfig);
|
|
7992
8049
|
});
|
|
7993
8050
|
const computeFixedColumnSize = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7994
8051
|
const {
|
|
@@ -8147,7 +8204,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8147
8204
|
return orders[oIndex < orders.length ? oIndex : 0];
|
|
8148
8205
|
};
|
|
8149
8206
|
const getCustomStorageMap = key => {
|
|
8150
|
-
const version = (
|
|
8207
|
+
const version = table_getConfig().version;
|
|
8151
8208
|
const rest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringJSON(localStorage.getItem(key) || '');
|
|
8152
8209
|
return rest && rest._v === version ? rest : {
|
|
8153
8210
|
_v: version
|
|
@@ -8278,7 +8335,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8278
8335
|
merges = [merges];
|
|
8279
8336
|
}
|
|
8280
8337
|
if (treeConfig && merges.length) {
|
|
8281
|
-
|
|
8338
|
+
table_log.err('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8282
8339
|
}
|
|
8283
8340
|
merges.forEach(item => {
|
|
8284
8341
|
let {
|
|
@@ -8336,7 +8393,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8336
8393
|
merges = [merges];
|
|
8337
8394
|
}
|
|
8338
8395
|
if (treeConfig && merges.length) {
|
|
8339
|
-
|
|
8396
|
+
table_log.err('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8340
8397
|
}
|
|
8341
8398
|
merges.forEach(item => {
|
|
8342
8399
|
let {
|
|
@@ -8408,7 +8465,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8408
8465
|
if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
8409
8466
|
const customMap = {};
|
|
8410
8467
|
if (!id) {
|
|
8411
|
-
|
|
8468
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
8412
8469
|
return;
|
|
8413
8470
|
}
|
|
8414
8471
|
// 自定义列宽
|
|
@@ -8565,7 +8622,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8565
8622
|
if (field) {
|
|
8566
8623
|
if (true) {
|
|
8567
8624
|
if (fullColumnFieldData[field]) {
|
|
8568
|
-
|
|
8625
|
+
table_log.warn('vxe.error.colRepet', ['field', field]);
|
|
8569
8626
|
}
|
|
8570
8627
|
}
|
|
8571
8628
|
fullColumnFieldData[field] = rest;
|
|
@@ -8579,7 +8636,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8579
8636
|
if (treeNode) {
|
|
8580
8637
|
if (true) {
|
|
8581
8638
|
if (treeNodeColumn) {
|
|
8582
|
-
|
|
8639
|
+
table_log.warn('vxe.error.colRepet', ['tree-node', treeNode]);
|
|
8583
8640
|
}
|
|
8584
8641
|
}
|
|
8585
8642
|
if (!treeNodeColumn) {
|
|
@@ -8588,7 +8645,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8588
8645
|
} else if (type === 'expand') {
|
|
8589
8646
|
if (true) {
|
|
8590
8647
|
if (expandColumn) {
|
|
8591
|
-
|
|
8648
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8592
8649
|
}
|
|
8593
8650
|
}
|
|
8594
8651
|
if (!expandColumn) {
|
|
@@ -8598,14 +8655,14 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8598
8655
|
if (true) {
|
|
8599
8656
|
if (type === 'checkbox') {
|
|
8600
8657
|
if (checkboxColumn) {
|
|
8601
|
-
|
|
8658
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8602
8659
|
}
|
|
8603
8660
|
if (!checkboxColumn) {
|
|
8604
8661
|
checkboxColumn = column;
|
|
8605
8662
|
}
|
|
8606
8663
|
} else if (type === 'radio') {
|
|
8607
8664
|
if (radioColumn) {
|
|
8608
|
-
|
|
8665
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8609
8666
|
}
|
|
8610
8667
|
if (!radioColumn) {
|
|
8611
8668
|
radioColumn = column;
|
|
@@ -8616,7 +8673,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8616
8673
|
isAllOverflow = false;
|
|
8617
8674
|
}
|
|
8618
8675
|
if (fullColumnIdData[colid]) {
|
|
8619
|
-
|
|
8676
|
+
table_log.err('vxe.error.colRepet', ['colId', colid]);
|
|
8620
8677
|
}
|
|
8621
8678
|
fullColumnIdData[colid] = rest;
|
|
8622
8679
|
};
|
|
@@ -8630,16 +8687,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8630
8687
|
}
|
|
8631
8688
|
if (true) {
|
|
8632
8689
|
if (expandColumn && mouseOpts.area) {
|
|
8633
|
-
|
|
8690
|
+
table_log.err('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
8634
8691
|
}
|
|
8635
8692
|
}
|
|
8636
8693
|
if (true) {
|
|
8637
8694
|
if (htmlColumn) {
|
|
8638
8695
|
if (!columnOpts.useKey) {
|
|
8639
|
-
|
|
8696
|
+
table_log.err('vxe.error.reqProp', ['column-config.useKey', 'column.type=html']);
|
|
8640
8697
|
}
|
|
8641
8698
|
if (!rowOpts.useKey) {
|
|
8642
|
-
|
|
8699
|
+
table_log.err('vxe.error.reqProp', ['row-config.useKey', 'column.type=html']);
|
|
8643
8700
|
}
|
|
8644
8701
|
}
|
|
8645
8702
|
}
|
|
@@ -9014,7 +9071,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9014
9071
|
filterMethod,
|
|
9015
9072
|
filterRender
|
|
9016
9073
|
} = column;
|
|
9017
|
-
const compConf = filterRender ?
|
|
9074
|
+
const compConf = filterRender ? table_renderer.get(filterRender.name) : null;
|
|
9018
9075
|
const compFilterMethod = compConf ? compConf.filterMethod : null;
|
|
9019
9076
|
const defaultFilterMethod = compConf ? compConf.defaultFilterMethod : null;
|
|
9020
9077
|
const cellValue = getCellValue(row, column);
|
|
@@ -10066,19 +10123,19 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10066
10123
|
// 树结构自动转换
|
|
10067
10124
|
if (true) {
|
|
10068
10125
|
if (!treeOpts.rowField) {
|
|
10069
|
-
|
|
10126
|
+
table_log.err('vxe.error.reqProp', ['tree-config.rowField']);
|
|
10070
10127
|
}
|
|
10071
10128
|
if (!treeOpts.parentField) {
|
|
10072
|
-
|
|
10129
|
+
table_log.err('vxe.error.reqProp', ['tree-config.parentField']);
|
|
10073
10130
|
}
|
|
10074
10131
|
if (!childrenField) {
|
|
10075
|
-
|
|
10132
|
+
table_log.err('vxe.error.reqProp', ['tree-config.childrenField']);
|
|
10076
10133
|
}
|
|
10077
10134
|
if (!treeOpts.mapChildrenField) {
|
|
10078
|
-
|
|
10135
|
+
table_log.err('vxe.error.reqProp', ['tree-config.mapChildrenField']);
|
|
10079
10136
|
}
|
|
10080
10137
|
if (childrenField === treeOpts.mapChildrenField) {
|
|
10081
|
-
|
|
10138
|
+
table_log.err('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
|
|
10082
10139
|
}
|
|
10083
10140
|
// fullData.forEach(row => {
|
|
10084
10141
|
// if (row[treeOpts.children] && row[treeOpts.children].length) {
|
|
@@ -10120,13 +10177,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10120
10177
|
if (true) {
|
|
10121
10178
|
if (sYLoad) {
|
|
10122
10179
|
if (!(props.height || props.maxHeight)) {
|
|
10123
|
-
|
|
10180
|
+
table_log.err('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
|
|
10124
10181
|
}
|
|
10125
10182
|
if (!props.showOverflow) {
|
|
10126
|
-
|
|
10183
|
+
table_log.warn('vxe.error.reqProp', ['table.show-overflow']);
|
|
10127
10184
|
}
|
|
10128
10185
|
if (props.spanMethod) {
|
|
10129
|
-
|
|
10186
|
+
table_log.warn('vxe.error.scrollErrProp', ['table.span-method']);
|
|
10130
10187
|
}
|
|
10131
10188
|
}
|
|
10132
10189
|
}
|
|
@@ -10282,7 +10339,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10282
10339
|
column.fixed = parent.fixed;
|
|
10283
10340
|
}
|
|
10284
10341
|
if (parent && column.fixed !== parent.fixed) {
|
|
10285
|
-
|
|
10342
|
+
table_log.err('vxe.error.groupFixed');
|
|
10286
10343
|
}
|
|
10287
10344
|
if (isColGroup) {
|
|
10288
10345
|
column.visible = !!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(column.children, subColumn => hasChildrenList(subColumn) ? false : subColumn.visible);
|
|
@@ -10340,10 +10397,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10340
10397
|
// log.warn('vxe.error.reqProp', ['show-footer-overflow'])
|
|
10341
10398
|
// }
|
|
10342
10399
|
if (props.spanMethod) {
|
|
10343
|
-
|
|
10400
|
+
table_log.warn('vxe.error.scrollErrProp', ['span-method']);
|
|
10344
10401
|
}
|
|
10345
10402
|
if (props.footerSpanMethod) {
|
|
10346
|
-
|
|
10403
|
+
table_log.warn('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
10347
10404
|
}
|
|
10348
10405
|
}
|
|
10349
10406
|
const {
|
|
@@ -10403,7 +10460,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10403
10460
|
tablePrivateMethods.handleTableData(true);
|
|
10404
10461
|
if (true) {
|
|
10405
10462
|
if ((reactData.scrollXLoad || reactData.scrollYLoad) && reactData.expandColumn) {
|
|
10406
|
-
|
|
10463
|
+
table_log.warn('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
10407
10464
|
}
|
|
10408
10465
|
}
|
|
10409
10466
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -10606,7 +10663,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10606
10663
|
let keyCtxTimeout;
|
|
10607
10664
|
tableMethods = {
|
|
10608
10665
|
dispatchEvent(type, params, evnt) {
|
|
10609
|
-
emit(type,
|
|
10666
|
+
emit(type, createEvent(evnt, {
|
|
10610
10667
|
$table: $xeTable,
|
|
10611
10668
|
$grid: $xeGrid
|
|
10612
10669
|
}, params));
|
|
@@ -10623,7 +10680,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10623
10680
|
* 对于某些特殊的场景,比如深层树节点元素发生变动时可能会用到
|
|
10624
10681
|
*/
|
|
10625
10682
|
syncData() {
|
|
10626
|
-
|
|
10683
|
+
table_log.warn('vxe.error.delFunc', ['syncData', 'getData']);
|
|
10627
10684
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
10628
10685
|
reactData.tableData = [];
|
|
10629
10686
|
emit('update:data', internalData.tableFullData);
|
|
@@ -10699,6 +10756,19 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10699
10756
|
return tableMethods.recalculate();
|
|
10700
10757
|
});
|
|
10701
10758
|
},
|
|
10759
|
+
/**
|
|
10760
|
+
* 修改行数据
|
|
10761
|
+
*/
|
|
10762
|
+
setRow(rows, record) {
|
|
10763
|
+
if (rows && record) {
|
|
10764
|
+
let rest = rows;
|
|
10765
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
|
|
10766
|
+
rest = [rows];
|
|
10767
|
+
}
|
|
10768
|
+
rest.forEach(item => Object.assign(item, record));
|
|
10769
|
+
}
|
|
10770
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
10771
|
+
},
|
|
10702
10772
|
/**
|
|
10703
10773
|
* 局部加载行数据并恢复到初始状态
|
|
10704
10774
|
* 对于行数据需要局部更改的场景中可能会用到
|
|
@@ -10734,7 +10804,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10734
10804
|
reactData.tableData = tableData.slice(0);
|
|
10735
10805
|
} else {
|
|
10736
10806
|
if (true) {
|
|
10737
|
-
|
|
10807
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
10738
10808
|
}
|
|
10739
10809
|
}
|
|
10740
10810
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -10944,7 +11014,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10944
11014
|
} = internalData;
|
|
10945
11015
|
if (!keepSource) {
|
|
10946
11016
|
if (true) {
|
|
10947
|
-
|
|
11017
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
10948
11018
|
}
|
|
10949
11019
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
10950
11020
|
}
|
|
@@ -11242,7 +11312,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
11242
11312
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
11243
11313
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
11244
11314
|
status: 'error',
|
|
11245
|
-
content: (
|
|
11315
|
+
content: table_getI18n('vxe.table.maxFixedCol', [maxFixedSize])
|
|
11246
11316
|
});
|
|
11247
11317
|
}
|
|
11248
11318
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -12075,7 +12145,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12075
12145
|
},
|
|
12076
12146
|
reloadExpandContent(row) {
|
|
12077
12147
|
if (true) {
|
|
12078
|
-
|
|
12148
|
+
table_log.warn('vxe.error.delFunc', ['reloadExpandContent', 'reloadRowExpand']);
|
|
12079
12149
|
}
|
|
12080
12150
|
// 即将废弃
|
|
12081
12151
|
return tableMethods.reloadRowExpand(row);
|
|
@@ -12199,7 +12269,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12199
12269
|
isExpandByRow(row) {
|
|
12200
12270
|
// 已废弃
|
|
12201
12271
|
if (true) {
|
|
12202
|
-
|
|
12272
|
+
table_log.warn('vxe.error.delFunc', ['isExpandByRow', 'isRowExpandByRow']);
|
|
12203
12273
|
}
|
|
12204
12274
|
return tableMethods.isRowExpandByRow(row);
|
|
12205
12275
|
},
|
|
@@ -12315,7 +12385,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12315
12385
|
},
|
|
12316
12386
|
reloadTreeChilds(row) {
|
|
12317
12387
|
if (true) {
|
|
12318
|
-
|
|
12388
|
+
table_log.warn('vxe.error.delFunc', ['reloadTreeChilds', 'reloadTreeExpand']);
|
|
12319
12389
|
}
|
|
12320
12390
|
// 即将废弃
|
|
12321
12391
|
return tableMethods.reloadTreeExpand(row);
|
|
@@ -12618,7 +12688,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12618
12688
|
*/
|
|
12619
12689
|
setMergeCells(merges) {
|
|
12620
12690
|
if (props.spanMethod) {
|
|
12621
|
-
|
|
12691
|
+
table_log.err('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
12622
12692
|
}
|
|
12623
12693
|
setMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
12624
12694
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12632,7 +12702,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12632
12702
|
*/
|
|
12633
12703
|
removeMergeCells(merges) {
|
|
12634
12704
|
if (props.spanMethod) {
|
|
12635
|
-
|
|
12705
|
+
table_log.err('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
12636
12706
|
}
|
|
12637
12707
|
const rest = removeMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
12638
12708
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12658,7 +12728,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12658
12728
|
},
|
|
12659
12729
|
setMergeFooterItems(merges) {
|
|
12660
12730
|
if (props.footerSpanMethod) {
|
|
12661
|
-
|
|
12731
|
+
table_log.err('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
12662
12732
|
}
|
|
12663
12733
|
setMerges(merges, reactData.mergeFooterList);
|
|
12664
12734
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12668,7 +12738,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12668
12738
|
},
|
|
12669
12739
|
removeMergeFooterItems(merges) {
|
|
12670
12740
|
if (props.footerSpanMethod) {
|
|
12671
|
-
|
|
12741
|
+
table_log.err('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
12672
12742
|
}
|
|
12673
12743
|
const rest = removeMerges(merges, reactData.mergeFooterList);
|
|
12674
12744
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12722,7 +12792,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12722
12792
|
$table: $xeTable
|
|
12723
12793
|
});
|
|
12724
12794
|
} else {
|
|
12725
|
-
|
|
12795
|
+
table_log.err('vxe.error.barUnableLink');
|
|
12726
12796
|
}
|
|
12727
12797
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
12728
12798
|
}
|
|
@@ -12895,7 +12965,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12895
12965
|
const {
|
|
12896
12966
|
actived
|
|
12897
12967
|
} = editStore;
|
|
12898
|
-
const isEsc =
|
|
12968
|
+
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
12899
12969
|
if (isEsc) {
|
|
12900
12970
|
tablePrivateMethods.preventEvent(evnt, 'event.keydown', null, () => {
|
|
12901
12971
|
tableMethods.dispatchEvent('keydown-start', {}, evnt);
|
|
@@ -12958,18 +13028,18 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12958
13028
|
} = editStore;
|
|
12959
13029
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
12960
13030
|
const keyCode = evnt.keyCode;
|
|
12961
|
-
const isEsc =
|
|
12962
|
-
const isBack =
|
|
12963
|
-
const isTab =
|
|
12964
|
-
const isEnter =
|
|
12965
|
-
const isSpacebar =
|
|
12966
|
-
const isLeftArrow =
|
|
12967
|
-
const isUpArrow =
|
|
12968
|
-
const isRightArrow =
|
|
12969
|
-
const isDwArrow =
|
|
12970
|
-
const isDel =
|
|
12971
|
-
const isF2 =
|
|
12972
|
-
const isContextMenu =
|
|
13031
|
+
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
13032
|
+
const isBack = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.BACKSPACE);
|
|
13033
|
+
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
13034
|
+
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
13035
|
+
const isSpacebar = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR);
|
|
13036
|
+
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
13037
|
+
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
13038
|
+
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
13039
|
+
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
13040
|
+
const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
13041
|
+
const isF2 = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.F2);
|
|
13042
|
+
const isContextMenu = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.CONTEXT_MENU);
|
|
12973
13043
|
const hasMetaKey = evnt.metaKey;
|
|
12974
13044
|
const hasCtrlKey = evnt.ctrlKey;
|
|
12975
13045
|
const hasShiftKey = evnt.shiftKey;
|
|
@@ -13335,7 +13405,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13335
13405
|
*/
|
|
13336
13406
|
tablePrivateMethods = {
|
|
13337
13407
|
getSetupOptions() {
|
|
13338
|
-
return (
|
|
13408
|
+
return table_getConfig();
|
|
13339
13409
|
},
|
|
13340
13410
|
updateAfterDataIndex,
|
|
13341
13411
|
callSlot(slotFunc, params) {
|
|
@@ -13623,7 +13693,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13623
13693
|
const columnWidthStorageMap = getCustomStorageMap(resizableStorageKey);
|
|
13624
13694
|
let columnWidthStorage;
|
|
13625
13695
|
if (!id) {
|
|
13626
|
-
|
|
13696
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13627
13697
|
return;
|
|
13628
13698
|
}
|
|
13629
13699
|
if (!isReset) {
|
|
@@ -13660,7 +13730,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13660
13730
|
const columnSortStorageMap = getCustomStorageMap(sortStorageKey);
|
|
13661
13731
|
let columnWidthStorage;
|
|
13662
13732
|
if (!id) {
|
|
13663
|
-
|
|
13733
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13664
13734
|
return;
|
|
13665
13735
|
}
|
|
13666
13736
|
if (!isReset) {
|
|
@@ -13698,7 +13768,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13698
13768
|
const columnFixedStorageMap = getCustomStorageMap(fixedStorageKey);
|
|
13699
13769
|
const colFixeds = [];
|
|
13700
13770
|
if (!id) {
|
|
13701
|
-
|
|
13771
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13702
13772
|
return;
|
|
13703
13773
|
}
|
|
13704
13774
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -13734,7 +13804,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13734
13804
|
const colHides = [];
|
|
13735
13805
|
const colShows = [];
|
|
13736
13806
|
if (!id) {
|
|
13737
|
-
|
|
13807
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13738
13808
|
return;
|
|
13739
13809
|
}
|
|
13740
13810
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -13783,13 +13853,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13783
13853
|
reactData.reColumnFlag++;
|
|
13784
13854
|
},
|
|
13785
13855
|
preventEvent(evnt, type, args, next, end) {
|
|
13786
|
-
let evntList =
|
|
13856
|
+
let evntList = interceptor.get(type);
|
|
13787
13857
|
// 兼容老版本
|
|
13788
13858
|
if (!evntList.length && type === 'event.clearEdit') {
|
|
13789
|
-
evntList =
|
|
13859
|
+
evntList = interceptor.get('event.clearActived');
|
|
13790
13860
|
if (true) {
|
|
13791
13861
|
if (evntList.length) {
|
|
13792
|
-
|
|
13862
|
+
table_log.warn('vxe.error.delEvent', ['event.clearActived', 'event.clearEdit']);
|
|
13793
13863
|
}
|
|
13794
13864
|
}
|
|
13795
13865
|
}
|
|
@@ -14875,10 +14945,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14875
14945
|
columnIndex: tableMethods.getColumnIndex(column)
|
|
14876
14946
|
};
|
|
14877
14947
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
14878
|
-
const gFormatOpts =
|
|
14948
|
+
const gFormatOpts = table_formats.get(formatter);
|
|
14879
14949
|
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams) : '';
|
|
14880
14950
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
14881
|
-
const gFormatOpts =
|
|
14951
|
+
const gFormatOpts = table_formats.get(formatter[0]);
|
|
14882
14952
|
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams, ...formatter.slice(1)) : '';
|
|
14883
14953
|
} else {
|
|
14884
14954
|
cellLabel = formatter(formatParams);
|
|
@@ -14909,12 +14979,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14909
14979
|
if (true) {
|
|
14910
14980
|
'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
|
|
14911
14981
|
$xeTable[name] = function () {
|
|
14912
|
-
|
|
14982
|
+
table_log.err('vxe.error.reqModule', ['VxeTableExportModule']);
|
|
14913
14983
|
};
|
|
14914
14984
|
});
|
|
14915
14985
|
'clearValidate,fullValidate,validate'.split(',').forEach(name => {
|
|
14916
14986
|
$xeTable[name] = function () {
|
|
14917
|
-
|
|
14987
|
+
table_log.err('vxe.error.reqModule', ['VxeTableValidatorModule']);
|
|
14918
14988
|
};
|
|
14919
14989
|
});
|
|
14920
14990
|
}
|
|
@@ -14971,13 +15041,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14971
15041
|
if (slots.empty) {
|
|
14972
15042
|
return slots.empty(params);
|
|
14973
15043
|
} else {
|
|
14974
|
-
const compConf = emptyOpts.name ?
|
|
15044
|
+
const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
|
|
14975
15045
|
const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
14976
15046
|
if (renderTableEmptyView) {
|
|
14977
15047
|
return getSlotVNs(renderTableEmptyView(emptyOpts, params));
|
|
14978
15048
|
}
|
|
14979
15049
|
}
|
|
14980
|
-
return getFuncText(props.emptyText) || (
|
|
15050
|
+
return getFuncText(props.emptyText) || table_getI18n('vxe.table.emptyText');
|
|
14981
15051
|
};
|
|
14982
15052
|
function handleUupdateResize() {
|
|
14983
15053
|
const el = refElem.value;
|
|
@@ -15018,7 +15088,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15018
15088
|
// log.warn('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
15019
15089
|
// }
|
|
15020
15090
|
if ((scrollXLoad || scrollYLoad) && expandColumn) {
|
|
15021
|
-
|
|
15091
|
+
table_log.warn('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
15022
15092
|
}
|
|
15023
15093
|
}
|
|
15024
15094
|
tableMethods.recalculate();
|
|
@@ -15119,7 +15189,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15119
15189
|
}
|
|
15120
15190
|
});
|
|
15121
15191
|
});
|
|
15122
|
-
|
|
15192
|
+
hooks.forEach(options => {
|
|
15123
15193
|
const {
|
|
15124
15194
|
setupTable
|
|
15125
15195
|
} = options;
|
|
@@ -15166,28 +15236,28 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15166
15236
|
const rowOpts = computeRowOpts.value;
|
|
15167
15237
|
if (true) {
|
|
15168
15238
|
if (props.rowId) {
|
|
15169
|
-
|
|
15239
|
+
table_log.warn('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
15170
15240
|
}
|
|
15171
15241
|
if (props.rowKey) {
|
|
15172
|
-
|
|
15242
|
+
table_log.warn('vxe.error.delProp', ['row-key', 'row-config.useKey']);
|
|
15173
15243
|
}
|
|
15174
15244
|
if (props.columnKey) {
|
|
15175
|
-
|
|
15245
|
+
table_log.warn('vxe.error.delProp', ['column-id', 'column-config.useKey']);
|
|
15176
15246
|
}
|
|
15177
15247
|
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
15178
|
-
|
|
15248
|
+
table_log.warn('vxe.error.reqProp', ['row-config.keyField']);
|
|
15179
15249
|
}
|
|
15180
15250
|
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
15181
|
-
|
|
15251
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
15182
15252
|
}
|
|
15183
15253
|
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
15184
|
-
|
|
15254
|
+
table_log.warn('vxe.error.reqProp', ['row-config.useKey | show-overflow']);
|
|
15185
15255
|
}
|
|
15186
15256
|
if (treeConfig && props.stripe) {
|
|
15187
|
-
|
|
15257
|
+
table_log.warn('vxe.error.noTree', ['stripe']);
|
|
15188
15258
|
}
|
|
15189
15259
|
if (props.showFooter && !(props.footerMethod || props.footerData)) {
|
|
15190
|
-
|
|
15260
|
+
table_log.warn('vxe.error.reqProp', ['footer-data | footer-method']);
|
|
15191
15261
|
}
|
|
15192
15262
|
// if (props.highlightCurrentRow) {
|
|
15193
15263
|
// log.warn('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
@@ -15209,10 +15279,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15209
15279
|
const exportOpts = computeExportOpts.value;
|
|
15210
15280
|
const importOpts = computeImportOpts.value;
|
|
15211
15281
|
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)) {
|
|
15212
|
-
|
|
15282
|
+
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(',')]);
|
|
15213
15283
|
}
|
|
15214
15284
|
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)) {
|
|
15215
|
-
|
|
15285
|
+
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(',')]);
|
|
15216
15286
|
}
|
|
15217
15287
|
}
|
|
15218
15288
|
if (true) {
|
|
@@ -15220,64 +15290,64 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15220
15290
|
const mouseOpts = computeMouseOpts.value;
|
|
15221
15291
|
const rowOpts = computeRowOpts.value;
|
|
15222
15292
|
if (!props.id && props.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
|
|
15223
|
-
|
|
15293
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
15224
15294
|
}
|
|
15225
15295
|
if (props.treeConfig && checkboxOpts.range) {
|
|
15226
|
-
|
|
15296
|
+
table_log.err('vxe.error.noTree', ['checkbox-config.range']);
|
|
15227
15297
|
}
|
|
15228
15298
|
if (rowOpts.height && !props.showOverflow) {
|
|
15229
|
-
|
|
15299
|
+
table_log.warn('vxe.error.notProp', ['table.show-overflow']);
|
|
15230
15300
|
}
|
|
15231
15301
|
if (!$xeTable.handleUpdateCellAreas) {
|
|
15232
15302
|
if (props.clipConfig) {
|
|
15233
|
-
|
|
15303
|
+
table_log.warn('vxe.error.notProp', ['clip-config']);
|
|
15234
15304
|
}
|
|
15235
15305
|
if (props.fnrConfig) {
|
|
15236
|
-
|
|
15306
|
+
table_log.warn('vxe.error.notProp', ['fnr-config']);
|
|
15237
15307
|
}
|
|
15238
15308
|
if (mouseOpts.area) {
|
|
15239
|
-
|
|
15309
|
+
table_log.err('vxe.error.notProp', ['mouse-config.area']);
|
|
15240
15310
|
return;
|
|
15241
15311
|
}
|
|
15242
15312
|
}
|
|
15243
15313
|
if (props.treeConfig && treeOpts.children) {
|
|
15244
|
-
|
|
15314
|
+
table_log.warn('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
15245
15315
|
}
|
|
15246
15316
|
if (props.treeConfig && treeOpts.line) {
|
|
15247
|
-
|
|
15317
|
+
table_log.warn('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine']);
|
|
15248
15318
|
}
|
|
15249
15319
|
if (mouseOpts.area && mouseOpts.selected) {
|
|
15250
|
-
|
|
15320
|
+
table_log.warn('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
15251
15321
|
}
|
|
15252
15322
|
if (mouseOpts.area && checkboxOpts.range) {
|
|
15253
|
-
|
|
15323
|
+
table_log.warn('vxe.error.errConflicts', ['mouse-config.area', 'checkbox-config.range']);
|
|
15254
15324
|
}
|
|
15255
15325
|
if (props.treeConfig && mouseOpts.area) {
|
|
15256
|
-
|
|
15326
|
+
table_log.err('vxe.error.noTree', ['mouse-config.area']);
|
|
15257
15327
|
}
|
|
15258
15328
|
if (props.editConfig && editOpts.activeMethod) {
|
|
15259
|
-
|
|
15329
|
+
table_log.warn('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod']);
|
|
15260
15330
|
}
|
|
15261
15331
|
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
15262
|
-
|
|
15332
|
+
table_log.err('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
15263
15333
|
}
|
|
15264
15334
|
if (checkboxOpts.halfField) {
|
|
15265
|
-
|
|
15335
|
+
table_log.warn('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
15266
15336
|
}
|
|
15267
15337
|
}
|
|
15268
15338
|
// 检查是否有安装需要的模块
|
|
15269
15339
|
if (true) {
|
|
15270
15340
|
if (props.editConfig && !$xeTable.insert) {
|
|
15271
|
-
|
|
15341
|
+
table_log.err('vxe.error.reqModule', ['Edit']);
|
|
15272
15342
|
}
|
|
15273
15343
|
if (props.editRules && !$xeTable.validate) {
|
|
15274
|
-
|
|
15344
|
+
table_log.err('vxe.error.reqModule', ['Validator']);
|
|
15275
15345
|
}
|
|
15276
15346
|
if ((checkboxOpts.range || props.keyboardConfig || props.mouseConfig) && !$xeTable.triggerCellMousedownEvent) {
|
|
15277
|
-
|
|
15347
|
+
table_log.err('vxe.error.reqModule', ['Keyboard']);
|
|
15278
15348
|
}
|
|
15279
15349
|
if ((props.printConfig || props.importConfig || props.exportConfig) && !$xeTable.exportData) {
|
|
15280
|
-
|
|
15350
|
+
table_log.err('vxe.error.reqModule', ['Export']);
|
|
15281
15351
|
}
|
|
15282
15352
|
}
|
|
15283
15353
|
Object.assign(scrollYStore, {
|
|
@@ -15311,7 +15381,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15311
15381
|
leading: true,
|
|
15312
15382
|
trailing: true
|
|
15313
15383
|
}) : null;
|
|
15314
|
-
resizeObserver =
|
|
15384
|
+
resizeObserver = globalResize.create(handleOptimizeResize ? () => {
|
|
15315
15385
|
if (props.autoResize) {
|
|
15316
15386
|
requestAnimationFrame(handleOptimizeResize);
|
|
15317
15387
|
}
|
|
@@ -15328,16 +15398,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15328
15398
|
}
|
|
15329
15399
|
}
|
|
15330
15400
|
});
|
|
15331
|
-
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15401
|
+
globalEvents.on($xeTable, 'paste', handleGlobalPasteEvent);
|
|
15402
|
+
globalEvents.on($xeTable, 'copy', handleGlobalCopyEvent);
|
|
15403
|
+
globalEvents.on($xeTable, 'cut', handleGlobalCutEvent);
|
|
15404
|
+
globalEvents.on($xeTable, 'mousedown', handleGlobalMousedownEvent);
|
|
15405
|
+
globalEvents.on($xeTable, 'blur', handleGlobalBlurEvent);
|
|
15406
|
+
globalEvents.on($xeTable, 'mousewheel', handleGlobalMousewheelEvent);
|
|
15407
|
+
globalEvents.on($xeTable, 'keydown', handleGlobalKeydownEvent);
|
|
15408
|
+
globalEvents.on($xeTable, 'resize', handleGlobalResizeEvent);
|
|
15339
15409
|
if ($xeTable.handleGlobalContextmenuEvent) {
|
|
15340
|
-
|
|
15410
|
+
globalEvents.on($xeTable, 'contextmenu', $xeTable.handleGlobalContextmenuEvent);
|
|
15341
15411
|
}
|
|
15342
15412
|
tablePrivateMethods.preventEvent(null, 'mounted', {
|
|
15343
15413
|
$table: $xeTable
|
|
@@ -15356,15 +15426,15 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15356
15426
|
});
|
|
15357
15427
|
});
|
|
15358
15428
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15429
|
+
globalEvents.off($xeTable, 'paste');
|
|
15430
|
+
globalEvents.off($xeTable, 'copy');
|
|
15431
|
+
globalEvents.off($xeTable, 'cut');
|
|
15432
|
+
globalEvents.off($xeTable, 'mousedown');
|
|
15433
|
+
globalEvents.off($xeTable, 'blur');
|
|
15434
|
+
globalEvents.off($xeTable, 'mousewheel');
|
|
15435
|
+
globalEvents.off($xeTable, 'keydown');
|
|
15436
|
+
globalEvents.off($xeTable, 'resize');
|
|
15437
|
+
globalEvents.off($xeTable, 'contextmenu');
|
|
15368
15438
|
tablePrivateMethods.preventEvent(null, 'unmounted', {
|
|
15369
15439
|
$table: $xeTable
|
|
15370
15440
|
});
|
|
@@ -15422,7 +15492,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15422
15492
|
[`size--${vSize}`]: vSize,
|
|
15423
15493
|
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
15424
15494
|
'vxe-editable': !!editConfig,
|
|
15425
|
-
'old-cell-valid': editRules && (
|
|
15495
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete',
|
|
15426
15496
|
'cell--highlight': highlightCell,
|
|
15427
15497
|
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
15428
15498
|
'cell--area': mouseConfig && mouseOpts.area,
|
|
@@ -15585,7 +15655,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15585
15655
|
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'), {
|
|
15586
15656
|
ref: refValidTooltip,
|
|
15587
15657
|
class: [{
|
|
15588
|
-
'old-cell-valid': editRules && (
|
|
15658
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete'
|
|
15589
15659
|
}, 'vxe-table--valid-error'],
|
|
15590
15660
|
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {})
|
|
15591
15661
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
|
|
@@ -15606,8 +15676,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15606
15676
|
|
|
15607
15677
|
|
|
15608
15678
|
|
|
15679
|
+
const {
|
|
15680
|
+
renderer: hook_renderer,
|
|
15681
|
+
hooks: hook_hooks
|
|
15682
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
15609
15683
|
const tableFilterMethodKeys = ['setFilter', 'clearFilter', 'getCheckedFilters'];
|
|
15610
|
-
|
|
15684
|
+
hook_hooks.add('tableFilterModule', {
|
|
15611
15685
|
setupTable($xeTable) {
|
|
15612
15686
|
const {
|
|
15613
15687
|
props,
|
|
@@ -15659,7 +15733,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15659
15733
|
filterMultiple,
|
|
15660
15734
|
filterRender
|
|
15661
15735
|
} = column;
|
|
15662
|
-
const compConf = filterRender ?
|
|
15736
|
+
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
15663
15737
|
const filterRecoverMethod = column.filterRecoverMethod || (compConf ? compConf.filterRecoverMethod : null);
|
|
15664
15738
|
internalData._currFilterParams = params;
|
|
15665
15739
|
Object.assign(filterStore, {
|
|
@@ -15754,7 +15828,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15754
15828
|
filterRender
|
|
15755
15829
|
} = column;
|
|
15756
15830
|
if (filters) {
|
|
15757
|
-
const compConf = filterRender ?
|
|
15831
|
+
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
15758
15832
|
const filterResetMethod = column.filterResetMethod || (compConf ? compConf.filterResetMethod : null);
|
|
15759
15833
|
filters.forEach(item => {
|
|
15760
15834
|
item._checked = false;
|
|
@@ -15971,8 +16045,14 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15971
16045
|
|
|
15972
16046
|
|
|
15973
16047
|
|
|
16048
|
+
const {
|
|
16049
|
+
menus,
|
|
16050
|
+
hooks: menu_hook_hooks,
|
|
16051
|
+
globalEvents: hook_globalEvents,
|
|
16052
|
+
GLOBAL_EVENT_KEYS: hook_GLOBAL_EVENT_KEYS
|
|
16053
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
15974
16054
|
const tableMenuMethodKeys = ['closeMenu'];
|
|
15975
|
-
|
|
16055
|
+
menu_hook_hooks.add('tableMenuModule', {
|
|
15976
16056
|
setupTable($xeTable) {
|
|
15977
16057
|
const {
|
|
15978
16058
|
xID,
|
|
@@ -16114,7 +16194,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16114
16194
|
ctxMenuStore.showChild = false;
|
|
16115
16195
|
ctxMenuStore.selectChild = null;
|
|
16116
16196
|
}
|
|
16117
|
-
} else if (
|
|
16197
|
+
} else if (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ARROW_UP)) {
|
|
16118
16198
|
for (let len = selectIndex - 1; len >= 0; len--) {
|
|
16119
16199
|
if (menuList[len].visible !== false) {
|
|
16120
16200
|
selectItem = menuList[len];
|
|
@@ -16122,7 +16202,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16122
16202
|
}
|
|
16123
16203
|
}
|
|
16124
16204
|
ctxMenuStore[property] = selectItem || menuList[menuList.length - 1];
|
|
16125
|
-
} else if (
|
|
16205
|
+
} else if (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ARROW_DOWN)) {
|
|
16126
16206
|
for (let index = selectIndex + 1; index < menuList.length; index++) {
|
|
16127
16207
|
if (menuList[index].visible !== false) {
|
|
16128
16208
|
selectItem = menuList[index];
|
|
@@ -16130,7 +16210,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16130
16210
|
}
|
|
16131
16211
|
}
|
|
16132
16212
|
ctxMenuStore[property] = selectItem || menuList[0];
|
|
16133
|
-
} else if (ctxMenuStore[property] && (
|
|
16213
|
+
} else if (ctxMenuStore[property] && (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ENTER) || hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.SPACEBAR))) {
|
|
16134
16214
|
menuPrivateMethods.ctxMenuLinkEvent(evnt, ctxMenuStore[property]);
|
|
16135
16215
|
}
|
|
16136
16216
|
},
|
|
@@ -16306,7 +16386,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16306
16386
|
ctxMenuLinkEvent(evnt, menu) {
|
|
16307
16387
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
16308
16388
|
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
16309
|
-
const gMenuOpts =
|
|
16389
|
+
const gMenuOpts = menus.get(menu.code);
|
|
16310
16390
|
const params = Object.assign({}, internalData._currMenuParams, {
|
|
16311
16391
|
menu,
|
|
16312
16392
|
$table: $xeTable,
|
|
@@ -16338,8 +16418,15 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16338
16418
|
|
|
16339
16419
|
|
|
16340
16420
|
|
|
16421
|
+
const {
|
|
16422
|
+
getConfig: hook_getConfig,
|
|
16423
|
+
renderer: edit_hook_renderer,
|
|
16424
|
+
hooks: edit_hook_hooks,
|
|
16425
|
+
log: hook_log,
|
|
16426
|
+
getI18n: hook_getI18n
|
|
16427
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
16341
16428
|
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'];
|
|
16342
|
-
|
|
16429
|
+
edit_hook_hooks.add('tableEditModule', {
|
|
16343
16430
|
setupTable($xeTable) {
|
|
16344
16431
|
const {
|
|
16345
16432
|
props,
|
|
@@ -16461,7 +16548,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16461
16548
|
} else {
|
|
16462
16549
|
if (true) {
|
|
16463
16550
|
if (parentRowId) {
|
|
16464
|
-
|
|
16551
|
+
hook_log.warn('vxe.error.unableInsert');
|
|
16465
16552
|
}
|
|
16466
16553
|
}
|
|
16467
16554
|
afterFullData[funcName](item);
|
|
@@ -16565,7 +16652,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16565
16652
|
if (true) {
|
|
16566
16653
|
if (item[treeOpts.parentField]) {
|
|
16567
16654
|
if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
|
|
16568
|
-
|
|
16655
|
+
hook_log.err('vxe.error.errProp', [`${treeOpts.parentField}=${item[treeOpts.parentField]}`, `${treeOpts.parentField}=${parentRow[rowField]}`]);
|
|
16569
16656
|
}
|
|
16570
16657
|
}
|
|
16571
16658
|
}
|
|
@@ -16607,13 +16694,13 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16607
16694
|
}
|
|
16608
16695
|
} else {
|
|
16609
16696
|
if (true) {
|
|
16610
|
-
|
|
16697
|
+
hook_log.warn('vxe.error.unableInsert');
|
|
16611
16698
|
}
|
|
16612
16699
|
insertTreeRow(newRecords, true);
|
|
16613
16700
|
}
|
|
16614
16701
|
} else {
|
|
16615
16702
|
if (treeConfig) {
|
|
16616
|
-
throw new Error((
|
|
16703
|
+
throw new Error(hook_getI18n('vxe.error.noTree', ['insert']));
|
|
16617
16704
|
}
|
|
16618
16705
|
let afIndex = -1;
|
|
16619
16706
|
// 如果是可视索引
|
|
@@ -16629,7 +16716,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16629
16716
|
afIndex = Math.min(afterFullData.length, afIndex + 1);
|
|
16630
16717
|
}
|
|
16631
16718
|
if (afIndex === -1) {
|
|
16632
|
-
throw new Error(
|
|
16719
|
+
throw new Error(hook_log.err('vxe.error.unableInsert'));
|
|
16633
16720
|
}
|
|
16634
16721
|
afterFullData.splice(afIndex, 0, ...newRecords);
|
|
16635
16722
|
tableFullData.splice($xeTable.findRowIndexOf(tableFullData, row), 0, ...newRecords);
|
|
@@ -16948,7 +17035,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16948
17035
|
},
|
|
16949
17036
|
getActiveRecord() {
|
|
16950
17037
|
if (true) {
|
|
16951
|
-
|
|
17038
|
+
hook_log.warn('vxe.error.delFunc', ['getActiveRecord', 'getEditRecord']);
|
|
16952
17039
|
}
|
|
16953
17040
|
return this.getEditRecord();
|
|
16954
17041
|
},
|
|
@@ -16988,7 +17075,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16988
17075
|
clearActived(evnt) {
|
|
16989
17076
|
// 即将废弃
|
|
16990
17077
|
if (true) {
|
|
16991
|
-
|
|
17078
|
+
hook_log.warn('vxe.error.delFunc', ['clearActived', 'clearEdit']);
|
|
16992
17079
|
}
|
|
16993
17080
|
return this.clearEdit(evnt);
|
|
16994
17081
|
},
|
|
@@ -17022,7 +17109,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17022
17109
|
$columnIndex: $xeTable.getVMColumnIndex(column)
|
|
17023
17110
|
}, evnt || null);
|
|
17024
17111
|
}
|
|
17025
|
-
if ((
|
|
17112
|
+
if (hook_getConfig().cellVaildMode === 'obsolete') {
|
|
17026
17113
|
if ($xeTable.clearValidate) {
|
|
17027
17114
|
return $xeTable.clearValidate();
|
|
17028
17115
|
}
|
|
@@ -17048,7 +17135,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17048
17135
|
},
|
|
17049
17136
|
isActiveByRow(row) {
|
|
17050
17137
|
if (true) {
|
|
17051
|
-
|
|
17138
|
+
hook_log.warn('vxe.error.delFunc', ['isActiveByRow', 'isEditByRow']);
|
|
17052
17139
|
}
|
|
17053
17140
|
// 即将废弃
|
|
17054
17141
|
return this.isEditByRow(row);
|
|
@@ -17065,7 +17152,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17065
17152
|
},
|
|
17066
17153
|
setActiveRow(row) {
|
|
17067
17154
|
if (true) {
|
|
17068
|
-
|
|
17155
|
+
hook_log.warn('vxe.error.delFunc', ['setActiveRow', 'setEditRow']);
|
|
17069
17156
|
}
|
|
17070
17157
|
// 即将废弃
|
|
17071
17158
|
return editMethods.setEditRow(row);
|
|
@@ -17085,7 +17172,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17085
17172
|
},
|
|
17086
17173
|
setActiveCell(row, fieldOrColumn) {
|
|
17087
17174
|
if (true) {
|
|
17088
|
-
|
|
17175
|
+
hook_log.warn('vxe.error.delFunc', ['setActiveCell', 'setEditCell']);
|
|
17089
17176
|
}
|
|
17090
17177
|
// 即将废弃
|
|
17091
17178
|
return editMethods.setEditCell(row, fieldOrColumn);
|
|
@@ -17286,7 +17373,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17286
17373
|
editRender
|
|
17287
17374
|
} = column;
|
|
17288
17375
|
if (isEnableConf(editRender)) {
|
|
17289
|
-
const compRender =
|
|
17376
|
+
const compRender = edit_hook_renderer.get(editRender.name);
|
|
17290
17377
|
let {
|
|
17291
17378
|
autofocus,
|
|
17292
17379
|
autoselect
|
|
@@ -17421,6 +17508,12 @@ function createHtmlPage(opts, content) {
|
|
|
17421
17508
|
|
|
17422
17509
|
|
|
17423
17510
|
|
|
17511
|
+
const {
|
|
17512
|
+
getI18n: export_hook_getI18n,
|
|
17513
|
+
hooks: export_hook_hooks,
|
|
17514
|
+
renderer: export_hook_renderer,
|
|
17515
|
+
log: export_hook_log
|
|
17516
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
17424
17517
|
let htmlCellElem;
|
|
17425
17518
|
const csvBOM = '\ufeff';
|
|
17426
17519
|
const enterSymbol = '\r\n';
|
|
@@ -17681,7 +17774,7 @@ function checkImportData(columns, fields) {
|
|
|
17681
17774
|
return fields.some(field => tableFields.indexOf(field) > -1);
|
|
17682
17775
|
}
|
|
17683
17776
|
const tableExportMethodKeys = ['exportData', 'importByFile', 'importData', 'saveFile', 'readFile', 'print', 'openImport', 'openExport', 'openPrint'];
|
|
17684
|
-
|
|
17777
|
+
export_hook_hooks.add('tableExportModule', {
|
|
17685
17778
|
setupTable($xeTable) {
|
|
17686
17779
|
const {
|
|
17687
17780
|
props,
|
|
@@ -17768,7 +17861,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17768
17861
|
const renderOpts = column.editRender || column.cellRender;
|
|
17769
17862
|
let bodyExportMethod = column.exportMethod;
|
|
17770
17863
|
if (!bodyExportMethod && renderOpts && renderOpts.name) {
|
|
17771
|
-
const compConf =
|
|
17864
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17772
17865
|
if (compConf) {
|
|
17773
17866
|
bodyExportMethod = compConf.exportMethod;
|
|
17774
17867
|
}
|
|
@@ -17838,7 +17931,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17838
17931
|
const renderOpts = column.editRender || column.cellRender;
|
|
17839
17932
|
let exportLabelMethod = column.exportMethod;
|
|
17840
17933
|
if (!exportLabelMethod && renderOpts && renderOpts.name) {
|
|
17841
|
-
const compConf =
|
|
17934
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17842
17935
|
if (compConf) {
|
|
17843
17936
|
exportLabelMethod = compConf.exportMethod;
|
|
17844
17937
|
}
|
|
@@ -17910,7 +18003,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17910
18003
|
const renderOpts = column.editRender || column.cellRender;
|
|
17911
18004
|
let footLabelMethod = column.footerExportMethod;
|
|
17912
18005
|
if (!footLabelMethod && renderOpts && renderOpts.name) {
|
|
17913
|
-
const compConf =
|
|
18006
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17914
18007
|
if (compConf) {
|
|
17915
18008
|
footLabelMethod = compConf.footerExportMethod;
|
|
17916
18009
|
}
|
|
@@ -18215,7 +18308,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18215
18308
|
if (opts.message !== false) {
|
|
18216
18309
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18217
18310
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18218
|
-
content: (
|
|
18311
|
+
content: export_hook_getI18n('vxe.table.expSuccess'),
|
|
18219
18312
|
status: 'success'
|
|
18220
18313
|
});
|
|
18221
18314
|
}
|
|
@@ -18323,7 +18416,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18323
18416
|
if (opts.message !== false) {
|
|
18324
18417
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18325
18418
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18326
|
-
content: (
|
|
18419
|
+
content: export_hook_getI18n('vxe.table.impSuccess', [rows.length]),
|
|
18327
18420
|
status: 'success'
|
|
18328
18421
|
});
|
|
18329
18422
|
}
|
|
@@ -18339,7 +18432,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18339
18432
|
} else if (opts.message !== false) {
|
|
18340
18433
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18341
18434
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18342
|
-
content: (
|
|
18435
|
+
content: export_hook_getI18n('vxe.error.impFields'),
|
|
18343
18436
|
status: 'error'
|
|
18344
18437
|
});
|
|
18345
18438
|
}
|
|
@@ -18365,7 +18458,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18365
18458
|
if (opts.message !== false) {
|
|
18366
18459
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18367
18460
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18368
|
-
content: (
|
|
18461
|
+
content: export_hook_getI18n('vxe.error.notType', [type]),
|
|
18369
18462
|
status: 'error'
|
|
18370
18463
|
});
|
|
18371
18464
|
}
|
|
@@ -18426,7 +18519,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18426
18519
|
}, () => {
|
|
18427
18520
|
const reader = new FileReader();
|
|
18428
18521
|
reader.onerror = () => {
|
|
18429
|
-
|
|
18522
|
+
export_hook_log.err('vxe.error.notType', [type]);
|
|
18430
18523
|
_importReject({
|
|
18431
18524
|
status: false
|
|
18432
18525
|
});
|
|
@@ -18440,7 +18533,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18440
18533
|
} else {
|
|
18441
18534
|
// 不支持的浏览器
|
|
18442
18535
|
if (true) {
|
|
18443
|
-
|
|
18536
|
+
export_hook_log.err('vxe.error.notExp');
|
|
18444
18537
|
}
|
|
18445
18538
|
_importResolve({
|
|
18446
18539
|
status: true
|
|
@@ -18693,7 +18786,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18693
18786
|
opts.columns = cols;
|
|
18694
18787
|
opts.colgroups = convertToRows(groups);
|
|
18695
18788
|
if (!opts.filename) {
|
|
18696
|
-
opts.filename = (
|
|
18789
|
+
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')]);
|
|
18697
18790
|
}
|
|
18698
18791
|
if (!opts.sheetName) {
|
|
18699
18792
|
opts.sheetName = document.title;
|
|
@@ -18701,7 +18794,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18701
18794
|
// 检查类型,如果为自定义导出,则不需要校验类型
|
|
18702
18795
|
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)) {
|
|
18703
18796
|
if (true) {
|
|
18704
|
-
|
|
18797
|
+
export_hook_log.err('vxe.error.notType', [type]);
|
|
18705
18798
|
}
|
|
18706
18799
|
const params = {
|
|
18707
18800
|
status: false
|
|
@@ -18731,7 +18824,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18731
18824
|
} else if (mode === 'all') {
|
|
18732
18825
|
if (true) {
|
|
18733
18826
|
if (!$xeGrid) {
|
|
18734
|
-
|
|
18827
|
+
export_hook_log.warn('vxe.error.errProp', ['all', 'mode=current,selected']);
|
|
18735
18828
|
}
|
|
18736
18829
|
}
|
|
18737
18830
|
if ($xeGrid && !opts.remote) {
|
|
@@ -18751,7 +18844,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18751
18844
|
const ajaxMethods = ajax.queryAll;
|
|
18752
18845
|
if (true) {
|
|
18753
18846
|
if (!ajaxMethods) {
|
|
18754
|
-
|
|
18847
|
+
export_hook_log.warn('vxe.error.notFunc', ['proxy-config.ajax.queryAll']);
|
|
18755
18848
|
}
|
|
18756
18849
|
}
|
|
18757
18850
|
if (ajaxMethods) {
|
|
@@ -18890,7 +18983,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18890
18983
|
if (defOpts.message) {
|
|
18891
18984
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18892
18985
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18893
|
-
content: (
|
|
18986
|
+
content: export_hook_getI18n('vxe.error.treeNotImp'),
|
|
18894
18987
|
status: 'error'
|
|
18895
18988
|
});
|
|
18896
18989
|
}
|
|
@@ -18898,7 +18991,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18898
18991
|
return;
|
|
18899
18992
|
}
|
|
18900
18993
|
if (!importConfig) {
|
|
18901
|
-
|
|
18994
|
+
export_hook_log.err('vxe.error.reqProp', ['import-config']);
|
|
18902
18995
|
}
|
|
18903
18996
|
// 处理类型
|
|
18904
18997
|
const typeList = types.map(value => {
|
|
@@ -18928,7 +19021,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18928
19021
|
const exportOpts = computeExportOpts.value;
|
|
18929
19022
|
if (true) {
|
|
18930
19023
|
if (!props.exportConfig) {
|
|
18931
|
-
|
|
19024
|
+
export_hook_log.err('vxe.error.reqProp', ['export-config']);
|
|
18932
19025
|
}
|
|
18933
19026
|
}
|
|
18934
19027
|
handleExportAndPrint(Object.assign({}, exportOpts, options));
|
|
@@ -18937,7 +19030,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18937
19030
|
const printOpts = computePrintOpts.value;
|
|
18938
19031
|
if (true) {
|
|
18939
19032
|
if (!props.printConfig) {
|
|
18940
|
-
|
|
19033
|
+
export_hook_log.err('vxe.error.reqProp', ['print-config']);
|
|
18941
19034
|
}
|
|
18942
19035
|
}
|
|
18943
19036
|
handleExportAndPrint(Object.assign({}, printOpts, options), true);
|
|
@@ -18954,6 +19047,9 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18954
19047
|
|
|
18955
19048
|
|
|
18956
19049
|
|
|
19050
|
+
const {
|
|
19051
|
+
hooks: keyboard_hook_hooks
|
|
19052
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
18957
19053
|
function getTargetOffset(target, container) {
|
|
18958
19054
|
let offsetTop = 0;
|
|
18959
19055
|
let offsetLeft = 0;
|
|
@@ -18978,7 +19074,7 @@ function getTargetOffset(target, container) {
|
|
|
18978
19074
|
offsetLeft
|
|
18979
19075
|
};
|
|
18980
19076
|
}
|
|
18981
|
-
|
|
19077
|
+
keyboard_hook_hooks.add('tableKeyboardModule', {
|
|
18982
19078
|
setupTable($xeTable) {
|
|
18983
19079
|
const {
|
|
18984
19080
|
props,
|
|
@@ -19412,6 +19508,12 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19412
19508
|
|
|
19413
19509
|
|
|
19414
19510
|
|
|
19511
|
+
const {
|
|
19512
|
+
getConfig: validator_hook_getConfig,
|
|
19513
|
+
validators,
|
|
19514
|
+
hooks: validator_hook_hooks,
|
|
19515
|
+
log: validator_hook_log
|
|
19516
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
19415
19517
|
/**
|
|
19416
19518
|
* 校验规则
|
|
19417
19519
|
*/
|
|
@@ -19441,7 +19543,7 @@ class Rule {
|
|
|
19441
19543
|
}
|
|
19442
19544
|
}
|
|
19443
19545
|
const tableValidatorMethodKeys = ['fullValidate', 'validate', 'clearValidate'];
|
|
19444
|
-
|
|
19546
|
+
validator_hook_hooks.add('tableValidatorModule', {
|
|
19445
19547
|
setupTable($xeTable) {
|
|
19446
19548
|
const {
|
|
19447
19549
|
props,
|
|
@@ -19602,7 +19704,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19602
19704
|
cb(validRest);
|
|
19603
19705
|
resolve();
|
|
19604
19706
|
} else {
|
|
19605
|
-
if ((
|
|
19707
|
+
if (validator_hook_getConfig().validToReject === 'obsolete') {
|
|
19606
19708
|
// 已废弃,校验失败将不会执行catch
|
|
19607
19709
|
reject(validRest);
|
|
19608
19710
|
} else {
|
|
@@ -19650,7 +19752,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19650
19752
|
fullValidate(rows, cb) {
|
|
19651
19753
|
if (true) {
|
|
19652
19754
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
19653
|
-
|
|
19755
|
+
validator_hook_log.warn('vxe.error.notValidators', ['fullValidate(rows, callback)', 'fullValidate(rows)']);
|
|
19654
19756
|
}
|
|
19655
19757
|
}
|
|
19656
19758
|
return beginValidate(rows, cb, true);
|
|
@@ -19661,7 +19763,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19661
19763
|
validate(rows, cb) {
|
|
19662
19764
|
if (true) {
|
|
19663
19765
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
19664
|
-
|
|
19766
|
+
validator_hook_log.warn('vxe.error.notValidators', ['validate(rows, callback)', 'validate(rows)']);
|
|
19665
19767
|
}
|
|
19666
19768
|
}
|
|
19667
19769
|
return beginValidate(rows, cb);
|
|
@@ -19790,18 +19892,18 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19790
19892
|
};
|
|
19791
19893
|
let customValid;
|
|
19792
19894
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
|
|
19793
|
-
const gvItem =
|
|
19895
|
+
const gvItem = validators.get(validator);
|
|
19794
19896
|
if (gvItem) {
|
|
19795
19897
|
if (gvItem.cellValidatorMethod) {
|
|
19796
19898
|
customValid = gvItem.cellValidatorMethod(validParams);
|
|
19797
19899
|
} else {
|
|
19798
19900
|
if (true) {
|
|
19799
|
-
|
|
19901
|
+
validator_hook_log.warn('vxe.error.notValidators', [validator]);
|
|
19800
19902
|
}
|
|
19801
19903
|
}
|
|
19802
19904
|
} else {
|
|
19803
19905
|
if (true) {
|
|
19804
|
-
|
|
19906
|
+
validator_hook_log.err('vxe.error.notValidators', [validator]);
|
|
19805
19907
|
}
|
|
19806
19908
|
}
|
|
19807
19909
|
} else {
|
|
@@ -19987,7 +20089,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19987
20089
|
|
|
19988
20090
|
|
|
19989
20091
|
const tableCustomMethodKeys = ['openCustom', 'closeCustom'];
|
|
19990
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.add('tableCustomModule', {
|
|
20092
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.hooks.add('tableCustomModule', {
|
|
19991
20093
|
setupTable($xeTable) {
|
|
19992
20094
|
const {
|
|
19993
20095
|
reactData,
|
|
@@ -20129,6 +20231,12 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
20129
20231
|
|
|
20130
20232
|
|
|
20131
20233
|
|
|
20234
|
+
const {
|
|
20235
|
+
getConfig: render_getConfig,
|
|
20236
|
+
renderer: render_renderer,
|
|
20237
|
+
getI18n: render_getI18n,
|
|
20238
|
+
log: render_log
|
|
20239
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
20132
20240
|
const componentDefaultModelProp = 'modelValue';
|
|
20133
20241
|
const defaultCompProps = {
|
|
20134
20242
|
transfer: true
|
|
@@ -20163,7 +20271,7 @@ function getFormatDate(value, props, defaultFormat) {
|
|
|
20163
20271
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(parseDate(value, props), dateConfig.labelFormat || defaultFormat);
|
|
20164
20272
|
}
|
|
20165
20273
|
function getLabelFormatDate(value, props) {
|
|
20166
|
-
return getFormatDate(value, props, (
|
|
20274
|
+
return getFormatDate(value, props, render_getI18n(`vxe.input.date.labelFormat.${props.type}`));
|
|
20167
20275
|
}
|
|
20168
20276
|
/**
|
|
20169
20277
|
* 已废弃
|
|
@@ -20310,7 +20418,7 @@ function getComponentOns(renderOpts, params, modelFunc, changeFunc) {
|
|
|
20310
20418
|
ons[getOnName(key)] = function (...args) {
|
|
20311
20419
|
if (true) {
|
|
20312
20420
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
20313
|
-
|
|
20421
|
+
render_log.err('vxe.error.errFunc', [func]);
|
|
20314
20422
|
}
|
|
20315
20423
|
}
|
|
20316
20424
|
func(params, ...args);
|
|
@@ -20675,7 +20783,7 @@ function handleExportSelectMethod(params) {
|
|
|
20675
20783
|
/**
|
|
20676
20784
|
* 表格 - 渲染器
|
|
20677
20785
|
*/
|
|
20678
|
-
|
|
20786
|
+
render_renderer.mixin({
|
|
20679
20787
|
input: {
|
|
20680
20788
|
autofocus: 'input',
|
|
20681
20789
|
renderEdit: nativeEditRender,
|
|
@@ -20720,7 +20828,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.render
|
|
|
20720
20828
|
row,
|
|
20721
20829
|
column
|
|
20722
20830
|
} = params;
|
|
20723
|
-
const digits = props.digits || (
|
|
20831
|
+
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
20724
20832
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.property);
|
|
20725
20833
|
if (cellValue) {
|
|
20726
20834
|
switch (props.type) {
|
|
@@ -20813,7 +20921,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.render
|
|
|
20813
20921
|
row,
|
|
20814
20922
|
column
|
|
20815
20923
|
} = params;
|
|
20816
|
-
const digits = props.digits || (
|
|
20924
|
+
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
20817
20925
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.property);
|
|
20818
20926
|
if (cellValue) {
|
|
20819
20927
|
switch (props.type) {
|
|
@@ -20917,6 +21025,16 @@ const Table = VxeTable;
|
|
|
20917
21025
|
|
|
20918
21026
|
|
|
20919
21027
|
|
|
21028
|
+
const {
|
|
21029
|
+
getConfig: toolbar_getConfig,
|
|
21030
|
+
getIcon: toolbar_getIcon,
|
|
21031
|
+
getI18n: toolbar_getI18n,
|
|
21032
|
+
renderer: toolbar_renderer,
|
|
21033
|
+
commands,
|
|
21034
|
+
log: toolbar_log,
|
|
21035
|
+
createEvent: toolbar_createEvent,
|
|
21036
|
+
useFns: toolbar_useFns
|
|
21037
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
20920
21038
|
/* harmony default export */ var toolbar = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
20921
21039
|
name: 'VxeToolbar',
|
|
20922
21040
|
props: {
|
|
@@ -20929,19 +21047,19 @@ const Table = VxeTable;
|
|
|
20929
21047
|
custom: [Boolean, Object],
|
|
20930
21048
|
buttons: {
|
|
20931
21049
|
type: Array,
|
|
20932
|
-
default: () => (
|
|
21050
|
+
default: () => toolbar_getConfig().toolbar.buttons
|
|
20933
21051
|
},
|
|
20934
21052
|
tools: {
|
|
20935
21053
|
type: Array,
|
|
20936
|
-
default: () => (
|
|
21054
|
+
default: () => toolbar_getConfig().toolbar.tools
|
|
20937
21055
|
},
|
|
20938
21056
|
perfect: {
|
|
20939
21057
|
type: Boolean,
|
|
20940
|
-
default: () => (
|
|
21058
|
+
default: () => toolbar_getConfig().toolbar.perfect
|
|
20941
21059
|
},
|
|
20942
21060
|
size: {
|
|
20943
21061
|
type: String,
|
|
20944
|
-
default: () => (
|
|
21062
|
+
default: () => toolbar_getConfig().toolbar.size || toolbar_getConfig().size
|
|
20945
21063
|
},
|
|
20946
21064
|
className: [String, Function]
|
|
20947
21065
|
},
|
|
@@ -20954,7 +21072,7 @@ const Table = VxeTable;
|
|
|
20954
21072
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
20955
21073
|
const {
|
|
20956
21074
|
computeSize
|
|
20957
|
-
} =
|
|
21075
|
+
} = toolbar_useFns.useSize(props);
|
|
20958
21076
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
20959
21077
|
isRefresh: false,
|
|
20960
21078
|
columns: []
|
|
@@ -20975,22 +21093,22 @@ const Table = VxeTable;
|
|
|
20975
21093
|
let $xeTable;
|
|
20976
21094
|
const connectFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
20977
21095
|
const computeRefreshOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20978
|
-
return Object.assign({}, (
|
|
21096
|
+
return Object.assign({}, toolbar_getConfig().toolbar.refresh, props.refresh);
|
|
20979
21097
|
});
|
|
20980
21098
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20981
|
-
return Object.assign({}, (
|
|
21099
|
+
return Object.assign({}, toolbar_getConfig().toolbar.import, props.import);
|
|
20982
21100
|
});
|
|
20983
21101
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20984
|
-
return Object.assign({}, (
|
|
21102
|
+
return Object.assign({}, toolbar_getConfig().toolbar.export, props.export);
|
|
20985
21103
|
});
|
|
20986
21104
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20987
|
-
return Object.assign({}, (
|
|
21105
|
+
return Object.assign({}, toolbar_getConfig().toolbar.print, props.print);
|
|
20988
21106
|
});
|
|
20989
21107
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20990
|
-
return Object.assign({}, (
|
|
21108
|
+
return Object.assign({}, toolbar_getConfig().toolbar.zoom, props.zoom);
|
|
20991
21109
|
});
|
|
20992
21110
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20993
|
-
return Object.assign({}, (
|
|
21111
|
+
return Object.assign({}, toolbar_getConfig().toolbar.custom, props.custom);
|
|
20994
21112
|
});
|
|
20995
21113
|
const computeTableCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20996
21114
|
if (connectFlag.value || $xeTable) {
|
|
@@ -21011,7 +21129,7 @@ const Table = VxeTable;
|
|
|
21011
21129
|
if ($xeTable) {
|
|
21012
21130
|
return true;
|
|
21013
21131
|
}
|
|
21014
|
-
|
|
21132
|
+
toolbar_log.err('vxe.error.barUnableLink');
|
|
21015
21133
|
};
|
|
21016
21134
|
const handleClickSettingEvent = ({
|
|
21017
21135
|
$event
|
|
@@ -21020,7 +21138,7 @@ const Table = VxeTable;
|
|
|
21020
21138
|
if ($xeTable.triggerCustomEvent) {
|
|
21021
21139
|
$xeTable.triggerCustomEvent($event);
|
|
21022
21140
|
} else {
|
|
21023
|
-
|
|
21141
|
+
toolbar_log.err('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21024
21142
|
}
|
|
21025
21143
|
}
|
|
21026
21144
|
};
|
|
@@ -21030,7 +21148,7 @@ const Table = VxeTable;
|
|
|
21030
21148
|
if ($xeTable) {
|
|
21031
21149
|
$xeTable.customOpenEvent($event);
|
|
21032
21150
|
} else {
|
|
21033
|
-
|
|
21151
|
+
toolbar_log.err('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21034
21152
|
}
|
|
21035
21153
|
};
|
|
21036
21154
|
const handleMouseleaveSettingEvent = ({
|
|
@@ -21085,7 +21203,7 @@ const Table = VxeTable;
|
|
|
21085
21203
|
if ($xeGrid) {
|
|
21086
21204
|
$xeGrid.triggerToolbarBtnEvent(item, evnt);
|
|
21087
21205
|
} else {
|
|
21088
|
-
const gCommandOpts =
|
|
21206
|
+
const gCommandOpts = commands.get(code);
|
|
21089
21207
|
const params = {
|
|
21090
21208
|
code,
|
|
21091
21209
|
button: item,
|
|
@@ -21098,7 +21216,7 @@ const Table = VxeTable;
|
|
|
21098
21216
|
gCommandOpts.commandMethod(params);
|
|
21099
21217
|
} else {
|
|
21100
21218
|
if (true) {
|
|
21101
|
-
|
|
21219
|
+
toolbar_log.err('vxe.error.notCommands', [code]);
|
|
21102
21220
|
}
|
|
21103
21221
|
}
|
|
21104
21222
|
}
|
|
@@ -21114,7 +21232,7 @@ const Table = VxeTable;
|
|
|
21114
21232
|
if ($xeGrid) {
|
|
21115
21233
|
$xeGrid.triggerToolbarTolEvent(item, evnt);
|
|
21116
21234
|
} else {
|
|
21117
|
-
const gCommandOpts =
|
|
21235
|
+
const gCommandOpts = commands.get(code);
|
|
21118
21236
|
const params = {
|
|
21119
21237
|
code,
|
|
21120
21238
|
tool: item,
|
|
@@ -21127,7 +21245,7 @@ const Table = VxeTable;
|
|
|
21127
21245
|
gCommandOpts.commandMethod(params);
|
|
21128
21246
|
} else {
|
|
21129
21247
|
if (true) {
|
|
21130
|
-
|
|
21248
|
+
toolbar_log.err('vxe.error.notCommands', [code]);
|
|
21131
21249
|
}
|
|
21132
21250
|
}
|
|
21133
21251
|
}
|
|
@@ -21198,7 +21316,7 @@ const Table = VxeTable;
|
|
|
21198
21316
|
buttonRender
|
|
21199
21317
|
} = item;
|
|
21200
21318
|
if (item.visible !== false) {
|
|
21201
|
-
const compConf = buttonRender ?
|
|
21319
|
+
const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
|
|
21202
21320
|
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
21203
21321
|
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
21204
21322
|
const params = {
|
|
@@ -21255,7 +21373,7 @@ const Table = VxeTable;
|
|
|
21255
21373
|
} = item;
|
|
21256
21374
|
if (item.visible !== false) {
|
|
21257
21375
|
const rdName = toolRender ? toolRender.name : null;
|
|
21258
|
-
const compConf = toolRender ?
|
|
21376
|
+
const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
|
|
21259
21377
|
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
21260
21378
|
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
21261
21379
|
const params = {
|
|
@@ -21296,8 +21414,8 @@ const Table = VxeTable;
|
|
|
21296
21414
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21297
21415
|
key: 'import',
|
|
21298
21416
|
circle: true,
|
|
21299
|
-
icon: importOpts.icon || (
|
|
21300
|
-
title: (
|
|
21417
|
+
icon: importOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_IMPORT,
|
|
21418
|
+
title: toolbar_getI18n('vxe.toolbar.import'),
|
|
21301
21419
|
onClick: importEvent
|
|
21302
21420
|
});
|
|
21303
21421
|
};
|
|
@@ -21306,8 +21424,8 @@ const Table = VxeTable;
|
|
|
21306
21424
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21307
21425
|
key: 'export',
|
|
21308
21426
|
circle: true,
|
|
21309
|
-
icon: exportOpts.icon || (
|
|
21310
|
-
title: (
|
|
21427
|
+
icon: exportOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_EXPORT,
|
|
21428
|
+
title: toolbar_getI18n('vxe.toolbar.export'),
|
|
21311
21429
|
onClick: exportEvent
|
|
21312
21430
|
});
|
|
21313
21431
|
};
|
|
@@ -21316,8 +21434,8 @@ const Table = VxeTable;
|
|
|
21316
21434
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21317
21435
|
key: 'print',
|
|
21318
21436
|
circle: true,
|
|
21319
|
-
icon: printOpts.icon || (
|
|
21320
|
-
title: (
|
|
21437
|
+
icon: printOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_PRINT,
|
|
21438
|
+
title: toolbar_getI18n('vxe.toolbar.print'),
|
|
21321
21439
|
onClick: printEvent
|
|
21322
21440
|
});
|
|
21323
21441
|
};
|
|
@@ -21326,8 +21444,8 @@ const Table = VxeTable;
|
|
|
21326
21444
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21327
21445
|
key: 'refresh',
|
|
21328
21446
|
circle: true,
|
|
21329
|
-
icon: reactData.isRefresh ? refreshOpts.iconLoading || (
|
|
21330
|
-
title: (
|
|
21447
|
+
icon: reactData.isRefresh ? refreshOpts.iconLoading || toolbar_getIcon().TOOLBAR_TOOLS_REFRESH_LOADING : refreshOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_REFRESH,
|
|
21448
|
+
title: toolbar_getI18n('vxe.toolbar.refresh'),
|
|
21331
21449
|
onClick: refreshEvent
|
|
21332
21450
|
});
|
|
21333
21451
|
};
|
|
@@ -21336,8 +21454,8 @@ const Table = VxeTable;
|
|
|
21336
21454
|
return $xeGrid ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21337
21455
|
key: 'zoom',
|
|
21338
21456
|
circle: true,
|
|
21339
|
-
icon: $xeGrid.isMaximized() ? zoomOpts.iconOut || (
|
|
21340
|
-
title: (
|
|
21457
|
+
icon: $xeGrid.isMaximized() ? zoomOpts.iconOut || toolbar_getIcon().TOOLBAR_TOOLS_MINIMIZE : zoomOpts.iconIn || toolbar_getIcon().TOOLBAR_TOOLS_FULLSCREEN,
|
|
21458
|
+
title: toolbar_getI18n(`vxe.toolbar.zoom${$xeGrid.isMaximized() ? 'Out' : 'In'}`),
|
|
21341
21459
|
onClick: zoomEvent
|
|
21342
21460
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
21343
21461
|
};
|
|
@@ -21358,15 +21476,15 @@ const Table = VxeTable;
|
|
|
21358
21476
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21359
21477
|
key: 'custom',
|
|
21360
21478
|
circle: true,
|
|
21361
|
-
icon: customOpts.icon || (
|
|
21362
|
-
title: (
|
|
21479
|
+
icon: customOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_CUSTOM,
|
|
21480
|
+
title: toolbar_getI18n('vxe.toolbar.custom'),
|
|
21363
21481
|
className: 'vxe-toolbar-custom-target',
|
|
21364
21482
|
...customBtnOns
|
|
21365
21483
|
});
|
|
21366
21484
|
};
|
|
21367
21485
|
toolbarMethods = {
|
|
21368
21486
|
dispatchEvent(type, params, evnt) {
|
|
21369
|
-
emit(type, (
|
|
21487
|
+
emit(type, toolbar_createEvent(evnt, {
|
|
21370
21488
|
$toolbar: $xeToolbar
|
|
21371
21489
|
}, params));
|
|
21372
21490
|
},
|
|
@@ -21387,21 +21505,21 @@ const Table = VxeTable;
|
|
|
21387
21505
|
const refreshOpts = computeRefreshOpts.value;
|
|
21388
21506
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
21389
21507
|
if (refresh && !$xeGrid && !queryMethod) {
|
|
21390
|
-
|
|
21508
|
+
toolbar_log.warn('vxe.error.notFunc', ['queryMethod']);
|
|
21391
21509
|
}
|
|
21392
21510
|
const customOpts = computeCustomOpts.value;
|
|
21393
21511
|
if (true) {
|
|
21394
21512
|
if (customOpts.isFooter) {
|
|
21395
|
-
|
|
21513
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
|
|
21396
21514
|
}
|
|
21397
21515
|
if (customOpts.showFooter) {
|
|
21398
|
-
|
|
21516
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
|
|
21399
21517
|
}
|
|
21400
21518
|
if (customOpts.immediate) {
|
|
21401
|
-
|
|
21519
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
|
|
21402
21520
|
}
|
|
21403
21521
|
if (customOpts.trigger) {
|
|
21404
|
-
|
|
21522
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
|
|
21405
21523
|
}
|
|
21406
21524
|
}
|
|
21407
21525
|
});
|
|
@@ -21464,6 +21582,17 @@ const Toolbar = VxeToolbar;
|
|
|
21464
21582
|
|
|
21465
21583
|
|
|
21466
21584
|
|
|
21585
|
+
const {
|
|
21586
|
+
getConfig: grid_getConfig,
|
|
21587
|
+
getI18n: grid_getI18n,
|
|
21588
|
+
commands: grid_commands,
|
|
21589
|
+
hooks: grid_hooks,
|
|
21590
|
+
log: grid_log,
|
|
21591
|
+
useFns: grid_useFns,
|
|
21592
|
+
createEvent: grid_createEvent,
|
|
21593
|
+
globalEvents: grid_globalEvents,
|
|
21594
|
+
GLOBAL_EVENT_KEYS: grid_GLOBAL_EVENT_KEYS
|
|
21595
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
21467
21596
|
const tableComponentPropKeys = Object.keys(props);
|
|
21468
21597
|
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'];
|
|
21469
21598
|
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'];
|
|
@@ -21480,7 +21609,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21480
21609
|
zoomConfig: Object,
|
|
21481
21610
|
size: {
|
|
21482
21611
|
type: String,
|
|
21483
|
-
default: () => (
|
|
21612
|
+
default: () => grid_getConfig().grid.size || grid_getConfig().size
|
|
21484
21613
|
}
|
|
21485
21614
|
},
|
|
21486
21615
|
emits: gridComponentEmits,
|
|
@@ -21492,7 +21621,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21492
21621
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
21493
21622
|
const {
|
|
21494
21623
|
computeSize
|
|
21495
|
-
} =
|
|
21624
|
+
} = grid_useFns.useSize(props);
|
|
21496
21625
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
21497
21626
|
tableLoading: false,
|
|
21498
21627
|
proxyInited: false,
|
|
@@ -21504,7 +21633,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21504
21633
|
tZindex: 0,
|
|
21505
21634
|
tablePage: {
|
|
21506
21635
|
total: 0,
|
|
21507
|
-
pageSize: (
|
|
21636
|
+
pageSize: grid_getConfig().pager?.pageSize || 10,
|
|
21508
21637
|
currentPage: 1
|
|
21509
21638
|
}
|
|
21510
21639
|
});
|
|
@@ -21540,23 +21669,23 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21540
21669
|
};
|
|
21541
21670
|
});
|
|
21542
21671
|
const computeProxyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21543
|
-
return Object.assign({}, (
|
|
21672
|
+
return Object.assign({}, grid_getConfig().grid.proxyConfig, props.proxyConfig);
|
|
21544
21673
|
});
|
|
21545
21674
|
const computeIsMsg = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21546
21675
|
const proxyOpts = computeProxyOpts.value;
|
|
21547
21676
|
return proxyOpts.message !== false;
|
|
21548
21677
|
});
|
|
21549
21678
|
const computePagerOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21550
|
-
return Object.assign({}, (
|
|
21679
|
+
return Object.assign({}, grid_getConfig().grid.pagerConfig, props.pagerConfig);
|
|
21551
21680
|
});
|
|
21552
21681
|
const computeFormOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21553
|
-
return Object.assign({}, (
|
|
21682
|
+
return Object.assign({}, grid_getConfig().grid.formConfig, props.formConfig);
|
|
21554
21683
|
});
|
|
21555
21684
|
const computeToolbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21556
|
-
return Object.assign({}, (
|
|
21685
|
+
return Object.assign({}, grid_getConfig().grid.toolbarConfig, props.toolbarConfig);
|
|
21557
21686
|
});
|
|
21558
21687
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21559
|
-
return Object.assign({}, (
|
|
21688
|
+
return Object.assign({}, grid_getConfig().grid.zoomConfig, props.zoomConfig);
|
|
21560
21689
|
});
|
|
21561
21690
|
const computeStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21562
21691
|
return reactData.isZMax ? {
|
|
@@ -21677,7 +21806,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21677
21806
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21678
21807
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
21679
21808
|
id: code,
|
|
21680
|
-
content: (
|
|
21809
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
21681
21810
|
status: 'warning'
|
|
21682
21811
|
});
|
|
21683
21812
|
}
|
|
@@ -21695,7 +21824,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21695
21824
|
$grid: $xeGrid
|
|
21696
21825
|
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, messageProp);
|
|
21697
21826
|
}
|
|
21698
|
-
return msg || (
|
|
21827
|
+
return msg || grid_getI18n(defaultMsg);
|
|
21699
21828
|
};
|
|
21700
21829
|
const handleDeleteRow = (code, alertKey, callback) => {
|
|
21701
21830
|
const isMsg = computeIsMsg.value;
|
|
@@ -21705,7 +21834,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21705
21834
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21706
21835
|
return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.confirm({
|
|
21707
21836
|
id: `cfm_${code}`,
|
|
21708
|
-
content: (
|
|
21837
|
+
content: grid_getI18n(alertKey),
|
|
21709
21838
|
escClosable: true
|
|
21710
21839
|
}).then(type => {
|
|
21711
21840
|
if (type === 'confirm') {
|
|
@@ -21717,7 +21846,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21717
21846
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21718
21847
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
21719
21848
|
id: `msg_${code}`,
|
|
21720
|
-
content: (
|
|
21849
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
21721
21850
|
status: 'warning'
|
|
21722
21851
|
});
|
|
21723
21852
|
}
|
|
@@ -21859,7 +21988,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21859
21988
|
return slots[funcSlot];
|
|
21860
21989
|
} else {
|
|
21861
21990
|
if (true) {
|
|
21862
|
-
|
|
21991
|
+
grid_log.err('vxe.error.notSlot', [funcSlot]);
|
|
21863
21992
|
}
|
|
21864
21993
|
}
|
|
21865
21994
|
} else {
|
|
@@ -22117,7 +22246,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22117
22246
|
layouts
|
|
22118
22247
|
} = props;
|
|
22119
22248
|
const vns = [];
|
|
22120
|
-
const currLayouts = layouts && layouts.length ? layouts : (
|
|
22249
|
+
const currLayouts = layouts && layouts.length ? layouts : grid_getConfig().grid.layouts || defaultLayouts;
|
|
22121
22250
|
currLayouts.forEach(name => {
|
|
22122
22251
|
switch (name) {
|
|
22123
22252
|
case 'Form':
|
|
@@ -22143,7 +22272,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22143
22272
|
break;
|
|
22144
22273
|
default:
|
|
22145
22274
|
if (true) {
|
|
22146
|
-
|
|
22275
|
+
grid_log.err('vxe.error.notProp', [`layouts -> ${name}`]);
|
|
22147
22276
|
}
|
|
22148
22277
|
break;
|
|
22149
22278
|
}
|
|
@@ -22207,7 +22336,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22207
22336
|
};
|
|
22208
22337
|
const gridMethods = {
|
|
22209
22338
|
dispatchEvent(type, params, evnt) {
|
|
22210
|
-
emit(type, (
|
|
22339
|
+
emit(type, grid_createEvent(evnt, {
|
|
22211
22340
|
$grid: $xeGrid
|
|
22212
22341
|
}, params));
|
|
22213
22342
|
},
|
|
@@ -22399,7 +22528,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22399
22528
|
});
|
|
22400
22529
|
} else {
|
|
22401
22530
|
if (true) {
|
|
22402
|
-
|
|
22531
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
22403
22532
|
}
|
|
22404
22533
|
}
|
|
22405
22534
|
break;
|
|
@@ -22468,7 +22597,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22468
22597
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
22469
22598
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
22470
22599
|
id: code,
|
|
22471
|
-
content: (
|
|
22600
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
22472
22601
|
status: 'warning'
|
|
22473
22602
|
});
|
|
22474
22603
|
}
|
|
@@ -22476,7 +22605,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22476
22605
|
}
|
|
22477
22606
|
} else {
|
|
22478
22607
|
if (true) {
|
|
22479
|
-
|
|
22608
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
22480
22609
|
}
|
|
22481
22610
|
}
|
|
22482
22611
|
break;
|
|
@@ -22560,7 +22689,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22560
22689
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
22561
22690
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
22562
22691
|
id: code,
|
|
22563
|
-
content: (
|
|
22692
|
+
content: grid_getI18n('vxe.grid.dataUnchanged'),
|
|
22564
22693
|
status: 'info'
|
|
22565
22694
|
});
|
|
22566
22695
|
}
|
|
@@ -22569,14 +22698,14 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22569
22698
|
});
|
|
22570
22699
|
} else {
|
|
22571
22700
|
if (true) {
|
|
22572
|
-
|
|
22701
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
22573
22702
|
}
|
|
22574
22703
|
}
|
|
22575
22704
|
break;
|
|
22576
22705
|
}
|
|
22577
22706
|
default:
|
|
22578
22707
|
{
|
|
22579
|
-
const gCommandOpts =
|
|
22708
|
+
const gCommandOpts = grid_commands.get(code);
|
|
22580
22709
|
if (gCommandOpts) {
|
|
22581
22710
|
if (gCommandOpts.commandMethod) {
|
|
22582
22711
|
gCommandOpts.commandMethod({
|
|
@@ -22587,7 +22716,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22587
22716
|
}, ...args);
|
|
22588
22717
|
} else {
|
|
22589
22718
|
if (true) {
|
|
22590
|
-
|
|
22719
|
+
grid_log.err('vxe.error.notCommands', [code]);
|
|
22591
22720
|
}
|
|
22592
22721
|
}
|
|
22593
22722
|
}
|
|
@@ -22672,7 +22801,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22672
22801
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(column.slots, func => {
|
|
22673
22802
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
22674
22803
|
if (!slots[func]) {
|
|
22675
|
-
|
|
22804
|
+
grid_log.err('vxe.error.notSlot', [func]);
|
|
22676
22805
|
}
|
|
22677
22806
|
}
|
|
22678
22807
|
});
|
|
@@ -22783,12 +22912,12 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22783
22912
|
});
|
|
22784
22913
|
const handleGlobalKeydownEvent = evnt => {
|
|
22785
22914
|
const zoomOpts = computeZoomOpts.value;
|
|
22786
|
-
const isEsc =
|
|
22915
|
+
const isEsc = grid_globalEvents.hasKey(evnt, grid_GLOBAL_EVENT_KEYS.ESCAPE);
|
|
22787
22916
|
if (isEsc && reactData.isZMax && zoomOpts.escRestore !== false) {
|
|
22788
22917
|
gridPrivateMethods.triggerZoomEvent(evnt);
|
|
22789
22918
|
}
|
|
22790
22919
|
};
|
|
22791
|
-
|
|
22920
|
+
grid_hooks.forEach(options => {
|
|
22792
22921
|
const {
|
|
22793
22922
|
setupGrid
|
|
22794
22923
|
} = options;
|
|
@@ -22810,7 +22939,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22810
22939
|
const proxyOpts = computeProxyOpts.value;
|
|
22811
22940
|
const formOpts = computeFormOpts.value;
|
|
22812
22941
|
if (isEnableConf(proxyConfig) && (data || proxyOpts.form && formOpts.data)) {
|
|
22813
|
-
|
|
22942
|
+
grid_log.err('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config']);
|
|
22814
22943
|
}
|
|
22815
22944
|
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
22816
22945
|
// if (proxyOpts.props) {
|
|
@@ -22822,10 +22951,10 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22822
22951
|
}
|
|
22823
22952
|
initToolbar();
|
|
22824
22953
|
});
|
|
22825
|
-
|
|
22954
|
+
grid_globalEvents.on($xeGrid, 'keydown', handleGlobalKeydownEvent);
|
|
22826
22955
|
});
|
|
22827
22956
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
22828
|
-
|
|
22957
|
+
grid_globalEvents.off($xeGrid, 'keydown');
|
|
22829
22958
|
});
|
|
22830
22959
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
22831
22960
|
initProxy();
|
|
@@ -22868,8 +22997,8 @@ const Grid = VxeGrid;
|
|
|
22868
22997
|
/* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
|
|
22869
22998
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
22870
22999
|
|
|
22871
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.
|
|
22872
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.
|
|
23000
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.3";
|
|
23001
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.3";
|
|
22873
23002
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig({
|
|
22874
23003
|
emptyCell: ' ',
|
|
22875
23004
|
table: {
|
|
@@ -23099,23 +23228,23 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.
|
|
|
23099
23228
|
const setTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setTheme;
|
|
23100
23229
|
const getTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getTheme;
|
|
23101
23230
|
const setConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig;
|
|
23102
|
-
const
|
|
23231
|
+
const ui_getConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig;
|
|
23103
23232
|
const setIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setIcon;
|
|
23104
|
-
const
|
|
23233
|
+
const ui_getIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getIcon;
|
|
23105
23234
|
const setLanguage = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setLanguage;
|
|
23106
23235
|
const setI18n = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setI18n;
|
|
23107
|
-
const
|
|
23108
|
-
const
|
|
23109
|
-
const
|
|
23110
|
-
const
|
|
23111
|
-
const
|
|
23112
|
-
const
|
|
23113
|
-
const
|
|
23114
|
-
const
|
|
23115
|
-
const
|
|
23236
|
+
const ui_getI18n = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getI18n;
|
|
23237
|
+
const ui_globalEvents = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.globalEvents;
|
|
23238
|
+
const ui_globalResize = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.globalResize;
|
|
23239
|
+
const ui_renderer = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.renderer;
|
|
23240
|
+
const ui_validators = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.validators;
|
|
23241
|
+
const ui_menus = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.menus;
|
|
23242
|
+
const ui_formats = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.formats;
|
|
23243
|
+
const ui_commands = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.commands;
|
|
23244
|
+
const ui_interceptor = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.interceptor;
|
|
23116
23245
|
const clipboard = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.clipboard;
|
|
23117
|
-
const
|
|
23118
|
-
const
|
|
23246
|
+
const ui_log = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.log;
|
|
23247
|
+
const ui_hooks = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.hooks;
|
|
23119
23248
|
const use = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.use;
|
|
23120
23249
|
/**
|
|
23121
23250
|
* 已废弃
|
|
@@ -23142,6 +23271,8 @@ const _t = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc
|
|
|
23142
23271
|
* @deprecated
|
|
23143
23272
|
*/
|
|
23144
23273
|
const VXETable = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
23274
|
+
const saveFile = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.readFile;
|
|
23275
|
+
const readFile = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.readFile;
|
|
23145
23276
|
|
|
23146
23277
|
/* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
|
|
23147
23278
|
;// CONCATENATED MODULE: ./packages/components.ts
|
|
@@ -23157,6 +23288,8 @@ function install(app, options) {
|
|
|
23157
23288
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig(options);
|
|
23158
23289
|
components.forEach(component => component.install(app));
|
|
23159
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;
|
|
23160
23293
|
|
|
23161
23294
|
// Components
|
|
23162
23295
|
|