vxe-table 3.4.15 → 3.5.0-beta.2
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/README.md +1 -1
- package/helper/vetur/attributes.json +30 -10
- package/helper/vetur/tags.json +7 -2
- package/lib/button/src/button.js +19 -9
- package/lib/button/src/button.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +2 -2
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/edit/src/mixin.js +26 -18
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/export-panel.js +2 -2
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/import-panel.js +2 -2
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/mixin.js +26 -24
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/filter/src/mixin.js +4 -4
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +2 -2
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/footer/src/footer.js +7 -4
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/src/form-gather.js +2 -2
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +5 -5
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +49 -64
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +17 -14
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/src/util.js +2 -2
- package/lib/form/src/util.min.js +1 -1
- package/lib/grid/src/grid.js +44 -34
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/header/src/header.js +10 -8
- package/lib/header/src/header.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +2390 -1553
- package/lib/index.umd.min.js +1 -2
- package/lib/input/src/input.js +30 -18
- package/lib/input/src/input.min.js +1 -1
- package/lib/keyboard/src/mixin.js +12 -8
- package/lib/keyboard/src/mixin.min.js +1 -1
- package/lib/list/src/list.js +7 -5
- package/lib/list/src/list.min.js +1 -1
- package/lib/menu/src/mixin.js +24 -14
- package/lib/menu/src/mixin.min.js +1 -1
- package/lib/menu/src/panel.js +3 -3
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/modal/src/modal.js +24 -12
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +16 -12
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/radio/src/button.js +2 -2
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/radio.js +2 -2
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/select/src/select.js +42 -21
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +1 -1
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +4 -4
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/table/src/body.js +34 -36
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +22 -14
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +6 -4
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +202 -0
- package/lib/table/src/columnInfo.min.js +1 -0
- package/lib/table/src/methods.js +247 -263
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +104 -129
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +52 -3
- package/lib/table/src/util.min.js +1 -1
- package/lib/textarea/src/textarea.js +2 -2
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +16 -10
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/tools/{src/dom.js → dom.js} +0 -0
- package/lib/tools/{src/dom.min.js → dom.min.js} +0 -0
- package/lib/tools/{src/event.js → event.js} +3 -6
- package/lib/tools/event.min.js +1 -0
- package/lib/tools/log.js +29 -0
- package/lib/tools/log.min.js +1 -0
- package/lib/tools/{src/resize.js → resize.js} +1 -1
- package/lib/tools/resize.min.js +1 -0
- package/lib/tools/utils.js +142 -0
- package/lib/tools/utils.min.js +1 -0
- package/lib/tooltip/src/tooltip.js +59 -34
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tooltip/style/style.css +1 -1
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/v-x-e-table/index.js +7 -4
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +14 -7
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/interceptor.js +4 -4
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +18 -10
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +3 -3
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/validator/src/mixin.js +4 -4
- package/lib/validator/src/mixin.min.js +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.js +4 -2
- package/packages/checkbox/src/checkbox.js +2 -2
- package/packages/edit/src/mixin.js +7 -6
- package/packages/export/src/export-panel.js +1 -1
- package/packages/export/src/import-panel.js +1 -1
- package/packages/export/src/mixin.js +20 -19
- package/packages/filter/src/mixin.js +3 -3
- package/packages/filter/src/panel.js +1 -1
- package/packages/footer/src/footer.js +4 -2
- package/packages/form/src/form-gather.js +2 -2
- package/packages/form/src/form-item.js +4 -4
- package/packages/form/src/form.js +19 -32
- package/packages/form/src/render.js +9 -9
- package/packages/form/src/util.js +2 -2
- package/packages/grid/src/grid.js +22 -20
- package/packages/header/src/header.js +3 -2
- package/packages/input/src/input.js +6 -3
- package/packages/keyboard/src/mixin.js +1 -2
- package/packages/list/src/list.js +3 -2
- package/packages/menu/src/mixin.js +5 -3
- package/packages/menu/src/panel.js +3 -3
- package/packages/modal/src/modal.js +7 -4
- package/packages/pulldown/src/pulldown.js +3 -1
- package/packages/radio/src/button.js +2 -2
- package/packages/radio/src/radio.js +2 -2
- package/packages/select/src/select.js +19 -8
- package/packages/switch/src/switch.js +4 -4
- package/packages/table/src/body.js +26 -25
- package/packages/table/src/cell.js +8 -7
- package/packages/table/src/column.js +4 -2
- package/packages/table/src/columnInfo.js +149 -0
- package/packages/table/src/methods.js +73 -95
- package/packages/table/src/table.js +73 -103
- package/packages/table/src/util.js +30 -1
- package/packages/textarea/src/textarea.js +2 -2
- package/packages/toolbar/src/toolbar.js +7 -4
- package/packages/tools/{src/dom.js → dom.js} +0 -0
- package/packages/tools/{src/event.js → event.js} +1 -3
- package/packages/tools/log.js +16 -0
- package/packages/tools/{src/resize.js → resize.js} +1 -1
- package/packages/tools/utils.js +97 -0
- package/packages/tooltip/src/tooltip.js +46 -26
- package/packages/v-x-e-table/index.js +4 -2
- package/packages/v-x-e-table/src/conf.js +14 -7
- package/packages/v-x-e-table/src/interceptor.js +3 -3
- package/packages/v-x-e-table/src/renderer.js +4 -3
- package/packages/v-x-e-table/src/store.js +2 -2
- package/packages/validator/src/mixin.js +3 -3
- package/styles/select.scss +1 -1
- package/styles/tooltip.scss +1 -1
- package/types/v-x-e-table/index.d.ts +8 -0
- package/lib/tools/index.js +0 -76
- package/lib/tools/index.min.js +0 -1
- package/lib/tools/src/event.min.js +0 -1
- package/lib/tools/src/resize.min.js +0 -1
- package/lib/tools/src/utils.js +0 -365
- package/lib/tools/src/utils.min.js +0 -1
- package/packages/tools/index.js +0 -14
- package/packages/tools/src/utils.js +0 -272
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Cell from '../../table/src/cell'
|
|
2
|
-
import
|
|
2
|
+
import UtilTools from '../../tools/utils'
|
|
3
3
|
|
|
4
4
|
const props = {
|
|
5
5
|
// 列唯一主键
|
|
@@ -68,8 +68,10 @@ const props = {
|
|
|
68
68
|
exportMethod: Function,
|
|
69
69
|
// 表尾单元格数据导出方法
|
|
70
70
|
footerExportMethod: Function,
|
|
71
|
-
//
|
|
71
|
+
// 已废弃,被 titlePrefix 替换
|
|
72
72
|
titleHelp: Object,
|
|
73
|
+
// 标题帮助图标配置项
|
|
74
|
+
titlePrefix: Object,
|
|
73
75
|
// 单元格值类型
|
|
74
76
|
cellType: String,
|
|
75
77
|
// 单元格渲染配置项
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import XEUtils from 'xe-utils'
|
|
2
|
+
import GlobalConfig from '../../v-x-e-table/src/conf'
|
|
3
|
+
import { formats } from '../../v-x-e-table/src/formats'
|
|
4
|
+
import { toFilters } from './util'
|
|
5
|
+
import { getFuncText } from '../../tools/utils'
|
|
6
|
+
import { warnLog, errLog } from '../../tools/log'
|
|
7
|
+
|
|
8
|
+
export class ColumnInfo {
|
|
9
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
10
|
+
constructor ($xetable, _vm, { renderHeader, renderCell, renderFooter, renderData } = {}) {
|
|
11
|
+
const $xegrid = $xetable.$xegrid
|
|
12
|
+
const proxyOpts = $xegrid ? $xegrid.proxyOpts : null
|
|
13
|
+
const formatter = _vm.formatter
|
|
14
|
+
const visible = XEUtils.isBoolean(_vm.visible) ? _vm.visible : true
|
|
15
|
+
|
|
16
|
+
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
17
|
+
const types = ['seq', 'checkbox', 'radio', 'expand', 'html']
|
|
18
|
+
if (_vm.type && types.indexOf(_vm.type) === -1) {
|
|
19
|
+
warnLog('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')])
|
|
20
|
+
}
|
|
21
|
+
if (XEUtils.isBoolean(_vm.cellRender) || (_vm.cellRender && !XEUtils.isObject(_vm.cellRender))) {
|
|
22
|
+
warnLog('vxe.error.errProp', [`column.cell-render=${_vm.cellRender}`, 'column.cell-render={}'])
|
|
23
|
+
}
|
|
24
|
+
if (XEUtils.isBoolean(_vm.editRender) || (_vm.editRender && !XEUtils.isObject(_vm.editRender))) {
|
|
25
|
+
warnLog('vxe.error.errProp', [`column.edit-render=${_vm.editRender}`, 'column.edit-render={}'])
|
|
26
|
+
}
|
|
27
|
+
if (_vm.cellRender && _vm.editRender) {
|
|
28
|
+
warnLog('vxe.error.errConflicts', ['column.cell-render', 'column.edit-render'])
|
|
29
|
+
}
|
|
30
|
+
if (_vm.type === 'expand') {
|
|
31
|
+
if ($xetable.treeConfig && $xetable.treeOpts.line) {
|
|
32
|
+
errLog('vxe.error.errConflicts', ['tree-config.line', 'column.type=expand'])
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (_vm.remoteSort) {
|
|
36
|
+
warnLog('vxe.error.delProp', ['column.remote-sort', 'sort-config.remote'])
|
|
37
|
+
}
|
|
38
|
+
if (_vm.sortMethod) {
|
|
39
|
+
warnLog('vxe.error.delProp', ['column.sort-method', 'sort-config.sortMethod'])
|
|
40
|
+
}
|
|
41
|
+
if (formatter) {
|
|
42
|
+
if (XEUtils.isString(formatter)) {
|
|
43
|
+
const globalFunc = formats.get(formatter) || XEUtils[formatter]
|
|
44
|
+
if (!XEUtils.isFunction(globalFunc)) {
|
|
45
|
+
errLog('vxe.error.notFunc', [formatter])
|
|
46
|
+
}
|
|
47
|
+
} else if (XEUtils.isArray(formatter)) {
|
|
48
|
+
const globalFunc = formats.get(formatter[0]) || XEUtils[formatter[0]]
|
|
49
|
+
if (!XEUtils.isFunction(globalFunc)) {
|
|
50
|
+
errLog('vxe.error.notFunc', [formatter[0]])
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
Object.assign(this, {
|
|
57
|
+
// 基本属性
|
|
58
|
+
type: _vm.type,
|
|
59
|
+
property: _vm.field,
|
|
60
|
+
field: _vm.field,
|
|
61
|
+
title: _vm.title,
|
|
62
|
+
width: _vm.width,
|
|
63
|
+
minWidth: _vm.minWidth,
|
|
64
|
+
resizable: _vm.resizable,
|
|
65
|
+
fixed: _vm.fixed,
|
|
66
|
+
align: _vm.align,
|
|
67
|
+
headerAlign: _vm.headerAlign,
|
|
68
|
+
footerAlign: _vm.footerAlign,
|
|
69
|
+
showOverflow: _vm.showOverflow,
|
|
70
|
+
showHeaderOverflow: _vm.showHeaderOverflow,
|
|
71
|
+
showFooterOverflow: _vm.showFooterOverflow,
|
|
72
|
+
className: _vm.className,
|
|
73
|
+
headerClassName: _vm.headerClassName,
|
|
74
|
+
footerClassName: _vm.footerClassName,
|
|
75
|
+
formatter: formatter,
|
|
76
|
+
sortable: _vm.sortable,
|
|
77
|
+
sortBy: _vm.sortBy,
|
|
78
|
+
sortType: _vm.sortType,
|
|
79
|
+
sortMethod: _vm.sortMethod,
|
|
80
|
+
remoteSort: _vm.remoteSort,
|
|
81
|
+
filters: toFilters(_vm.filters),
|
|
82
|
+
filterMultiple: XEUtils.isBoolean(_vm.filterMultiple) ? _vm.filterMultiple : true,
|
|
83
|
+
filterMethod: _vm.filterMethod,
|
|
84
|
+
filterResetMethod: _vm.filterResetMethod,
|
|
85
|
+
filterRecoverMethod: _vm.filterRecoverMethod,
|
|
86
|
+
filterRender: _vm.filterRender,
|
|
87
|
+
treeNode: _vm.treeNode,
|
|
88
|
+
cellType: _vm.cellType,
|
|
89
|
+
cellRender: _vm.cellRender,
|
|
90
|
+
editRender: _vm.editRender,
|
|
91
|
+
contentRender: _vm.contentRender,
|
|
92
|
+
exportMethod: _vm.exportMethod,
|
|
93
|
+
footerExportMethod: _vm.footerExportMethod,
|
|
94
|
+
titleHelp: _vm.titleHelp,
|
|
95
|
+
titlePrefix: _vm.titlePrefix,
|
|
96
|
+
// 自定义参数
|
|
97
|
+
params: _vm.params,
|
|
98
|
+
// 渲染属性
|
|
99
|
+
id: _vm.colId || XEUtils.uniqueId('col_'),
|
|
100
|
+
parentId: null,
|
|
101
|
+
visible,
|
|
102
|
+
// 内部属性(一旦被使用,将导致不可升级版本)
|
|
103
|
+
halfVisible: false,
|
|
104
|
+
defaultVisible: visible,
|
|
105
|
+
checked: false,
|
|
106
|
+
halfChecked: false,
|
|
107
|
+
disabled: false,
|
|
108
|
+
level: 1,
|
|
109
|
+
rowSpan: 1,
|
|
110
|
+
colSpan: 1,
|
|
111
|
+
order: null,
|
|
112
|
+
sortTime: 0,
|
|
113
|
+
renderWidth: 0,
|
|
114
|
+
renderHeight: 0,
|
|
115
|
+
resizeWidth: 0,
|
|
116
|
+
renderLeft: 0,
|
|
117
|
+
renderArgs: [], // 渲染参数可用于扩展
|
|
118
|
+
model: {},
|
|
119
|
+
renderHeader: renderHeader || _vm.renderHeader,
|
|
120
|
+
renderCell: renderCell || _vm.renderCell,
|
|
121
|
+
renderFooter: renderFooter || _vm.renderFooter,
|
|
122
|
+
renderData: renderData,
|
|
123
|
+
// 单元格插槽,只对 grid 有效
|
|
124
|
+
slots: _vm.slots
|
|
125
|
+
})
|
|
126
|
+
if (proxyOpts && proxyOpts.beforeColumn) {
|
|
127
|
+
proxyOpts.beforeColumn({ $grid: $xegrid, column: this })
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
getTitle () {
|
|
132
|
+
return getFuncText(this.title || (this.type === 'seq' ? GlobalConfig.i18n('vxe.table.seqTitle') : ''))
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
getKey () {
|
|
136
|
+
return this.property || (this.type ? `type=${this.type}` : null)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
update (name, value) {
|
|
140
|
+
// 不支持双向的属性
|
|
141
|
+
if (name !== 'filters') {
|
|
142
|
+
if (name === 'field') {
|
|
143
|
+
// 兼容旧属性
|
|
144
|
+
this.property = value
|
|
145
|
+
}
|
|
146
|
+
this[name] = value
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -2,13 +2,13 @@ import XEUtils from 'xe-utils'
|
|
|
2
2
|
import GlobalConfig from '../../v-x-e-table/src/conf'
|
|
3
3
|
import Cell from './cell'
|
|
4
4
|
import VXETable from '../../v-x-e-table'
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { browse, getPaddingTopBottomSize, setScrollTop, setScrollLeft } from '../../tools/src/dom'
|
|
5
|
+
import { getRowid, getRowkey, clearTableAllStatus, handleFieldOrColumn, restoreScrollLocation, restoreScrollListener, toTreePathSeq } from './util'
|
|
6
|
+
import UtilTools, { eqEmptyValue, isEnableConf, getFuncText } from '../../tools/utils'
|
|
7
|
+
import DomTools, { browse, getPaddingTopBottomSize, setScrollTop, setScrollLeft } from '../../tools/dom'
|
|
9
8
|
import { formats } from '../../v-x-e-table/src/formats'
|
|
9
|
+
import { warnLog, errLog } from '../../tools/log'
|
|
10
10
|
|
|
11
|
-
const {
|
|
11
|
+
const { setCellValue, hasChildrenList, getColumnList } = UtilTools
|
|
12
12
|
const { calcHeight, hasClass, addClass, removeClass, getEventTargetNode, isNodeElement } = DomTools
|
|
13
13
|
|
|
14
14
|
const isWebkit = browse['-webkit'] && !browse.edge
|
|
@@ -360,23 +360,23 @@ const Methods = {
|
|
|
360
360
|
if (treeOpts.transform) {
|
|
361
361
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
362
362
|
if (!treeOpts.rowField) {
|
|
363
|
-
|
|
363
|
+
errLog('vxe.error.reqProp', ['table.tree-config.rowField'])
|
|
364
364
|
}
|
|
365
365
|
if (!treeOpts.parentField) {
|
|
366
|
-
|
|
366
|
+
errLog('vxe.error.reqProp', ['table.tree-config.parentField'])
|
|
367
367
|
}
|
|
368
368
|
if (!treeOpts.children) {
|
|
369
|
-
|
|
369
|
+
errLog('vxe.error.reqProp', ['tree-config.children'])
|
|
370
370
|
}
|
|
371
371
|
if (!treeOpts.mapChildren) {
|
|
372
|
-
|
|
372
|
+
errLog('vxe.error.reqProp', ['tree-config.mapChildren'])
|
|
373
373
|
}
|
|
374
374
|
if (treeOpts.children === treeOpts.mapChildren) {
|
|
375
|
-
|
|
375
|
+
errLog('vxe.error.errConflicts', ['tree-config.children', 'tree-config.mapChildren'])
|
|
376
376
|
}
|
|
377
377
|
fullData.forEach(row => {
|
|
378
378
|
if (row[treeOpts.children] && row[treeOpts.children].length) {
|
|
379
|
-
|
|
379
|
+
warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${treeOpts.children}`])
|
|
380
380
|
}
|
|
381
381
|
})
|
|
382
382
|
}
|
|
@@ -413,13 +413,13 @@ const Methods = {
|
|
|
413
413
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
414
414
|
if (sYLoad) {
|
|
415
415
|
if (!(this.height || this.maxHeight)) {
|
|
416
|
-
|
|
416
|
+
errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}'])
|
|
417
417
|
}
|
|
418
418
|
if (!this.showOverflow) {
|
|
419
|
-
|
|
419
|
+
warnLog('vxe.error.reqProp', ['table.show-overflow'])
|
|
420
420
|
}
|
|
421
421
|
if (this.spanMethod) {
|
|
422
|
-
|
|
422
|
+
warnLog('vxe.error.scrollErrProp', ['table.span-method'])
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
}
|
|
@@ -520,7 +520,7 @@ const Methods = {
|
|
|
520
520
|
this.tableData = tableData.slice(0)
|
|
521
521
|
} else {
|
|
522
522
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
523
|
-
|
|
523
|
+
warnLog('vxe.error.reqProp', ['keep-source'])
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
return this.$nextTick()
|
|
@@ -560,7 +560,7 @@ const Methods = {
|
|
|
560
560
|
this.handleTableData(true)
|
|
561
561
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
562
562
|
if ((this.scrollXLoad || this.scrollYLoad) && this.expandColumn) {
|
|
563
|
-
|
|
563
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand'])
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return this.$nextTick().then(() => {
|
|
@@ -660,7 +660,7 @@ const Methods = {
|
|
|
660
660
|
if (property) {
|
|
661
661
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
662
662
|
if (fullColumnFieldData[property]) {
|
|
663
|
-
|
|
663
|
+
warnLog('vxe.error.colRepet', ['field', property])
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
fullColumnFieldData[property] = rest
|
|
@@ -671,7 +671,7 @@ const Methods = {
|
|
|
671
671
|
if (treeNode) {
|
|
672
672
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
673
673
|
if (treeNodeColumn) {
|
|
674
|
-
|
|
674
|
+
warnLog('vxe.error.colRepet', ['tree-node', treeNode])
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
if (!treeNodeColumn) {
|
|
@@ -680,7 +680,7 @@ const Methods = {
|
|
|
680
680
|
} else if (type === 'expand') {
|
|
681
681
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
682
682
|
if (expandColumn) {
|
|
683
|
-
|
|
683
|
+
warnLog('vxe.error.colRepet', ['type', type])
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
if (!expandColumn) {
|
|
@@ -690,14 +690,14 @@ const Methods = {
|
|
|
690
690
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
691
691
|
if (type === 'checkbox') {
|
|
692
692
|
if (checkboxColumn) {
|
|
693
|
-
|
|
693
|
+
warnLog('vxe.error.colRepet', ['type', type])
|
|
694
694
|
}
|
|
695
695
|
if (!checkboxColumn) {
|
|
696
696
|
checkboxColumn = column
|
|
697
697
|
}
|
|
698
698
|
} else if (type === 'radio') {
|
|
699
699
|
if (radioColumn) {
|
|
700
|
-
|
|
700
|
+
warnLog('vxe.error.colRepet', ['type', type])
|
|
701
701
|
}
|
|
702
702
|
if (!radioColumn) {
|
|
703
703
|
radioColumn = column
|
|
@@ -706,20 +706,20 @@ const Methods = {
|
|
|
706
706
|
}
|
|
707
707
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
708
708
|
if (this.showOverflow && column.showOverflow === false) {
|
|
709
|
-
|
|
709
|
+
warnLog('vxe.error.errConflicts', [`table.show-overflow=${this.showOverflow}`, `column.show-overflow=${column.showOverflow}`])
|
|
710
710
|
}
|
|
711
711
|
if (this.showHeaderOverflow && column.showHeaderOverflow === false) {
|
|
712
|
-
|
|
712
|
+
warnLog('vxe.error.errConflicts', [`table.show-header-overflow=${this.showHeaderOverflow}`, `column.show-header-overflow=${column.showHeaderOverflow}`])
|
|
713
713
|
}
|
|
714
714
|
if (this.showFooterOverflow && column.showFooterOverflow === false) {
|
|
715
|
-
|
|
715
|
+
warnLog('vxe.error.errConflicts', [`table.show-footer-overflow=${this.showFooterOverflow}`, `column.show-footer-overflow=${column.showFooterOverflow}`])
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
if (isAllOverflow && column.showOverflow === false) {
|
|
719
719
|
isAllOverflow = false
|
|
720
720
|
}
|
|
721
721
|
if (fullColumnIdData[colid]) {
|
|
722
|
-
|
|
722
|
+
errLog('vxe.error.colRepet', ['colId', colid])
|
|
723
723
|
}
|
|
724
724
|
fullColumnIdData[colid] = rest
|
|
725
725
|
fullColumnMap.set(column, rest)
|
|
@@ -736,7 +736,7 @@ const Methods = {
|
|
|
736
736
|
|
|
737
737
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
738
738
|
if (expandColumn && this.mouseOpts.area) {
|
|
739
|
-
|
|
739
|
+
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
|
|
@@ -807,7 +807,7 @@ const Methods = {
|
|
|
807
807
|
// 在 v3 中废弃
|
|
808
808
|
_getRowIndex (row) {
|
|
809
809
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
810
|
-
|
|
810
|
+
warnLog('vxe.error.delFunc', ['_getRowIndex', 'getVTRowIndex'])
|
|
811
811
|
}
|
|
812
812
|
return this.getVTRowIndex(row)
|
|
813
813
|
},
|
|
@@ -821,7 +821,7 @@ const Methods = {
|
|
|
821
821
|
// 在 v3 中废弃
|
|
822
822
|
$getRowIndex (row) {
|
|
823
823
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
824
|
-
|
|
824
|
+
warnLog('vxe.error.delFunc', ['$getRowIndex', 'getVMRowIndex'])
|
|
825
825
|
}
|
|
826
826
|
return this.getVMRowIndex(row)
|
|
827
827
|
},
|
|
@@ -842,7 +842,7 @@ const Methods = {
|
|
|
842
842
|
// 在 v3 中废弃
|
|
843
843
|
_getColumnIndex (column) {
|
|
844
844
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
845
|
-
|
|
845
|
+
warnLog('vxe.error.delFunc', ['_getColumnIndex', 'getVTColumnIndex'])
|
|
846
846
|
}
|
|
847
847
|
return this.getVTColumnIndex(column)
|
|
848
848
|
},
|
|
@@ -856,7 +856,7 @@ const Methods = {
|
|
|
856
856
|
// 在 v3 中废弃
|
|
857
857
|
$getColumnIndex (column) {
|
|
858
858
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
859
|
-
|
|
859
|
+
warnLog('vxe.error.delFunc', ['$getColumnIndex', 'getVMColumnIndex'])
|
|
860
860
|
}
|
|
861
861
|
return this.getVMColumnIndex(column)
|
|
862
862
|
},
|
|
@@ -938,7 +938,7 @@ const Methods = {
|
|
|
938
938
|
const { keepSource, tableSourceData, treeConfig } = this
|
|
939
939
|
if (!keepSource) {
|
|
940
940
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
941
|
-
|
|
941
|
+
warnLog('vxe.error.reqProp', ['keep-source'])
|
|
942
942
|
}
|
|
943
943
|
return this.$nextTick()
|
|
944
944
|
}
|
|
@@ -1430,7 +1430,7 @@ const Methods = {
|
|
|
1430
1430
|
if (customConfig && (isResizable || isVisible)) {
|
|
1431
1431
|
const customMap = {}
|
|
1432
1432
|
if (!id) {
|
|
1433
|
-
|
|
1433
|
+
errLog('vxe.error.reqProp', ['id'])
|
|
1434
1434
|
return
|
|
1435
1435
|
}
|
|
1436
1436
|
if (isResizable) {
|
|
@@ -1493,7 +1493,7 @@ const Methods = {
|
|
|
1493
1493
|
const colHides = []
|
|
1494
1494
|
const colShows = []
|
|
1495
1495
|
if (!id) {
|
|
1496
|
-
|
|
1496
|
+
errLog('vxe.error.reqProp', ['id'])
|
|
1497
1497
|
return
|
|
1498
1498
|
}
|
|
1499
1499
|
XEUtils.eachTree(collectColumn, column => {
|
|
@@ -1524,7 +1524,7 @@ const Methods = {
|
|
|
1524
1524
|
const columnWidthStorageMap = getCustomStorageMap(resizableStorageKey)
|
|
1525
1525
|
let columnWidthStorage
|
|
1526
1526
|
if (!id) {
|
|
1527
|
-
|
|
1527
|
+
errLog('vxe.error.reqProp', ['id'])
|
|
1528
1528
|
return
|
|
1529
1529
|
}
|
|
1530
1530
|
if (!isReset) {
|
|
@@ -1573,7 +1573,7 @@ const Methods = {
|
|
|
1573
1573
|
column.fixed = parent.fixed
|
|
1574
1574
|
}
|
|
1575
1575
|
if (parent && column.fixed !== parent.fixed) {
|
|
1576
|
-
|
|
1576
|
+
errLog('vxe.error.groupFixed')
|
|
1577
1577
|
}
|
|
1578
1578
|
if (isColGroup) {
|
|
1579
1579
|
column.visible = !!XEUtils.findTree(column.children, subColumn => hasChildrenList(subColumn) ? null : subColumn.visible)
|
|
@@ -1620,22 +1620,22 @@ const Methods = {
|
|
|
1620
1620
|
if (scrollXLoad && isGroup) {
|
|
1621
1621
|
scrollXLoad = false
|
|
1622
1622
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
1623
|
-
|
|
1623
|
+
warnLog('vxe.error.scrollXNotGroup')
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
if (scrollXLoad) {
|
|
1627
1627
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
1628
1628
|
if (this.showHeader && !this.showHeaderOverflow) {
|
|
1629
|
-
|
|
1629
|
+
warnLog('vxe.error.reqProp', ['show-header-overflow'])
|
|
1630
1630
|
}
|
|
1631
1631
|
if (this.showFooter && !this.showFooterOverflow) {
|
|
1632
|
-
|
|
1632
|
+
warnLog('vxe.error.reqProp', ['show-footer-overflow'])
|
|
1633
1633
|
}
|
|
1634
1634
|
if (this.spanMethod) {
|
|
1635
|
-
|
|
1635
|
+
warnLog('vxe.error.scrollErrProp', ['span-method'])
|
|
1636
1636
|
}
|
|
1637
1637
|
if (this.footerSpanMethod) {
|
|
1638
|
-
|
|
1638
|
+
warnLog('vxe.error.scrollErrProp', ['footer-span-method'])
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
1641
|
const { visibleSize } = computeVirtualX(this)
|
|
@@ -1902,10 +1902,6 @@ const Methods = {
|
|
|
1902
1902
|
footerSpanMethod,
|
|
1903
1903
|
isAllOverflow,
|
|
1904
1904
|
visibleColumn
|
|
1905
|
-
// isMergeLeftFixedExceeded,
|
|
1906
|
-
// isMergeRightFixedExceeded,
|
|
1907
|
-
// isMergeFooterLeftFixedExceeded,
|
|
1908
|
-
// isMergeFooterRightFixedExceeded
|
|
1909
1905
|
} = this
|
|
1910
1906
|
const containerList = ['main', 'left', 'right']
|
|
1911
1907
|
const emptyPlaceholderElem = $refs.emptyPlaceholder
|
|
@@ -2023,14 +2019,6 @@ const Methods = {
|
|
|
2023
2019
|
tableColumn = fixedColumn
|
|
2024
2020
|
} else {
|
|
2025
2021
|
tableColumn = visibleColumn
|
|
2026
|
-
// 检查固定列是否被合并,合并范围是否超出固定列
|
|
2027
|
-
// if (mergeList.length && !isMergeLeftFixedExceeded && fixedType === 'left') {
|
|
2028
|
-
// tableColumn = fixedColumn
|
|
2029
|
-
// } else if (mergeList.length && !isMergeRightFixedExceeded && fixedType === 'right') {
|
|
2030
|
-
// tableColumn = fixedColumn
|
|
2031
|
-
// } else {
|
|
2032
|
-
// tableColumn = visibleColumn
|
|
2033
|
-
// }
|
|
2034
2022
|
}
|
|
2035
2023
|
} else {
|
|
2036
2024
|
tableColumn = visibleColumn
|
|
@@ -2056,14 +2044,6 @@ const Methods = {
|
|
|
2056
2044
|
tableColumn = fixedColumn
|
|
2057
2045
|
} else {
|
|
2058
2046
|
tableColumn = visibleColumn
|
|
2059
|
-
// 检查固定列是否被合并,合并范围是否超出固定列
|
|
2060
|
-
// if (mergeFooterList.length && !isMergeFooterLeftFixedExceeded && fixedType === 'left') {
|
|
2061
|
-
// tableColumn = fixedColumn
|
|
2062
|
-
// } else if (mergeFooterList.length && !isMergeFooterRightFixedExceeded && fixedType === 'right') {
|
|
2063
|
-
// tableColumn = fixedColumn
|
|
2064
|
-
// } else {
|
|
2065
|
-
// tableColumn = visibleColumn
|
|
2066
|
-
// }
|
|
2067
2047
|
}
|
|
2068
2048
|
} else {
|
|
2069
2049
|
tableColumn = visibleColumn
|
|
@@ -2284,6 +2264,7 @@ const Methods = {
|
|
|
2284
2264
|
const isEsc = keyCode === 27
|
|
2285
2265
|
if (isEsc) {
|
|
2286
2266
|
this.preventEvent(evnt, 'event.keydown', null, () => {
|
|
2267
|
+
this.emitEvent('keydown-start', {}, evnt)
|
|
2287
2268
|
if (keyboardConfig && mouseConfig && mouseOpts.area && this.handleKeyboardEvent) {
|
|
2288
2269
|
this.handleKeyboardEvent(evnt)
|
|
2289
2270
|
} else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
|
|
@@ -2304,6 +2285,7 @@ const Methods = {
|
|
|
2304
2285
|
}
|
|
2305
2286
|
}
|
|
2306
2287
|
this.emitEvent('keydown', {}, evnt)
|
|
2288
|
+
this.emitEvent('keydown-end', {}, evnt)
|
|
2307
2289
|
})
|
|
2308
2290
|
}
|
|
2309
2291
|
},
|
|
@@ -2549,19 +2531,9 @@ const Methods = {
|
|
|
2549
2531
|
this.updateCellAreas()
|
|
2550
2532
|
this.recalculate(true)
|
|
2551
2533
|
},
|
|
2552
|
-
handleTooltipLeaveMethod () {
|
|
2553
|
-
const tooltipOpts = this.tooltipOpts
|
|
2554
|
-
setTimeout(() => {
|
|
2555
|
-
if (!this.tooltipActive) {
|
|
2556
|
-
this.closeTooltip()
|
|
2557
|
-
}
|
|
2558
|
-
}, tooltipOpts.leaveDelay)
|
|
2559
|
-
return false
|
|
2560
|
-
},
|
|
2561
2534
|
handleTargetEnterEvent (isClear) {
|
|
2562
2535
|
const $tooltip = this.$refs.tooltip
|
|
2563
2536
|
clearTimeout(this.tooltipTimeout)
|
|
2564
|
-
this.tooltipActive = true
|
|
2565
2537
|
if (isClear) {
|
|
2566
2538
|
this.closeTooltip()
|
|
2567
2539
|
} else {
|
|
@@ -2573,7 +2545,6 @@ const Methods = {
|
|
|
2573
2545
|
handleTargetLeaveEvent () {
|
|
2574
2546
|
const tooltipOpts = this.tooltipOpts
|
|
2575
2547
|
let $tooltip = this.$refs.tooltip
|
|
2576
|
-
this.tooltipActive = false
|
|
2577
2548
|
if ($tooltip) {
|
|
2578
2549
|
$tooltip.setActived(false)
|
|
2579
2550
|
}
|
|
@@ -2590,16 +2561,19 @@ const Methods = {
|
|
|
2590
2561
|
},
|
|
2591
2562
|
triggerHeaderHelpEvent (evnt, params) {
|
|
2592
2563
|
const { column } = params
|
|
2593
|
-
const
|
|
2594
|
-
if (
|
|
2564
|
+
const titlePrefix = column.titlePrefix || column.titleHelp
|
|
2565
|
+
if (titlePrefix.content || titlePrefix.message) {
|
|
2595
2566
|
const { $refs, tooltipStore } = this
|
|
2596
|
-
const
|
|
2597
|
-
const content = UtilTools.getFuncText(titleHelp.content || titleHelp.message)
|
|
2567
|
+
const content = getFuncText(titlePrefix.content || titlePrefix.message)
|
|
2598
2568
|
this.handleTargetEnterEvent(true)
|
|
2599
2569
|
tooltipStore.visible = true
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2570
|
+
tooltipStore.currOpts = { ...titlePrefix, content: null }
|
|
2571
|
+
this.$nextTick(() => {
|
|
2572
|
+
const $tooltip = $refs.tooltip
|
|
2573
|
+
if ($tooltip) {
|
|
2574
|
+
$tooltip.open(evnt.currentTarget, content)
|
|
2575
|
+
}
|
|
2576
|
+
})
|
|
2603
2577
|
}
|
|
2604
2578
|
},
|
|
2605
2579
|
/**
|
|
@@ -2665,7 +2639,6 @@ const Methods = {
|
|
|
2665
2639
|
const { $refs, tooltipOpts, tooltipStore } = this
|
|
2666
2640
|
const { column, row } = params
|
|
2667
2641
|
const { showAll, enabled, contentMethod } = tooltipOpts
|
|
2668
|
-
const tooltip = $refs.tooltip
|
|
2669
2642
|
const customContent = contentMethod ? contentMethod(params) : null
|
|
2670
2643
|
const useCustom = contentMethod && !XEUtils.eqNull(customContent)
|
|
2671
2644
|
const content = useCustom ? customContent : (column.type === 'html' ? overflowElem.innerText : overflowElem.textContent).trim()
|
|
@@ -2674,11 +2647,15 @@ const Methods = {
|
|
|
2674
2647
|
Object.assign(tooltipStore, {
|
|
2675
2648
|
row,
|
|
2676
2649
|
column,
|
|
2677
|
-
visible: true
|
|
2650
|
+
visible: true,
|
|
2651
|
+
currOpts: null
|
|
2652
|
+
})
|
|
2653
|
+
this.$nextTick(() => {
|
|
2654
|
+
const $tooltip = $refs.tooltip
|
|
2655
|
+
if ($tooltip) {
|
|
2656
|
+
$tooltip.open(isCellOverflow ? overflowElem : (tipElem || overflowElem), UtilTools.formatText(content))
|
|
2657
|
+
}
|
|
2678
2658
|
})
|
|
2679
|
-
if (tooltip) {
|
|
2680
|
-
tooltip.open(isCellOverflow ? overflowElem : (tipElem || overflowElem), UtilTools.formatText(content))
|
|
2681
|
-
}
|
|
2682
2659
|
}
|
|
2683
2660
|
return this.$nextTick()
|
|
2684
2661
|
},
|
|
@@ -2702,7 +2679,8 @@ const Methods = {
|
|
|
2702
2679
|
row: null,
|
|
2703
2680
|
column: null,
|
|
2704
2681
|
content: null,
|
|
2705
|
-
visible: false
|
|
2682
|
+
visible: false,
|
|
2683
|
+
currOpts: null
|
|
2706
2684
|
})
|
|
2707
2685
|
if (tooltip) {
|
|
2708
2686
|
tooltip.close()
|
|
@@ -2726,7 +2704,7 @@ const Methods = {
|
|
|
2726
2704
|
return !this.isAllSelected && this.isIndeterminate
|
|
2727
2705
|
},
|
|
2728
2706
|
isCheckboxIndeterminate () {
|
|
2729
|
-
|
|
2707
|
+
warnLog('vxe.error.delFunc', ['isCheckboxIndeterminate', 'isAllCheckboxIndeterminate'])
|
|
2730
2708
|
return this.isAllCheckboxIndeterminate()
|
|
2731
2709
|
},
|
|
2732
2710
|
/**
|
|
@@ -3634,7 +3612,7 @@ const Methods = {
|
|
|
3634
3612
|
// 在 v3 中废弃
|
|
3635
3613
|
getSortColumn () {
|
|
3636
3614
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
3637
|
-
|
|
3615
|
+
warnLog('vxe.error.delFunc', ['getSortColumn', 'getSortColumns'])
|
|
3638
3616
|
}
|
|
3639
3617
|
return XEUtils.find(this.tableFullColumn, column => (column.sortable || column.remoteSort) && column.order)
|
|
3640
3618
|
},
|
|
@@ -3717,7 +3695,7 @@ const Methods = {
|
|
|
3717
3695
|
},
|
|
3718
3696
|
reloadExpandContent (row) {
|
|
3719
3697
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
3720
|
-
|
|
3698
|
+
warnLog('vxe.error.delFunc', ['reloadExpandContent', 'reloadRowExpand'])
|
|
3721
3699
|
}
|
|
3722
3700
|
// 即将废弃
|
|
3723
3701
|
return this.reloadRowExpand(row)
|
|
@@ -3928,7 +3906,7 @@ const Methods = {
|
|
|
3928
3906
|
},
|
|
3929
3907
|
reloadTreeChilds (row) {
|
|
3930
3908
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
3931
|
-
|
|
3909
|
+
warnLog('vxe.error.delFunc', ['reloadTreeChilds', 'reloadTreeExpand'])
|
|
3932
3910
|
}
|
|
3933
3911
|
// 即将废弃
|
|
3934
3912
|
return this.reloadTreeExpand(row)
|
|
@@ -4489,7 +4467,7 @@ const Methods = {
|
|
|
4489
4467
|
*/
|
|
4490
4468
|
setMergeCells (merges) {
|
|
4491
4469
|
if (this.spanMethod) {
|
|
4492
|
-
|
|
4470
|
+
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method'])
|
|
4493
4471
|
}
|
|
4494
4472
|
setMerges(this, merges, this.mergeList, this.afterFullData)
|
|
4495
4473
|
return this.$nextTick().then(() => this.updateCellAreas())
|
|
@@ -4500,7 +4478,7 @@ const Methods = {
|
|
|
4500
4478
|
*/
|
|
4501
4479
|
removeMergeCells (merges) {
|
|
4502
4480
|
if (this.spanMethod) {
|
|
4503
|
-
|
|
4481
|
+
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method'])
|
|
4504
4482
|
}
|
|
4505
4483
|
const rest = removeMerges(this, merges, this.mergeList, this.afterFullData)
|
|
4506
4484
|
return this.$nextTick().then(() => {
|
|
@@ -4526,14 +4504,14 @@ const Methods = {
|
|
|
4526
4504
|
},
|
|
4527
4505
|
setMergeFooterItems (merges) {
|
|
4528
4506
|
if (this.footerSpanMethod) {
|
|
4529
|
-
|
|
4507
|
+
errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method'])
|
|
4530
4508
|
}
|
|
4531
4509
|
setMerges(this, merges, this.mergeFooterList, null)
|
|
4532
4510
|
return this.$nextTick().then(() => this.updateCellAreas())
|
|
4533
4511
|
},
|
|
4534
4512
|
removeMergeFooterItems (merges) {
|
|
4535
4513
|
if (this.footerSpanMethod) {
|
|
4536
|
-
|
|
4514
|
+
errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method'])
|
|
4537
4515
|
}
|
|
4538
4516
|
const rest = removeMerges(this, merges, this.mergeFooterList, null)
|
|
4539
4517
|
return this.$nextTick().then(() => {
|
|
@@ -4583,7 +4561,7 @@ const Methods = {
|
|
|
4583
4561
|
$toolbar.syncUpdate({ collectColumn: this.collectColumn, $table: this })
|
|
4584
4562
|
this.$toolbar = $toolbar
|
|
4585
4563
|
} else {
|
|
4586
|
-
|
|
4564
|
+
errLog('vxe.error.barUnableLink')
|
|
4587
4565
|
}
|
|
4588
4566
|
return this.$nextTick()
|
|
4589
4567
|
},
|
|
@@ -4654,9 +4632,9 @@ funcs.forEach(name => {
|
|
|
4654
4632
|
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
4655
4633
|
if (!this[`_${name}`]) {
|
|
4656
4634
|
if ('openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').includes(name)) {
|
|
4657
|
-
|
|
4635
|
+
errLog('vxe.error.reqModule', ['Export'])
|
|
4658
4636
|
} else if ('clearValidate,fullValidate,validate'.split(',').includes(name)) {
|
|
4659
|
-
|
|
4637
|
+
errLog('vxe.error.reqModule', ['Validator'])
|
|
4660
4638
|
}
|
|
4661
4639
|
}
|
|
4662
4640
|
}
|