vxe-table 4.7.1 → 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 +3 -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 +6 -4
- package/es/ui/src/utils.js +3 -3
- package/es/vxe-table/style.css +4 -2
- package/es/vxe-table/style.min.css +1 -1
- package/lib/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 +557 -445
- 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 +160 -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 -30
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/utils.js +2 -2
- package/lib/ui/src/utils.min.js +1 -1
- package/lib/vxe-table/style/style.css +4 -2
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/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 +5 -4
- package/packages/toolbar/src/toolbar.ts +5 -4
- package/packages/ui/index.ts +5 -6
- package/packages/ui/src/utils.ts +3 -3
- package/packages/ui/src/vn.ts +2 -1
- package/styles/components/table.scss +5 -2
- package/styles/theme/base.scss +1 -0
package/lib/index.umd.js
CHANGED
|
@@ -1690,26 +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
|
-
drawer: function() { return /* reexport */
|
|
1697
|
-
formats: function() { return /* reexport */
|
|
1698
|
-
getConfig: function() { return /* reexport */
|
|
1699
|
-
getI18n: function() { return /* reexport */
|
|
1700
|
-
getIcon: function() { return /* reexport */
|
|
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; },
|
|
1701
1701
|
getTheme: function() { return /* reexport */ getTheme; },
|
|
1702
|
-
globalEvents: function() { return /* reexport */
|
|
1703
|
-
globalResize: function() { return /* reexport */
|
|
1704
|
-
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; },
|
|
1705
1705
|
install: function() { return /* reexport */ install; },
|
|
1706
|
-
interceptor: function() { return /* reexport */
|
|
1707
|
-
log: function() { return /* reexport */
|
|
1708
|
-
menus: function() { return /* reexport */
|
|
1709
|
-
modal: function() { return /* reexport */
|
|
1710
|
-
readFile: function() { return /* reexport */
|
|
1711
|
-
renderer: function() { return /* reexport */
|
|
1712
|
-
saveFile: function() { return /* reexport */
|
|
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; },
|
|
1713
1713
|
setConfig: function() { return /* reexport */ setConfig; },
|
|
1714
1714
|
setI18n: function() { return /* reexport */ setI18n; },
|
|
1715
1715
|
setIcon: function() { return /* reexport */ setIcon; },
|
|
@@ -1718,7 +1718,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1718
1718
|
setup: function() { return /* reexport */ setup; },
|
|
1719
1719
|
t: function() { return /* reexport */ t; },
|
|
1720
1720
|
use: function() { return /* reexport */ use; },
|
|
1721
|
-
validators: function() { return /* reexport */
|
|
1721
|
+
validators: function() { return /* reexport */ ui_validators; }
|
|
1722
1722
|
});
|
|
1723
1723
|
|
|
1724
1724
|
// NAMESPACE OBJECT: ./packages/components.ts
|
|
@@ -1739,25 +1739,25 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1739
1739
|
VxeUI: function() { return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI; },
|
|
1740
1740
|
_t: function() { return _t; },
|
|
1741
1741
|
clipboard: function() { return clipboard; },
|
|
1742
|
-
commands: function() { return
|
|
1742
|
+
commands: function() { return ui_commands; },
|
|
1743
1743
|
config: function() { return config; },
|
|
1744
|
-
drawer: function() { return
|
|
1745
|
-
formats: function() { return
|
|
1746
|
-
getConfig: function() { return
|
|
1747
|
-
getI18n: function() { return
|
|
1748
|
-
getIcon: function() { return
|
|
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; },
|
|
1749
1749
|
getTheme: function() { return getTheme; },
|
|
1750
|
-
globalEvents: function() { return
|
|
1751
|
-
globalResize: function() { return
|
|
1752
|
-
hooks: function() { return
|
|
1750
|
+
globalEvents: function() { return ui_globalEvents; },
|
|
1751
|
+
globalResize: function() { return ui_globalResize; },
|
|
1752
|
+
hooks: function() { return ui_hooks; },
|
|
1753
1753
|
install: function() { return install; },
|
|
1754
|
-
interceptor: function() { return
|
|
1755
|
-
log: function() { return
|
|
1756
|
-
menus: function() { return
|
|
1757
|
-
modal: function() { return
|
|
1758
|
-
readFile: function() { return
|
|
1759
|
-
renderer: function() { return
|
|
1760
|
-
saveFile: function() { return
|
|
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; },
|
|
1761
1761
|
setConfig: function() { return setConfig; },
|
|
1762
1762
|
setI18n: function() { return setI18n; },
|
|
1763
1763
|
setIcon: function() { return setIcon; },
|
|
@@ -1766,7 +1766,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1766
1766
|
setup: function() { return setup; },
|
|
1767
1767
|
t: function() { return t; },
|
|
1768
1768
|
use: function() { return use; },
|
|
1769
|
-
validators: function() { return
|
|
1769
|
+
validators: function() { return ui_validators; }
|
|
1770
1770
|
});
|
|
1771
1771
|
|
|
1772
1772
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -1788,6 +1788,7 @@ if (typeof window !== 'undefined') {
|
|
|
1788
1788
|
|
|
1789
1789
|
// EXTERNAL MODULE: external {"root":"VxeUI","commonjs":"vxe-pc-ui","commonjs2":"vxe-pc-ui","amd":"vxe-pc-ui"}
|
|
1790
1790
|
var external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_ = __webpack_require__(2847);
|
|
1791
|
+
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_);
|
|
1791
1792
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1792
1793
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
1793
1794
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
@@ -1936,13 +1937,13 @@ function hasChildrenList(item) {
|
|
|
1936
1937
|
}
|
|
1937
1938
|
function getFuncText(content) {
|
|
1938
1939
|
if (content) {
|
|
1939
|
-
const translate =
|
|
1940
|
+
const translate = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig().translate;
|
|
1940
1941
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(translate ? translate('' + content) : content);
|
|
1941
1942
|
}
|
|
1942
1943
|
return '';
|
|
1943
1944
|
}
|
|
1944
1945
|
function formatText(value, placeholder) {
|
|
1945
|
-
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);
|
|
1946
1947
|
}
|
|
1947
1948
|
/**
|
|
1948
1949
|
* 判断值为:'' | null | undefined 时都属于空值
|
|
@@ -1955,6 +1956,11 @@ function eqEmptyValue(cellValue) {
|
|
|
1955
1956
|
|
|
1956
1957
|
|
|
1957
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;
|
|
1958
1964
|
class ColumnInfo {
|
|
1959
1965
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
1960
1966
|
constructor($xeTable, _vm, {
|
|
@@ -1969,16 +1975,16 @@ class ColumnInfo {
|
|
|
1969
1975
|
if (true) {
|
|
1970
1976
|
const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
|
|
1971
1977
|
if (_vm.type && types.indexOf(_vm.type) === -1) {
|
|
1972
|
-
|
|
1978
|
+
log.warn('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
|
|
1973
1979
|
}
|
|
1974
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)) {
|
|
1975
|
-
|
|
1981
|
+
log.warn('vxe.error.errProp', [`column.cell-render=${_vm.cellRender}`, 'column.cell-render={}']);
|
|
1976
1982
|
}
|
|
1977
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)) {
|
|
1978
|
-
|
|
1984
|
+
log.warn('vxe.error.errProp', [`column.edit-render=${_vm.editRender}`, 'column.edit-render={}']);
|
|
1979
1985
|
}
|
|
1980
1986
|
if (_vm.cellRender && _vm.editRender) {
|
|
1981
|
-
|
|
1987
|
+
log.warn('vxe.error.errConflicts', ['column.cell-render', 'column.edit-render']);
|
|
1982
1988
|
}
|
|
1983
1989
|
if (_vm.type === 'expand') {
|
|
1984
1990
|
const {
|
|
@@ -1992,19 +1998,19 @@ class ColumnInfo {
|
|
|
1992
1998
|
} = $xeTable.getComputeMaps();
|
|
1993
1999
|
const treeOpts = computeTreeOpts.value;
|
|
1994
2000
|
if (treeConfig && (treeOpts.showLine || treeOpts.line)) {
|
|
1995
|
-
|
|
2001
|
+
log.err('vxe.error.errConflicts', ['tree-config.showLine', 'column.type=expand']);
|
|
1996
2002
|
}
|
|
1997
2003
|
}
|
|
1998
2004
|
if (formatter) {
|
|
1999
2005
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
2000
|
-
const gFormatOpts =
|
|
2006
|
+
const gFormatOpts = formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
|
|
2001
2007
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2002
|
-
|
|
2008
|
+
log.err('vxe.error.notFormats', [formatter]);
|
|
2003
2009
|
}
|
|
2004
2010
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
2005
|
-
const gFormatOpts =
|
|
2011
|
+
const gFormatOpts = formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
|
|
2006
2012
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2007
|
-
|
|
2013
|
+
log.err('vxe.error.notFormats', [formatter[0]]);
|
|
2008
2014
|
}
|
|
2009
2015
|
}
|
|
2010
2016
|
}
|
|
@@ -2102,7 +2108,7 @@ class ColumnInfo {
|
|
|
2102
2108
|
}
|
|
2103
2109
|
}
|
|
2104
2110
|
getTitle() {
|
|
2105
|
-
return getFuncText(this.title || (this.type === 'seq' ?
|
|
2111
|
+
return getFuncText(this.title || (this.type === 'seq' ? getI18n('vxe.table.seqTitle') : ''));
|
|
2106
2112
|
}
|
|
2107
2113
|
getKey() {
|
|
2108
2114
|
return this.field || (this.type ? `type=${this.type}` : null);
|
|
@@ -2785,6 +2791,11 @@ function getSlotVNs(vns) {
|
|
|
2785
2791
|
|
|
2786
2792
|
|
|
2787
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;
|
|
2788
2799
|
function renderTitlePrefixIcon(params) {
|
|
2789
2800
|
const {
|
|
2790
2801
|
$table,
|
|
@@ -2792,7 +2803,7 @@ function renderTitlePrefixIcon(params) {
|
|
|
2792
2803
|
} = params;
|
|
2793
2804
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
2794
2805
|
return titlePrefix ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
2795
|
-
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon ||
|
|
2806
|
+
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || getIcon().TABLE_TITLE_PREFIX],
|
|
2796
2807
|
onMouseenter(evnt) {
|
|
2797
2808
|
$table.triggerHeaderTitleEvent(evnt, titlePrefix, params);
|
|
2798
2809
|
},
|
|
@@ -2808,7 +2819,7 @@ function renderTitleSuffixIcon(params) {
|
|
|
2808
2819
|
} = params;
|
|
2809
2820
|
const titleSuffix = column.titleSuffix;
|
|
2810
2821
|
return titleSuffix ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
2811
|
-
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon ||
|
|
2822
|
+
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX],
|
|
2812
2823
|
onMouseenter(evnt) {
|
|
2813
2824
|
$table.triggerHeaderTitleEvent(evnt, titleSuffix, params);
|
|
2814
2825
|
},
|
|
@@ -2892,7 +2903,7 @@ function getFooterContent(params) {
|
|
|
2892
2903
|
return $table.callSlot(footerSlot, params);
|
|
2893
2904
|
}
|
|
2894
2905
|
if (renderOpts) {
|
|
2895
|
-
const compConf =
|
|
2906
|
+
const compConf = renderer.get(renderOpts.name);
|
|
2896
2907
|
if (compConf && compConf.renderFooter) {
|
|
2897
2908
|
return getSlotVNs(compConf.renderFooter(renderOpts, params));
|
|
2898
2909
|
}
|
|
@@ -2997,7 +3008,7 @@ const Cell = {
|
|
|
2997
3008
|
return renderTitleContent(params, $table.callSlot(headerSlot, params));
|
|
2998
3009
|
}
|
|
2999
3010
|
if (renderOpts) {
|
|
3000
|
-
const compConf =
|
|
3011
|
+
const compConf = renderer.get(renderOpts.name);
|
|
3001
3012
|
if (compConf && compConf.renderHeader) {
|
|
3002
3013
|
return renderTitleContent(params, getSlotVNs(compConf.renderHeader(renderOpts, params)));
|
|
3003
3014
|
}
|
|
@@ -3025,7 +3036,7 @@ const Cell = {
|
|
|
3025
3036
|
}
|
|
3026
3037
|
if (renderOpts) {
|
|
3027
3038
|
const funName = editRender ? 'renderCell' : 'renderDefault';
|
|
3028
|
-
const compConf =
|
|
3039
|
+
const compConf = renderer.get(renderOpts.name);
|
|
3029
3040
|
const compFn = compConf ? compConf[funName] : null;
|
|
3030
3041
|
if (compFn) {
|
|
3031
3042
|
return getSlotVNs(compFn(renderOpts, Object.assign({
|
|
@@ -3123,7 +3134,7 @@ const Cell = {
|
|
|
3123
3134
|
class: 'vxe-tree--btn-wrapper',
|
|
3124
3135
|
...ons
|
|
3125
3136
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3126
|
-
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]
|
|
3127
3138
|
})])] : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
3128
3139
|
class: 'vxe-tree-cell'
|
|
3129
3140
|
}, cellVNodes)])];
|
|
@@ -3252,7 +3263,7 @@ const Cell = {
|
|
|
3252
3263
|
const radioVNs = [];
|
|
3253
3264
|
if (isVisible) {
|
|
3254
3265
|
radioVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3255
|
-
class: ['vxe-radio--icon', isChecked ?
|
|
3266
|
+
class: ['vxe-radio--icon', isChecked ? getIcon().TABLE_RADIO_CHECKED : getIcon().TABLE_RADIO_UNCHECKED]
|
|
3256
3267
|
}));
|
|
3257
3268
|
}
|
|
3258
3269
|
if (defaultSlot || labelField) {
|
|
@@ -3330,10 +3341,10 @@ const Cell = {
|
|
|
3330
3341
|
'is--disabled': isAllCheckboxDisabled,
|
|
3331
3342
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
3332
3343
|
}],
|
|
3333
|
-
title: (
|
|
3344
|
+
title: cell_getI18n('vxe.table.allTitle'),
|
|
3334
3345
|
...ons
|
|
3335
3346
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3336
|
-
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ?
|
|
3347
|
+
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllCheckboxSelected ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3337
3348
|
})].concat(titleSlot || headerTitle ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3338
3349
|
class: 'vxe-checkbox--label'
|
|
3339
3350
|
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : headerTitle)] : []))]);
|
|
@@ -3410,7 +3421,7 @@ const Cell = {
|
|
|
3410
3421
|
const checkVNs = [];
|
|
3411
3422
|
if (isVisible) {
|
|
3412
3423
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3413
|
-
class: ['vxe-checkbox--icon', indeterminate ?
|
|
3424
|
+
class: ['vxe-checkbox--icon', indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3414
3425
|
}));
|
|
3415
3426
|
}
|
|
3416
3427
|
if (defaultSlot || labelField) {
|
|
@@ -3504,7 +3515,7 @@ const Cell = {
|
|
|
3504
3515
|
const checkVNs = [];
|
|
3505
3516
|
if (isVisible) {
|
|
3506
3517
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3507
|
-
class: ['vxe-checkbox--icon', isIndeterminate ?
|
|
3518
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
3508
3519
|
}));
|
|
3509
3520
|
if (defaultSlot || labelField) {
|
|
3510
3521
|
checkVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
@@ -3581,7 +3592,7 @@ const Cell = {
|
|
|
3581
3592
|
$table.triggerRowExpandEvent(evnt, params);
|
|
3582
3593
|
}
|
|
3583
3594
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3584
|
-
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]
|
|
3585
3596
|
})]) : null, defaultSlot || labelField ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3586
3597
|
class: 'vxe-table--expand-label'
|
|
3587
3598
|
}, defaultSlot ? $table.callSlot(defaultSlot, params) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, labelField)) : null];
|
|
@@ -3600,7 +3611,7 @@ const Cell = {
|
|
|
3600
3611
|
return $table.callSlot(contentSlot, params);
|
|
3601
3612
|
}
|
|
3602
3613
|
if (contentRender) {
|
|
3603
|
-
const compConf =
|
|
3614
|
+
const compConf = renderer.get(contentRender.name);
|
|
3604
3615
|
if (compConf && compConf.renderExpand) {
|
|
3605
3616
|
return getSlotVNs(compConf.renderExpand(contentRender, params));
|
|
3606
3617
|
}
|
|
@@ -3664,19 +3675,19 @@ const Cell = {
|
|
|
3664
3675
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
3665
3676
|
class: ['vxe-cell--sort', `vxe-cell--sort-${iconLayout}-layout`]
|
|
3666
3677
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3667
|
-
class: ['vxe-sort--asc-btn', iconAsc ||
|
|
3678
|
+
class: ['vxe-sort--asc-btn', iconAsc || getIcon().TABLE_SORT_ASC, {
|
|
3668
3679
|
'sort--active': order === 'asc'
|
|
3669
3680
|
}],
|
|
3670
|
-
title: (
|
|
3681
|
+
title: cell_getI18n('vxe.table.sortAsc'),
|
|
3671
3682
|
onClick(evnt) {
|
|
3672
3683
|
evnt.stopPropagation();
|
|
3673
3684
|
$table.triggerSortEvent(evnt, column, 'asc');
|
|
3674
3685
|
}
|
|
3675
3686
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3676
|
-
class: ['vxe-sort--desc-btn', iconDesc ||
|
|
3687
|
+
class: ['vxe-sort--desc-btn', iconDesc || getIcon().TABLE_SORT_DESC, {
|
|
3677
3688
|
'sort--active': order === 'desc'
|
|
3678
3689
|
}],
|
|
3679
|
-
title: (
|
|
3690
|
+
title: cell_getI18n('vxe.table.sortDesc'),
|
|
3680
3691
|
onClick(evnt) {
|
|
3681
3692
|
evnt.stopPropagation();
|
|
3682
3693
|
$table.triggerSortEvent(evnt, column, 'desc');
|
|
@@ -3717,8 +3728,8 @@ const Cell = {
|
|
|
3717
3728
|
'is--active': filterStore.visible && filterStore.column === column
|
|
3718
3729
|
}]
|
|
3719
3730
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3720
|
-
class: ['vxe-filter--btn', hasFilter ? iconMatch ||
|
|
3721
|
-
title: (
|
|
3731
|
+
class: ['vxe-filter--btn', hasFilter ? iconMatch || getIcon().TABLE_FILTER_MATCH : iconNone || getIcon().TABLE_FILTER_NONE],
|
|
3732
|
+
title: cell_getI18n('vxe.table.filter'),
|
|
3722
3733
|
onClick(evnt) {
|
|
3723
3734
|
if ($table.triggerFilterEvent) {
|
|
3724
3735
|
$table.triggerFilterEvent(evnt, params.column, params);
|
|
@@ -3760,7 +3771,7 @@ const Cell = {
|
|
|
3760
3771
|
return (isEnableConf(editConfig) ? [isRequired && editOpts.showAsterisk ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3761
3772
|
class: 'vxe-cell--required-icon'
|
|
3762
3773
|
}) : null, isEnableConf(editRender) && editOpts.showIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
3763
|
-
class: ['vxe-cell--edit-icon', editOpts.icon ||
|
|
3774
|
+
class: ['vxe-cell--edit-icon', editOpts.icon || getIcon().TABLE_EDIT]
|
|
3764
3775
|
}) : null] : []).concat(Cell.renderDefaultHeader(params)).concat(sortable ? Cell.renderSortIcon(params) : []).concat(filters ? Cell.renderFilterIcon(params) : []);
|
|
3765
3776
|
},
|
|
3766
3777
|
// 行格编辑模式
|
|
@@ -3821,7 +3832,7 @@ const Cell = {
|
|
|
3821
3832
|
} = column;
|
|
3822
3833
|
const defaultSlot = slots ? slots.default : null;
|
|
3823
3834
|
const editSlot = slots ? slots.edit : null;
|
|
3824
|
-
const compConf =
|
|
3835
|
+
const compConf = renderer.get(editRender.name);
|
|
3825
3836
|
if (isEdit) {
|
|
3826
3837
|
if (editSlot) {
|
|
3827
3838
|
return $table.callSlot(editSlot, params);
|
|
@@ -4070,6 +4081,10 @@ const Colgroup = VxeColgroup;
|
|
|
4070
4081
|
|
|
4071
4082
|
|
|
4072
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;
|
|
4073
4088
|
const renderType = 'body';
|
|
4074
4089
|
const lineOffsetSizes = {
|
|
4075
4090
|
mini: 3,
|
|
@@ -4272,7 +4287,7 @@ const lineOffsetSizes = {
|
|
|
4272
4287
|
height: rowHeight
|
|
4273
4288
|
} = rowOpts;
|
|
4274
4289
|
const renderOpts = editRender || cellRender;
|
|
4275
|
-
const compConf = renderOpts ?
|
|
4290
|
+
const compConf = renderOpts ? body_renderer.get(renderOpts.name) : null;
|
|
4276
4291
|
const compCellClassName = compConf ? compConf.cellClassName : '';
|
|
4277
4292
|
const compCellStyle = compConf ? compConf.cellStyle : '';
|
|
4278
4293
|
const showAllTip = tooltipOpts.showAll;
|
|
@@ -5017,14 +5032,14 @@ const lineOffsetSizes = {
|
|
|
5017
5032
|
$grid: $xeTable.xegrid
|
|
5018
5033
|
});
|
|
5019
5034
|
} else {
|
|
5020
|
-
const compConf = emptyOpts.name ?
|
|
5035
|
+
const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
|
|
5021
5036
|
const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
5022
5037
|
if (renderTableEmptyView) {
|
|
5023
5038
|
emptyContent = getSlotVNs(renderTableEmptyView(emptyOpts, {
|
|
5024
5039
|
$table: $xeTable
|
|
5025
5040
|
}));
|
|
5026
5041
|
} else {
|
|
5027
|
-
emptyContent = tableProps.emptyText || (
|
|
5042
|
+
emptyContent = tableProps.emptyText || body_getI18n('vxe.table.emptyText');
|
|
5028
5043
|
}
|
|
5029
5044
|
}
|
|
5030
5045
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -5839,6 +5854,9 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5839
5854
|
}));
|
|
5840
5855
|
;// CONCATENATED MODULE: ./packages/table/src/props.ts
|
|
5841
5856
|
|
|
5857
|
+
const {
|
|
5858
|
+
getConfig
|
|
5859
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
5842
5860
|
/* harmony default export */ var props = ({
|
|
5843
5861
|
/** 基本属性 */
|
|
5844
5862
|
id: String,
|
|
@@ -5849,81 +5867,81 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5849
5867
|
// 表格的最小高度
|
|
5850
5868
|
minHeight: {
|
|
5851
5869
|
type: [Number, String],
|
|
5852
|
-
default: () =>
|
|
5870
|
+
default: () => getConfig().table.minHeight
|
|
5853
5871
|
},
|
|
5854
5872
|
// 表格的最大高度
|
|
5855
5873
|
maxHeight: [Number, String],
|
|
5856
5874
|
// 已废弃,被 column-config.resizable 替换
|
|
5857
5875
|
resizable: {
|
|
5858
5876
|
type: Boolean,
|
|
5859
|
-
default: () =>
|
|
5877
|
+
default: () => getConfig().table.resizable
|
|
5860
5878
|
},
|
|
5861
5879
|
// 是否带有斑马纹
|
|
5862
5880
|
stripe: {
|
|
5863
5881
|
type: Boolean,
|
|
5864
|
-
default: () =>
|
|
5882
|
+
default: () => getConfig().table.stripe
|
|
5865
5883
|
},
|
|
5866
5884
|
// 是否带有边框
|
|
5867
5885
|
border: {
|
|
5868
5886
|
type: [Boolean, String],
|
|
5869
|
-
default: () =>
|
|
5887
|
+
default: () => getConfig().table.border
|
|
5870
5888
|
},
|
|
5871
5889
|
// 是否圆角边框
|
|
5872
5890
|
round: {
|
|
5873
5891
|
type: Boolean,
|
|
5874
|
-
default: () =>
|
|
5892
|
+
default: () => getConfig().table.round
|
|
5875
5893
|
},
|
|
5876
5894
|
// 表格的尺寸
|
|
5877
5895
|
size: {
|
|
5878
5896
|
type: String,
|
|
5879
|
-
default: () =>
|
|
5897
|
+
default: () => getConfig().table.size || getConfig().size
|
|
5880
5898
|
},
|
|
5881
5899
|
// 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
|
|
5882
5900
|
fit: {
|
|
5883
5901
|
type: Boolean,
|
|
5884
|
-
default: () =>
|
|
5902
|
+
default: () => getConfig().table.fit
|
|
5885
5903
|
},
|
|
5886
5904
|
// 表格是否加载中
|
|
5887
5905
|
loading: Boolean,
|
|
5888
5906
|
// 所有的列对其方式
|
|
5889
5907
|
align: {
|
|
5890
5908
|
type: String,
|
|
5891
|
-
default: () =>
|
|
5909
|
+
default: () => getConfig().table.align
|
|
5892
5910
|
},
|
|
5893
5911
|
// 所有的表头列的对齐方式
|
|
5894
5912
|
headerAlign: {
|
|
5895
5913
|
type: String,
|
|
5896
|
-
default: () =>
|
|
5914
|
+
default: () => getConfig().table.headerAlign
|
|
5897
5915
|
},
|
|
5898
5916
|
// 所有的表尾列的对齐方式
|
|
5899
5917
|
footerAlign: {
|
|
5900
5918
|
type: String,
|
|
5901
|
-
default: () =>
|
|
5919
|
+
default: () => getConfig().table.footerAlign
|
|
5902
5920
|
},
|
|
5903
5921
|
// 是否显示表头
|
|
5904
5922
|
showHeader: {
|
|
5905
5923
|
type: Boolean,
|
|
5906
|
-
default: () =>
|
|
5924
|
+
default: () => getConfig().table.showHeader
|
|
5907
5925
|
},
|
|
5908
5926
|
// (即将废弃)是否要高亮当前选中行
|
|
5909
5927
|
highlightCurrentRow: {
|
|
5910
5928
|
type: Boolean,
|
|
5911
|
-
default: () =>
|
|
5929
|
+
default: () => getConfig().table.highlightCurrentRow
|
|
5912
5930
|
},
|
|
5913
5931
|
// (即将废弃)鼠标移到行是否要高亮显示
|
|
5914
5932
|
highlightHoverRow: {
|
|
5915
5933
|
type: Boolean,
|
|
5916
|
-
default: () =>
|
|
5934
|
+
default: () => getConfig().table.highlightHoverRow
|
|
5917
5935
|
},
|
|
5918
5936
|
// (即将废弃)是否要高亮当前选中列
|
|
5919
5937
|
highlightCurrentColumn: {
|
|
5920
5938
|
type: Boolean,
|
|
5921
|
-
default: () =>
|
|
5939
|
+
default: () => getConfig().table.highlightCurrentColumn
|
|
5922
5940
|
},
|
|
5923
5941
|
// (即将废弃)鼠标移到列是否要高亮显示
|
|
5924
5942
|
highlightHoverColumn: {
|
|
5925
5943
|
type: Boolean,
|
|
5926
|
-
default: () =>
|
|
5944
|
+
default: () => getConfig().table.highlightHoverColumn
|
|
5927
5945
|
},
|
|
5928
5946
|
// (即将废弃)激活单元格编辑时是否高亮显示
|
|
5929
5947
|
highlightCell: Boolean,
|
|
@@ -5968,17 +5986,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5968
5986
|
// 设置所有内容过长时显示为省略号
|
|
5969
5987
|
showOverflow: {
|
|
5970
5988
|
type: [Boolean, String],
|
|
5971
|
-
default: () =>
|
|
5989
|
+
default: () => getConfig().table.showOverflow
|
|
5972
5990
|
},
|
|
5973
5991
|
// 设置表头所有内容过长时显示为省略号
|
|
5974
5992
|
showHeaderOverflow: {
|
|
5975
5993
|
type: [Boolean, String],
|
|
5976
|
-
default: () =>
|
|
5994
|
+
default: () => getConfig().table.showHeaderOverflow
|
|
5977
5995
|
},
|
|
5978
5996
|
// 设置表尾所有内容过长时显示为省略号
|
|
5979
5997
|
showFooterOverflow: {
|
|
5980
5998
|
type: [Boolean, String],
|
|
5981
|
-
default: () =>
|
|
5999
|
+
default: () => getConfig().table.showFooterOverflow
|
|
5982
6000
|
},
|
|
5983
6001
|
/** 高级属性 */
|
|
5984
6002
|
// (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
|
|
@@ -5988,21 +6006,21 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
5988
6006
|
// (即将废弃)rowId 已废弃,被 row-config.keyField 替换
|
|
5989
6007
|
rowId: {
|
|
5990
6008
|
type: String,
|
|
5991
|
-
default: () =>
|
|
6009
|
+
default: () => getConfig().table.rowId
|
|
5992
6010
|
},
|
|
5993
6011
|
zIndex: Number,
|
|
5994
6012
|
emptyText: {
|
|
5995
6013
|
type: String,
|
|
5996
|
-
default: () =>
|
|
6014
|
+
default: () => getConfig().table.emptyText
|
|
5997
6015
|
},
|
|
5998
6016
|
keepSource: {
|
|
5999
6017
|
type: Boolean,
|
|
6000
|
-
default: () =>
|
|
6018
|
+
default: () => getConfig().table.keepSource
|
|
6001
6019
|
},
|
|
6002
6020
|
// 是否自动监听父容器变化去更新响应式表格宽高
|
|
6003
6021
|
autoResize: {
|
|
6004
6022
|
type: Boolean,
|
|
6005
|
-
default: () =>
|
|
6023
|
+
default: () => getConfig().table.autoResize
|
|
6006
6024
|
},
|
|
6007
6025
|
// 是否自动根据状态属性去更新响应式表格宽高
|
|
6008
6026
|
syncResize: [Boolean, String, Number],
|
|
@@ -6067,12 +6085,12 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6067
6085
|
// (即将废弃)优化相关
|
|
6068
6086
|
animat: {
|
|
6069
6087
|
type: Boolean,
|
|
6070
|
-
default: () =>
|
|
6088
|
+
default: () => getConfig().table.animat
|
|
6071
6089
|
},
|
|
6072
6090
|
// (可能会被废弃的参数,不要使用)
|
|
6073
6091
|
delayHover: {
|
|
6074
6092
|
type: Number,
|
|
6075
|
-
default: () =>
|
|
6093
|
+
default: () => getConfig().table.delayHover
|
|
6076
6094
|
},
|
|
6077
6095
|
// 额外的参数
|
|
6078
6096
|
params: Object
|
|
@@ -6086,6 +6104,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6086
6104
|
|
|
6087
6105
|
|
|
6088
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;
|
|
6089
6111
|
/* harmony default export */ var panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6090
6112
|
name: 'TableCustomPanel',
|
|
6091
6113
|
props: {
|
|
@@ -6144,7 +6166,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6144
6166
|
const resetPopupCustomEvent = evnt => {
|
|
6145
6167
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
6146
6168
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.confirm({
|
|
6147
|
-
content: (
|
|
6169
|
+
content: panel_getI18n('vxe.custom.cstmConfirmRestore'),
|
|
6148
6170
|
className: 'vxe-table--ignore-clear',
|
|
6149
6171
|
escClosable: true
|
|
6150
6172
|
}).then(type => {
|
|
@@ -6390,26 +6412,26 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6390
6412
|
}
|
|
6391
6413
|
}
|
|
6392
6414
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6393
|
-
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]
|
|
6394
6416
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6395
6417
|
class: 'vxe-checkbox--label'
|
|
6396
6418
|
}, colTitle)]), !parent && customOpts.allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6397
6419
|
class: 'vxe-table-custom--fixed-option'
|
|
6398
6420
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6399
|
-
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, {
|
|
6400
6422
|
'is--checked': column.fixed === 'left',
|
|
6401
6423
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
6402
6424
|
}],
|
|
6403
|
-
title: (
|
|
6425
|
+
title: panel_getI18n(column.fixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft'),
|
|
6404
6426
|
onClick: () => {
|
|
6405
6427
|
changeFixedOption(column, 'left');
|
|
6406
6428
|
}
|
|
6407
6429
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6408
|
-
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, {
|
|
6409
6431
|
'is--checked': column.fixed === 'right',
|
|
6410
6432
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
6411
6433
|
}],
|
|
6412
|
-
title: (
|
|
6434
|
+
title: panel_getI18n(column.fixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight'),
|
|
6413
6435
|
onClick: () => {
|
|
6414
6436
|
changeFixedOption(column, 'right');
|
|
6415
6437
|
}
|
|
@@ -6433,13 +6455,13 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6433
6455
|
'is--checked': isAllChecked,
|
|
6434
6456
|
'is--indeterminate': isAllIndeterminate
|
|
6435
6457
|
}],
|
|
6436
|
-
title: (
|
|
6458
|
+
title: panel_getI18n('vxe.table.allTitle'),
|
|
6437
6459
|
onClick: allCustomEvent
|
|
6438
6460
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6439
|
-
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]
|
|
6440
6462
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6441
6463
|
class: 'vxe-checkbox--label'
|
|
6442
|
-
}, (
|
|
6464
|
+
}, panel_getI18n('vxe.toolbar.customAll'))])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
6443
6465
|
class: 'vxe-table-custom--body',
|
|
6444
6466
|
style: maxHeight ? {
|
|
6445
6467
|
maxHeight: `${maxHeight}px`
|
|
@@ -6450,10 +6472,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6450
6472
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6451
6473
|
class: 'btn--reset',
|
|
6452
6474
|
onClick: resetCustomEvent
|
|
6453
|
-
}, customOpts.resetButtonText || (
|
|
6475
|
+
}, customOpts.resetButtonText || panel_getI18n('vxe.toolbar.customRestore')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6454
6476
|
class: 'btn--confirm',
|
|
6455
6477
|
onClick: confirmCustomEvent
|
|
6456
|
-
}, customOpts.confirmButtonText || (
|
|
6478
|
+
}, customOpts.confirmButtonText || panel_getI18n('vxe.toolbar.customConfirm'))]) : null]);
|
|
6457
6479
|
};
|
|
6458
6480
|
const renderPopupPanel = () => {
|
|
6459
6481
|
const {
|
|
@@ -6518,7 +6540,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6518
6540
|
}
|
|
6519
6541
|
}
|
|
6520
6542
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6521
|
-
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]
|
|
6522
6544
|
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6523
6545
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
6524
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'), {
|
|
@@ -6526,14 +6548,14 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6526
6548
|
type: 'button',
|
|
6527
6549
|
size: 'mini',
|
|
6528
6550
|
options: [{
|
|
6529
|
-
label: (
|
|
6551
|
+
label: panel_getI18n('vxe.custom.setting.fixedLeft'),
|
|
6530
6552
|
value: 'left',
|
|
6531
6553
|
disabled: isMaxFixedColumn
|
|
6532
6554
|
}, {
|
|
6533
|
-
label: (
|
|
6555
|
+
label: panel_getI18n('vxe.custom.setting.fixedUnset'),
|
|
6534
6556
|
value: ''
|
|
6535
6557
|
}, {
|
|
6536
|
-
label: (
|
|
6558
|
+
label: panel_getI18n('vxe.custom.setting.fixedRight'),
|
|
6537
6559
|
value: 'right',
|
|
6538
6560
|
disabled: isMaxFixedColumn
|
|
6539
6561
|
}],
|
|
@@ -6550,7 +6572,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6550
6572
|
key: 'popup',
|
|
6551
6573
|
className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
|
|
6552
6574
|
modelValue: customStore.visible,
|
|
6553
|
-
title: (
|
|
6575
|
+
title: panel_getI18n('vxe.custom.cstmTitle'),
|
|
6554
6576
|
width: '40vw',
|
|
6555
6577
|
minWidth: 520,
|
|
6556
6578
|
height: '50vh',
|
|
@@ -6585,16 +6607,16 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6585
6607
|
}
|
|
6586
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', {
|
|
6587
6609
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
6588
|
-
}, (
|
|
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'), {
|
|
6589
6611
|
enterable: true,
|
|
6590
|
-
content: (
|
|
6612
|
+
content: panel_getI18n('vxe.custom.setting.sortHelpTip')
|
|
6591
6613
|
}, {
|
|
6592
6614
|
default: () => {
|
|
6593
6615
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6594
6616
|
class: 'vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill'
|
|
6595
6617
|
});
|
|
6596
6618
|
}
|
|
6597
|
-
})]), (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, {
|
|
6598
6620
|
class: 'vxe-table-custom--body',
|
|
6599
6621
|
tag: 'tbody',
|
|
6600
6622
|
name: 'vxe-table-custom--list'
|
|
@@ -6603,20 +6625,20 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6603
6625
|
})])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6604
6626
|
ref: dragHintElemRef,
|
|
6605
6627
|
class: 'vxe-table-custom-popup--drag-hint'
|
|
6606
|
-
}, (
|
|
6628
|
+
}, panel_getI18n('vxe.custom.cstmDragTarget', [dragColumn.value ? dragColumn.value.getTitle() : '']))]);
|
|
6607
6629
|
},
|
|
6608
6630
|
footer: () => {
|
|
6609
6631
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6610
6632
|
class: 'vxe-table-custom-popup--footer'
|
|
6611
6633
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6612
|
-
content: customOpts.resetButtonText || (
|
|
6634
|
+
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmRestore'),
|
|
6613
6635
|
onClick: resetPopupCustomEvent
|
|
6614
6636
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6615
|
-
content: customOpts.resetButtonText || (
|
|
6637
|
+
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmCancel'),
|
|
6616
6638
|
onClick: cancelCustomEvent
|
|
6617
6639
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
6618
6640
|
status: 'primary',
|
|
6619
|
-
content: customOpts.confirmButtonText || (
|
|
6641
|
+
content: customOpts.confirmButtonText || panel_getI18n('vxe.custom.cstmConfirm'),
|
|
6620
6642
|
onClick: confirmCustomEvent
|
|
6621
6643
|
})]);
|
|
6622
6644
|
}
|
|
@@ -6638,6 +6660,11 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6638
6660
|
|
|
6639
6661
|
|
|
6640
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;
|
|
6641
6668
|
/* harmony default export */ var filter_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6642
6669
|
name: 'VxeTableFilterPanel',
|
|
6643
6670
|
props: {
|
|
@@ -6780,15 +6807,15 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6780
6807
|
'is--checked': isAllChecked,
|
|
6781
6808
|
'is--indeterminate': isAllIndeterminate
|
|
6782
6809
|
}],
|
|
6783
|
-
title: (
|
|
6810
|
+
title: filter_panel_getI18n(multiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter'),
|
|
6784
6811
|
onClick: evnt => {
|
|
6785
6812
|
changeAllOption(evnt, !filterStore.isAllSelected);
|
|
6786
6813
|
}
|
|
6787
6814
|
}, (multiple ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6788
|
-
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]
|
|
6789
6816
|
})] : []).concat([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6790
6817
|
class: 'vxe-checkbox--label'
|
|
6791
|
-
}, (
|
|
6818
|
+
}, filter_panel_getI18n('vxe.table.allFilter'))]))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
6792
6819
|
class: 'vxe-table--filter-body',
|
|
6793
6820
|
style: maxHeight ? {
|
|
6794
6821
|
maxHeight: `${maxHeight}px`
|
|
@@ -6805,7 +6832,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6805
6832
|
changeOption(evnt, !item._checked, item);
|
|
6806
6833
|
}
|
|
6807
6834
|
}, (multiple ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6808
|
-
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]
|
|
6809
6836
|
})] : []).concat([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6810
6837
|
class: 'vxe-checkbox--label'
|
|
6811
6838
|
}, formatText(item.label, 1))]));
|
|
@@ -6822,7 +6849,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6822
6849
|
const filterOpts = computeFilterOpts.value;
|
|
6823
6850
|
const hasCheckOption = computeHasCheckOption.value;
|
|
6824
6851
|
const filterRender = column.filterRender;
|
|
6825
|
-
const compConf = filterRender ?
|
|
6852
|
+
const compConf = filterRender ? panel_renderer.get(filterRender.name) : null;
|
|
6826
6853
|
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
6827
6854
|
return multiple && (!compConf || compConf.showFilterFooter !== false) ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6828
6855
|
class: 'vxe-table--filter-footer'
|
|
@@ -6832,9 +6859,9 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6832
6859
|
},
|
|
6833
6860
|
disabled: isDisabled,
|
|
6834
6861
|
onClick: confirmFilter
|
|
6835
|
-
}, filterOpts.confirmButtonText || (
|
|
6862
|
+
}, filterOpts.confirmButtonText || filter_panel_getI18n('vxe.table.confirmFilter')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
6836
6863
|
onClick: resetFilter
|
|
6837
|
-
}, filterOpts.resetButtonText || (
|
|
6864
|
+
}, filterOpts.resetButtonText || filter_panel_getI18n('vxe.table.resetFilter'))])] : [];
|
|
6838
6865
|
};
|
|
6839
6866
|
const renderVN = () => {
|
|
6840
6867
|
const {
|
|
@@ -6847,7 +6874,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6847
6874
|
column
|
|
6848
6875
|
} = filterStore;
|
|
6849
6876
|
const filterRender = column ? column.filterRender : null;
|
|
6850
|
-
const compConf = filterRender ?
|
|
6877
|
+
const compConf = filterRender ? panel_renderer.get(filterRender.name) : null;
|
|
6851
6878
|
const filterClassName = compConf ? compConf.filterClassName : '';
|
|
6852
6879
|
const params = Object.assign({}, tableInternalData._currFilterParams, {
|
|
6853
6880
|
$panel,
|
|
@@ -6870,6 +6897,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6870
6897
|
|
|
6871
6898
|
|
|
6872
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;
|
|
6873
6904
|
/* harmony default export */ var import_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
6874
6905
|
name: 'VxeTableImportPanel',
|
|
6875
6906
|
props: {
|
|
@@ -6907,7 +6938,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6907
6938
|
} = storeData;
|
|
6908
6939
|
if (type) {
|
|
6909
6940
|
const selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(typeList, item => type === item.value);
|
|
6910
|
-
return selectItem ? (
|
|
6941
|
+
return selectItem ? import_panel_getI18n(selectItem.label) : '*.*';
|
|
6911
6942
|
}
|
|
6912
6943
|
return `*.${typeList.map(item => item.value).join(', *.')}`;
|
|
6913
6944
|
});
|
|
@@ -6973,7 +7004,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6973
7004
|
const parseTypeLabel = computeParseTypeLabel.value;
|
|
6974
7005
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), {
|
|
6975
7006
|
modelValue: storeData.visible,
|
|
6976
|
-
title: (
|
|
7007
|
+
title: import_panel_getI18n('vxe.import.impTitle'),
|
|
6977
7008
|
className: 'vxe-table-import-popup-wrapper',
|
|
6978
7009
|
width: 440,
|
|
6979
7010
|
mask: true,
|
|
@@ -6994,17 +7025,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6994
7025
|
cellspacing: 0,
|
|
6995
7026
|
cellpadding: 0,
|
|
6996
7027
|
border: 0
|
|
6997
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
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', {
|
|
6998
7029
|
class: 'vxe-import-selected--file',
|
|
6999
7030
|
title: selectName
|
|
7000
7031
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', selectName), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
7001
|
-
class: (
|
|
7032
|
+
class: import_panel_getIcon().INPUT_CLEAR,
|
|
7002
7033
|
onClick: clearFileEvent
|
|
7003
7034
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
7004
7035
|
ref: refFileBtn,
|
|
7005
7036
|
class: 'vxe-import-select--file',
|
|
7006
7037
|
onClick: selectFileEvent
|
|
7007
|
-
}, (
|
|
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'), {
|
|
7008
7039
|
modelValue: defaultOptions.mode,
|
|
7009
7040
|
'onUpdate:modelValue'(value) {
|
|
7010
7041
|
defaultOptions.mode = value;
|
|
@@ -7012,17 +7043,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7012
7043
|
}, {
|
|
7013
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'), {
|
|
7014
7045
|
label: item.value,
|
|
7015
|
-
content: (
|
|
7046
|
+
content: import_panel_getI18n(item.label)
|
|
7016
7047
|
}))
|
|
7017
7048
|
})])])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7018
7049
|
class: 'vxe-export--panel-btns'
|
|
7019
7050
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7020
|
-
content: (
|
|
7051
|
+
content: import_panel_getI18n('vxe.import.impCancel'),
|
|
7021
7052
|
onClick: cancelEvent
|
|
7022
7053
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7023
7054
|
status: 'primary',
|
|
7024
7055
|
disabled: !hasFile,
|
|
7025
|
-
content: (
|
|
7056
|
+
content: import_panel_getI18n('vxe.import.impConfirm'),
|
|
7026
7057
|
onClick: importEvent
|
|
7027
7058
|
})])]);
|
|
7028
7059
|
}
|
|
@@ -7037,6 +7068,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7037
7068
|
|
|
7038
7069
|
|
|
7039
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;
|
|
7040
7075
|
/* harmony default export */ var export_panel = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
7041
7076
|
name: 'VxeTableExportPanel',
|
|
7042
7077
|
props: {
|
|
@@ -7241,14 +7276,14 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7241
7276
|
}
|
|
7242
7277
|
}
|
|
7243
7278
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7244
|
-
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]
|
|
7245
7280
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7246
7281
|
class: 'vxe-checkbox--label'
|
|
7247
7282
|
}, colTitle)]));
|
|
7248
7283
|
});
|
|
7249
7284
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), {
|
|
7250
7285
|
modelValue: storeData.visible,
|
|
7251
|
-
title: (
|
|
7286
|
+
title: export_panel_getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
7252
7287
|
className: 'vxe-table-export-popup-wrapper',
|
|
7253
7288
|
width: 660,
|
|
7254
7289
|
mask: true,
|
|
@@ -7269,47 +7304,47 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7269
7304
|
cellspacing: 0,
|
|
7270
7305
|
cellpadding: 0,
|
|
7271
7306
|
border: 0
|
|
7272
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [[isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
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'), {
|
|
7273
7308
|
ref: xInputFilename,
|
|
7274
7309
|
modelValue: defaultOptions.filename,
|
|
7275
7310
|
type: 'text',
|
|
7276
7311
|
clearable: true,
|
|
7277
|
-
placeholder: (
|
|
7312
|
+
placeholder: export_panel_getI18n('vxe.export.expNamePlaceholder'),
|
|
7278
7313
|
'onUpdate:modelValue'(value) {
|
|
7279
7314
|
defaultOptions.filename = value;
|
|
7280
7315
|
}
|
|
7281
|
-
})])]), isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
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'), {
|
|
7282
7317
|
modelValue: defaultOptions.type,
|
|
7283
7318
|
options: storeData.typeList.map(item => {
|
|
7284
7319
|
return {
|
|
7285
7320
|
value: item.value,
|
|
7286
|
-
label: (
|
|
7321
|
+
label: export_panel_getI18n(item.label)
|
|
7287
7322
|
};
|
|
7288
7323
|
}),
|
|
7289
7324
|
'onUpdate:modelValue'(value) {
|
|
7290
7325
|
defaultOptions.type = value;
|
|
7291
7326
|
}
|
|
7292
|
-
})])]), 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'), {
|
|
7293
7328
|
ref: xInputSheetname,
|
|
7294
7329
|
modelValue: defaultOptions.sheetName,
|
|
7295
7330
|
type: 'text',
|
|
7296
7331
|
clearable: true,
|
|
7297
|
-
placeholder: (
|
|
7332
|
+
placeholder: export_panel_getI18n('vxe.export.expSheetNamePlaceholder'),
|
|
7298
7333
|
'onUpdate:modelValue'(value) {
|
|
7299
7334
|
defaultOptions.sheetName = value;
|
|
7300
7335
|
}
|
|
7301
|
-
})])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
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'), {
|
|
7302
7337
|
modelValue: defaultOptions.mode,
|
|
7303
7338
|
options: storeData.modeList.map(item => {
|
|
7304
7339
|
return {
|
|
7305
7340
|
value: item.value,
|
|
7306
|
-
label: (
|
|
7341
|
+
label: export_panel_getI18n(item.label)
|
|
7307
7342
|
};
|
|
7308
7343
|
}),
|
|
7309
7344
|
'onUpdate:modelValue'(value) {
|
|
7310
7345
|
defaultOptions.mode = value;
|
|
7311
7346
|
}
|
|
7312
|
-
})])]), (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', {
|
|
7313
7348
|
class: 'vxe-export--panel-column'
|
|
7314
7349
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
7315
7350
|
class: 'vxe-export--panel-column-header'
|
|
@@ -7318,35 +7353,35 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7318
7353
|
'is--checked': isAllChecked,
|
|
7319
7354
|
'is--indeterminate': isAllIndeterminate
|
|
7320
7355
|
}],
|
|
7321
|
-
title: (
|
|
7356
|
+
title: export_panel_getI18n('vxe.table.allTitle'),
|
|
7322
7357
|
onClick: allColumnEvent
|
|
7323
7358
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7324
|
-
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]
|
|
7325
7360
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7326
7361
|
class: 'vxe-checkbox--label'
|
|
7327
|
-
}, (
|
|
7362
|
+
}, export_panel_getI18n('vxe.export.expCurrentColumn'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
7328
7363
|
class: 'vxe-export--panel-column-body'
|
|
7329
|
-
}, cols)])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', (
|
|
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', {
|
|
7330
7365
|
class: 'vxe-export--panel-option-row'
|
|
7331
7366
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7332
7367
|
modelValue: defaultOptions.isHeader,
|
|
7333
|
-
title: (
|
|
7334
|
-
content: (
|
|
7368
|
+
title: export_panel_getI18n('vxe.export.expHeaderTitle'),
|
|
7369
|
+
content: export_panel_getI18n('vxe.export.expOptHeader'),
|
|
7335
7370
|
'onUpdate:modelValue'(value) {
|
|
7336
7371
|
defaultOptions.isHeader = value;
|
|
7337
7372
|
}
|
|
7338
7373
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7339
7374
|
modelValue: defaultOptions.isFooter,
|
|
7340
7375
|
disabled: !storeData.hasFooter,
|
|
7341
|
-
title: (
|
|
7342
|
-
content: (
|
|
7376
|
+
title: export_panel_getI18n('vxe.export.expFooterTitle'),
|
|
7377
|
+
content: export_panel_getI18n('vxe.export.expOptFooter'),
|
|
7343
7378
|
'onUpdate:modelValue'(value) {
|
|
7344
7379
|
defaultOptions.isFooter = value;
|
|
7345
7380
|
}
|
|
7346
7381
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7347
7382
|
modelValue: defaultOptions.original,
|
|
7348
|
-
title: (
|
|
7349
|
-
content: (
|
|
7383
|
+
title: export_panel_getI18n('vxe.export.expOriginalTitle'),
|
|
7384
|
+
content: export_panel_getI18n('vxe.export.expOptOriginal'),
|
|
7350
7385
|
'onUpdate:modelValue'(value) {
|
|
7351
7386
|
defaultOptions.original = value;
|
|
7352
7387
|
}
|
|
@@ -7354,45 +7389,45 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7354
7389
|
class: 'vxe-export--panel-option-row'
|
|
7355
7390
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7356
7391
|
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
7357
|
-
title: (
|
|
7392
|
+
title: export_panel_getI18n('vxe.export.expColgroupTitle'),
|
|
7358
7393
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
7359
|
-
content: (
|
|
7394
|
+
content: export_panel_getI18n('vxe.export.expOptColgroup'),
|
|
7360
7395
|
'onUpdate:modelValue'(value) {
|
|
7361
7396
|
defaultOptions.isColgroup = value;
|
|
7362
7397
|
}
|
|
7363
7398
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7364
7399
|
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
7365
|
-
title: (
|
|
7400
|
+
title: export_panel_getI18n('vxe.export.expMergeTitle'),
|
|
7366
7401
|
disabled: !hasMerge || !supportMerge || !checkedAll,
|
|
7367
|
-
content: (
|
|
7402
|
+
content: export_panel_getI18n('vxe.export.expOptMerge'),
|
|
7368
7403
|
'onUpdate:modelValue'(value) {
|
|
7369
7404
|
defaultOptions.isMerge = value;
|
|
7370
7405
|
}
|
|
7371
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'), {
|
|
7372
7407
|
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
7373
7408
|
disabled: !supportStyle,
|
|
7374
|
-
title: (
|
|
7375
|
-
content: (
|
|
7409
|
+
title: export_panel_getI18n('vxe.export.expUseStyleTitle'),
|
|
7410
|
+
content: export_panel_getI18n('vxe.export.expOptUseStyle'),
|
|
7376
7411
|
'onUpdate:modelValue'(value) {
|
|
7377
7412
|
defaultOptions.useStyle = value;
|
|
7378
7413
|
}
|
|
7379
7414
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-checkbox'), {
|
|
7380
7415
|
modelValue: hasTree ? defaultOptions.isAllExpand : false,
|
|
7381
7416
|
disabled: !hasTree,
|
|
7382
|
-
title: (
|
|
7383
|
-
content: (
|
|
7417
|
+
title: export_panel_getI18n('vxe.export.expAllExpandTitle'),
|
|
7418
|
+
content: export_panel_getI18n('vxe.export.expOptAllExpand'),
|
|
7384
7419
|
'onUpdate:modelValue'(value) {
|
|
7385
7420
|
defaultOptions.isAllExpand = value;
|
|
7386
7421
|
}
|
|
7387
7422
|
})])])])]])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7388
7423
|
class: 'vxe-export--panel-btns'
|
|
7389
7424
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7390
|
-
content: (
|
|
7425
|
+
content: export_panel_getI18n('vxe.export.expCancel'),
|
|
7391
7426
|
onClick: cancelEvent
|
|
7392
7427
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
7393
7428
|
ref: xButtonConfirm,
|
|
7394
7429
|
status: 'primary',
|
|
7395
|
-
content: (
|
|
7430
|
+
content: export_panel_getI18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm'),
|
|
7396
7431
|
onClick: confirmEvent
|
|
7397
7432
|
})])]);
|
|
7398
7433
|
}
|
|
@@ -7527,6 +7562,20 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7527
7562
|
|
|
7528
7563
|
|
|
7529
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;
|
|
7530
7579
|
const isWebkit = browse['-webkit'] && !browse.edge;
|
|
7531
7580
|
const resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH';
|
|
7532
7581
|
const visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
@@ -7544,7 +7593,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7544
7593
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
7545
7594
|
const {
|
|
7546
7595
|
computeSize
|
|
7547
|
-
} =
|
|
7596
|
+
} = useFns.useSize(props);
|
|
7548
7597
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
7549
7598
|
// 低性能的静态列
|
|
7550
7599
|
staticColumns: [],
|
|
@@ -7853,13 +7902,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7853
7902
|
const $xeGrid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeGrid', null);
|
|
7854
7903
|
let $xeToolbar;
|
|
7855
7904
|
const computeValidOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7856
|
-
return Object.assign({}, (
|
|
7905
|
+
return Object.assign({}, table_getConfig().table.validConfig, props.validConfig);
|
|
7857
7906
|
});
|
|
7858
7907
|
const computeSXOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7859
|
-
return Object.assign({}, (
|
|
7908
|
+
return Object.assign({}, table_getConfig().table.scrollX, props.scrollX);
|
|
7860
7909
|
});
|
|
7861
7910
|
const computeSYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7862
|
-
return Object.assign({}, (
|
|
7911
|
+
return Object.assign({}, table_getConfig().table.scrollY, props.scrollY);
|
|
7863
7912
|
});
|
|
7864
7913
|
const computeRowHeightMaps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7865
7914
|
return {
|
|
@@ -7870,31 +7919,31 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7870
7919
|
};
|
|
7871
7920
|
});
|
|
7872
7921
|
const computeColumnOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7873
|
-
return Object.assign({}, (
|
|
7922
|
+
return Object.assign({}, table_getConfig().table.columnConfig, props.columnConfig);
|
|
7874
7923
|
});
|
|
7875
7924
|
const computeRowOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7876
|
-
return Object.assign({}, (
|
|
7925
|
+
return Object.assign({}, table_getConfig().table.rowConfig, props.rowConfig);
|
|
7877
7926
|
});
|
|
7878
7927
|
const computeResizeleOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7879
|
-
return Object.assign({}, (
|
|
7928
|
+
return Object.assign({}, table_getConfig().table.resizeConfig, props.resizeConfig);
|
|
7880
7929
|
});
|
|
7881
7930
|
const computeResizableOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7882
|
-
return Object.assign({}, (
|
|
7931
|
+
return Object.assign({}, table_getConfig().table.resizableConfig, props.resizableConfig);
|
|
7883
7932
|
});
|
|
7884
7933
|
const computeSeqOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7885
7934
|
return Object.assign({
|
|
7886
7935
|
startIndex: 0
|
|
7887
|
-
}, (
|
|
7936
|
+
}, table_getConfig().table.seqConfig, props.seqConfig);
|
|
7888
7937
|
});
|
|
7889
7938
|
const computeRadioOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7890
|
-
return Object.assign({}, (
|
|
7939
|
+
return Object.assign({}, table_getConfig().table.radioConfig, props.radioConfig);
|
|
7891
7940
|
});
|
|
7892
7941
|
const computeCheckboxOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7893
|
-
return Object.assign({}, (
|
|
7942
|
+
return Object.assign({}, table_getConfig().table.checkboxConfig, props.checkboxConfig);
|
|
7894
7943
|
});
|
|
7895
7944
|
let computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
7896
7945
|
computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7897
|
-
return Object.assign({}, (
|
|
7946
|
+
return Object.assign({}, table_getConfig().tooltip, table_getConfig().table.tooltipConfig, props.tooltipConfig);
|
|
7898
7947
|
});
|
|
7899
7948
|
const computeTipConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7900
7949
|
const tooltipOpts = computeTooltipOpts.value;
|
|
@@ -7909,33 +7958,33 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7909
7958
|
}, tooltipOpts);
|
|
7910
7959
|
});
|
|
7911
7960
|
const computeEditOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7912
|
-
return Object.assign({}, (
|
|
7961
|
+
return Object.assign({}, table_getConfig().table.editConfig, props.editConfig);
|
|
7913
7962
|
});
|
|
7914
7963
|
const computeSortOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7915
7964
|
return Object.assign({
|
|
7916
7965
|
orders: ['asc', 'desc', null]
|
|
7917
|
-
}, (
|
|
7966
|
+
}, table_getConfig().table.sortConfig, props.sortConfig);
|
|
7918
7967
|
});
|
|
7919
7968
|
const computeFilterOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7920
|
-
return Object.assign({}, (
|
|
7969
|
+
return Object.assign({}, table_getConfig().table.filterConfig, props.filterConfig);
|
|
7921
7970
|
});
|
|
7922
7971
|
const computeMouseOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7923
|
-
return Object.assign({}, (
|
|
7972
|
+
return Object.assign({}, table_getConfig().table.mouseConfig, props.mouseConfig);
|
|
7924
7973
|
});
|
|
7925
7974
|
const computeAreaOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7926
|
-
return Object.assign({}, (
|
|
7975
|
+
return Object.assign({}, table_getConfig().table.areaConfig, props.areaConfig);
|
|
7927
7976
|
});
|
|
7928
7977
|
const computeKeyboardOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7929
|
-
return Object.assign({}, (
|
|
7978
|
+
return Object.assign({}, table_getConfig().table.keyboardConfig, props.keyboardConfig);
|
|
7930
7979
|
});
|
|
7931
7980
|
const computeClipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7932
|
-
return Object.assign({}, (
|
|
7981
|
+
return Object.assign({}, table_getConfig().table.clipConfig, props.clipConfig);
|
|
7933
7982
|
});
|
|
7934
7983
|
const computeFNROpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7935
|
-
return Object.assign({}, (
|
|
7984
|
+
return Object.assign({}, table_getConfig().table.fnrConfig, props.fnrConfig);
|
|
7936
7985
|
});
|
|
7937
7986
|
const computeMenuOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7938
|
-
return Object.assign({}, (
|
|
7987
|
+
return Object.assign({}, table_getConfig().table.menuConfig, props.menuConfig);
|
|
7939
7988
|
});
|
|
7940
7989
|
const computeHeaderMenu = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7941
7990
|
const menuOpts = computeMenuOpts.value;
|
|
@@ -7972,31 +8021,31 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
7972
8021
|
return rest;
|
|
7973
8022
|
});
|
|
7974
8023
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7975
|
-
return Object.assign({}, (
|
|
8024
|
+
return Object.assign({}, table_getConfig().table.exportConfig, props.exportConfig);
|
|
7976
8025
|
});
|
|
7977
8026
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7978
|
-
return Object.assign({}, (
|
|
8027
|
+
return Object.assign({}, table_getConfig().table.importConfig, props.importConfig);
|
|
7979
8028
|
});
|
|
7980
8029
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7981
|
-
return Object.assign({}, (
|
|
8030
|
+
return Object.assign({}, table_getConfig().table.printConfig, props.printConfig);
|
|
7982
8031
|
});
|
|
7983
8032
|
const computeExpandOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7984
|
-
return Object.assign({}, (
|
|
8033
|
+
return Object.assign({}, table_getConfig().table.expandConfig, props.expandConfig);
|
|
7985
8034
|
});
|
|
7986
8035
|
const computeTreeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7987
|
-
return Object.assign({}, (
|
|
8036
|
+
return Object.assign({}, table_getConfig().table.treeConfig, props.treeConfig);
|
|
7988
8037
|
});
|
|
7989
8038
|
const computeEmptyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7990
|
-
return Object.assign({}, (
|
|
8039
|
+
return Object.assign({}, table_getConfig().table.emptyRender, props.emptyRender);
|
|
7991
8040
|
});
|
|
7992
8041
|
const computeLoadingOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7993
|
-
return Object.assign({}, (
|
|
8042
|
+
return Object.assign({}, table_getConfig().table.loadingConfig, props.loadingConfig);
|
|
7994
8043
|
});
|
|
7995
8044
|
const computeCellOffsetWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7996
8045
|
return props.border ? Math.max(2, Math.ceil(reactData.scrollbarWidth / reactData.tableColumn.length)) : 1;
|
|
7997
8046
|
});
|
|
7998
8047
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7999
|
-
return Object.assign({}, (
|
|
8048
|
+
return Object.assign({}, table_getConfig().table.customConfig, props.customConfig);
|
|
8000
8049
|
});
|
|
8001
8050
|
const computeFixedColumnSize = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8002
8051
|
const {
|
|
@@ -8155,7 +8204,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8155
8204
|
return orders[oIndex < orders.length ? oIndex : 0];
|
|
8156
8205
|
};
|
|
8157
8206
|
const getCustomStorageMap = key => {
|
|
8158
|
-
const version = (
|
|
8207
|
+
const version = table_getConfig().version;
|
|
8159
8208
|
const rest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringJSON(localStorage.getItem(key) || '');
|
|
8160
8209
|
return rest && rest._v === version ? rest : {
|
|
8161
8210
|
_v: version
|
|
@@ -8286,7 +8335,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8286
8335
|
merges = [merges];
|
|
8287
8336
|
}
|
|
8288
8337
|
if (treeConfig && merges.length) {
|
|
8289
|
-
|
|
8338
|
+
table_log.err('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8290
8339
|
}
|
|
8291
8340
|
merges.forEach(item => {
|
|
8292
8341
|
let {
|
|
@@ -8344,7 +8393,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8344
8393
|
merges = [merges];
|
|
8345
8394
|
}
|
|
8346
8395
|
if (treeConfig && merges.length) {
|
|
8347
|
-
|
|
8396
|
+
table_log.err('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8348
8397
|
}
|
|
8349
8398
|
merges.forEach(item => {
|
|
8350
8399
|
let {
|
|
@@ -8416,7 +8465,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8416
8465
|
if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
8417
8466
|
const customMap = {};
|
|
8418
8467
|
if (!id) {
|
|
8419
|
-
|
|
8468
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
8420
8469
|
return;
|
|
8421
8470
|
}
|
|
8422
8471
|
// 自定义列宽
|
|
@@ -8573,7 +8622,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8573
8622
|
if (field) {
|
|
8574
8623
|
if (true) {
|
|
8575
8624
|
if (fullColumnFieldData[field]) {
|
|
8576
|
-
|
|
8625
|
+
table_log.warn('vxe.error.colRepet', ['field', field]);
|
|
8577
8626
|
}
|
|
8578
8627
|
}
|
|
8579
8628
|
fullColumnFieldData[field] = rest;
|
|
@@ -8587,7 +8636,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8587
8636
|
if (treeNode) {
|
|
8588
8637
|
if (true) {
|
|
8589
8638
|
if (treeNodeColumn) {
|
|
8590
|
-
|
|
8639
|
+
table_log.warn('vxe.error.colRepet', ['tree-node', treeNode]);
|
|
8591
8640
|
}
|
|
8592
8641
|
}
|
|
8593
8642
|
if (!treeNodeColumn) {
|
|
@@ -8596,7 +8645,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8596
8645
|
} else if (type === 'expand') {
|
|
8597
8646
|
if (true) {
|
|
8598
8647
|
if (expandColumn) {
|
|
8599
|
-
|
|
8648
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8600
8649
|
}
|
|
8601
8650
|
}
|
|
8602
8651
|
if (!expandColumn) {
|
|
@@ -8606,14 +8655,14 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8606
8655
|
if (true) {
|
|
8607
8656
|
if (type === 'checkbox') {
|
|
8608
8657
|
if (checkboxColumn) {
|
|
8609
|
-
|
|
8658
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8610
8659
|
}
|
|
8611
8660
|
if (!checkboxColumn) {
|
|
8612
8661
|
checkboxColumn = column;
|
|
8613
8662
|
}
|
|
8614
8663
|
} else if (type === 'radio') {
|
|
8615
8664
|
if (radioColumn) {
|
|
8616
|
-
|
|
8665
|
+
table_log.warn('vxe.error.colRepet', ['type', type]);
|
|
8617
8666
|
}
|
|
8618
8667
|
if (!radioColumn) {
|
|
8619
8668
|
radioColumn = column;
|
|
@@ -8624,7 +8673,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8624
8673
|
isAllOverflow = false;
|
|
8625
8674
|
}
|
|
8626
8675
|
if (fullColumnIdData[colid]) {
|
|
8627
|
-
|
|
8676
|
+
table_log.err('vxe.error.colRepet', ['colId', colid]);
|
|
8628
8677
|
}
|
|
8629
8678
|
fullColumnIdData[colid] = rest;
|
|
8630
8679
|
};
|
|
@@ -8638,16 +8687,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8638
8687
|
}
|
|
8639
8688
|
if (true) {
|
|
8640
8689
|
if (expandColumn && mouseOpts.area) {
|
|
8641
|
-
|
|
8690
|
+
table_log.err('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
8642
8691
|
}
|
|
8643
8692
|
}
|
|
8644
8693
|
if (true) {
|
|
8645
8694
|
if (htmlColumn) {
|
|
8646
8695
|
if (!columnOpts.useKey) {
|
|
8647
|
-
|
|
8696
|
+
table_log.err('vxe.error.reqProp', ['column-config.useKey', 'column.type=html']);
|
|
8648
8697
|
}
|
|
8649
8698
|
if (!rowOpts.useKey) {
|
|
8650
|
-
|
|
8699
|
+
table_log.err('vxe.error.reqProp', ['row-config.useKey', 'column.type=html']);
|
|
8651
8700
|
}
|
|
8652
8701
|
}
|
|
8653
8702
|
}
|
|
@@ -9022,7 +9071,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9022
9071
|
filterMethod,
|
|
9023
9072
|
filterRender
|
|
9024
9073
|
} = column;
|
|
9025
|
-
const compConf = filterRender ?
|
|
9074
|
+
const compConf = filterRender ? table_renderer.get(filterRender.name) : null;
|
|
9026
9075
|
const compFilterMethod = compConf ? compConf.filterMethod : null;
|
|
9027
9076
|
const defaultFilterMethod = compConf ? compConf.defaultFilterMethod : null;
|
|
9028
9077
|
const cellValue = getCellValue(row, column);
|
|
@@ -10074,19 +10123,19 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10074
10123
|
// 树结构自动转换
|
|
10075
10124
|
if (true) {
|
|
10076
10125
|
if (!treeOpts.rowField) {
|
|
10077
|
-
|
|
10126
|
+
table_log.err('vxe.error.reqProp', ['tree-config.rowField']);
|
|
10078
10127
|
}
|
|
10079
10128
|
if (!treeOpts.parentField) {
|
|
10080
|
-
|
|
10129
|
+
table_log.err('vxe.error.reqProp', ['tree-config.parentField']);
|
|
10081
10130
|
}
|
|
10082
10131
|
if (!childrenField) {
|
|
10083
|
-
|
|
10132
|
+
table_log.err('vxe.error.reqProp', ['tree-config.childrenField']);
|
|
10084
10133
|
}
|
|
10085
10134
|
if (!treeOpts.mapChildrenField) {
|
|
10086
|
-
|
|
10135
|
+
table_log.err('vxe.error.reqProp', ['tree-config.mapChildrenField']);
|
|
10087
10136
|
}
|
|
10088
10137
|
if (childrenField === treeOpts.mapChildrenField) {
|
|
10089
|
-
|
|
10138
|
+
table_log.err('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
|
|
10090
10139
|
}
|
|
10091
10140
|
// fullData.forEach(row => {
|
|
10092
10141
|
// if (row[treeOpts.children] && row[treeOpts.children].length) {
|
|
@@ -10128,13 +10177,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10128
10177
|
if (true) {
|
|
10129
10178
|
if (sYLoad) {
|
|
10130
10179
|
if (!(props.height || props.maxHeight)) {
|
|
10131
|
-
|
|
10180
|
+
table_log.err('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
|
|
10132
10181
|
}
|
|
10133
10182
|
if (!props.showOverflow) {
|
|
10134
|
-
|
|
10183
|
+
table_log.warn('vxe.error.reqProp', ['table.show-overflow']);
|
|
10135
10184
|
}
|
|
10136
10185
|
if (props.spanMethod) {
|
|
10137
|
-
|
|
10186
|
+
table_log.warn('vxe.error.scrollErrProp', ['table.span-method']);
|
|
10138
10187
|
}
|
|
10139
10188
|
}
|
|
10140
10189
|
}
|
|
@@ -10290,7 +10339,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10290
10339
|
column.fixed = parent.fixed;
|
|
10291
10340
|
}
|
|
10292
10341
|
if (parent && column.fixed !== parent.fixed) {
|
|
10293
|
-
|
|
10342
|
+
table_log.err('vxe.error.groupFixed');
|
|
10294
10343
|
}
|
|
10295
10344
|
if (isColGroup) {
|
|
10296
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);
|
|
@@ -10348,10 +10397,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10348
10397
|
// log.warn('vxe.error.reqProp', ['show-footer-overflow'])
|
|
10349
10398
|
// }
|
|
10350
10399
|
if (props.spanMethod) {
|
|
10351
|
-
|
|
10400
|
+
table_log.warn('vxe.error.scrollErrProp', ['span-method']);
|
|
10352
10401
|
}
|
|
10353
10402
|
if (props.footerSpanMethod) {
|
|
10354
|
-
|
|
10403
|
+
table_log.warn('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
10355
10404
|
}
|
|
10356
10405
|
}
|
|
10357
10406
|
const {
|
|
@@ -10411,7 +10460,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10411
10460
|
tablePrivateMethods.handleTableData(true);
|
|
10412
10461
|
if (true) {
|
|
10413
10462
|
if ((reactData.scrollXLoad || reactData.scrollYLoad) && reactData.expandColumn) {
|
|
10414
|
-
|
|
10463
|
+
table_log.warn('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
10415
10464
|
}
|
|
10416
10465
|
}
|
|
10417
10466
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -10614,7 +10663,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10614
10663
|
let keyCtxTimeout;
|
|
10615
10664
|
tableMethods = {
|
|
10616
10665
|
dispatchEvent(type, params, evnt) {
|
|
10617
|
-
emit(type,
|
|
10666
|
+
emit(type, createEvent(evnt, {
|
|
10618
10667
|
$table: $xeTable,
|
|
10619
10668
|
$grid: $xeGrid
|
|
10620
10669
|
}, params));
|
|
@@ -10631,7 +10680,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10631
10680
|
* 对于某些特殊的场景,比如深层树节点元素发生变动时可能会用到
|
|
10632
10681
|
*/
|
|
10633
10682
|
syncData() {
|
|
10634
|
-
|
|
10683
|
+
table_log.warn('vxe.error.delFunc', ['syncData', 'getData']);
|
|
10635
10684
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
10636
10685
|
reactData.tableData = [];
|
|
10637
10686
|
emit('update:data', internalData.tableFullData);
|
|
@@ -10755,7 +10804,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10755
10804
|
reactData.tableData = tableData.slice(0);
|
|
10756
10805
|
} else {
|
|
10757
10806
|
if (true) {
|
|
10758
|
-
|
|
10807
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
10759
10808
|
}
|
|
10760
10809
|
}
|
|
10761
10810
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -10965,7 +11014,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10965
11014
|
} = internalData;
|
|
10966
11015
|
if (!keepSource) {
|
|
10967
11016
|
if (true) {
|
|
10968
|
-
|
|
11017
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
10969
11018
|
}
|
|
10970
11019
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
10971
11020
|
}
|
|
@@ -11263,7 +11312,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
11263
11312
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
11264
11313
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
11265
11314
|
status: 'error',
|
|
11266
|
-
content: (
|
|
11315
|
+
content: table_getI18n('vxe.table.maxFixedCol', [maxFixedSize])
|
|
11267
11316
|
});
|
|
11268
11317
|
}
|
|
11269
11318
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -12096,7 +12145,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12096
12145
|
},
|
|
12097
12146
|
reloadExpandContent(row) {
|
|
12098
12147
|
if (true) {
|
|
12099
|
-
|
|
12148
|
+
table_log.warn('vxe.error.delFunc', ['reloadExpandContent', 'reloadRowExpand']);
|
|
12100
12149
|
}
|
|
12101
12150
|
// 即将废弃
|
|
12102
12151
|
return tableMethods.reloadRowExpand(row);
|
|
@@ -12220,7 +12269,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12220
12269
|
isExpandByRow(row) {
|
|
12221
12270
|
// 已废弃
|
|
12222
12271
|
if (true) {
|
|
12223
|
-
|
|
12272
|
+
table_log.warn('vxe.error.delFunc', ['isExpandByRow', 'isRowExpandByRow']);
|
|
12224
12273
|
}
|
|
12225
12274
|
return tableMethods.isRowExpandByRow(row);
|
|
12226
12275
|
},
|
|
@@ -12336,7 +12385,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12336
12385
|
},
|
|
12337
12386
|
reloadTreeChilds(row) {
|
|
12338
12387
|
if (true) {
|
|
12339
|
-
|
|
12388
|
+
table_log.warn('vxe.error.delFunc', ['reloadTreeChilds', 'reloadTreeExpand']);
|
|
12340
12389
|
}
|
|
12341
12390
|
// 即将废弃
|
|
12342
12391
|
return tableMethods.reloadTreeExpand(row);
|
|
@@ -12639,7 +12688,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12639
12688
|
*/
|
|
12640
12689
|
setMergeCells(merges) {
|
|
12641
12690
|
if (props.spanMethod) {
|
|
12642
|
-
|
|
12691
|
+
table_log.err('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
12643
12692
|
}
|
|
12644
12693
|
setMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
12645
12694
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12653,7 +12702,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12653
12702
|
*/
|
|
12654
12703
|
removeMergeCells(merges) {
|
|
12655
12704
|
if (props.spanMethod) {
|
|
12656
|
-
|
|
12705
|
+
table_log.err('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
12657
12706
|
}
|
|
12658
12707
|
const rest = removeMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
12659
12708
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12679,7 +12728,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12679
12728
|
},
|
|
12680
12729
|
setMergeFooterItems(merges) {
|
|
12681
12730
|
if (props.footerSpanMethod) {
|
|
12682
|
-
|
|
12731
|
+
table_log.err('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
12683
12732
|
}
|
|
12684
12733
|
setMerges(merges, reactData.mergeFooterList);
|
|
12685
12734
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12689,7 +12738,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12689
12738
|
},
|
|
12690
12739
|
removeMergeFooterItems(merges) {
|
|
12691
12740
|
if (props.footerSpanMethod) {
|
|
12692
|
-
|
|
12741
|
+
table_log.err('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
12693
12742
|
}
|
|
12694
12743
|
const rest = removeMerges(merges, reactData.mergeFooterList);
|
|
12695
12744
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -12743,7 +12792,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12743
12792
|
$table: $xeTable
|
|
12744
12793
|
});
|
|
12745
12794
|
} else {
|
|
12746
|
-
|
|
12795
|
+
table_log.err('vxe.error.barUnableLink');
|
|
12747
12796
|
}
|
|
12748
12797
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
12749
12798
|
}
|
|
@@ -12916,7 +12965,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12916
12965
|
const {
|
|
12917
12966
|
actived
|
|
12918
12967
|
} = editStore;
|
|
12919
|
-
const isEsc =
|
|
12968
|
+
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
12920
12969
|
if (isEsc) {
|
|
12921
12970
|
tablePrivateMethods.preventEvent(evnt, 'event.keydown', null, () => {
|
|
12922
12971
|
tableMethods.dispatchEvent('keydown-start', {}, evnt);
|
|
@@ -12979,18 +13028,18 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12979
13028
|
} = editStore;
|
|
12980
13029
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
12981
13030
|
const keyCode = evnt.keyCode;
|
|
12982
|
-
const isEsc =
|
|
12983
|
-
const isBack =
|
|
12984
|
-
const isTab =
|
|
12985
|
-
const isEnter =
|
|
12986
|
-
const isSpacebar =
|
|
12987
|
-
const isLeftArrow =
|
|
12988
|
-
const isUpArrow =
|
|
12989
|
-
const isRightArrow =
|
|
12990
|
-
const isDwArrow =
|
|
12991
|
-
const isDel =
|
|
12992
|
-
const isF2 =
|
|
12993
|
-
const isContextMenu =
|
|
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);
|
|
12994
13043
|
const hasMetaKey = evnt.metaKey;
|
|
12995
13044
|
const hasCtrlKey = evnt.ctrlKey;
|
|
12996
13045
|
const hasShiftKey = evnt.shiftKey;
|
|
@@ -13356,7 +13405,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13356
13405
|
*/
|
|
13357
13406
|
tablePrivateMethods = {
|
|
13358
13407
|
getSetupOptions() {
|
|
13359
|
-
return (
|
|
13408
|
+
return table_getConfig();
|
|
13360
13409
|
},
|
|
13361
13410
|
updateAfterDataIndex,
|
|
13362
13411
|
callSlot(slotFunc, params) {
|
|
@@ -13644,7 +13693,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13644
13693
|
const columnWidthStorageMap = getCustomStorageMap(resizableStorageKey);
|
|
13645
13694
|
let columnWidthStorage;
|
|
13646
13695
|
if (!id) {
|
|
13647
|
-
|
|
13696
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13648
13697
|
return;
|
|
13649
13698
|
}
|
|
13650
13699
|
if (!isReset) {
|
|
@@ -13681,7 +13730,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13681
13730
|
const columnSortStorageMap = getCustomStorageMap(sortStorageKey);
|
|
13682
13731
|
let columnWidthStorage;
|
|
13683
13732
|
if (!id) {
|
|
13684
|
-
|
|
13733
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13685
13734
|
return;
|
|
13686
13735
|
}
|
|
13687
13736
|
if (!isReset) {
|
|
@@ -13719,7 +13768,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13719
13768
|
const columnFixedStorageMap = getCustomStorageMap(fixedStorageKey);
|
|
13720
13769
|
const colFixeds = [];
|
|
13721
13770
|
if (!id) {
|
|
13722
|
-
|
|
13771
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13723
13772
|
return;
|
|
13724
13773
|
}
|
|
13725
13774
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -13755,7 +13804,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13755
13804
|
const colHides = [];
|
|
13756
13805
|
const colShows = [];
|
|
13757
13806
|
if (!id) {
|
|
13758
|
-
|
|
13807
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
13759
13808
|
return;
|
|
13760
13809
|
}
|
|
13761
13810
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -13804,13 +13853,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13804
13853
|
reactData.reColumnFlag++;
|
|
13805
13854
|
},
|
|
13806
13855
|
preventEvent(evnt, type, args, next, end) {
|
|
13807
|
-
let evntList =
|
|
13856
|
+
let evntList = interceptor.get(type);
|
|
13808
13857
|
// 兼容老版本
|
|
13809
13858
|
if (!evntList.length && type === 'event.clearEdit') {
|
|
13810
|
-
evntList =
|
|
13859
|
+
evntList = interceptor.get('event.clearActived');
|
|
13811
13860
|
if (true) {
|
|
13812
13861
|
if (evntList.length) {
|
|
13813
|
-
|
|
13862
|
+
table_log.warn('vxe.error.delEvent', ['event.clearActived', 'event.clearEdit']);
|
|
13814
13863
|
}
|
|
13815
13864
|
}
|
|
13816
13865
|
}
|
|
@@ -14896,10 +14945,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14896
14945
|
columnIndex: tableMethods.getColumnIndex(column)
|
|
14897
14946
|
};
|
|
14898
14947
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
14899
|
-
const gFormatOpts =
|
|
14948
|
+
const gFormatOpts = table_formats.get(formatter);
|
|
14900
14949
|
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams) : '';
|
|
14901
14950
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
14902
|
-
const gFormatOpts =
|
|
14951
|
+
const gFormatOpts = table_formats.get(formatter[0]);
|
|
14903
14952
|
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams, ...formatter.slice(1)) : '';
|
|
14904
14953
|
} else {
|
|
14905
14954
|
cellLabel = formatter(formatParams);
|
|
@@ -14930,12 +14979,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14930
14979
|
if (true) {
|
|
14931
14980
|
'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
|
|
14932
14981
|
$xeTable[name] = function () {
|
|
14933
|
-
|
|
14982
|
+
table_log.err('vxe.error.reqModule', ['VxeTableExportModule']);
|
|
14934
14983
|
};
|
|
14935
14984
|
});
|
|
14936
14985
|
'clearValidate,fullValidate,validate'.split(',').forEach(name => {
|
|
14937
14986
|
$xeTable[name] = function () {
|
|
14938
|
-
|
|
14987
|
+
table_log.err('vxe.error.reqModule', ['VxeTableValidatorModule']);
|
|
14939
14988
|
};
|
|
14940
14989
|
});
|
|
14941
14990
|
}
|
|
@@ -14992,13 +15041,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14992
15041
|
if (slots.empty) {
|
|
14993
15042
|
return slots.empty(params);
|
|
14994
15043
|
} else {
|
|
14995
|
-
const compConf = emptyOpts.name ?
|
|
15044
|
+
const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
|
|
14996
15045
|
const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
14997
15046
|
if (renderTableEmptyView) {
|
|
14998
15047
|
return getSlotVNs(renderTableEmptyView(emptyOpts, params));
|
|
14999
15048
|
}
|
|
15000
15049
|
}
|
|
15001
|
-
return getFuncText(props.emptyText) || (
|
|
15050
|
+
return getFuncText(props.emptyText) || table_getI18n('vxe.table.emptyText');
|
|
15002
15051
|
};
|
|
15003
15052
|
function handleUupdateResize() {
|
|
15004
15053
|
const el = refElem.value;
|
|
@@ -15039,7 +15088,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15039
15088
|
// log.warn('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
15040
15089
|
// }
|
|
15041
15090
|
if ((scrollXLoad || scrollYLoad) && expandColumn) {
|
|
15042
|
-
|
|
15091
|
+
table_log.warn('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
15043
15092
|
}
|
|
15044
15093
|
}
|
|
15045
15094
|
tableMethods.recalculate();
|
|
@@ -15140,7 +15189,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15140
15189
|
}
|
|
15141
15190
|
});
|
|
15142
15191
|
});
|
|
15143
|
-
|
|
15192
|
+
hooks.forEach(options => {
|
|
15144
15193
|
const {
|
|
15145
15194
|
setupTable
|
|
15146
15195
|
} = options;
|
|
@@ -15187,28 +15236,28 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15187
15236
|
const rowOpts = computeRowOpts.value;
|
|
15188
15237
|
if (true) {
|
|
15189
15238
|
if (props.rowId) {
|
|
15190
|
-
|
|
15239
|
+
table_log.warn('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
15191
15240
|
}
|
|
15192
15241
|
if (props.rowKey) {
|
|
15193
|
-
|
|
15242
|
+
table_log.warn('vxe.error.delProp', ['row-key', 'row-config.useKey']);
|
|
15194
15243
|
}
|
|
15195
15244
|
if (props.columnKey) {
|
|
15196
|
-
|
|
15245
|
+
table_log.warn('vxe.error.delProp', ['column-id', 'column-config.useKey']);
|
|
15197
15246
|
}
|
|
15198
15247
|
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
15199
|
-
|
|
15248
|
+
table_log.warn('vxe.error.reqProp', ['row-config.keyField']);
|
|
15200
15249
|
}
|
|
15201
15250
|
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
15202
|
-
|
|
15251
|
+
table_log.warn('vxe.error.reqProp', ['keep-source']);
|
|
15203
15252
|
}
|
|
15204
15253
|
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
15205
|
-
|
|
15254
|
+
table_log.warn('vxe.error.reqProp', ['row-config.useKey | show-overflow']);
|
|
15206
15255
|
}
|
|
15207
15256
|
if (treeConfig && props.stripe) {
|
|
15208
|
-
|
|
15257
|
+
table_log.warn('vxe.error.noTree', ['stripe']);
|
|
15209
15258
|
}
|
|
15210
15259
|
if (props.showFooter && !(props.footerMethod || props.footerData)) {
|
|
15211
|
-
|
|
15260
|
+
table_log.warn('vxe.error.reqProp', ['footer-data | footer-method']);
|
|
15212
15261
|
}
|
|
15213
15262
|
// if (props.highlightCurrentRow) {
|
|
15214
15263
|
// log.warn('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
@@ -15230,10 +15279,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15230
15279
|
const exportOpts = computeExportOpts.value;
|
|
15231
15280
|
const importOpts = computeImportOpts.value;
|
|
15232
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)) {
|
|
15233
|
-
|
|
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(',')]);
|
|
15234
15283
|
}
|
|
15235
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)) {
|
|
15236
|
-
|
|
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(',')]);
|
|
15237
15286
|
}
|
|
15238
15287
|
}
|
|
15239
15288
|
if (true) {
|
|
@@ -15241,64 +15290,64 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15241
15290
|
const mouseOpts = computeMouseOpts.value;
|
|
15242
15291
|
const rowOpts = computeRowOpts.value;
|
|
15243
15292
|
if (!props.id && props.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
|
|
15244
|
-
|
|
15293
|
+
table_log.err('vxe.error.reqProp', ['id']);
|
|
15245
15294
|
}
|
|
15246
15295
|
if (props.treeConfig && checkboxOpts.range) {
|
|
15247
|
-
|
|
15296
|
+
table_log.err('vxe.error.noTree', ['checkbox-config.range']);
|
|
15248
15297
|
}
|
|
15249
15298
|
if (rowOpts.height && !props.showOverflow) {
|
|
15250
|
-
|
|
15299
|
+
table_log.warn('vxe.error.notProp', ['table.show-overflow']);
|
|
15251
15300
|
}
|
|
15252
15301
|
if (!$xeTable.handleUpdateCellAreas) {
|
|
15253
15302
|
if (props.clipConfig) {
|
|
15254
|
-
|
|
15303
|
+
table_log.warn('vxe.error.notProp', ['clip-config']);
|
|
15255
15304
|
}
|
|
15256
15305
|
if (props.fnrConfig) {
|
|
15257
|
-
|
|
15306
|
+
table_log.warn('vxe.error.notProp', ['fnr-config']);
|
|
15258
15307
|
}
|
|
15259
15308
|
if (mouseOpts.area) {
|
|
15260
|
-
|
|
15309
|
+
table_log.err('vxe.error.notProp', ['mouse-config.area']);
|
|
15261
15310
|
return;
|
|
15262
15311
|
}
|
|
15263
15312
|
}
|
|
15264
15313
|
if (props.treeConfig && treeOpts.children) {
|
|
15265
|
-
|
|
15314
|
+
table_log.warn('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
15266
15315
|
}
|
|
15267
15316
|
if (props.treeConfig && treeOpts.line) {
|
|
15268
|
-
|
|
15317
|
+
table_log.warn('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine']);
|
|
15269
15318
|
}
|
|
15270
15319
|
if (mouseOpts.area && mouseOpts.selected) {
|
|
15271
|
-
|
|
15320
|
+
table_log.warn('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
15272
15321
|
}
|
|
15273
15322
|
if (mouseOpts.area && checkboxOpts.range) {
|
|
15274
|
-
|
|
15323
|
+
table_log.warn('vxe.error.errConflicts', ['mouse-config.area', 'checkbox-config.range']);
|
|
15275
15324
|
}
|
|
15276
15325
|
if (props.treeConfig && mouseOpts.area) {
|
|
15277
|
-
|
|
15326
|
+
table_log.err('vxe.error.noTree', ['mouse-config.area']);
|
|
15278
15327
|
}
|
|
15279
15328
|
if (props.editConfig && editOpts.activeMethod) {
|
|
15280
|
-
|
|
15329
|
+
table_log.warn('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod']);
|
|
15281
15330
|
}
|
|
15282
15331
|
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
15283
|
-
|
|
15332
|
+
table_log.err('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
15284
15333
|
}
|
|
15285
15334
|
if (checkboxOpts.halfField) {
|
|
15286
|
-
|
|
15335
|
+
table_log.warn('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
15287
15336
|
}
|
|
15288
15337
|
}
|
|
15289
15338
|
// 检查是否有安装需要的模块
|
|
15290
15339
|
if (true) {
|
|
15291
15340
|
if (props.editConfig && !$xeTable.insert) {
|
|
15292
|
-
|
|
15341
|
+
table_log.err('vxe.error.reqModule', ['Edit']);
|
|
15293
15342
|
}
|
|
15294
15343
|
if (props.editRules && !$xeTable.validate) {
|
|
15295
|
-
|
|
15344
|
+
table_log.err('vxe.error.reqModule', ['Validator']);
|
|
15296
15345
|
}
|
|
15297
15346
|
if ((checkboxOpts.range || props.keyboardConfig || props.mouseConfig) && !$xeTable.triggerCellMousedownEvent) {
|
|
15298
|
-
|
|
15347
|
+
table_log.err('vxe.error.reqModule', ['Keyboard']);
|
|
15299
15348
|
}
|
|
15300
15349
|
if ((props.printConfig || props.importConfig || props.exportConfig) && !$xeTable.exportData) {
|
|
15301
|
-
|
|
15350
|
+
table_log.err('vxe.error.reqModule', ['Export']);
|
|
15302
15351
|
}
|
|
15303
15352
|
}
|
|
15304
15353
|
Object.assign(scrollYStore, {
|
|
@@ -15332,7 +15381,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15332
15381
|
leading: true,
|
|
15333
15382
|
trailing: true
|
|
15334
15383
|
}) : null;
|
|
15335
|
-
resizeObserver =
|
|
15384
|
+
resizeObserver = globalResize.create(handleOptimizeResize ? () => {
|
|
15336
15385
|
if (props.autoResize) {
|
|
15337
15386
|
requestAnimationFrame(handleOptimizeResize);
|
|
15338
15387
|
}
|
|
@@ -15349,16 +15398,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15349
15398
|
}
|
|
15350
15399
|
}
|
|
15351
15400
|
});
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
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);
|
|
15360
15409
|
if ($xeTable.handleGlobalContextmenuEvent) {
|
|
15361
|
-
|
|
15410
|
+
globalEvents.on($xeTable, 'contextmenu', $xeTable.handleGlobalContextmenuEvent);
|
|
15362
15411
|
}
|
|
15363
15412
|
tablePrivateMethods.preventEvent(null, 'mounted', {
|
|
15364
15413
|
$table: $xeTable
|
|
@@ -15377,15 +15426,15 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15377
15426
|
});
|
|
15378
15427
|
});
|
|
15379
15428
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
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');
|
|
15389
15438
|
tablePrivateMethods.preventEvent(null, 'unmounted', {
|
|
15390
15439
|
$table: $xeTable
|
|
15391
15440
|
});
|
|
@@ -15443,7 +15492,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15443
15492
|
[`size--${vSize}`]: vSize,
|
|
15444
15493
|
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
15445
15494
|
'vxe-editable': !!editConfig,
|
|
15446
|
-
'old-cell-valid': editRules && (
|
|
15495
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete',
|
|
15447
15496
|
'cell--highlight': highlightCell,
|
|
15448
15497
|
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
15449
15498
|
'cell--area': mouseConfig && mouseOpts.area,
|
|
@@ -15606,7 +15655,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15606
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'), {
|
|
15607
15656
|
ref: refValidTooltip,
|
|
15608
15657
|
class: [{
|
|
15609
|
-
'old-cell-valid': editRules && (
|
|
15658
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete'
|
|
15610
15659
|
}, 'vxe-table--valid-error'],
|
|
15611
15660
|
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {})
|
|
15612
15661
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
|
|
@@ -15627,8 +15676,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15627
15676
|
|
|
15628
15677
|
|
|
15629
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;
|
|
15630
15683
|
const tableFilterMethodKeys = ['setFilter', 'clearFilter', 'getCheckedFilters'];
|
|
15631
|
-
|
|
15684
|
+
hook_hooks.add('tableFilterModule', {
|
|
15632
15685
|
setupTable($xeTable) {
|
|
15633
15686
|
const {
|
|
15634
15687
|
props,
|
|
@@ -15680,7 +15733,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15680
15733
|
filterMultiple,
|
|
15681
15734
|
filterRender
|
|
15682
15735
|
} = column;
|
|
15683
|
-
const compConf = filterRender ?
|
|
15736
|
+
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
15684
15737
|
const filterRecoverMethod = column.filterRecoverMethod || (compConf ? compConf.filterRecoverMethod : null);
|
|
15685
15738
|
internalData._currFilterParams = params;
|
|
15686
15739
|
Object.assign(filterStore, {
|
|
@@ -15775,7 +15828,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15775
15828
|
filterRender
|
|
15776
15829
|
} = column;
|
|
15777
15830
|
if (filters) {
|
|
15778
|
-
const compConf = filterRender ?
|
|
15831
|
+
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
15779
15832
|
const filterResetMethod = column.filterResetMethod || (compConf ? compConf.filterResetMethod : null);
|
|
15780
15833
|
filters.forEach(item => {
|
|
15781
15834
|
item._checked = false;
|
|
@@ -15992,8 +16045,14 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
15992
16045
|
|
|
15993
16046
|
|
|
15994
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;
|
|
15995
16054
|
const tableMenuMethodKeys = ['closeMenu'];
|
|
15996
|
-
|
|
16055
|
+
menu_hook_hooks.add('tableMenuModule', {
|
|
15997
16056
|
setupTable($xeTable) {
|
|
15998
16057
|
const {
|
|
15999
16058
|
xID,
|
|
@@ -16135,7 +16194,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16135
16194
|
ctxMenuStore.showChild = false;
|
|
16136
16195
|
ctxMenuStore.selectChild = null;
|
|
16137
16196
|
}
|
|
16138
|
-
} else if (
|
|
16197
|
+
} else if (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ARROW_UP)) {
|
|
16139
16198
|
for (let len = selectIndex - 1; len >= 0; len--) {
|
|
16140
16199
|
if (menuList[len].visible !== false) {
|
|
16141
16200
|
selectItem = menuList[len];
|
|
@@ -16143,7 +16202,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16143
16202
|
}
|
|
16144
16203
|
}
|
|
16145
16204
|
ctxMenuStore[property] = selectItem || menuList[menuList.length - 1];
|
|
16146
|
-
} else if (
|
|
16205
|
+
} else if (hook_globalEvents.hasKey(evnt, hook_GLOBAL_EVENT_KEYS.ARROW_DOWN)) {
|
|
16147
16206
|
for (let index = selectIndex + 1; index < menuList.length; index++) {
|
|
16148
16207
|
if (menuList[index].visible !== false) {
|
|
16149
16208
|
selectItem = menuList[index];
|
|
@@ -16151,7 +16210,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16151
16210
|
}
|
|
16152
16211
|
}
|
|
16153
16212
|
ctxMenuStore[property] = selectItem || menuList[0];
|
|
16154
|
-
} 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))) {
|
|
16155
16214
|
menuPrivateMethods.ctxMenuLinkEvent(evnt, ctxMenuStore[property]);
|
|
16156
16215
|
}
|
|
16157
16216
|
},
|
|
@@ -16327,7 +16386,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16327
16386
|
ctxMenuLinkEvent(evnt, menu) {
|
|
16328
16387
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
16329
16388
|
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
16330
|
-
const gMenuOpts =
|
|
16389
|
+
const gMenuOpts = menus.get(menu.code);
|
|
16331
16390
|
const params = Object.assign({}, internalData._currMenuParams, {
|
|
16332
16391
|
menu,
|
|
16333
16392
|
$table: $xeTable,
|
|
@@ -16359,8 +16418,15 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16359
16418
|
|
|
16360
16419
|
|
|
16361
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;
|
|
16362
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'];
|
|
16363
|
-
|
|
16429
|
+
edit_hook_hooks.add('tableEditModule', {
|
|
16364
16430
|
setupTable($xeTable) {
|
|
16365
16431
|
const {
|
|
16366
16432
|
props,
|
|
@@ -16482,7 +16548,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16482
16548
|
} else {
|
|
16483
16549
|
if (true) {
|
|
16484
16550
|
if (parentRowId) {
|
|
16485
|
-
|
|
16551
|
+
hook_log.warn('vxe.error.unableInsert');
|
|
16486
16552
|
}
|
|
16487
16553
|
}
|
|
16488
16554
|
afterFullData[funcName](item);
|
|
@@ -16586,7 +16652,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16586
16652
|
if (true) {
|
|
16587
16653
|
if (item[treeOpts.parentField]) {
|
|
16588
16654
|
if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
|
|
16589
|
-
|
|
16655
|
+
hook_log.err('vxe.error.errProp', [`${treeOpts.parentField}=${item[treeOpts.parentField]}`, `${treeOpts.parentField}=${parentRow[rowField]}`]);
|
|
16590
16656
|
}
|
|
16591
16657
|
}
|
|
16592
16658
|
}
|
|
@@ -16628,13 +16694,13 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16628
16694
|
}
|
|
16629
16695
|
} else {
|
|
16630
16696
|
if (true) {
|
|
16631
|
-
|
|
16697
|
+
hook_log.warn('vxe.error.unableInsert');
|
|
16632
16698
|
}
|
|
16633
16699
|
insertTreeRow(newRecords, true);
|
|
16634
16700
|
}
|
|
16635
16701
|
} else {
|
|
16636
16702
|
if (treeConfig) {
|
|
16637
|
-
throw new Error((
|
|
16703
|
+
throw new Error(hook_getI18n('vxe.error.noTree', ['insert']));
|
|
16638
16704
|
}
|
|
16639
16705
|
let afIndex = -1;
|
|
16640
16706
|
// 如果是可视索引
|
|
@@ -16650,7 +16716,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16650
16716
|
afIndex = Math.min(afterFullData.length, afIndex + 1);
|
|
16651
16717
|
}
|
|
16652
16718
|
if (afIndex === -1) {
|
|
16653
|
-
throw new Error(
|
|
16719
|
+
throw new Error(hook_log.err('vxe.error.unableInsert'));
|
|
16654
16720
|
}
|
|
16655
16721
|
afterFullData.splice(afIndex, 0, ...newRecords);
|
|
16656
16722
|
tableFullData.splice($xeTable.findRowIndexOf(tableFullData, row), 0, ...newRecords);
|
|
@@ -16969,7 +17035,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
16969
17035
|
},
|
|
16970
17036
|
getActiveRecord() {
|
|
16971
17037
|
if (true) {
|
|
16972
|
-
|
|
17038
|
+
hook_log.warn('vxe.error.delFunc', ['getActiveRecord', 'getEditRecord']);
|
|
16973
17039
|
}
|
|
16974
17040
|
return this.getEditRecord();
|
|
16975
17041
|
},
|
|
@@ -17009,7 +17075,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17009
17075
|
clearActived(evnt) {
|
|
17010
17076
|
// 即将废弃
|
|
17011
17077
|
if (true) {
|
|
17012
|
-
|
|
17078
|
+
hook_log.warn('vxe.error.delFunc', ['clearActived', 'clearEdit']);
|
|
17013
17079
|
}
|
|
17014
17080
|
return this.clearEdit(evnt);
|
|
17015
17081
|
},
|
|
@@ -17043,7 +17109,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17043
17109
|
$columnIndex: $xeTable.getVMColumnIndex(column)
|
|
17044
17110
|
}, evnt || null);
|
|
17045
17111
|
}
|
|
17046
|
-
if ((
|
|
17112
|
+
if (hook_getConfig().cellVaildMode === 'obsolete') {
|
|
17047
17113
|
if ($xeTable.clearValidate) {
|
|
17048
17114
|
return $xeTable.clearValidate();
|
|
17049
17115
|
}
|
|
@@ -17069,7 +17135,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17069
17135
|
},
|
|
17070
17136
|
isActiveByRow(row) {
|
|
17071
17137
|
if (true) {
|
|
17072
|
-
|
|
17138
|
+
hook_log.warn('vxe.error.delFunc', ['isActiveByRow', 'isEditByRow']);
|
|
17073
17139
|
}
|
|
17074
17140
|
// 即将废弃
|
|
17075
17141
|
return this.isEditByRow(row);
|
|
@@ -17086,7 +17152,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17086
17152
|
},
|
|
17087
17153
|
setActiveRow(row) {
|
|
17088
17154
|
if (true) {
|
|
17089
|
-
|
|
17155
|
+
hook_log.warn('vxe.error.delFunc', ['setActiveRow', 'setEditRow']);
|
|
17090
17156
|
}
|
|
17091
17157
|
// 即将废弃
|
|
17092
17158
|
return editMethods.setEditRow(row);
|
|
@@ -17106,7 +17172,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17106
17172
|
},
|
|
17107
17173
|
setActiveCell(row, fieldOrColumn) {
|
|
17108
17174
|
if (true) {
|
|
17109
|
-
|
|
17175
|
+
hook_log.warn('vxe.error.delFunc', ['setActiveCell', 'setEditCell']);
|
|
17110
17176
|
}
|
|
17111
17177
|
// 即将废弃
|
|
17112
17178
|
return editMethods.setEditCell(row, fieldOrColumn);
|
|
@@ -17307,7 +17373,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17307
17373
|
editRender
|
|
17308
17374
|
} = column;
|
|
17309
17375
|
if (isEnableConf(editRender)) {
|
|
17310
|
-
const compRender =
|
|
17376
|
+
const compRender = edit_hook_renderer.get(editRender.name);
|
|
17311
17377
|
let {
|
|
17312
17378
|
autofocus,
|
|
17313
17379
|
autoselect
|
|
@@ -17442,6 +17508,12 @@ function createHtmlPage(opts, content) {
|
|
|
17442
17508
|
|
|
17443
17509
|
|
|
17444
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;
|
|
17445
17517
|
let htmlCellElem;
|
|
17446
17518
|
const csvBOM = '\ufeff';
|
|
17447
17519
|
const enterSymbol = '\r\n';
|
|
@@ -17702,7 +17774,7 @@ function checkImportData(columns, fields) {
|
|
|
17702
17774
|
return fields.some(field => tableFields.indexOf(field) > -1);
|
|
17703
17775
|
}
|
|
17704
17776
|
const tableExportMethodKeys = ['exportData', 'importByFile', 'importData', 'saveFile', 'readFile', 'print', 'openImport', 'openExport', 'openPrint'];
|
|
17705
|
-
|
|
17777
|
+
export_hook_hooks.add('tableExportModule', {
|
|
17706
17778
|
setupTable($xeTable) {
|
|
17707
17779
|
const {
|
|
17708
17780
|
props,
|
|
@@ -17789,7 +17861,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17789
17861
|
const renderOpts = column.editRender || column.cellRender;
|
|
17790
17862
|
let bodyExportMethod = column.exportMethod;
|
|
17791
17863
|
if (!bodyExportMethod && renderOpts && renderOpts.name) {
|
|
17792
|
-
const compConf =
|
|
17864
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17793
17865
|
if (compConf) {
|
|
17794
17866
|
bodyExportMethod = compConf.exportMethod;
|
|
17795
17867
|
}
|
|
@@ -17859,7 +17931,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17859
17931
|
const renderOpts = column.editRender || column.cellRender;
|
|
17860
17932
|
let exportLabelMethod = column.exportMethod;
|
|
17861
17933
|
if (!exportLabelMethod && renderOpts && renderOpts.name) {
|
|
17862
|
-
const compConf =
|
|
17934
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17863
17935
|
if (compConf) {
|
|
17864
17936
|
exportLabelMethod = compConf.exportMethod;
|
|
17865
17937
|
}
|
|
@@ -17931,7 +18003,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
17931
18003
|
const renderOpts = column.editRender || column.cellRender;
|
|
17932
18004
|
let footLabelMethod = column.footerExportMethod;
|
|
17933
18005
|
if (!footLabelMethod && renderOpts && renderOpts.name) {
|
|
17934
|
-
const compConf =
|
|
18006
|
+
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
17935
18007
|
if (compConf) {
|
|
17936
18008
|
footLabelMethod = compConf.footerExportMethod;
|
|
17937
18009
|
}
|
|
@@ -18236,7 +18308,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18236
18308
|
if (opts.message !== false) {
|
|
18237
18309
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18238
18310
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18239
|
-
content: (
|
|
18311
|
+
content: export_hook_getI18n('vxe.table.expSuccess'),
|
|
18240
18312
|
status: 'success'
|
|
18241
18313
|
});
|
|
18242
18314
|
}
|
|
@@ -18344,7 +18416,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18344
18416
|
if (opts.message !== false) {
|
|
18345
18417
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18346
18418
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18347
|
-
content: (
|
|
18419
|
+
content: export_hook_getI18n('vxe.table.impSuccess', [rows.length]),
|
|
18348
18420
|
status: 'success'
|
|
18349
18421
|
});
|
|
18350
18422
|
}
|
|
@@ -18360,7 +18432,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18360
18432
|
} else if (opts.message !== false) {
|
|
18361
18433
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18362
18434
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18363
|
-
content: (
|
|
18435
|
+
content: export_hook_getI18n('vxe.error.impFields'),
|
|
18364
18436
|
status: 'error'
|
|
18365
18437
|
});
|
|
18366
18438
|
}
|
|
@@ -18386,7 +18458,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18386
18458
|
if (opts.message !== false) {
|
|
18387
18459
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18388
18460
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18389
|
-
content: (
|
|
18461
|
+
content: export_hook_getI18n('vxe.error.notType', [type]),
|
|
18390
18462
|
status: 'error'
|
|
18391
18463
|
});
|
|
18392
18464
|
}
|
|
@@ -18447,7 +18519,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18447
18519
|
}, () => {
|
|
18448
18520
|
const reader = new FileReader();
|
|
18449
18521
|
reader.onerror = () => {
|
|
18450
|
-
|
|
18522
|
+
export_hook_log.err('vxe.error.notType', [type]);
|
|
18451
18523
|
_importReject({
|
|
18452
18524
|
status: false
|
|
18453
18525
|
});
|
|
@@ -18461,7 +18533,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18461
18533
|
} else {
|
|
18462
18534
|
// 不支持的浏览器
|
|
18463
18535
|
if (true) {
|
|
18464
|
-
|
|
18536
|
+
export_hook_log.err('vxe.error.notExp');
|
|
18465
18537
|
}
|
|
18466
18538
|
_importResolve({
|
|
18467
18539
|
status: true
|
|
@@ -18714,7 +18786,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18714
18786
|
opts.columns = cols;
|
|
18715
18787
|
opts.colgroups = convertToRows(groups);
|
|
18716
18788
|
if (!opts.filename) {
|
|
18717
|
-
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')]);
|
|
18718
18790
|
}
|
|
18719
18791
|
if (!opts.sheetName) {
|
|
18720
18792
|
opts.sheetName = document.title;
|
|
@@ -18722,7 +18794,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18722
18794
|
// 检查类型,如果为自定义导出,则不需要校验类型
|
|
18723
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)) {
|
|
18724
18796
|
if (true) {
|
|
18725
|
-
|
|
18797
|
+
export_hook_log.err('vxe.error.notType', [type]);
|
|
18726
18798
|
}
|
|
18727
18799
|
const params = {
|
|
18728
18800
|
status: false
|
|
@@ -18752,7 +18824,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18752
18824
|
} else if (mode === 'all') {
|
|
18753
18825
|
if (true) {
|
|
18754
18826
|
if (!$xeGrid) {
|
|
18755
|
-
|
|
18827
|
+
export_hook_log.warn('vxe.error.errProp', ['all', 'mode=current,selected']);
|
|
18756
18828
|
}
|
|
18757
18829
|
}
|
|
18758
18830
|
if ($xeGrid && !opts.remote) {
|
|
@@ -18772,7 +18844,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18772
18844
|
const ajaxMethods = ajax.queryAll;
|
|
18773
18845
|
if (true) {
|
|
18774
18846
|
if (!ajaxMethods) {
|
|
18775
|
-
|
|
18847
|
+
export_hook_log.warn('vxe.error.notFunc', ['proxy-config.ajax.queryAll']);
|
|
18776
18848
|
}
|
|
18777
18849
|
}
|
|
18778
18850
|
if (ajaxMethods) {
|
|
@@ -18911,7 +18983,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18911
18983
|
if (defOpts.message) {
|
|
18912
18984
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
18913
18985
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
18914
|
-
content: (
|
|
18986
|
+
content: export_hook_getI18n('vxe.error.treeNotImp'),
|
|
18915
18987
|
status: 'error'
|
|
18916
18988
|
});
|
|
18917
18989
|
}
|
|
@@ -18919,7 +18991,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18919
18991
|
return;
|
|
18920
18992
|
}
|
|
18921
18993
|
if (!importConfig) {
|
|
18922
|
-
|
|
18994
|
+
export_hook_log.err('vxe.error.reqProp', ['import-config']);
|
|
18923
18995
|
}
|
|
18924
18996
|
// 处理类型
|
|
18925
18997
|
const typeList = types.map(value => {
|
|
@@ -18949,7 +19021,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18949
19021
|
const exportOpts = computeExportOpts.value;
|
|
18950
19022
|
if (true) {
|
|
18951
19023
|
if (!props.exportConfig) {
|
|
18952
|
-
|
|
19024
|
+
export_hook_log.err('vxe.error.reqProp', ['export-config']);
|
|
18953
19025
|
}
|
|
18954
19026
|
}
|
|
18955
19027
|
handleExportAndPrint(Object.assign({}, exportOpts, options));
|
|
@@ -18958,7 +19030,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18958
19030
|
const printOpts = computePrintOpts.value;
|
|
18959
19031
|
if (true) {
|
|
18960
19032
|
if (!props.printConfig) {
|
|
18961
|
-
|
|
19033
|
+
export_hook_log.err('vxe.error.reqProp', ['print-config']);
|
|
18962
19034
|
}
|
|
18963
19035
|
}
|
|
18964
19036
|
handleExportAndPrint(Object.assign({}, printOpts, options), true);
|
|
@@ -18975,6 +19047,9 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
18975
19047
|
|
|
18976
19048
|
|
|
18977
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;
|
|
18978
19053
|
function getTargetOffset(target, container) {
|
|
18979
19054
|
let offsetTop = 0;
|
|
18980
19055
|
let offsetLeft = 0;
|
|
@@ -18999,7 +19074,7 @@ function getTargetOffset(target, container) {
|
|
|
18999
19074
|
offsetLeft
|
|
19000
19075
|
};
|
|
19001
19076
|
}
|
|
19002
|
-
|
|
19077
|
+
keyboard_hook_hooks.add('tableKeyboardModule', {
|
|
19003
19078
|
setupTable($xeTable) {
|
|
19004
19079
|
const {
|
|
19005
19080
|
props,
|
|
@@ -19433,6 +19508,12 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19433
19508
|
|
|
19434
19509
|
|
|
19435
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;
|
|
19436
19517
|
/**
|
|
19437
19518
|
* 校验规则
|
|
19438
19519
|
*/
|
|
@@ -19462,7 +19543,7 @@ class Rule {
|
|
|
19462
19543
|
}
|
|
19463
19544
|
}
|
|
19464
19545
|
const tableValidatorMethodKeys = ['fullValidate', 'validate', 'clearValidate'];
|
|
19465
|
-
|
|
19546
|
+
validator_hook_hooks.add('tableValidatorModule', {
|
|
19466
19547
|
setupTable($xeTable) {
|
|
19467
19548
|
const {
|
|
19468
19549
|
props,
|
|
@@ -19623,7 +19704,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19623
19704
|
cb(validRest);
|
|
19624
19705
|
resolve();
|
|
19625
19706
|
} else {
|
|
19626
|
-
if ((
|
|
19707
|
+
if (validator_hook_getConfig().validToReject === 'obsolete') {
|
|
19627
19708
|
// 已废弃,校验失败将不会执行catch
|
|
19628
19709
|
reject(validRest);
|
|
19629
19710
|
} else {
|
|
@@ -19671,7 +19752,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19671
19752
|
fullValidate(rows, cb) {
|
|
19672
19753
|
if (true) {
|
|
19673
19754
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
19674
|
-
|
|
19755
|
+
validator_hook_log.warn('vxe.error.notValidators', ['fullValidate(rows, callback)', 'fullValidate(rows)']);
|
|
19675
19756
|
}
|
|
19676
19757
|
}
|
|
19677
19758
|
return beginValidate(rows, cb, true);
|
|
@@ -19682,7 +19763,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19682
19763
|
validate(rows, cb) {
|
|
19683
19764
|
if (true) {
|
|
19684
19765
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
19685
|
-
|
|
19766
|
+
validator_hook_log.warn('vxe.error.notValidators', ['validate(rows, callback)', 'validate(rows)']);
|
|
19686
19767
|
}
|
|
19687
19768
|
}
|
|
19688
19769
|
return beginValidate(rows, cb);
|
|
@@ -19811,18 +19892,18 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
19811
19892
|
};
|
|
19812
19893
|
let customValid;
|
|
19813
19894
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
|
|
19814
|
-
const gvItem =
|
|
19895
|
+
const gvItem = validators.get(validator);
|
|
19815
19896
|
if (gvItem) {
|
|
19816
19897
|
if (gvItem.cellValidatorMethod) {
|
|
19817
19898
|
customValid = gvItem.cellValidatorMethod(validParams);
|
|
19818
19899
|
} else {
|
|
19819
19900
|
if (true) {
|
|
19820
|
-
|
|
19901
|
+
validator_hook_log.warn('vxe.error.notValidators', [validator]);
|
|
19821
19902
|
}
|
|
19822
19903
|
}
|
|
19823
19904
|
} else {
|
|
19824
19905
|
if (true) {
|
|
19825
|
-
|
|
19906
|
+
validator_hook_log.err('vxe.error.notValidators', [validator]);
|
|
19826
19907
|
}
|
|
19827
19908
|
}
|
|
19828
19909
|
} else {
|
|
@@ -20008,7 +20089,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
20008
20089
|
|
|
20009
20090
|
|
|
20010
20091
|
const tableCustomMethodKeys = ['openCustom', 'closeCustom'];
|
|
20011
|
-
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', {
|
|
20012
20093
|
setupTable($xeTable) {
|
|
20013
20094
|
const {
|
|
20014
20095
|
reactData,
|
|
@@ -20150,6 +20231,12 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.hooks.
|
|
|
20150
20231
|
|
|
20151
20232
|
|
|
20152
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;
|
|
20153
20240
|
const componentDefaultModelProp = 'modelValue';
|
|
20154
20241
|
const defaultCompProps = {
|
|
20155
20242
|
transfer: true
|
|
@@ -20184,7 +20271,7 @@ function getFormatDate(value, props, defaultFormat) {
|
|
|
20184
20271
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(parseDate(value, props), dateConfig.labelFormat || defaultFormat);
|
|
20185
20272
|
}
|
|
20186
20273
|
function getLabelFormatDate(value, props) {
|
|
20187
|
-
return getFormatDate(value, props, (
|
|
20274
|
+
return getFormatDate(value, props, render_getI18n(`vxe.input.date.labelFormat.${props.type}`));
|
|
20188
20275
|
}
|
|
20189
20276
|
/**
|
|
20190
20277
|
* 已废弃
|
|
@@ -20331,7 +20418,7 @@ function getComponentOns(renderOpts, params, modelFunc, changeFunc) {
|
|
|
20331
20418
|
ons[getOnName(key)] = function (...args) {
|
|
20332
20419
|
if (true) {
|
|
20333
20420
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
20334
|
-
|
|
20421
|
+
render_log.err('vxe.error.errFunc', [func]);
|
|
20335
20422
|
}
|
|
20336
20423
|
}
|
|
20337
20424
|
func(params, ...args);
|
|
@@ -20696,7 +20783,7 @@ function handleExportSelectMethod(params) {
|
|
|
20696
20783
|
/**
|
|
20697
20784
|
* 表格 - 渲染器
|
|
20698
20785
|
*/
|
|
20699
|
-
|
|
20786
|
+
render_renderer.mixin({
|
|
20700
20787
|
input: {
|
|
20701
20788
|
autofocus: 'input',
|
|
20702
20789
|
renderEdit: nativeEditRender,
|
|
@@ -20741,7 +20828,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.render
|
|
|
20741
20828
|
row,
|
|
20742
20829
|
column
|
|
20743
20830
|
} = params;
|
|
20744
|
-
const digits = props.digits || (
|
|
20831
|
+
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
20745
20832
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.property);
|
|
20746
20833
|
if (cellValue) {
|
|
20747
20834
|
switch (props.type) {
|
|
@@ -20834,7 +20921,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.render
|
|
|
20834
20921
|
row,
|
|
20835
20922
|
column
|
|
20836
20923
|
} = params;
|
|
20837
|
-
const digits = props.digits || (
|
|
20924
|
+
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
20838
20925
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.property);
|
|
20839
20926
|
if (cellValue) {
|
|
20840
20927
|
switch (props.type) {
|
|
@@ -20938,6 +21025,16 @@ const Table = VxeTable;
|
|
|
20938
21025
|
|
|
20939
21026
|
|
|
20940
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;
|
|
20941
21038
|
/* harmony default export */ var toolbar = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
20942
21039
|
name: 'VxeToolbar',
|
|
20943
21040
|
props: {
|
|
@@ -20950,19 +21047,19 @@ const Table = VxeTable;
|
|
|
20950
21047
|
custom: [Boolean, Object],
|
|
20951
21048
|
buttons: {
|
|
20952
21049
|
type: Array,
|
|
20953
|
-
default: () => (
|
|
21050
|
+
default: () => toolbar_getConfig().toolbar.buttons
|
|
20954
21051
|
},
|
|
20955
21052
|
tools: {
|
|
20956
21053
|
type: Array,
|
|
20957
|
-
default: () => (
|
|
21054
|
+
default: () => toolbar_getConfig().toolbar.tools
|
|
20958
21055
|
},
|
|
20959
21056
|
perfect: {
|
|
20960
21057
|
type: Boolean,
|
|
20961
|
-
default: () => (
|
|
21058
|
+
default: () => toolbar_getConfig().toolbar.perfect
|
|
20962
21059
|
},
|
|
20963
21060
|
size: {
|
|
20964
21061
|
type: String,
|
|
20965
|
-
default: () => (
|
|
21062
|
+
default: () => toolbar_getConfig().toolbar.size || toolbar_getConfig().size
|
|
20966
21063
|
},
|
|
20967
21064
|
className: [String, Function]
|
|
20968
21065
|
},
|
|
@@ -20975,7 +21072,7 @@ const Table = VxeTable;
|
|
|
20975
21072
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
20976
21073
|
const {
|
|
20977
21074
|
computeSize
|
|
20978
|
-
} =
|
|
21075
|
+
} = toolbar_useFns.useSize(props);
|
|
20979
21076
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
20980
21077
|
isRefresh: false,
|
|
20981
21078
|
columns: []
|
|
@@ -20996,22 +21093,22 @@ const Table = VxeTable;
|
|
|
20996
21093
|
let $xeTable;
|
|
20997
21094
|
const connectFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
20998
21095
|
const computeRefreshOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20999
|
-
return Object.assign({}, (
|
|
21096
|
+
return Object.assign({}, toolbar_getConfig().toolbar.refresh, props.refresh);
|
|
21000
21097
|
});
|
|
21001
21098
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21002
|
-
return Object.assign({}, (
|
|
21099
|
+
return Object.assign({}, toolbar_getConfig().toolbar.import, props.import);
|
|
21003
21100
|
});
|
|
21004
21101
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21005
|
-
return Object.assign({}, (
|
|
21102
|
+
return Object.assign({}, toolbar_getConfig().toolbar.export, props.export);
|
|
21006
21103
|
});
|
|
21007
21104
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21008
|
-
return Object.assign({}, (
|
|
21105
|
+
return Object.assign({}, toolbar_getConfig().toolbar.print, props.print);
|
|
21009
21106
|
});
|
|
21010
21107
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21011
|
-
return Object.assign({}, (
|
|
21108
|
+
return Object.assign({}, toolbar_getConfig().toolbar.zoom, props.zoom);
|
|
21012
21109
|
});
|
|
21013
21110
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21014
|
-
return Object.assign({}, (
|
|
21111
|
+
return Object.assign({}, toolbar_getConfig().toolbar.custom, props.custom);
|
|
21015
21112
|
});
|
|
21016
21113
|
const computeTableCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21017
21114
|
if (connectFlag.value || $xeTable) {
|
|
@@ -21032,7 +21129,7 @@ const Table = VxeTable;
|
|
|
21032
21129
|
if ($xeTable) {
|
|
21033
21130
|
return true;
|
|
21034
21131
|
}
|
|
21035
|
-
|
|
21132
|
+
toolbar_log.err('vxe.error.barUnableLink');
|
|
21036
21133
|
};
|
|
21037
21134
|
const handleClickSettingEvent = ({
|
|
21038
21135
|
$event
|
|
@@ -21041,7 +21138,7 @@ const Table = VxeTable;
|
|
|
21041
21138
|
if ($xeTable.triggerCustomEvent) {
|
|
21042
21139
|
$xeTable.triggerCustomEvent($event);
|
|
21043
21140
|
} else {
|
|
21044
|
-
|
|
21141
|
+
toolbar_log.err('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21045
21142
|
}
|
|
21046
21143
|
}
|
|
21047
21144
|
};
|
|
@@ -21051,7 +21148,7 @@ const Table = VxeTable;
|
|
|
21051
21148
|
if ($xeTable) {
|
|
21052
21149
|
$xeTable.customOpenEvent($event);
|
|
21053
21150
|
} else {
|
|
21054
|
-
|
|
21151
|
+
toolbar_log.err('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21055
21152
|
}
|
|
21056
21153
|
};
|
|
21057
21154
|
const handleMouseleaveSettingEvent = ({
|
|
@@ -21106,7 +21203,7 @@ const Table = VxeTable;
|
|
|
21106
21203
|
if ($xeGrid) {
|
|
21107
21204
|
$xeGrid.triggerToolbarBtnEvent(item, evnt);
|
|
21108
21205
|
} else {
|
|
21109
|
-
const gCommandOpts =
|
|
21206
|
+
const gCommandOpts = commands.get(code);
|
|
21110
21207
|
const params = {
|
|
21111
21208
|
code,
|
|
21112
21209
|
button: item,
|
|
@@ -21119,7 +21216,7 @@ const Table = VxeTable;
|
|
|
21119
21216
|
gCommandOpts.commandMethod(params);
|
|
21120
21217
|
} else {
|
|
21121
21218
|
if (true) {
|
|
21122
|
-
|
|
21219
|
+
toolbar_log.err('vxe.error.notCommands', [code]);
|
|
21123
21220
|
}
|
|
21124
21221
|
}
|
|
21125
21222
|
}
|
|
@@ -21135,7 +21232,7 @@ const Table = VxeTable;
|
|
|
21135
21232
|
if ($xeGrid) {
|
|
21136
21233
|
$xeGrid.triggerToolbarTolEvent(item, evnt);
|
|
21137
21234
|
} else {
|
|
21138
|
-
const gCommandOpts =
|
|
21235
|
+
const gCommandOpts = commands.get(code);
|
|
21139
21236
|
const params = {
|
|
21140
21237
|
code,
|
|
21141
21238
|
tool: item,
|
|
@@ -21148,7 +21245,7 @@ const Table = VxeTable;
|
|
|
21148
21245
|
gCommandOpts.commandMethod(params);
|
|
21149
21246
|
} else {
|
|
21150
21247
|
if (true) {
|
|
21151
|
-
|
|
21248
|
+
toolbar_log.err('vxe.error.notCommands', [code]);
|
|
21152
21249
|
}
|
|
21153
21250
|
}
|
|
21154
21251
|
}
|
|
@@ -21219,7 +21316,7 @@ const Table = VxeTable;
|
|
|
21219
21316
|
buttonRender
|
|
21220
21317
|
} = item;
|
|
21221
21318
|
if (item.visible !== false) {
|
|
21222
|
-
const compConf = buttonRender ?
|
|
21319
|
+
const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
|
|
21223
21320
|
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
21224
21321
|
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
21225
21322
|
const params = {
|
|
@@ -21276,7 +21373,7 @@ const Table = VxeTable;
|
|
|
21276
21373
|
} = item;
|
|
21277
21374
|
if (item.visible !== false) {
|
|
21278
21375
|
const rdName = toolRender ? toolRender.name : null;
|
|
21279
|
-
const compConf = toolRender ?
|
|
21376
|
+
const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
|
|
21280
21377
|
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
21281
21378
|
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
21282
21379
|
const params = {
|
|
@@ -21317,8 +21414,8 @@ const Table = VxeTable;
|
|
|
21317
21414
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21318
21415
|
key: 'import',
|
|
21319
21416
|
circle: true,
|
|
21320
|
-
icon: importOpts.icon || (
|
|
21321
|
-
title: (
|
|
21417
|
+
icon: importOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_IMPORT,
|
|
21418
|
+
title: toolbar_getI18n('vxe.toolbar.import'),
|
|
21322
21419
|
onClick: importEvent
|
|
21323
21420
|
});
|
|
21324
21421
|
};
|
|
@@ -21327,8 +21424,8 @@ const Table = VxeTable;
|
|
|
21327
21424
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21328
21425
|
key: 'export',
|
|
21329
21426
|
circle: true,
|
|
21330
|
-
icon: exportOpts.icon || (
|
|
21331
|
-
title: (
|
|
21427
|
+
icon: exportOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_EXPORT,
|
|
21428
|
+
title: toolbar_getI18n('vxe.toolbar.export'),
|
|
21332
21429
|
onClick: exportEvent
|
|
21333
21430
|
});
|
|
21334
21431
|
};
|
|
@@ -21337,8 +21434,8 @@ const Table = VxeTable;
|
|
|
21337
21434
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21338
21435
|
key: 'print',
|
|
21339
21436
|
circle: true,
|
|
21340
|
-
icon: printOpts.icon || (
|
|
21341
|
-
title: (
|
|
21437
|
+
icon: printOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_PRINT,
|
|
21438
|
+
title: toolbar_getI18n('vxe.toolbar.print'),
|
|
21342
21439
|
onClick: printEvent
|
|
21343
21440
|
});
|
|
21344
21441
|
};
|
|
@@ -21347,8 +21444,8 @@ const Table = VxeTable;
|
|
|
21347
21444
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21348
21445
|
key: 'refresh',
|
|
21349
21446
|
circle: true,
|
|
21350
|
-
icon: reactData.isRefresh ? refreshOpts.iconLoading || (
|
|
21351
|
-
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'),
|
|
21352
21449
|
onClick: refreshEvent
|
|
21353
21450
|
});
|
|
21354
21451
|
};
|
|
@@ -21357,8 +21454,8 @@ const Table = VxeTable;
|
|
|
21357
21454
|
return $xeGrid ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21358
21455
|
key: 'zoom',
|
|
21359
21456
|
circle: true,
|
|
21360
|
-
icon: $xeGrid.isMaximized() ? zoomOpts.iconOut || (
|
|
21361
|
-
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'}`),
|
|
21362
21459
|
onClick: zoomEvent
|
|
21363
21460
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
21364
21461
|
};
|
|
@@ -21379,15 +21476,15 @@ const Table = VxeTable;
|
|
|
21379
21476
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-button'), {
|
|
21380
21477
|
key: 'custom',
|
|
21381
21478
|
circle: true,
|
|
21382
|
-
icon: customOpts.icon || (
|
|
21383
|
-
title: (
|
|
21479
|
+
icon: customOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_CUSTOM,
|
|
21480
|
+
title: toolbar_getI18n('vxe.toolbar.custom'),
|
|
21384
21481
|
className: 'vxe-toolbar-custom-target',
|
|
21385
21482
|
...customBtnOns
|
|
21386
21483
|
});
|
|
21387
21484
|
};
|
|
21388
21485
|
toolbarMethods = {
|
|
21389
21486
|
dispatchEvent(type, params, evnt) {
|
|
21390
|
-
emit(type, (
|
|
21487
|
+
emit(type, toolbar_createEvent(evnt, {
|
|
21391
21488
|
$toolbar: $xeToolbar
|
|
21392
21489
|
}, params));
|
|
21393
21490
|
},
|
|
@@ -21408,21 +21505,21 @@ const Table = VxeTable;
|
|
|
21408
21505
|
const refreshOpts = computeRefreshOpts.value;
|
|
21409
21506
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
21410
21507
|
if (refresh && !$xeGrid && !queryMethod) {
|
|
21411
|
-
|
|
21508
|
+
toolbar_log.warn('vxe.error.notFunc', ['queryMethod']);
|
|
21412
21509
|
}
|
|
21413
21510
|
const customOpts = computeCustomOpts.value;
|
|
21414
21511
|
if (true) {
|
|
21415
21512
|
if (customOpts.isFooter) {
|
|
21416
|
-
|
|
21513
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
|
|
21417
21514
|
}
|
|
21418
21515
|
if (customOpts.showFooter) {
|
|
21419
|
-
|
|
21516
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
|
|
21420
21517
|
}
|
|
21421
21518
|
if (customOpts.immediate) {
|
|
21422
|
-
|
|
21519
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
|
|
21423
21520
|
}
|
|
21424
21521
|
if (customOpts.trigger) {
|
|
21425
|
-
|
|
21522
|
+
toolbar_log.warn('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
|
|
21426
21523
|
}
|
|
21427
21524
|
}
|
|
21428
21525
|
});
|
|
@@ -21485,6 +21582,17 @@ const Toolbar = VxeToolbar;
|
|
|
21485
21582
|
|
|
21486
21583
|
|
|
21487
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;
|
|
21488
21596
|
const tableComponentPropKeys = Object.keys(props);
|
|
21489
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'];
|
|
21490
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'];
|
|
@@ -21501,7 +21609,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21501
21609
|
zoomConfig: Object,
|
|
21502
21610
|
size: {
|
|
21503
21611
|
type: String,
|
|
21504
|
-
default: () => (
|
|
21612
|
+
default: () => grid_getConfig().grid.size || grid_getConfig().size
|
|
21505
21613
|
}
|
|
21506
21614
|
},
|
|
21507
21615
|
emits: gridComponentEmits,
|
|
@@ -21513,7 +21621,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21513
21621
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
21514
21622
|
const {
|
|
21515
21623
|
computeSize
|
|
21516
|
-
} =
|
|
21624
|
+
} = grid_useFns.useSize(props);
|
|
21517
21625
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
21518
21626
|
tableLoading: false,
|
|
21519
21627
|
proxyInited: false,
|
|
@@ -21525,7 +21633,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21525
21633
|
tZindex: 0,
|
|
21526
21634
|
tablePage: {
|
|
21527
21635
|
total: 0,
|
|
21528
|
-
pageSize: (
|
|
21636
|
+
pageSize: grid_getConfig().pager?.pageSize || 10,
|
|
21529
21637
|
currentPage: 1
|
|
21530
21638
|
}
|
|
21531
21639
|
});
|
|
@@ -21561,23 +21669,23 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21561
21669
|
};
|
|
21562
21670
|
});
|
|
21563
21671
|
const computeProxyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21564
|
-
return Object.assign({}, (
|
|
21672
|
+
return Object.assign({}, grid_getConfig().grid.proxyConfig, props.proxyConfig);
|
|
21565
21673
|
});
|
|
21566
21674
|
const computeIsMsg = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21567
21675
|
const proxyOpts = computeProxyOpts.value;
|
|
21568
21676
|
return proxyOpts.message !== false;
|
|
21569
21677
|
});
|
|
21570
21678
|
const computePagerOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21571
|
-
return Object.assign({}, (
|
|
21679
|
+
return Object.assign({}, grid_getConfig().grid.pagerConfig, props.pagerConfig);
|
|
21572
21680
|
});
|
|
21573
21681
|
const computeFormOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21574
|
-
return Object.assign({}, (
|
|
21682
|
+
return Object.assign({}, grid_getConfig().grid.formConfig, props.formConfig);
|
|
21575
21683
|
});
|
|
21576
21684
|
const computeToolbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21577
|
-
return Object.assign({}, (
|
|
21685
|
+
return Object.assign({}, grid_getConfig().grid.toolbarConfig, props.toolbarConfig);
|
|
21578
21686
|
});
|
|
21579
21687
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21580
|
-
return Object.assign({}, (
|
|
21688
|
+
return Object.assign({}, grid_getConfig().grid.zoomConfig, props.zoomConfig);
|
|
21581
21689
|
});
|
|
21582
21690
|
const computeStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21583
21691
|
return reactData.isZMax ? {
|
|
@@ -21698,7 +21806,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21698
21806
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21699
21807
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
21700
21808
|
id: code,
|
|
21701
|
-
content: (
|
|
21809
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
21702
21810
|
status: 'warning'
|
|
21703
21811
|
});
|
|
21704
21812
|
}
|
|
@@ -21716,7 +21824,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21716
21824
|
$grid: $xeGrid
|
|
21717
21825
|
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, messageProp);
|
|
21718
21826
|
}
|
|
21719
|
-
return msg || (
|
|
21827
|
+
return msg || grid_getI18n(defaultMsg);
|
|
21720
21828
|
};
|
|
21721
21829
|
const handleDeleteRow = (code, alertKey, callback) => {
|
|
21722
21830
|
const isMsg = computeIsMsg.value;
|
|
@@ -21726,7 +21834,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21726
21834
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21727
21835
|
return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.confirm({
|
|
21728
21836
|
id: `cfm_${code}`,
|
|
21729
|
-
content: (
|
|
21837
|
+
content: grid_getI18n(alertKey),
|
|
21730
21838
|
escClosable: true
|
|
21731
21839
|
}).then(type => {
|
|
21732
21840
|
if (type === 'confirm') {
|
|
@@ -21738,7 +21846,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21738
21846
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
21739
21847
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
21740
21848
|
id: `msg_${code}`,
|
|
21741
|
-
content: (
|
|
21849
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
21742
21850
|
status: 'warning'
|
|
21743
21851
|
});
|
|
21744
21852
|
}
|
|
@@ -21880,7 +21988,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
21880
21988
|
return slots[funcSlot];
|
|
21881
21989
|
} else {
|
|
21882
21990
|
if (true) {
|
|
21883
|
-
|
|
21991
|
+
grid_log.err('vxe.error.notSlot', [funcSlot]);
|
|
21884
21992
|
}
|
|
21885
21993
|
}
|
|
21886
21994
|
} else {
|
|
@@ -22138,7 +22246,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22138
22246
|
layouts
|
|
22139
22247
|
} = props;
|
|
22140
22248
|
const vns = [];
|
|
22141
|
-
const currLayouts = layouts && layouts.length ? layouts : (
|
|
22249
|
+
const currLayouts = layouts && layouts.length ? layouts : grid_getConfig().grid.layouts || defaultLayouts;
|
|
22142
22250
|
currLayouts.forEach(name => {
|
|
22143
22251
|
switch (name) {
|
|
22144
22252
|
case 'Form':
|
|
@@ -22164,7 +22272,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22164
22272
|
break;
|
|
22165
22273
|
default:
|
|
22166
22274
|
if (true) {
|
|
22167
|
-
|
|
22275
|
+
grid_log.err('vxe.error.notProp', [`layouts -> ${name}`]);
|
|
22168
22276
|
}
|
|
22169
22277
|
break;
|
|
22170
22278
|
}
|
|
@@ -22228,7 +22336,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22228
22336
|
};
|
|
22229
22337
|
const gridMethods = {
|
|
22230
22338
|
dispatchEvent(type, params, evnt) {
|
|
22231
|
-
emit(type, (
|
|
22339
|
+
emit(type, grid_createEvent(evnt, {
|
|
22232
22340
|
$grid: $xeGrid
|
|
22233
22341
|
}, params));
|
|
22234
22342
|
},
|
|
@@ -22420,7 +22528,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22420
22528
|
});
|
|
22421
22529
|
} else {
|
|
22422
22530
|
if (true) {
|
|
22423
|
-
|
|
22531
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
22424
22532
|
}
|
|
22425
22533
|
}
|
|
22426
22534
|
break;
|
|
@@ -22489,7 +22597,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22489
22597
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
22490
22598
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
22491
22599
|
id: code,
|
|
22492
|
-
content: (
|
|
22600
|
+
content: grid_getI18n('vxe.grid.selectOneRecord'),
|
|
22493
22601
|
status: 'warning'
|
|
22494
22602
|
});
|
|
22495
22603
|
}
|
|
@@ -22497,7 +22605,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22497
22605
|
}
|
|
22498
22606
|
} else {
|
|
22499
22607
|
if (true) {
|
|
22500
|
-
|
|
22608
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
22501
22609
|
}
|
|
22502
22610
|
}
|
|
22503
22611
|
break;
|
|
@@ -22581,7 +22689,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22581
22689
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
22582
22690
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal.message({
|
|
22583
22691
|
id: code,
|
|
22584
|
-
content: (
|
|
22692
|
+
content: grid_getI18n('vxe.grid.dataUnchanged'),
|
|
22585
22693
|
status: 'info'
|
|
22586
22694
|
});
|
|
22587
22695
|
}
|
|
@@ -22590,14 +22698,14 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22590
22698
|
});
|
|
22591
22699
|
} else {
|
|
22592
22700
|
if (true) {
|
|
22593
|
-
|
|
22701
|
+
grid_log.err('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
22594
22702
|
}
|
|
22595
22703
|
}
|
|
22596
22704
|
break;
|
|
22597
22705
|
}
|
|
22598
22706
|
default:
|
|
22599
22707
|
{
|
|
22600
|
-
const gCommandOpts =
|
|
22708
|
+
const gCommandOpts = grid_commands.get(code);
|
|
22601
22709
|
if (gCommandOpts) {
|
|
22602
22710
|
if (gCommandOpts.commandMethod) {
|
|
22603
22711
|
gCommandOpts.commandMethod({
|
|
@@ -22608,7 +22716,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22608
22716
|
}, ...args);
|
|
22609
22717
|
} else {
|
|
22610
22718
|
if (true) {
|
|
22611
|
-
|
|
22719
|
+
grid_log.err('vxe.error.notCommands', [code]);
|
|
22612
22720
|
}
|
|
22613
22721
|
}
|
|
22614
22722
|
}
|
|
@@ -22693,7 +22801,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22693
22801
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(column.slots, func => {
|
|
22694
22802
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
22695
22803
|
if (!slots[func]) {
|
|
22696
|
-
|
|
22804
|
+
grid_log.err('vxe.error.notSlot', [func]);
|
|
22697
22805
|
}
|
|
22698
22806
|
}
|
|
22699
22807
|
});
|
|
@@ -22804,12 +22912,12 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22804
22912
|
});
|
|
22805
22913
|
const handleGlobalKeydownEvent = evnt => {
|
|
22806
22914
|
const zoomOpts = computeZoomOpts.value;
|
|
22807
|
-
const isEsc =
|
|
22915
|
+
const isEsc = grid_globalEvents.hasKey(evnt, grid_GLOBAL_EVENT_KEYS.ESCAPE);
|
|
22808
22916
|
if (isEsc && reactData.isZMax && zoomOpts.escRestore !== false) {
|
|
22809
22917
|
gridPrivateMethods.triggerZoomEvent(evnt);
|
|
22810
22918
|
}
|
|
22811
22919
|
};
|
|
22812
|
-
|
|
22920
|
+
grid_hooks.forEach(options => {
|
|
22813
22921
|
const {
|
|
22814
22922
|
setupGrid
|
|
22815
22923
|
} = options;
|
|
@@ -22831,7 +22939,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22831
22939
|
const proxyOpts = computeProxyOpts.value;
|
|
22832
22940
|
const formOpts = computeFormOpts.value;
|
|
22833
22941
|
if (isEnableConf(proxyConfig) && (data || proxyOpts.form && formOpts.data)) {
|
|
22834
|
-
|
|
22942
|
+
grid_log.err('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config']);
|
|
22835
22943
|
}
|
|
22836
22944
|
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
22837
22945
|
// if (proxyOpts.props) {
|
|
@@ -22843,10 +22951,10 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22843
22951
|
}
|
|
22844
22952
|
initToolbar();
|
|
22845
22953
|
});
|
|
22846
|
-
|
|
22954
|
+
grid_globalEvents.on($xeGrid, 'keydown', handleGlobalKeydownEvent);
|
|
22847
22955
|
});
|
|
22848
22956
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
22849
|
-
|
|
22957
|
+
grid_globalEvents.off($xeGrid, 'keydown');
|
|
22850
22958
|
});
|
|
22851
22959
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
22852
22960
|
initProxy();
|
|
@@ -22889,8 +22997,8 @@ const Grid = VxeGrid;
|
|
|
22889
22997
|
/* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
|
|
22890
22998
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
22891
22999
|
|
|
22892
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.
|
|
22893
|
-
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";
|
|
22894
23002
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig({
|
|
22895
23003
|
emptyCell: ' ',
|
|
22896
23004
|
table: {
|
|
@@ -23120,23 +23228,23 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.
|
|
|
23120
23228
|
const setTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setTheme;
|
|
23121
23229
|
const getTheme = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getTheme;
|
|
23122
23230
|
const setConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig;
|
|
23123
|
-
const
|
|
23231
|
+
const ui_getConfig = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getConfig;
|
|
23124
23232
|
const setIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setIcon;
|
|
23125
|
-
const
|
|
23233
|
+
const ui_getIcon = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.getIcon;
|
|
23126
23234
|
const setLanguage = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setLanguage;
|
|
23127
23235
|
const setI18n = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setI18n;
|
|
23128
|
-
const
|
|
23129
|
-
const
|
|
23130
|
-
const
|
|
23131
|
-
const
|
|
23132
|
-
const
|
|
23133
|
-
const
|
|
23134
|
-
const
|
|
23135
|
-
const
|
|
23136
|
-
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;
|
|
23137
23245
|
const clipboard = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.clipboard;
|
|
23138
|
-
const
|
|
23139
|
-
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;
|
|
23140
23248
|
const use = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.use;
|
|
23141
23249
|
/**
|
|
23142
23250
|
* 已废弃
|
|
@@ -23163,6 +23271,8 @@ const _t = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc
|
|
|
23163
23271
|
* @deprecated
|
|
23164
23272
|
*/
|
|
23165
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;
|
|
23166
23276
|
|
|
23167
23277
|
/* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
|
|
23168
23278
|
;// CONCATENATED MODULE: ./packages/components.ts
|
|
@@ -23178,6 +23288,8 @@ function install(app, options) {
|
|
|
23178
23288
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig(options);
|
|
23179
23289
|
components.forEach(component => component.install(app));
|
|
23180
23290
|
}
|
|
23291
|
+
const modal = (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_default()).drawer;
|
|
23292
|
+
const drawer = (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_default()).drawer;
|
|
23181
23293
|
|
|
23182
23294
|
// Components
|
|
23183
23295
|
|