vxe-table 3.9.0-rc.9 → 3.9.1
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 +80 -9
- package/es/grid/src/grid.js +116 -62
- package/es/grid/style.css +0 -1
- package/es/grid/style.min.css +1 -1
- package/es/index.esm.js +22 -3
- package/es/locale/lang/en-US.js +6 -2
- package/es/locale/lang/es-ES.js +5 -1
- package/es/locale/lang/hu-HU.js +5 -1
- package/es/locale/lang/ja-JP.js +5 -1
- package/es/locale/lang/ko-KR.js +5 -1
- package/es/locale/lang/pt-BR.js +5 -1
- package/es/locale/lang/ru-RU.js +5 -1
- package/es/locale/lang/uk-UA.js +5 -1
- package/es/locale/lang/vi-VN.js +5 -1
- package/es/locale/lang/zh-CHT.js +5 -1
- package/es/locale/lang/zh-CN.js +5 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +183 -173
- package/es/table/module/edit/mixin.js +35 -40
- package/es/table/module/export/export-panel.js +32 -4
- package/es/table/module/export/import-panel.js +25 -6
- package/es/table/module/export/mixin.js +11 -11
- package/es/table/module/menu/mixin.js +2 -2
- package/es/table/module/validator/mixin.js +4 -4
- package/es/table/render/index.js +17 -11
- package/es/table/src/body.js +1 -0
- package/es/table/src/columnInfo.js +3 -3
- package/es/table/src/methods.js +69 -55
- package/es/table/src/props.js +65 -15
- package/es/table/src/table.js +63 -29
- package/es/table/src/util.js +3 -2
- package/es/table/style.css +37 -48
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +21 -7
- package/es/toolbar/style.css +0 -1
- package/es/toolbar/style.min.css +1 -1
- package/es/ui/index.js +5 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-grid/style.css +0 -1
- package/es/vxe-grid/style.min.css +1 -1
- package/es/vxe-table/style.css +37 -48
- package/es/vxe-table/style.min.css +1 -1
- package/es/vxe-toolbar/style.css +0 -1
- package/es/vxe-toolbar/style.min.css +1 -1
- package/lib/colgroup/index.js +3 -3
- package/lib/colgroup/index.min.js +1 -1
- package/lib/column/index.js +3 -3
- package/lib/column/index.min.js +1 -1
- package/lib/components.js +9 -11
- package/lib/components.min.js +1 -1
- package/lib/grid/index.js +3 -3
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +577 -487
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +0 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/index.common.js +3 -4
- package/lib/index.umd.js +9148 -17246
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +6 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +6 -2
- package/lib/locale/lang/es-ES.js +5 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +5 -1
- package/lib/locale/lang/hu-HU.js +5 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +5 -1
- package/lib/locale/lang/ja-JP.js +5 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +5 -1
- package/lib/locale/lang/ko-KR.js +5 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +5 -1
- package/lib/locale/lang/pt-BR.js +5 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +5 -1
- package/lib/locale/lang/ru-RU.js +5 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +5 -1
- package/lib/locale/lang/uk-UA.js +5 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +5 -1
- package/lib/locale/lang/vi-VN.js +5 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +5 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +5 -1
- package/lib/locale/lang/zh-CN.js +5 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +5 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/index.js +4 -4
- package/lib/table/index.min.js +1 -1
- package/lib/table/module/custom/mixin.js +53 -44
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +310 -239
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/mixin.js +434 -383
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/export/export-panel.js +136 -106
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +75 -54
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/export/mixin.js +592 -597
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/export/util.js +6 -4
- package/lib/table/module/export/util.min.js +1 -1
- package/lib/table/module/filter/mixin.js +147 -118
- package/lib/table/module/filter/mixin.min.js +1 -1
- package/lib/table/module/filter/panel.js +86 -65
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +163 -151
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/module/menu/mixin.js +125 -114
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/module/menu/panel.js +36 -34
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/module/validator/mixin.js +225 -214
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/render/index.js +401 -297
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +411 -349
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +470 -344
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +10 -10
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +46 -55
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +157 -132
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/group.js +1 -1
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/header.js +170 -153
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +2770 -2491
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +33 -74
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +436 -395
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +143 -131
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +37 -48
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/index.js +3 -3
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +332 -284
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +0 -1
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/ui/index.js +50 -41
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/comp.js +2 -3
- package/lib/ui/src/comp.min.js +1 -1
- package/lib/ui/src/dom.js +29 -28
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +6 -4
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/utils.js +7 -7
- package/lib/v-x-e-table/index.js +3 -4
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +3 -4
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +3 -4
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +3 -4
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-grid/style/style.css +0 -1
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-table/index.js +3 -4
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +37 -48
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/index.js +3 -4
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-toolbar/style/style.css +0 -1
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/lib/vxe-ui/index.js +3 -4
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +3 -4
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +5 -4
- package/packages/grid/src/grid.ts +123 -61
- package/packages/locale/lang/en-US.ts +6 -2
- package/packages/locale/lang/es-ES.ts +5 -1
- package/packages/locale/lang/hu-HU.ts +5 -1
- package/packages/locale/lang/ja-JP.ts +5 -1
- package/packages/locale/lang/ko-KR.ts +5 -1
- package/packages/locale/lang/pt-BR.ts +5 -1
- package/packages/locale/lang/ru-RU.ts +5 -1
- package/packages/locale/lang/uk-UA.ts +5 -1
- package/packages/locale/lang/vi-VN.ts +5 -1
- package/packages/locale/lang/zh-CHT.ts +5 -1
- package/packages/locale/lang/zh-CN.ts +5 -1
- package/packages/table/module/custom/panel.ts +186 -175
- package/packages/table/module/edit/mixin.ts +34 -39
- package/packages/table/module/export/export-panel.ts +36 -4
- package/packages/table/module/export/import-panel.ts +29 -6
- package/packages/table/module/export/mixin.ts +11 -11
- package/packages/table/module/menu/mixin.ts +2 -2
- package/packages/table/module/validator/mixin.ts +4 -4
- package/packages/table/render/index.ts +20 -11
- package/packages/table/src/body.ts +1 -0
- package/packages/table/src/columnInfo.ts +3 -3
- package/packages/table/src/methods.ts +70 -55
- package/packages/table/src/props.ts +68 -15
- package/packages/table/src/table.ts +71 -26
- package/packages/table/src/util.ts +3 -2
- package/packages/toolbar/src/toolbar.ts +21 -7
- package/packages/ui/index.ts +3 -1
- package/styles/components/table.scss +82 -17
- package/types/all.d.ts +1 -0
- /package/es/{iconfont.1726453742001.ttf → iconfont.1728483486168.ttf} +0 -0
- /package/es/{iconfont.1726453742001.woff → iconfont.1728483486168.woff} +0 -0
- /package/es/{iconfont.1726453742001.woff2 → iconfont.1728483486168.woff2} +0 -0
- /package/lib/{iconfont.1726453742001.ttf → iconfont.1728483486168.ttf} +0 -0
- /package/lib/{iconfont.1726453742001.woff → iconfont.1728483486168.woff} +0 -0
- /package/lib/{iconfont.1726453742001.woff2 → iconfont.1728483486168.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -27,16 +27,14 @@ var _mixin5 = _interopRequireDefault(require("../module/keyboard/mixin"));
|
|
|
27
27
|
var _mixin6 = _interopRequireDefault(require("../module/validator/mixin"));
|
|
28
28
|
var _mixin7 = _interopRequireDefault(require("../module/custom/mixin"));
|
|
29
29
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
globalEvents = _ui.VxeUI.globalEvents,
|
|
39
|
-
globalMixins = _ui.VxeUI.globalMixins;
|
|
30
|
+
const {
|
|
31
|
+
getConfig,
|
|
32
|
+
getI18n,
|
|
33
|
+
renderer,
|
|
34
|
+
globalResize,
|
|
35
|
+
globalEvents,
|
|
36
|
+
globalMixins
|
|
37
|
+
} = _ui.VxeUI;
|
|
40
38
|
/**
|
|
41
39
|
* 渲染浮固定列
|
|
42
40
|
* 分别渲染左边固定列和右边固定列
|
|
@@ -46,61 +44,65 @@ var getConfig = _ui.VxeUI.getConfig,
|
|
|
46
44
|
* @param {String} fixedType 固定列类型
|
|
47
45
|
*/
|
|
48
46
|
function renderFixed(h, $xetable, fixedType) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
const {
|
|
48
|
+
_e,
|
|
49
|
+
tableData,
|
|
50
|
+
tableColumn,
|
|
51
|
+
tableGroupColumn,
|
|
52
|
+
vSize,
|
|
53
|
+
showHeader,
|
|
54
|
+
showFooter,
|
|
55
|
+
columnStore,
|
|
56
|
+
footerTableData
|
|
57
|
+
} = $xetable;
|
|
58
|
+
const fixedColumn = columnStore[`${fixedType}List`];
|
|
59
59
|
return h('div', {
|
|
60
|
-
class:
|
|
61
|
-
ref:
|
|
60
|
+
class: `vxe-table--fixed-${fixedType}-wrapper`,
|
|
61
|
+
ref: `${fixedType}Container`
|
|
62
62
|
}, [showHeader ? h(_header.default, {
|
|
63
63
|
props: {
|
|
64
|
-
fixedType
|
|
65
|
-
tableData
|
|
66
|
-
tableColumn
|
|
67
|
-
tableGroupColumn
|
|
64
|
+
fixedType,
|
|
65
|
+
tableData,
|
|
66
|
+
tableColumn,
|
|
67
|
+
tableGroupColumn,
|
|
68
68
|
size: vSize,
|
|
69
|
-
fixedColumn
|
|
69
|
+
fixedColumn
|
|
70
70
|
},
|
|
71
|
-
ref:
|
|
71
|
+
ref: `${fixedType}Header`
|
|
72
72
|
}) : _e(), h(_body.default, {
|
|
73
73
|
props: {
|
|
74
|
-
fixedType
|
|
75
|
-
tableData
|
|
76
|
-
tableColumn
|
|
77
|
-
fixedColumn
|
|
74
|
+
fixedType,
|
|
75
|
+
tableData,
|
|
76
|
+
tableColumn,
|
|
77
|
+
fixedColumn,
|
|
78
78
|
size: vSize
|
|
79
79
|
},
|
|
80
|
-
ref:
|
|
80
|
+
ref: `${fixedType}Body`
|
|
81
81
|
}), showFooter ? h(_footer.default, {
|
|
82
82
|
props: {
|
|
83
|
-
footerTableData
|
|
84
|
-
tableColumn
|
|
85
|
-
fixedColumn
|
|
86
|
-
fixedType
|
|
83
|
+
footerTableData,
|
|
84
|
+
tableColumn,
|
|
85
|
+
fixedColumn,
|
|
86
|
+
fixedType,
|
|
87
87
|
size: vSize
|
|
88
88
|
},
|
|
89
|
-
ref:
|
|
89
|
+
ref: `${fixedType}Footer`
|
|
90
90
|
}) : _e()]);
|
|
91
91
|
}
|
|
92
92
|
function renderEmptyContenet(h, _vm) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
const {
|
|
94
|
+
$scopedSlots,
|
|
95
|
+
emptyOpts
|
|
96
|
+
} = _vm;
|
|
97
|
+
let emptyContent = '';
|
|
98
|
+
const params = {
|
|
97
99
|
$table: _vm
|
|
98
100
|
};
|
|
99
101
|
if ($scopedSlots.empty) {
|
|
100
102
|
emptyContent = $scopedSlots.empty.call(_vm, params, h);
|
|
101
103
|
} else {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null;
|
|
105
|
+
const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
104
106
|
if (renderTableEmptyView) {
|
|
105
107
|
emptyContent = (0, _vn.getSlotVNs)(renderTableEmptyView.call(_vm, h, emptyOpts, params));
|
|
106
108
|
} else {
|
|
@@ -110,7 +112,9 @@ function renderEmptyContenet(h, _vm) {
|
|
|
110
112
|
return emptyContent;
|
|
111
113
|
}
|
|
112
114
|
function handleUupdateResize(_vm) {
|
|
113
|
-
|
|
115
|
+
const {
|
|
116
|
+
$el
|
|
117
|
+
} = _vm;
|
|
114
118
|
if ($el && $el.clientWidth && $el.clientHeight) {
|
|
115
119
|
_vm.recalculate();
|
|
116
120
|
}
|
|
@@ -119,7 +123,7 @@ var _default = exports.default = {
|
|
|
119
123
|
name: 'VxeTable',
|
|
120
124
|
mixins: [globalMixins.sizeMixin, _mixin.default, _mixin2.default, _mixin3.default, _mixin4.default, _mixin5.default, _mixin6.default, _mixin7.default],
|
|
121
125
|
props: _props.default,
|
|
122
|
-
provide
|
|
126
|
+
provide() {
|
|
123
127
|
return {
|
|
124
128
|
$xetable: this,
|
|
125
129
|
$xeTable: this,
|
|
@@ -127,6 +131,9 @@ var _default = exports.default = {
|
|
|
127
131
|
};
|
|
128
132
|
},
|
|
129
133
|
inject: {
|
|
134
|
+
$xeTabs: {
|
|
135
|
+
default: null
|
|
136
|
+
},
|
|
130
137
|
$xeGrid: {
|
|
131
138
|
default: null
|
|
132
139
|
},
|
|
@@ -134,9 +141,9 @@ var _default = exports.default = {
|
|
|
134
141
|
default: null
|
|
135
142
|
}
|
|
136
143
|
},
|
|
137
|
-
data
|
|
144
|
+
data() {
|
|
138
145
|
return {
|
|
139
|
-
tId:
|
|
146
|
+
tId: `${_xeUtils.default.uniqueId()}`,
|
|
140
147
|
isCalcColumn: false,
|
|
141
148
|
// 低性能的静态列
|
|
142
149
|
staticColumns: [],
|
|
@@ -353,40 +360,42 @@ var _default = exports.default = {
|
|
|
353
360
|
_isLoading: false
|
|
354
361
|
};
|
|
355
362
|
},
|
|
356
|
-
computed: {
|
|
357
|
-
tableId
|
|
358
|
-
|
|
363
|
+
computed: Object.assign(Object.assign({}, {}), {
|
|
364
|
+
tableId() {
|
|
365
|
+
const {
|
|
366
|
+
id
|
|
367
|
+
} = this;
|
|
359
368
|
if (id) {
|
|
360
369
|
if (_xeUtils.default.isFunction(id)) {
|
|
361
|
-
return
|
|
370
|
+
return `${id({
|
|
362
371
|
$table: this
|
|
363
|
-
}) || ''
|
|
372
|
+
}) || ''}`;
|
|
364
373
|
}
|
|
365
|
-
return
|
|
374
|
+
return `${id}`;
|
|
366
375
|
}
|
|
367
376
|
return '';
|
|
368
377
|
},
|
|
369
|
-
validOpts
|
|
378
|
+
validOpts() {
|
|
370
379
|
return this.computeValidOpts;
|
|
371
380
|
},
|
|
372
|
-
computeValidOpts
|
|
381
|
+
computeValidOpts() {
|
|
373
382
|
return Object.assign({
|
|
374
383
|
message: 'default'
|
|
375
384
|
}, getConfig().table.validConfig, this.validConfig);
|
|
376
385
|
},
|
|
377
|
-
sXOpts
|
|
386
|
+
sXOpts() {
|
|
378
387
|
return this.computeSXOpts;
|
|
379
388
|
},
|
|
380
|
-
computeSXOpts
|
|
389
|
+
computeSXOpts() {
|
|
381
390
|
return Object.assign({}, getConfig().table.scrollX, this.scrollX);
|
|
382
391
|
},
|
|
383
|
-
sYOpts
|
|
392
|
+
sYOpts() {
|
|
384
393
|
return this.computeSYOpts;
|
|
385
394
|
},
|
|
386
|
-
computeSYOpts
|
|
395
|
+
computeSYOpts() {
|
|
387
396
|
return Object.assign({}, getConfig().table.scrollY, this.scrollY);
|
|
388
397
|
},
|
|
389
|
-
rowHeightMaps
|
|
398
|
+
rowHeightMaps() {
|
|
390
399
|
return {
|
|
391
400
|
default: 48,
|
|
392
401
|
medium: 44,
|
|
@@ -394,225 +403,227 @@ var _default = exports.default = {
|
|
|
394
403
|
mini: 36
|
|
395
404
|
};
|
|
396
405
|
},
|
|
397
|
-
columnOpts
|
|
406
|
+
columnOpts() {
|
|
398
407
|
return this.computeColumnOpts;
|
|
399
408
|
},
|
|
400
|
-
computeColumnOpts
|
|
409
|
+
computeColumnOpts() {
|
|
401
410
|
return Object.assign({}, getConfig().table.columnConfig, this.columnConfig);
|
|
402
411
|
},
|
|
403
|
-
rowOpts
|
|
412
|
+
rowOpts() {
|
|
404
413
|
return this.computeRowOpts;
|
|
405
414
|
},
|
|
406
|
-
computeRowOpts
|
|
415
|
+
computeRowOpts() {
|
|
407
416
|
return Object.assign({}, getConfig().table.rowConfig, this.rowConfig);
|
|
408
417
|
},
|
|
409
|
-
resizeOpts
|
|
418
|
+
resizeOpts() {
|
|
410
419
|
return this.computeResizeOpts;
|
|
411
420
|
},
|
|
412
|
-
computeResizeOpts
|
|
421
|
+
computeResizeOpts() {
|
|
413
422
|
return Object.assign({}, getConfig().table.resizeConfig, this.resizeConfig);
|
|
414
423
|
},
|
|
415
|
-
resizableOpts
|
|
424
|
+
resizableOpts() {
|
|
416
425
|
return this.computeResizableOpts;
|
|
417
426
|
},
|
|
418
|
-
computeResizableOpts
|
|
427
|
+
computeResizableOpts() {
|
|
419
428
|
return Object.assign({}, getConfig().table.resizableConfig, this.resizableConfig);
|
|
420
429
|
},
|
|
421
|
-
seqOpts
|
|
430
|
+
seqOpts() {
|
|
422
431
|
return this.computeSeqOpts;
|
|
423
432
|
},
|
|
424
|
-
computeSeqOpts
|
|
433
|
+
computeSeqOpts() {
|
|
425
434
|
return Object.assign({
|
|
426
435
|
startIndex: 0
|
|
427
436
|
}, getConfig().table.seqConfig, this.seqConfig);
|
|
428
437
|
},
|
|
429
|
-
radioOpts
|
|
438
|
+
radioOpts() {
|
|
430
439
|
return this.computeRadioOpts;
|
|
431
440
|
},
|
|
432
|
-
computeRadioOpts
|
|
441
|
+
computeRadioOpts() {
|
|
433
442
|
return Object.assign({}, getConfig().table.radioConfig, this.radioConfig);
|
|
434
443
|
},
|
|
435
|
-
checkboxOpts
|
|
444
|
+
checkboxOpts() {
|
|
436
445
|
return this.computeCheckboxOpts;
|
|
437
446
|
},
|
|
438
|
-
computeCheckboxOpts
|
|
447
|
+
computeCheckboxOpts() {
|
|
439
448
|
return Object.assign({}, getConfig().table.checkboxConfig, this.checkboxConfig);
|
|
440
449
|
},
|
|
441
|
-
tooltipOpts
|
|
450
|
+
tooltipOpts() {
|
|
442
451
|
return this.computeTooltipOpts;
|
|
443
452
|
},
|
|
444
|
-
computeTooltipOpts
|
|
453
|
+
computeTooltipOpts() {
|
|
445
454
|
return Object.assign({}, getConfig().tooltip, getConfig().table.tooltipConfig, this.tooltipConfig);
|
|
446
455
|
},
|
|
447
|
-
tipConfig
|
|
456
|
+
tipConfig() {
|
|
448
457
|
return Object.assign({}, this.tooltipOpts);
|
|
449
458
|
},
|
|
450
|
-
validTipOpts
|
|
459
|
+
validTipOpts() {
|
|
451
460
|
return Object.assign({
|
|
452
461
|
isArrow: false
|
|
453
462
|
}, this.tooltipOpts);
|
|
454
463
|
},
|
|
455
|
-
editOpts
|
|
464
|
+
editOpts() {
|
|
456
465
|
return this.computeEditOpts;
|
|
457
466
|
},
|
|
458
|
-
computeEditOpts
|
|
467
|
+
computeEditOpts() {
|
|
459
468
|
return Object.assign({}, getConfig().table.editConfig, this.editConfig);
|
|
460
469
|
},
|
|
461
|
-
sortOpts
|
|
470
|
+
sortOpts() {
|
|
462
471
|
return this.computeSortOpts;
|
|
463
472
|
},
|
|
464
|
-
computeSortOpts
|
|
473
|
+
computeSortOpts() {
|
|
465
474
|
return Object.assign({
|
|
466
475
|
orders: ['asc', 'desc', null]
|
|
467
476
|
}, getConfig().table.sortConfig, this.sortConfig);
|
|
468
477
|
},
|
|
469
|
-
filterOpts
|
|
478
|
+
filterOpts() {
|
|
470
479
|
return this.computeFilterOpts;
|
|
471
480
|
},
|
|
472
|
-
computeFilterOpts
|
|
481
|
+
computeFilterOpts() {
|
|
473
482
|
return Object.assign({}, getConfig().table.filterConfig, this.filterConfig);
|
|
474
483
|
},
|
|
475
|
-
mouseOpts
|
|
484
|
+
mouseOpts() {
|
|
476
485
|
return this.computeMouseOpts;
|
|
477
486
|
},
|
|
478
|
-
computeMouseOpts
|
|
487
|
+
computeMouseOpts() {
|
|
479
488
|
return Object.assign({}, getConfig().table.mouseConfig, this.mouseConfig);
|
|
480
489
|
},
|
|
481
|
-
areaOpts
|
|
490
|
+
areaOpts() {
|
|
482
491
|
return this.computeAreaOpts;
|
|
483
492
|
},
|
|
484
|
-
computeAreaOpts
|
|
493
|
+
computeAreaOpts() {
|
|
485
494
|
return Object.assign({}, getConfig().table.areaConfig, this.areaConfig);
|
|
486
495
|
},
|
|
487
|
-
keyboardOpts
|
|
496
|
+
keyboardOpts() {
|
|
488
497
|
return this.computeKeyboardOpts;
|
|
489
498
|
},
|
|
490
|
-
computeKeyboardOpts
|
|
499
|
+
computeKeyboardOpts() {
|
|
491
500
|
return Object.assign({}, getConfig().table.keyboardConfig, this.keyboardConfig);
|
|
492
501
|
},
|
|
493
|
-
clipOpts
|
|
502
|
+
clipOpts() {
|
|
494
503
|
return this.computeClipOpts;
|
|
495
504
|
},
|
|
496
|
-
computeClipOpts
|
|
505
|
+
computeClipOpts() {
|
|
497
506
|
return Object.assign({}, getConfig().table.clipConfig, this.clipConfig);
|
|
498
507
|
},
|
|
499
|
-
fnrOpts
|
|
508
|
+
fnrOpts() {
|
|
500
509
|
return this.computeFNROpts;
|
|
501
510
|
},
|
|
502
|
-
computeFNROpts
|
|
511
|
+
computeFNROpts() {
|
|
503
512
|
return Object.assign({}, getConfig().table.fnrConfig, this.fnrConfig);
|
|
504
513
|
},
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
// return VXETable._tooltip
|
|
508
|
-
},
|
|
509
|
-
headerCtxMenu: function headerCtxMenu() {
|
|
510
|
-
var headerOpts = this.ctxMenuOpts.header;
|
|
514
|
+
headerCtxMenu() {
|
|
515
|
+
const headerOpts = this.ctxMenuOpts.header;
|
|
511
516
|
return headerOpts && headerOpts.options ? headerOpts.options : [];
|
|
512
517
|
},
|
|
513
|
-
bodyCtxMenu
|
|
514
|
-
|
|
518
|
+
bodyCtxMenu() {
|
|
519
|
+
const bodyOpts = this.ctxMenuOpts.body;
|
|
515
520
|
return bodyOpts && bodyOpts.options ? bodyOpts.options : [];
|
|
516
521
|
},
|
|
517
|
-
footerCtxMenu
|
|
518
|
-
|
|
522
|
+
footerCtxMenu() {
|
|
523
|
+
const footerOpts = this.ctxMenuOpts.footer;
|
|
519
524
|
return footerOpts && footerOpts.options ? footerOpts.options : [];
|
|
520
525
|
},
|
|
521
|
-
isCtxMenu
|
|
526
|
+
isCtxMenu() {
|
|
522
527
|
return !!((this.contextMenu || this.menuConfig) && (0, _utils.isEnableConf)(this.ctxMenuOpts) && (this.headerCtxMenu.length || this.bodyCtxMenu.length || this.footerCtxMenu.length));
|
|
523
528
|
},
|
|
524
|
-
ctxMenuList
|
|
525
|
-
|
|
526
|
-
this.ctxMenuStore.list.forEach(
|
|
527
|
-
list.forEach(
|
|
529
|
+
ctxMenuList() {
|
|
530
|
+
const rest = [];
|
|
531
|
+
this.ctxMenuStore.list.forEach(list => {
|
|
532
|
+
list.forEach(item => {
|
|
528
533
|
rest.push(item);
|
|
529
534
|
});
|
|
530
535
|
});
|
|
531
536
|
return rest;
|
|
532
537
|
},
|
|
533
|
-
ctxMenuOpts
|
|
538
|
+
ctxMenuOpts() {
|
|
534
539
|
return this.computeMenuOpts;
|
|
535
540
|
},
|
|
536
|
-
computeMenuOpts
|
|
541
|
+
computeMenuOpts() {
|
|
537
542
|
return Object.assign({}, getConfig().table.menuConfig, this.contextMenu, this.menuConfig);
|
|
538
543
|
},
|
|
539
|
-
exportOpts
|
|
544
|
+
exportOpts() {
|
|
540
545
|
return this.computeExportOpts;
|
|
541
546
|
},
|
|
542
|
-
computeExportOpts
|
|
547
|
+
computeExportOpts() {
|
|
543
548
|
return Object.assign({}, getConfig().table.exportConfig, this.exportConfig);
|
|
544
549
|
},
|
|
545
|
-
importOpts
|
|
550
|
+
importOpts() {
|
|
546
551
|
return this.computeImportOpts;
|
|
547
552
|
},
|
|
548
|
-
computeImportOpts
|
|
553
|
+
computeImportOpts() {
|
|
549
554
|
return Object.assign({}, getConfig().table.importConfig, this.importConfig);
|
|
550
555
|
},
|
|
551
|
-
printOpts
|
|
556
|
+
printOpts() {
|
|
552
557
|
return this.computePrintOpts;
|
|
553
558
|
},
|
|
554
|
-
computePrintOpts
|
|
559
|
+
computePrintOpts() {
|
|
555
560
|
return Object.assign({}, getConfig().table.printConfig, this.printConfig);
|
|
556
561
|
},
|
|
557
|
-
expandOpts
|
|
562
|
+
expandOpts() {
|
|
558
563
|
return this.computeExpandOpts;
|
|
559
564
|
},
|
|
560
|
-
computeExpandOpts
|
|
565
|
+
computeExpandOpts() {
|
|
561
566
|
return Object.assign({}, getConfig().table.expandConfig, this.expandConfig);
|
|
562
567
|
},
|
|
563
|
-
treeOpts
|
|
568
|
+
treeOpts() {
|
|
564
569
|
return this.computeTreeOpts;
|
|
565
570
|
},
|
|
566
|
-
computeTreeOpts
|
|
571
|
+
computeTreeOpts() {
|
|
567
572
|
return Object.assign({}, getConfig().table.treeConfig, this.treeConfig);
|
|
568
573
|
},
|
|
569
|
-
emptyOpts
|
|
574
|
+
emptyOpts() {
|
|
570
575
|
return this.computeEmptyOpts;
|
|
571
576
|
},
|
|
572
|
-
computeEmptyOpts
|
|
577
|
+
computeEmptyOpts() {
|
|
573
578
|
return Object.assign({}, getConfig().table.emptyRender, this.emptyRender);
|
|
574
579
|
},
|
|
575
|
-
loadingOpts
|
|
580
|
+
loadingOpts() {
|
|
576
581
|
return this.computeLoadingOpts;
|
|
577
582
|
},
|
|
578
|
-
computeLoadingOpts
|
|
583
|
+
computeLoadingOpts() {
|
|
579
584
|
return Object.assign({}, getConfig().table.loadingConfig, this.loadingConfig);
|
|
580
585
|
},
|
|
581
|
-
cellOffsetWidth
|
|
586
|
+
cellOffsetWidth() {
|
|
582
587
|
return this.border ? Math.max(2, Math.ceil(this.scrollbarWidth / this.tableColumn.length)) : 1;
|
|
583
588
|
},
|
|
584
|
-
customOpts
|
|
589
|
+
customOpts() {
|
|
585
590
|
return this.computeCustomOpts;
|
|
586
591
|
},
|
|
587
|
-
computeCustomOpts
|
|
592
|
+
computeCustomOpts() {
|
|
588
593
|
return Object.assign({}, getConfig().table.customConfig, this.customConfig);
|
|
589
594
|
},
|
|
590
|
-
autoWidthColumnList
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
},
|
|
597
|
-
fixedColumnSize
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
595
|
+
autoWidthColumnList() {
|
|
596
|
+
const {
|
|
597
|
+
tableColumn,
|
|
598
|
+
visibleColumn
|
|
599
|
+
} = this;
|
|
600
|
+
return tableColumn.length || visibleColumn.length ? visibleColumn.filter(column => column.width === 'auto' || column.minWidth === 'auto') : [];
|
|
601
|
+
},
|
|
602
|
+
fixedColumnSize() {
|
|
603
|
+
const {
|
|
604
|
+
collectColumn
|
|
605
|
+
} = this;
|
|
606
|
+
let fixedSize = 0;
|
|
607
|
+
collectColumn.forEach(column => {
|
|
601
608
|
if (column.renderFixed) {
|
|
602
609
|
fixedSize++;
|
|
603
610
|
}
|
|
604
611
|
});
|
|
605
612
|
return fixedSize;
|
|
606
613
|
},
|
|
607
|
-
isMaxFixedColumn
|
|
608
|
-
|
|
614
|
+
isMaxFixedColumn() {
|
|
615
|
+
const {
|
|
616
|
+
maxFixedSize
|
|
617
|
+
} = this.columnOpts;
|
|
609
618
|
if (maxFixedSize) {
|
|
610
619
|
return this.fixedColumnSize >= maxFixedSize;
|
|
611
620
|
}
|
|
612
621
|
return false;
|
|
613
622
|
},
|
|
614
|
-
tableBorder
|
|
615
|
-
|
|
623
|
+
tableBorder() {
|
|
624
|
+
const {
|
|
625
|
+
border
|
|
626
|
+
} = this;
|
|
616
627
|
if (border === true) {
|
|
617
628
|
return 'full';
|
|
618
629
|
}
|
|
@@ -624,13 +635,17 @@ var _default = exports.default = {
|
|
|
624
635
|
/**
|
|
625
636
|
* 判断列全选的复选框是否禁用
|
|
626
637
|
*/
|
|
627
|
-
isAllCheckboxDisabled
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
638
|
+
isAllCheckboxDisabled() {
|
|
639
|
+
const {
|
|
640
|
+
tableFullData,
|
|
641
|
+
tableData,
|
|
642
|
+
treeConfig,
|
|
643
|
+
checkboxOpts
|
|
644
|
+
} = this;
|
|
645
|
+
const {
|
|
646
|
+
strict,
|
|
647
|
+
checkMethod
|
|
648
|
+
} = checkboxOpts;
|
|
634
649
|
if (strict) {
|
|
635
650
|
if (tableData.length || tableFullData.length) {
|
|
636
651
|
if (checkMethod) {
|
|
@@ -638,176 +653,156 @@ var _default = exports.default = {
|
|
|
638
653
|
// 暂时不支持树形结构
|
|
639
654
|
}
|
|
640
655
|
// 如果所有行都被禁用
|
|
641
|
-
return tableFullData.every(
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
});
|
|
645
|
-
});
|
|
656
|
+
return tableFullData.every(row => !checkMethod({
|
|
657
|
+
row
|
|
658
|
+
}));
|
|
646
659
|
}
|
|
647
660
|
return false;
|
|
648
661
|
}
|
|
649
662
|
return true;
|
|
650
663
|
}
|
|
651
664
|
return false;
|
|
665
|
+
},
|
|
666
|
+
tabsResizeFlag() {
|
|
667
|
+
const $xeTable = this;
|
|
668
|
+
const $xeTabs = $xeTable.$xeTabs;
|
|
669
|
+
return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
|
|
652
670
|
}
|
|
653
|
-
},
|
|
671
|
+
}),
|
|
654
672
|
watch: {
|
|
655
|
-
data
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
initStatus
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
673
|
+
data(value) {
|
|
674
|
+
const {
|
|
675
|
+
inited,
|
|
676
|
+
initStatus
|
|
677
|
+
} = this;
|
|
678
|
+
this.loadTableData(value).then(() => {
|
|
679
|
+
this.inited = true;
|
|
680
|
+
this.initStatus = true;
|
|
662
681
|
if (!initStatus) {
|
|
663
|
-
|
|
682
|
+
this.handleLoadDefaults();
|
|
664
683
|
}
|
|
665
684
|
if (!inited) {
|
|
666
|
-
|
|
685
|
+
this.handleInitDefaults();
|
|
667
686
|
}
|
|
668
687
|
// const checkboxColumn = this.tableFullColumn.find(column => column.type === 'checkbox')
|
|
669
688
|
// if (checkboxColumn && this.tableFullData.length > 300 && !this.checkboxOpts.checkField) {
|
|
670
689
|
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
671
690
|
// }
|
|
672
|
-
if ((
|
|
691
|
+
if ((this.scrollXLoad || this.scrollYLoad) && this.expandColumn) {
|
|
673
692
|
(0, _log.warnLog)('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
674
693
|
}
|
|
675
|
-
|
|
694
|
+
this.recalculate();
|
|
676
695
|
});
|
|
677
696
|
},
|
|
678
|
-
staticColumns
|
|
697
|
+
staticColumns(value) {
|
|
679
698
|
this.handleColumn(value);
|
|
680
699
|
},
|
|
681
|
-
tableColumn
|
|
700
|
+
tableColumn() {
|
|
682
701
|
this.analyColumnWidth();
|
|
683
702
|
},
|
|
684
|
-
upDataFlag
|
|
685
|
-
|
|
686
|
-
this.$nextTick().then(function () {
|
|
687
|
-
return _this2.updateData();
|
|
688
|
-
});
|
|
703
|
+
upDataFlag() {
|
|
704
|
+
this.$nextTick().then(() => this.updateData());
|
|
689
705
|
},
|
|
690
|
-
reColumnFlag
|
|
691
|
-
|
|
692
|
-
this.$nextTick().then(function () {
|
|
693
|
-
return _this3.refreshColumn();
|
|
694
|
-
});
|
|
706
|
+
reColumnFlag() {
|
|
707
|
+
this.$nextTick().then(() => this.refreshColumn());
|
|
695
708
|
},
|
|
696
|
-
showHeader
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
_this4.recalculate(true).then(function () {
|
|
700
|
-
return _this4.refreshScroll();
|
|
701
|
-
});
|
|
709
|
+
showHeader() {
|
|
710
|
+
this.$nextTick(() => {
|
|
711
|
+
this.recalculate(true).then(() => this.refreshScroll());
|
|
702
712
|
});
|
|
703
713
|
},
|
|
704
|
-
showFooter
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
_this5.recalculate(true).then(function () {
|
|
708
|
-
return _this5.refreshScroll();
|
|
709
|
-
});
|
|
714
|
+
showFooter() {
|
|
715
|
+
this.$nextTick(() => {
|
|
716
|
+
this.recalculate(true).then(() => this.refreshScroll());
|
|
710
717
|
});
|
|
711
718
|
},
|
|
712
|
-
height
|
|
713
|
-
|
|
714
|
-
this.$nextTick(function () {
|
|
715
|
-
return _this6.recalculate(true);
|
|
716
|
-
});
|
|
719
|
+
height() {
|
|
720
|
+
this.$nextTick(() => this.recalculate(true));
|
|
717
721
|
},
|
|
718
|
-
maxHeight
|
|
719
|
-
|
|
720
|
-
this.$nextTick(function () {
|
|
721
|
-
return _this7.recalculate(true);
|
|
722
|
-
});
|
|
722
|
+
maxHeight() {
|
|
723
|
+
this.$nextTick(() => this.recalculate(true));
|
|
723
724
|
},
|
|
724
|
-
syncResize
|
|
725
|
-
var _this8 = this;
|
|
725
|
+
syncResize(value) {
|
|
726
726
|
if (value) {
|
|
727
727
|
handleUupdateResize(this);
|
|
728
|
-
this.$nextTick(
|
|
729
|
-
handleUupdateResize(
|
|
730
|
-
setTimeout(
|
|
731
|
-
return handleUupdateResize(_this8);
|
|
732
|
-
});
|
|
728
|
+
this.$nextTick(() => {
|
|
729
|
+
handleUupdateResize(this);
|
|
730
|
+
setTimeout(() => handleUupdateResize(this));
|
|
733
731
|
});
|
|
734
732
|
}
|
|
735
733
|
},
|
|
736
|
-
|
|
737
|
-
|
|
734
|
+
tabsResizeFlag() {
|
|
735
|
+
this.handleGlobalResizeEvent();
|
|
736
|
+
},
|
|
737
|
+
mergeCells(value) {
|
|
738
738
|
this.clearMergeCells();
|
|
739
|
-
this.$nextTick(
|
|
740
|
-
return _this9.setMergeCells(value);
|
|
741
|
-
});
|
|
739
|
+
this.$nextTick(() => this.setMergeCells(value));
|
|
742
740
|
},
|
|
743
|
-
mergeFooterItems
|
|
744
|
-
var _this10 = this;
|
|
741
|
+
mergeFooterItems(value) {
|
|
745
742
|
this.clearMergeFooterItems();
|
|
746
|
-
this.$nextTick(
|
|
747
|
-
return _this10.setMergeFooterItems(value);
|
|
748
|
-
});
|
|
743
|
+
this.$nextTick(() => this.setMergeFooterItems(value));
|
|
749
744
|
}
|
|
750
745
|
},
|
|
751
|
-
created
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
if (process.env.
|
|
746
|
+
created() {
|
|
747
|
+
const {
|
|
748
|
+
scrollXStore,
|
|
749
|
+
sYOpts,
|
|
750
|
+
scrollYStore,
|
|
751
|
+
data,
|
|
752
|
+
editOpts,
|
|
753
|
+
treeOpts,
|
|
754
|
+
treeConfig,
|
|
755
|
+
showOverflow,
|
|
756
|
+
rowOpts
|
|
757
|
+
} = Object.assign(this, {
|
|
758
|
+
tZindex: 0,
|
|
759
|
+
elemStore: {},
|
|
760
|
+
// 存放横向 X 虚拟滚动相关的信息
|
|
761
|
+
scrollXStore: {},
|
|
762
|
+
// 存放纵向 Y 虚拟滚动相关信息
|
|
763
|
+
scrollYStore: {},
|
|
764
|
+
// 表格宽度
|
|
765
|
+
tableWidth: 0,
|
|
766
|
+
// 表格高度
|
|
767
|
+
tableHeight: 0,
|
|
768
|
+
// 表头高度
|
|
769
|
+
headerHeight: 0,
|
|
770
|
+
// 表尾高度
|
|
771
|
+
footerHeight: 0,
|
|
772
|
+
// 当前 hover 行
|
|
773
|
+
// hoverRow: null,
|
|
774
|
+
// 最后滚动位置
|
|
775
|
+
lastScrollLeft: 0,
|
|
776
|
+
lastScrollTop: 0,
|
|
777
|
+
// 单选框属性,已选中保留的行
|
|
778
|
+
radioReserveRow: null,
|
|
779
|
+
// 复选框属性,已选中保留的行
|
|
780
|
+
checkboxReserveRowMap: {},
|
|
781
|
+
// 行数据,已展开保留的行
|
|
782
|
+
rowExpandedReserveRowMap: {},
|
|
783
|
+
// 树结构数据,已展开保留的行
|
|
784
|
+
treeExpandedReserveRowMap: {},
|
|
785
|
+
// 完整数据、条件处理后
|
|
786
|
+
tableFullData: [],
|
|
787
|
+
afterFullData: [],
|
|
788
|
+
// 列表条件处理后数据集合
|
|
789
|
+
afterFullRowMaps: {},
|
|
790
|
+
// 收集的列配置(带分组)
|
|
791
|
+
collectColumn: [],
|
|
792
|
+
// 完整所有列(不带分组)
|
|
793
|
+
tableFullColumn: [],
|
|
794
|
+
// 渲染所有列
|
|
795
|
+
visibleColumn: [],
|
|
796
|
+
// 缓存数据集
|
|
797
|
+
fullAllDataRowMap: new Map(),
|
|
798
|
+
fullAllDataRowIdData: {},
|
|
799
|
+
fullDataRowMap: new Map(),
|
|
800
|
+
fullDataRowIdData: {},
|
|
801
|
+
fullColumnMap: new Map(),
|
|
802
|
+
fullColumnIdData: {},
|
|
803
|
+
fullColumnFieldData: {}
|
|
804
|
+
});
|
|
805
|
+
if (process.env.NODE_ENV === 'development') {
|
|
811
806
|
if (this.rowId) {
|
|
812
807
|
(0, _log.warnLog)('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
813
808
|
}
|
|
@@ -848,23 +843,21 @@ var _default = exports.default = {
|
|
|
848
843
|
// warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
849
844
|
// }
|
|
850
845
|
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
846
|
+
const {
|
|
847
|
+
exportConfig,
|
|
848
|
+
exportOpts,
|
|
849
|
+
importConfig,
|
|
850
|
+
importOpts
|
|
851
|
+
} = this;
|
|
855
852
|
if (importConfig && importOpts.types && !importOpts.importMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(importOpts._typeMaps), importOpts.types)) {
|
|
856
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
857
|
-
return _xeUtils.default.includes(_xeUtils.default.keys(importOpts._typeMaps), type);
|
|
858
|
-
}).join(',') || _xeUtils.default.keys(importOpts._typeMaps).join(',')]);
|
|
853
|
+
(0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(importOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(importOpts._typeMaps).join(',')]);
|
|
859
854
|
}
|
|
860
855
|
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
861
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
862
|
-
return _xeUtils.default.includes(_xeUtils.default.keys(exportOpts._typeMaps), type);
|
|
863
|
-
}).join(',') || _xeUtils.default.keys(exportOpts._typeMaps).join(',')]);
|
|
856
|
+
(0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(exportOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(exportOpts._typeMaps).join(',')]);
|
|
864
857
|
}
|
|
865
858
|
}
|
|
866
|
-
if (process.env.
|
|
867
|
-
|
|
859
|
+
if (process.env.NODE_ENV === 'development') {
|
|
860
|
+
const customOpts = this.customOpts;
|
|
868
861
|
if (!this.id && this.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
|
|
869
862
|
(0, _log.errLog)('vxe.error.reqProp', ['id']);
|
|
870
863
|
}
|
|
@@ -903,37 +896,37 @@ var _default = exports.default = {
|
|
|
903
896
|
}
|
|
904
897
|
}
|
|
905
898
|
// v4 中只支持对象类型
|
|
906
|
-
if (process.env.
|
|
899
|
+
if (process.env.NODE_ENV === 'development') {
|
|
907
900
|
// 在 v3.0 中废弃 context-menu
|
|
908
901
|
if (this.contextMenu) {
|
|
909
902
|
(0, _log.warnLog)('vxe.error.delProp', ['context-menu', 'menu-config']);
|
|
910
903
|
if (!_xeUtils.default.isObject(this.contextMenu)) {
|
|
911
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
904
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}']);
|
|
912
905
|
}
|
|
913
906
|
}
|
|
914
907
|
if (this.menuConfig && !_xeUtils.default.isObject(this.menuConfig)) {
|
|
915
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
908
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.menu-config=${this.menuConfig}`, 'table.menu-config={}']);
|
|
916
909
|
}
|
|
917
910
|
if (this.exportConfig && !_xeUtils.default.isObject(this.exportConfig)) {
|
|
918
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
911
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.export-config=${this.exportConfig}`, 'table.export-config={}']);
|
|
919
912
|
}
|
|
920
913
|
if (this.importConfig && !_xeUtils.default.isObject(this.importConfig)) {
|
|
921
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
914
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.import-config=${this.importConfig}`, 'table.import-config={}']);
|
|
922
915
|
}
|
|
923
916
|
if (this.printConfig && !_xeUtils.default.isObject(this.printConfig)) {
|
|
924
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
917
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.print-config=${this.printConfig}`, 'table.print-config={}']);
|
|
925
918
|
}
|
|
926
919
|
if (this.treeConfig && !_xeUtils.default.isObject(this.treeConfig)) {
|
|
927
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
920
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.tree-config=${this.treeConfig}`, 'table.tree-config={}']);
|
|
928
921
|
}
|
|
929
922
|
if (this.customConfig && !_xeUtils.default.isObject(this.customConfig)) {
|
|
930
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
923
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.custom-config=${this.customConfig}`, 'table.custom-config={}']);
|
|
931
924
|
}
|
|
932
925
|
if (this.editConfig && !_xeUtils.default.isObject(this.editConfig)) {
|
|
933
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
926
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.edit-config=${this.editConfig}`, 'table.edit-config={}']);
|
|
934
927
|
}
|
|
935
928
|
if (this.emptyRender && !_xeUtils.default.isObject(this.emptyRender)) {
|
|
936
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
929
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.empty-render=${this.emptyRender}`, 'table.empty-render={}']);
|
|
937
930
|
}
|
|
938
931
|
if (this.editConfig && this.editOpts.activeMethod) {
|
|
939
932
|
(0, _log.warnLog)('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod']);
|
|
@@ -946,7 +939,7 @@ var _default = exports.default = {
|
|
|
946
939
|
}
|
|
947
940
|
}
|
|
948
941
|
// 检查是否有安装需要的模块
|
|
949
|
-
if (process.env.
|
|
942
|
+
if (process.env.NODE_ENV === 'development') {
|
|
950
943
|
if (this.editConfig && !this._insert) {
|
|
951
944
|
(0, _log.errLog)('vxe.error.reqModule', ['Edit']);
|
|
952
945
|
}
|
|
@@ -971,14 +964,14 @@ var _default = exports.default = {
|
|
|
971
964
|
endIndex: 1,
|
|
972
965
|
visibleSize: 0
|
|
973
966
|
});
|
|
974
|
-
this.loadTableData(data).then(
|
|
967
|
+
this.loadTableData(data).then(() => {
|
|
975
968
|
if (data && data.length) {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
969
|
+
this.inited = true;
|
|
970
|
+
this.initStatus = true;
|
|
971
|
+
this.handleLoadDefaults();
|
|
972
|
+
this.handleInitDefaults();
|
|
980
973
|
}
|
|
981
|
-
|
|
974
|
+
this.updateStyle();
|
|
982
975
|
});
|
|
983
976
|
globalEvents.on(this, 'paste', this.handleGlobalPasteEvent);
|
|
984
977
|
globalEvents.on(this, 'copy', this.handleGlobalCopyEvent);
|
|
@@ -991,10 +984,13 @@ var _default = exports.default = {
|
|
|
991
984
|
globalEvents.on(this, 'contextmenu', this.handleGlobalContextmenuEvent);
|
|
992
985
|
this.preventEvent(null, 'created');
|
|
993
986
|
},
|
|
994
|
-
mounted
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
987
|
+
mounted() {
|
|
988
|
+
const $xeTable = this;
|
|
989
|
+
const props = $xeTable;
|
|
990
|
+
if (process.env.NODE_ENV === 'development') {
|
|
991
|
+
const {
|
|
992
|
+
$listeners
|
|
993
|
+
} = this;
|
|
998
994
|
if (!this.menuConfig && ($listeners['menu-click'] || $listeners['cell-menu'] || $listeners['header-cell-menu'] || $listeners['footer-cell-menu'])) {
|
|
999
995
|
(0, _log.warnLog)('vxe.error.reqProp', ['menu-config']);
|
|
1000
996
|
}
|
|
@@ -1002,20 +998,35 @@ var _default = exports.default = {
|
|
|
1002
998
|
(0, _log.warnLog)('vxe.error.reqProp', ['tooltip-config']);
|
|
1003
999
|
}
|
|
1004
1000
|
}
|
|
1001
|
+
if (process.env.NODE_ENV === 'development') {
|
|
1002
|
+
// 使用已安装的组件,如果未安装则不渲染
|
|
1003
|
+
const VxeUILoadingComponent = _ui.VxeUI.getComponent('VxeLoading');
|
|
1004
|
+
const VxeUITooltipComponent = _ui.VxeUI.getComponent('VxeTooltip');
|
|
1005
|
+
$xeTable.$nextTick(() => {
|
|
1006
|
+
if (props.loading) {
|
|
1007
|
+
if (!VxeUILoadingComponent) {
|
|
1008
|
+
(0, _log.errLog)('vxe.error.reqComp', ['vxe-loading']);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
if (props.showOverflow === true || props.showOverflow === 'tooltip' || props.showHeaderOverflow === true || props.showHeaderOverflow === 'tooltip' || props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip' || props.tooltipConfig || props.editRules) {
|
|
1012
|
+
if (!VxeUITooltipComponent) {
|
|
1013
|
+
(0, _log.errLog)('vxe.error.reqComp', ['vxe-tooltip']);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1005
1018
|
if (this.autoResize) {
|
|
1006
|
-
|
|
1007
|
-
return _this12.recalculate(true);
|
|
1008
|
-
}, this.resizeOpts.refreshDelay, {
|
|
1019
|
+
const handleWrapperResize = this.resizeOpts.refreshDelay ? _xeUtils.default.throttle(() => this.recalculate(true), this.resizeOpts.refreshDelay, {
|
|
1009
1020
|
leading: true,
|
|
1010
1021
|
trailing: true
|
|
1011
1022
|
}) : null;
|
|
1012
|
-
|
|
1013
|
-
if (
|
|
1014
|
-
|
|
1023
|
+
const resizeObserver = globalResize.create(handleWrapperResize ? () => {
|
|
1024
|
+
if (this.autoResize) {
|
|
1025
|
+
handleWrapperResize();
|
|
1015
1026
|
}
|
|
1016
|
-
} :
|
|
1017
|
-
if (
|
|
1018
|
-
|
|
1027
|
+
} : () => {
|
|
1028
|
+
if (this.autoResize) {
|
|
1029
|
+
this.recalculate(true);
|
|
1019
1030
|
}
|
|
1020
1031
|
});
|
|
1021
1032
|
resizeObserver.observe(this.$el);
|
|
@@ -1024,17 +1035,14 @@ var _default = exports.default = {
|
|
|
1024
1035
|
}
|
|
1025
1036
|
this.preventEvent(null, 'mounted');
|
|
1026
1037
|
},
|
|
1027
|
-
activated
|
|
1028
|
-
|
|
1029
|
-
this.recalculate().then(function () {
|
|
1030
|
-
return _this13.refreshScroll();
|
|
1031
|
-
});
|
|
1038
|
+
activated() {
|
|
1039
|
+
this.recalculate().then(() => this.refreshScroll());
|
|
1032
1040
|
this.preventEvent(null, 'activated');
|
|
1033
1041
|
},
|
|
1034
|
-
deactivated
|
|
1042
|
+
deactivated() {
|
|
1035
1043
|
this.preventEvent(null, 'deactivated');
|
|
1036
1044
|
},
|
|
1037
|
-
beforeDestroy
|
|
1045
|
+
beforeDestroy() {
|
|
1038
1046
|
if (this.$resize) {
|
|
1039
1047
|
this.$resize.disconnect();
|
|
1040
1048
|
}
|
|
@@ -1042,7 +1050,7 @@ var _default = exports.default = {
|
|
|
1042
1050
|
this.closeMenu();
|
|
1043
1051
|
this.preventEvent(null, 'beforeDestroy');
|
|
1044
1052
|
},
|
|
1045
|
-
destroyed
|
|
1053
|
+
destroyed() {
|
|
1046
1054
|
globalEvents.off(this, 'paste');
|
|
1047
1055
|
globalEvents.off(this, 'copy');
|
|
1048
1056
|
globalEvents.off(this, 'cut');
|
|
@@ -1054,56 +1062,89 @@ var _default = exports.default = {
|
|
|
1054
1062
|
globalEvents.off(this, 'contextmenu');
|
|
1055
1063
|
this.preventEvent(null, 'destroyed');
|
|
1056
1064
|
},
|
|
1057
|
-
render
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1065
|
+
render(h) {
|
|
1066
|
+
// 使用已安装的组件,如果未安装则不渲染
|
|
1067
|
+
const VxeUILoadingComponent = _ui.VxeUI.getComponent('VxeLoading');
|
|
1068
|
+
const VxeUITooltipComponent = _ui.VxeUI.getComponent('VxeTooltip');
|
|
1069
|
+
const {
|
|
1070
|
+
_e,
|
|
1071
|
+
$scopedSlots,
|
|
1072
|
+
tId,
|
|
1073
|
+
isCalcColumn,
|
|
1074
|
+
tableData,
|
|
1075
|
+
tableColumn,
|
|
1076
|
+
tableGroupColumn,
|
|
1077
|
+
isGroup,
|
|
1078
|
+
loading,
|
|
1079
|
+
stripe,
|
|
1080
|
+
showHeader,
|
|
1081
|
+
height,
|
|
1082
|
+
tableBorder,
|
|
1083
|
+
treeOpts,
|
|
1084
|
+
treeConfig,
|
|
1085
|
+
mouseConfig,
|
|
1086
|
+
mouseOpts,
|
|
1087
|
+
computeSize,
|
|
1088
|
+
validOpts,
|
|
1089
|
+
showFooter,
|
|
1090
|
+
overflowX,
|
|
1091
|
+
overflowY,
|
|
1092
|
+
scrollXLoad,
|
|
1093
|
+
scrollYLoad,
|
|
1094
|
+
scrollbarHeight,
|
|
1095
|
+
highlightCell,
|
|
1096
|
+
highlightHoverRow,
|
|
1097
|
+
highlightHoverColumn,
|
|
1098
|
+
editConfig,
|
|
1099
|
+
validTipOpts,
|
|
1100
|
+
initStore,
|
|
1101
|
+
columnStore,
|
|
1102
|
+
filterStore,
|
|
1103
|
+
customStore,
|
|
1104
|
+
ctxMenuStore,
|
|
1105
|
+
ctxMenuOpts,
|
|
1106
|
+
footerTableData,
|
|
1107
|
+
columnOpts,
|
|
1108
|
+
rowOpts,
|
|
1109
|
+
checkboxOpts,
|
|
1110
|
+
loadingOpts,
|
|
1111
|
+
editRules
|
|
1112
|
+
} = this;
|
|
1113
|
+
const {
|
|
1114
|
+
leftList,
|
|
1115
|
+
rightList
|
|
1116
|
+
} = columnStore;
|
|
1117
|
+
const currLoading = this._isLoading || loading;
|
|
1118
|
+
const vSize = computeSize;
|
|
1105
1119
|
return h('div', {
|
|
1106
|
-
class: ['vxe-table', 'vxe-table--render-default',
|
|
1120
|
+
class: ['vxe-table', 'vxe-table--render-default', `tid_${tId}`, vSize ? `size--${vSize}` : '', `border--${tableBorder}`, {
|
|
1121
|
+
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
1122
|
+
'vxe-editable': !!editConfig,
|
|
1123
|
+
'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete',
|
|
1124
|
+
'cell--highlight': highlightCell,
|
|
1125
|
+
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
1126
|
+
'cell--area': mouseConfig && mouseOpts.area,
|
|
1127
|
+
'row--highlight': rowOpts.isHover || highlightHoverRow,
|
|
1128
|
+
'column--highlight': columnOpts.isHover || highlightHoverColumn,
|
|
1129
|
+
'checkbox--range': checkboxOpts.range,
|
|
1130
|
+
'column--calc': isCalcColumn,
|
|
1131
|
+
'is--header': showHeader,
|
|
1132
|
+
'is--footer': showFooter,
|
|
1133
|
+
'is--group': isGroup,
|
|
1134
|
+
'is--tree-line': treeConfig && (treeOpts.showLine || treeOpts.line),
|
|
1135
|
+
'is--fixed-left': leftList.length,
|
|
1136
|
+
'is--fixed-right': rightList.length,
|
|
1137
|
+
'is--animat': !!this.animat,
|
|
1138
|
+
'is--padding': this.padding,
|
|
1139
|
+
'is--round': this.round,
|
|
1140
|
+
'is--stripe': !treeConfig && stripe,
|
|
1141
|
+
'is--loading': currLoading,
|
|
1142
|
+
'is--empty': !currLoading && !tableData.length,
|
|
1143
|
+
'is--scroll-y': overflowY,
|
|
1144
|
+
'is--scroll-x': overflowX,
|
|
1145
|
+
'is--virtual-x': scrollXLoad,
|
|
1146
|
+
'is--virtual-y': scrollYLoad
|
|
1147
|
+
}],
|
|
1107
1148
|
attrs: {
|
|
1108
1149
|
spellcheck: false
|
|
1109
1150
|
},
|
|
@@ -1128,9 +1169,9 @@ var _default = exports.default = {
|
|
|
1128
1169
|
showHeader ? h(_header.default, {
|
|
1129
1170
|
ref: 'tableHeader',
|
|
1130
1171
|
props: {
|
|
1131
|
-
tableData
|
|
1132
|
-
tableColumn
|
|
1133
|
-
tableGroupColumn
|
|
1172
|
+
tableData,
|
|
1173
|
+
tableColumn,
|
|
1174
|
+
tableGroupColumn,
|
|
1134
1175
|
size: vSize
|
|
1135
1176
|
}
|
|
1136
1177
|
}) : _e(),
|
|
@@ -1140,8 +1181,8 @@ var _default = exports.default = {
|
|
|
1140
1181
|
h(_body.default, {
|
|
1141
1182
|
ref: 'tableBody',
|
|
1142
1183
|
props: {
|
|
1143
|
-
tableData
|
|
1144
|
-
tableColumn
|
|
1184
|
+
tableData,
|
|
1185
|
+
tableColumn,
|
|
1145
1186
|
size: vSize
|
|
1146
1187
|
}
|
|
1147
1188
|
}),
|
|
@@ -1151,8 +1192,8 @@ var _default = exports.default = {
|
|
|
1151
1192
|
showFooter ? h(_footer.default, {
|
|
1152
1193
|
ref: 'tableFooter',
|
|
1153
1194
|
props: {
|
|
1154
|
-
footerTableData
|
|
1155
|
-
tableColumn
|
|
1195
|
+
footerTableData,
|
|
1196
|
+
tableColumn,
|
|
1156
1197
|
size: vSize
|
|
1157
1198
|
}
|
|
1158
1199
|
}) : _e()]), h('div', {
|
|
@@ -1187,28 +1228,28 @@ var _default = exports.default = {
|
|
|
1187
1228
|
h('div', {
|
|
1188
1229
|
class: 'vxe-table--resizable-bar',
|
|
1189
1230
|
style: overflowX ? {
|
|
1190
|
-
'padding-bottom':
|
|
1231
|
+
'padding-bottom': `${scrollbarHeight}px`
|
|
1191
1232
|
} : {},
|
|
1192
1233
|
ref: 'resizeBar'
|
|
1193
1234
|
}),
|
|
1194
1235
|
/**
|
|
1195
1236
|
* 加载中
|
|
1196
1237
|
*/
|
|
1197
|
-
h(
|
|
1238
|
+
VxeUILoadingComponent ? h(VxeUILoadingComponent, {
|
|
1198
1239
|
class: 'vxe-table--loading',
|
|
1199
1240
|
props: {
|
|
1200
1241
|
value: currLoading,
|
|
1201
1242
|
icon: loadingOpts.icon,
|
|
1202
1243
|
text: loadingOpts.text
|
|
1203
1244
|
}
|
|
1204
|
-
}, this.callSlot($scopedSlots.loading, {}, h)),
|
|
1245
|
+
}, this.callSlot($scopedSlots.loading, {}, h)) : _e(),
|
|
1205
1246
|
/**
|
|
1206
1247
|
* 自定义列
|
|
1207
1248
|
*/
|
|
1208
1249
|
initStore.custom ? h(_panel.default, {
|
|
1209
1250
|
ref: 'customWrapper',
|
|
1210
1251
|
props: {
|
|
1211
|
-
customStore
|
|
1252
|
+
customStore
|
|
1212
1253
|
}
|
|
1213
1254
|
}) : _e(),
|
|
1214
1255
|
/**
|
|
@@ -1217,7 +1258,7 @@ var _default = exports.default = {
|
|
|
1217
1258
|
initStore.filter ? h(_panel2.default, {
|
|
1218
1259
|
ref: 'filterWrapper',
|
|
1219
1260
|
props: {
|
|
1220
|
-
filterStore
|
|
1261
|
+
filterStore
|
|
1221
1262
|
}
|
|
1222
1263
|
}) : _e(),
|
|
1223
1264
|
/**
|
|
@@ -1244,14 +1285,14 @@ var _default = exports.default = {
|
|
|
1244
1285
|
ctxMenuStore.visible && this.isCtxMenu ? h(_panel3.default, {
|
|
1245
1286
|
ref: 'ctxWrapper',
|
|
1246
1287
|
props: {
|
|
1247
|
-
ctxMenuStore
|
|
1248
|
-
ctxMenuOpts
|
|
1288
|
+
ctxMenuStore,
|
|
1289
|
+
ctxMenuOpts
|
|
1249
1290
|
}
|
|
1250
1291
|
}) : _e(), h('div', {}, [
|
|
1251
1292
|
/**
|
|
1252
1293
|
* 通用提示
|
|
1253
1294
|
*/
|
|
1254
|
-
|
|
1295
|
+
VxeUITooltipComponent ? h(VxeUITooltipComponent, {
|
|
1255
1296
|
ref: 'commTip',
|
|
1256
1297
|
props: {
|
|
1257
1298
|
isArrow: false,
|
|
@@ -1261,14 +1302,14 @@ var _default = exports.default = {
|
|
|
1261
1302
|
/**
|
|
1262
1303
|
* 工具提示
|
|
1263
1304
|
*/
|
|
1264
|
-
|
|
1305
|
+
VxeUITooltipComponent ? h(VxeUITooltipComponent, {
|
|
1265
1306
|
ref: 'tooltip',
|
|
1266
1307
|
props: Object.assign({}, this.tipConfig, this.tooltipStore.currOpts)
|
|
1267
1308
|
}) : _e(),
|
|
1268
1309
|
/**
|
|
1269
1310
|
* 校验提示
|
|
1270
1311
|
*/
|
|
1271
|
-
|
|
1312
|
+
VxeUITooltipComponent && this.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? h(VxeUITooltipComponent, {
|
|
1272
1313
|
ref: 'validTip',
|
|
1273
1314
|
class: [{
|
|
1274
1315
|
'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete'
|