vxe-table 3.9.0-rc.8 → 3.9.0
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/es/grid/src/grid.js +120 -66
- 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 +2 -8
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/hu-HU.d.ts +2 -0
- package/es/locale/lang/hu-HU.js +497 -501
- package/es/locale/lang/ja-JP.js +2 -8
- package/es/locale/lang/ko-KR.d.ts +2 -0
- package/es/locale/lang/ko-KR.js +2 -8
- package/es/locale/lang/pt-BR.js +2 -8
- package/es/locale/lang/ru-RU.d.ts +2 -0
- package/es/locale/lang/ru-RU.js +497 -503
- package/es/locale/lang/uk-UA.d.ts +2 -0
- package/es/locale/lang/uk-UA.js +667 -0
- package/es/locale/lang/vi-VN.js +2 -8
- package/es/locale/lang/zh-CHT.d.ts +2 -0
- package/es/locale/lang/zh-CHT.js +667 -0
- package/es/locale/lang/zh-CN.js +2 -8
- package/es/locale/lang/zh-HK.js +2 -2
- package/es/locale/lang/zh-MO.js +2 -2
- package/es/locale/lang/zh-TC.js +2 -673
- package/es/locale/lang/zh-TW.js +2 -2
- 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 +33 -24
- 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 +54 -42
- package/es/table/src/props.js +65 -15
- package/es/table/src/table.js +175 -60
- 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 +581 -491
- 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 +9212 -17224
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +2 -8
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -8
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/hu-HU.d.ts +2 -0
- package/lib/locale/lang/hu-HU.js +497 -501
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +687 -0
- package/lib/locale/lang/ja-JP.js +2 -8
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -8
- package/lib/locale/lang/ko-KR.d.ts +2 -0
- package/lib/locale/lang/ko-KR.js +2 -8
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +687 -0
- package/lib/locale/lang/pt-BR.js +2 -8
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -8
- package/lib/locale/lang/ru-RU.d.ts +2 -0
- package/lib/locale/lang/ru-RU.js +497 -503
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +687 -0
- package/lib/locale/lang/uk-UA.d.ts +2 -0
- package/lib/locale/lang/uk-UA.js +673 -0
- package/lib/locale/lang/uk-UA.min.js +1 -0
- package/lib/locale/lang/uk-UA.umd.js +687 -0
- package/lib/locale/lang/vi-VN.js +2 -8
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.d.ts +2 -0
- package/lib/locale/lang/zh-CHT.js +673 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -0
- package/lib/locale/lang/zh-CHT.umd.js +687 -0
- package/lib/locale/lang/zh-CN.js +2 -8
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -8
- package/lib/locale/lang/zh-HK.js +2 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +7 -677
- package/lib/locale/lang/zh-MO.js +2 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +7 -677
- package/lib/locale/lang/zh-TC.js +3 -673
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +7 -677
- package/lib/locale/lang/zh-TW.js +2 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +7 -677
- 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 +436 -371
- 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 +2758 -2478
- 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 +519 -397
- 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 +127 -65
- package/packages/locale/lang/en-US.ts +2 -10
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +497 -503
- package/packages/locale/lang/ja-JP.ts +2 -10
- package/packages/locale/lang/ko-KR.ts +2 -10
- package/packages/locale/lang/pt-BR.ts +2 -10
- package/packages/locale/lang/ru-RU.ts +497 -505
- package/packages/locale/lang/uk-UA.ts +667 -0
- package/packages/locale/lang/vi-VN.ts +2 -10
- package/packages/locale/lang/zh-CHT.ts +667 -0
- package/packages/locale/lang/zh-CN.ts +2 -10
- package/packages/locale/lang/zh-HK.ts +2 -2
- package/packages/locale/lang/zh-MO.ts +2 -2
- package/packages/locale/lang/zh-TC.ts +2 -674
- package/packages/locale/lang/zh-TW.ts +2 -2
- package/packages/table/module/custom/panel.ts +186 -175
- package/packages/table/module/edit/mixin.ts +32 -23
- 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 +53 -42
- package/packages/table/src/props.ts +68 -15
- package/packages/table/src/table.ts +183 -57
- 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.1726318179195.ttf → iconfont.1728348263835.ttf} +0 -0
- /package/es/{iconfont.1726318179195.woff → iconfont.1728348263835.woff} +0 -0
- /package/es/{iconfont.1726318179195.woff2 → iconfont.1728348263835.woff2} +0 -0
- /package/lib/{iconfont.1726318179195.ttf → iconfont.1728348263835.ttf} +0 -0
- /package/lib/{iconfont.1726318179195.woff → iconfont.1728348263835.woff} +0 -0
- /package/lib/{iconfont.1726318179195.woff2 → iconfont.1728348263835.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,31 +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() {
|
|
379
|
+
return this.computeValidOpts;
|
|
380
|
+
},
|
|
381
|
+
computeValidOpts() {
|
|
370
382
|
return Object.assign({
|
|
371
383
|
message: 'default'
|
|
372
|
-
}, getConfig().table.validConfig, this.validConfig);
|
|
384
|
+
}, _xeUtils.default.clone(getConfig().table.validConfig, true), this.validConfig);
|
|
385
|
+
},
|
|
386
|
+
sXOpts() {
|
|
387
|
+
return this.computeSXOpts;
|
|
373
388
|
},
|
|
374
|
-
|
|
375
|
-
return Object.assign({}, getConfig().table.scrollX, this.scrollX);
|
|
389
|
+
computeSXOpts() {
|
|
390
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.scrollX, true), this.scrollX);
|
|
376
391
|
},
|
|
377
|
-
sYOpts
|
|
378
|
-
return
|
|
392
|
+
sYOpts() {
|
|
393
|
+
return this.computeSYOpts;
|
|
379
394
|
},
|
|
380
|
-
|
|
395
|
+
computeSYOpts() {
|
|
396
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.scrollY, true), this.scrollY);
|
|
397
|
+
},
|
|
398
|
+
rowHeightMaps() {
|
|
381
399
|
return {
|
|
382
400
|
default: 48,
|
|
383
401
|
medium: 44,
|
|
@@ -385,153 +403,227 @@ var _default = exports.default = {
|
|
|
385
403
|
mini: 36
|
|
386
404
|
};
|
|
387
405
|
},
|
|
388
|
-
columnOpts
|
|
389
|
-
return
|
|
406
|
+
columnOpts() {
|
|
407
|
+
return this.computeColumnOpts;
|
|
408
|
+
},
|
|
409
|
+
computeColumnOpts() {
|
|
410
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.columnConfig, true), this.columnConfig);
|
|
411
|
+
},
|
|
412
|
+
rowOpts() {
|
|
413
|
+
return this.computeRowOpts;
|
|
390
414
|
},
|
|
391
|
-
|
|
392
|
-
return Object.assign({}, getConfig().table.rowConfig, this.rowConfig);
|
|
415
|
+
computeRowOpts() {
|
|
416
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.rowConfig, true), this.rowConfig);
|
|
393
417
|
},
|
|
394
|
-
resizeOpts
|
|
395
|
-
return
|
|
418
|
+
resizeOpts() {
|
|
419
|
+
return this.computeResizeOpts;
|
|
396
420
|
},
|
|
397
|
-
|
|
398
|
-
return Object.assign({}, getConfig().table.
|
|
421
|
+
computeResizeOpts() {
|
|
422
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.resizeConfig, true), this.resizeConfig);
|
|
399
423
|
},
|
|
400
|
-
|
|
424
|
+
resizableOpts() {
|
|
425
|
+
return this.computeResizableOpts;
|
|
426
|
+
},
|
|
427
|
+
computeResizableOpts() {
|
|
428
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.resizableConfig, true), this.resizableConfig);
|
|
429
|
+
},
|
|
430
|
+
seqOpts() {
|
|
431
|
+
return this.computeSeqOpts;
|
|
432
|
+
},
|
|
433
|
+
computeSeqOpts() {
|
|
401
434
|
return Object.assign({
|
|
402
435
|
startIndex: 0
|
|
403
|
-
}, getConfig().table.seqConfig, this.seqConfig);
|
|
436
|
+
}, _xeUtils.default.clone(getConfig().table.seqConfig, true), this.seqConfig);
|
|
437
|
+
},
|
|
438
|
+
radioOpts() {
|
|
439
|
+
return this.computeRadioOpts;
|
|
440
|
+
},
|
|
441
|
+
computeRadioOpts() {
|
|
442
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.radioConfig, true), this.radioConfig);
|
|
443
|
+
},
|
|
444
|
+
checkboxOpts() {
|
|
445
|
+
return this.computeCheckboxOpts;
|
|
404
446
|
},
|
|
405
|
-
|
|
406
|
-
return Object.assign({}, getConfig().table.
|
|
447
|
+
computeCheckboxOpts() {
|
|
448
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.checkboxConfig, true), this.checkboxConfig);
|
|
407
449
|
},
|
|
408
|
-
|
|
409
|
-
return
|
|
450
|
+
tooltipOpts() {
|
|
451
|
+
return this.computeTooltipOpts;
|
|
410
452
|
},
|
|
411
|
-
|
|
412
|
-
return Object.assign({}, getConfig().tooltip, getConfig().table.tooltipConfig, this.tooltipConfig);
|
|
453
|
+
computeTooltipOpts() {
|
|
454
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().tooltip, true), _xeUtils.default.clone(getConfig().table.tooltipConfig, true), this.tooltipConfig);
|
|
413
455
|
},
|
|
414
|
-
tipConfig
|
|
456
|
+
tipConfig() {
|
|
415
457
|
return Object.assign({}, this.tooltipOpts);
|
|
416
458
|
},
|
|
417
|
-
validTipOpts
|
|
459
|
+
validTipOpts() {
|
|
418
460
|
return Object.assign({
|
|
419
461
|
isArrow: false
|
|
420
462
|
}, this.tooltipOpts);
|
|
421
463
|
},
|
|
422
|
-
editOpts
|
|
423
|
-
return
|
|
464
|
+
editOpts() {
|
|
465
|
+
return this.computeEditOpts;
|
|
424
466
|
},
|
|
425
|
-
|
|
467
|
+
computeEditOpts() {
|
|
468
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.editConfig, true), this.editConfig);
|
|
469
|
+
},
|
|
470
|
+
sortOpts() {
|
|
471
|
+
return this.computeSortOpts;
|
|
472
|
+
},
|
|
473
|
+
computeSortOpts() {
|
|
426
474
|
return Object.assign({
|
|
427
475
|
orders: ['asc', 'desc', null]
|
|
428
|
-
}, getConfig().table.sortConfig, this.sortConfig);
|
|
476
|
+
}, _xeUtils.default.clone(getConfig().table.sortConfig, true), this.sortConfig);
|
|
477
|
+
},
|
|
478
|
+
filterOpts() {
|
|
479
|
+
return this.computeFilterOpts;
|
|
480
|
+
},
|
|
481
|
+
computeFilterOpts() {
|
|
482
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.filterConfig, true), this.filterConfig);
|
|
483
|
+
},
|
|
484
|
+
mouseOpts() {
|
|
485
|
+
return this.computeMouseOpts;
|
|
486
|
+
},
|
|
487
|
+
computeMouseOpts() {
|
|
488
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.mouseConfig, true), this.mouseConfig);
|
|
489
|
+
},
|
|
490
|
+
areaOpts() {
|
|
491
|
+
return this.computeAreaOpts;
|
|
429
492
|
},
|
|
430
|
-
|
|
431
|
-
return Object.assign({}, getConfig().table.
|
|
493
|
+
computeAreaOpts() {
|
|
494
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.areaConfig, true), this.areaConfig);
|
|
432
495
|
},
|
|
433
|
-
|
|
434
|
-
return
|
|
496
|
+
keyboardOpts() {
|
|
497
|
+
return this.computeKeyboardOpts;
|
|
435
498
|
},
|
|
436
|
-
|
|
437
|
-
return Object.assign({}, getConfig().table.
|
|
499
|
+
computeKeyboardOpts() {
|
|
500
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.keyboardConfig, true), this.keyboardConfig);
|
|
438
501
|
},
|
|
439
|
-
|
|
440
|
-
return
|
|
502
|
+
clipOpts() {
|
|
503
|
+
return this.computeClipOpts;
|
|
441
504
|
},
|
|
442
|
-
|
|
443
|
-
return Object.assign({}, getConfig().table.clipConfig, this.clipConfig);
|
|
505
|
+
computeClipOpts() {
|
|
506
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.clipConfig, true), this.clipConfig);
|
|
444
507
|
},
|
|
445
|
-
fnrOpts
|
|
446
|
-
return
|
|
508
|
+
fnrOpts() {
|
|
509
|
+
return this.computeFNROpts;
|
|
447
510
|
},
|
|
448
|
-
|
|
449
|
-
return true;
|
|
450
|
-
// return VXETable._tooltip
|
|
511
|
+
computeFNROpts() {
|
|
512
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.fnrConfig, true), this.fnrConfig);
|
|
451
513
|
},
|
|
452
|
-
headerCtxMenu
|
|
453
|
-
|
|
514
|
+
headerCtxMenu() {
|
|
515
|
+
const headerOpts = this.ctxMenuOpts.header;
|
|
454
516
|
return headerOpts && headerOpts.options ? headerOpts.options : [];
|
|
455
517
|
},
|
|
456
|
-
bodyCtxMenu
|
|
457
|
-
|
|
518
|
+
bodyCtxMenu() {
|
|
519
|
+
const bodyOpts = this.ctxMenuOpts.body;
|
|
458
520
|
return bodyOpts && bodyOpts.options ? bodyOpts.options : [];
|
|
459
521
|
},
|
|
460
|
-
footerCtxMenu
|
|
461
|
-
|
|
522
|
+
footerCtxMenu() {
|
|
523
|
+
const footerOpts = this.ctxMenuOpts.footer;
|
|
462
524
|
return footerOpts && footerOpts.options ? footerOpts.options : [];
|
|
463
525
|
},
|
|
464
|
-
isCtxMenu
|
|
526
|
+
isCtxMenu() {
|
|
465
527
|
return !!((this.contextMenu || this.menuConfig) && (0, _utils.isEnableConf)(this.ctxMenuOpts) && (this.headerCtxMenu.length || this.bodyCtxMenu.length || this.footerCtxMenu.length));
|
|
466
528
|
},
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
var rest = [];
|
|
472
|
-
this.ctxMenuStore.list.forEach(function (list) {
|
|
473
|
-
list.forEach(function (item) {
|
|
529
|
+
ctxMenuList() {
|
|
530
|
+
const rest = [];
|
|
531
|
+
this.ctxMenuStore.list.forEach(list => {
|
|
532
|
+
list.forEach(item => {
|
|
474
533
|
rest.push(item);
|
|
475
534
|
});
|
|
476
535
|
});
|
|
477
536
|
return rest;
|
|
478
537
|
},
|
|
479
|
-
|
|
480
|
-
return
|
|
538
|
+
ctxMenuOpts() {
|
|
539
|
+
return this.computeMenuOpts;
|
|
481
540
|
},
|
|
482
|
-
|
|
483
|
-
return Object.assign({}, getConfig().table.
|
|
541
|
+
computeMenuOpts() {
|
|
542
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.menuConfig, true), this.contextMenu, this.menuConfig);
|
|
484
543
|
},
|
|
485
|
-
|
|
486
|
-
return
|
|
544
|
+
exportOpts() {
|
|
545
|
+
return this.computeExportOpts;
|
|
487
546
|
},
|
|
488
|
-
|
|
489
|
-
return Object.assign({}, getConfig().table.
|
|
547
|
+
computeExportOpts() {
|
|
548
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.exportConfig, true), this.exportConfig);
|
|
490
549
|
},
|
|
491
|
-
|
|
492
|
-
return
|
|
550
|
+
importOpts() {
|
|
551
|
+
return this.computeImportOpts;
|
|
493
552
|
},
|
|
494
|
-
|
|
495
|
-
return Object.assign({}, getConfig().table.
|
|
553
|
+
computeImportOpts() {
|
|
554
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.importConfig, true), this.importConfig);
|
|
496
555
|
},
|
|
497
|
-
|
|
498
|
-
return
|
|
556
|
+
printOpts() {
|
|
557
|
+
return this.computePrintOpts;
|
|
499
558
|
},
|
|
500
|
-
|
|
501
|
-
return
|
|
559
|
+
computePrintOpts() {
|
|
560
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.printConfig, true), this.printConfig);
|
|
561
|
+
},
|
|
562
|
+
expandOpts() {
|
|
563
|
+
return this.computeExpandOpts;
|
|
564
|
+
},
|
|
565
|
+
computeExpandOpts() {
|
|
566
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.expandConfig, true), this.expandConfig);
|
|
567
|
+
},
|
|
568
|
+
treeOpts() {
|
|
569
|
+
return this.computeTreeOpts;
|
|
570
|
+
},
|
|
571
|
+
computeTreeOpts() {
|
|
572
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.treeConfig, true), this.treeConfig);
|
|
502
573
|
},
|
|
503
|
-
|
|
504
|
-
return
|
|
574
|
+
emptyOpts() {
|
|
575
|
+
return this.computeEmptyOpts;
|
|
505
576
|
},
|
|
506
|
-
|
|
577
|
+
computeEmptyOpts() {
|
|
578
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.emptyRender, true), this.emptyRender);
|
|
579
|
+
},
|
|
580
|
+
loadingOpts() {
|
|
581
|
+
return this.computeLoadingOpts;
|
|
582
|
+
},
|
|
583
|
+
computeLoadingOpts() {
|
|
584
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.loadingConfig, true), this.loadingConfig);
|
|
585
|
+
},
|
|
586
|
+
cellOffsetWidth() {
|
|
587
|
+
return this.border ? Math.max(2, Math.ceil(this.scrollbarWidth / this.tableColumn.length)) : 1;
|
|
588
|
+
},
|
|
589
|
+
customOpts() {
|
|
507
590
|
return this.computeCustomOpts;
|
|
508
591
|
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
592
|
+
computeCustomOpts() {
|
|
593
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.customConfig, true), this.customConfig);
|
|
594
|
+
},
|
|
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 => {
|
|
520
608
|
if (column.renderFixed) {
|
|
521
609
|
fixedSize++;
|
|
522
610
|
}
|
|
523
611
|
});
|
|
524
612
|
return fixedSize;
|
|
525
613
|
},
|
|
526
|
-
isMaxFixedColumn
|
|
527
|
-
|
|
614
|
+
isMaxFixedColumn() {
|
|
615
|
+
const {
|
|
616
|
+
maxFixedSize
|
|
617
|
+
} = this.columnOpts;
|
|
528
618
|
if (maxFixedSize) {
|
|
529
619
|
return this.fixedColumnSize >= maxFixedSize;
|
|
530
620
|
}
|
|
531
621
|
return false;
|
|
532
622
|
},
|
|
533
|
-
tableBorder
|
|
534
|
-
|
|
623
|
+
tableBorder() {
|
|
624
|
+
const {
|
|
625
|
+
border
|
|
626
|
+
} = this;
|
|
535
627
|
if (border === true) {
|
|
536
628
|
return 'full';
|
|
537
629
|
}
|
|
@@ -543,13 +635,17 @@ var _default = exports.default = {
|
|
|
543
635
|
/**
|
|
544
636
|
* 判断列全选的复选框是否禁用
|
|
545
637
|
*/
|
|
546
|
-
isAllCheckboxDisabled
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
638
|
+
isAllCheckboxDisabled() {
|
|
639
|
+
const {
|
|
640
|
+
tableFullData,
|
|
641
|
+
tableData,
|
|
642
|
+
treeConfig,
|
|
643
|
+
checkboxOpts
|
|
644
|
+
} = this;
|
|
645
|
+
const {
|
|
646
|
+
strict,
|
|
647
|
+
checkMethod
|
|
648
|
+
} = checkboxOpts;
|
|
553
649
|
if (strict) {
|
|
554
650
|
if (tableData.length || tableFullData.length) {
|
|
555
651
|
if (checkMethod) {
|
|
@@ -557,176 +653,156 @@ var _default = exports.default = {
|
|
|
557
653
|
// 暂时不支持树形结构
|
|
558
654
|
}
|
|
559
655
|
// 如果所有行都被禁用
|
|
560
|
-
return tableFullData.every(
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
});
|
|
564
|
-
});
|
|
656
|
+
return tableFullData.every(row => !checkMethod({
|
|
657
|
+
row
|
|
658
|
+
}));
|
|
565
659
|
}
|
|
566
660
|
return false;
|
|
567
661
|
}
|
|
568
662
|
return true;
|
|
569
663
|
}
|
|
570
664
|
return false;
|
|
665
|
+
},
|
|
666
|
+
tabsResizeFlag() {
|
|
667
|
+
const $xeTable = this;
|
|
668
|
+
const $xeTabs = $xeTable.$xeTabs;
|
|
669
|
+
return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
|
|
571
670
|
}
|
|
572
|
-
},
|
|
671
|
+
}),
|
|
573
672
|
watch: {
|
|
574
|
-
data
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
initStatus
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
673
|
+
data(value) {
|
|
674
|
+
const {
|
|
675
|
+
inited,
|
|
676
|
+
initStatus
|
|
677
|
+
} = this;
|
|
678
|
+
this.loadTableData(value).then(() => {
|
|
679
|
+
this.inited = true;
|
|
680
|
+
this.initStatus = true;
|
|
581
681
|
if (!initStatus) {
|
|
582
|
-
|
|
682
|
+
this.handleLoadDefaults();
|
|
583
683
|
}
|
|
584
684
|
if (!inited) {
|
|
585
|
-
|
|
685
|
+
this.handleInitDefaults();
|
|
586
686
|
}
|
|
587
687
|
// const checkboxColumn = this.tableFullColumn.find(column => column.type === 'checkbox')
|
|
588
688
|
// if (checkboxColumn && this.tableFullData.length > 300 && !this.checkboxOpts.checkField) {
|
|
589
689
|
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
590
690
|
// }
|
|
591
|
-
if ((
|
|
691
|
+
if ((this.scrollXLoad || this.scrollYLoad) && this.expandColumn) {
|
|
592
692
|
(0, _log.warnLog)('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
593
693
|
}
|
|
594
|
-
|
|
694
|
+
this.recalculate();
|
|
595
695
|
});
|
|
596
696
|
},
|
|
597
|
-
staticColumns
|
|
697
|
+
staticColumns(value) {
|
|
598
698
|
this.handleColumn(value);
|
|
599
699
|
},
|
|
600
|
-
tableColumn
|
|
700
|
+
tableColumn() {
|
|
601
701
|
this.analyColumnWidth();
|
|
602
702
|
},
|
|
603
|
-
upDataFlag
|
|
604
|
-
|
|
605
|
-
this.$nextTick().then(function () {
|
|
606
|
-
return _this2.updateData();
|
|
607
|
-
});
|
|
703
|
+
upDataFlag() {
|
|
704
|
+
this.$nextTick().then(() => this.updateData());
|
|
608
705
|
},
|
|
609
|
-
reColumnFlag
|
|
610
|
-
|
|
611
|
-
this.$nextTick().then(function () {
|
|
612
|
-
return _this3.refreshColumn();
|
|
613
|
-
});
|
|
706
|
+
reColumnFlag() {
|
|
707
|
+
this.$nextTick().then(() => this.refreshColumn());
|
|
614
708
|
},
|
|
615
|
-
showHeader
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
_this4.recalculate(true).then(function () {
|
|
619
|
-
return _this4.refreshScroll();
|
|
620
|
-
});
|
|
709
|
+
showHeader() {
|
|
710
|
+
this.$nextTick(() => {
|
|
711
|
+
this.recalculate(true).then(() => this.refreshScroll());
|
|
621
712
|
});
|
|
622
713
|
},
|
|
623
|
-
showFooter
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
_this5.recalculate(true).then(function () {
|
|
627
|
-
return _this5.refreshScroll();
|
|
628
|
-
});
|
|
714
|
+
showFooter() {
|
|
715
|
+
this.$nextTick(() => {
|
|
716
|
+
this.recalculate(true).then(() => this.refreshScroll());
|
|
629
717
|
});
|
|
630
718
|
},
|
|
631
|
-
height
|
|
632
|
-
|
|
633
|
-
this.$nextTick(function () {
|
|
634
|
-
return _this6.recalculate(true);
|
|
635
|
-
});
|
|
719
|
+
height() {
|
|
720
|
+
this.$nextTick(() => this.recalculate(true));
|
|
636
721
|
},
|
|
637
|
-
maxHeight
|
|
638
|
-
|
|
639
|
-
this.$nextTick(function () {
|
|
640
|
-
return _this7.recalculate(true);
|
|
641
|
-
});
|
|
722
|
+
maxHeight() {
|
|
723
|
+
this.$nextTick(() => this.recalculate(true));
|
|
642
724
|
},
|
|
643
|
-
syncResize
|
|
644
|
-
var _this8 = this;
|
|
725
|
+
syncResize(value) {
|
|
645
726
|
if (value) {
|
|
646
727
|
handleUupdateResize(this);
|
|
647
|
-
this.$nextTick(
|
|
648
|
-
handleUupdateResize(
|
|
649
|
-
setTimeout(
|
|
650
|
-
return handleUupdateResize(_this8);
|
|
651
|
-
});
|
|
728
|
+
this.$nextTick(() => {
|
|
729
|
+
handleUupdateResize(this);
|
|
730
|
+
setTimeout(() => handleUupdateResize(this));
|
|
652
731
|
});
|
|
653
732
|
}
|
|
654
733
|
},
|
|
655
|
-
|
|
656
|
-
|
|
734
|
+
tabsResizeFlag() {
|
|
735
|
+
this.handleGlobalResizeEvent();
|
|
736
|
+
},
|
|
737
|
+
mergeCells(value) {
|
|
657
738
|
this.clearMergeCells();
|
|
658
|
-
this.$nextTick(
|
|
659
|
-
return _this9.setMergeCells(value);
|
|
660
|
-
});
|
|
739
|
+
this.$nextTick(() => this.setMergeCells(value));
|
|
661
740
|
},
|
|
662
|
-
mergeFooterItems
|
|
663
|
-
var _this10 = this;
|
|
741
|
+
mergeFooterItems(value) {
|
|
664
742
|
this.clearMergeFooterItems();
|
|
665
|
-
this.$nextTick(
|
|
666
|
-
return _this10.setMergeFooterItems(value);
|
|
667
|
-
});
|
|
743
|
+
this.$nextTick(() => this.setMergeFooterItems(value));
|
|
668
744
|
}
|
|
669
745
|
},
|
|
670
|
-
created
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
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') {
|
|
730
806
|
if (this.rowId) {
|
|
731
807
|
(0, _log.warnLog)('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
732
808
|
}
|
|
@@ -767,23 +843,21 @@ var _default = exports.default = {
|
|
|
767
843
|
// warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
768
844
|
// }
|
|
769
845
|
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
846
|
+
const {
|
|
847
|
+
exportConfig,
|
|
848
|
+
exportOpts,
|
|
849
|
+
importConfig,
|
|
850
|
+
importOpts
|
|
851
|
+
} = this;
|
|
774
852
|
if (importConfig && importOpts.types && !importOpts.importMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(importOpts._typeMaps), importOpts.types)) {
|
|
775
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
776
|
-
return _xeUtils.default.includes(_xeUtils.default.keys(importOpts._typeMaps), type);
|
|
777
|
-
}).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(',')]);
|
|
778
854
|
}
|
|
779
855
|
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
780
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
781
|
-
return _xeUtils.default.includes(_xeUtils.default.keys(exportOpts._typeMaps), type);
|
|
782
|
-
}).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(',')]);
|
|
783
857
|
}
|
|
784
858
|
}
|
|
785
|
-
if (process.env.
|
|
786
|
-
|
|
859
|
+
if (process.env.NODE_ENV === 'development') {
|
|
860
|
+
const customOpts = this.customOpts;
|
|
787
861
|
if (!this.id && this.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
|
|
788
862
|
(0, _log.errLog)('vxe.error.reqProp', ['id']);
|
|
789
863
|
}
|
|
@@ -822,37 +896,37 @@ var _default = exports.default = {
|
|
|
822
896
|
}
|
|
823
897
|
}
|
|
824
898
|
// v4 中只支持对象类型
|
|
825
|
-
if (process.env.
|
|
899
|
+
if (process.env.NODE_ENV === 'development') {
|
|
826
900
|
// 在 v3.0 中废弃 context-menu
|
|
827
901
|
if (this.contextMenu) {
|
|
828
902
|
(0, _log.warnLog)('vxe.error.delProp', ['context-menu', 'menu-config']);
|
|
829
903
|
if (!_xeUtils.default.isObject(this.contextMenu)) {
|
|
830
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
904
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}']);
|
|
831
905
|
}
|
|
832
906
|
}
|
|
833
907
|
if (this.menuConfig && !_xeUtils.default.isObject(this.menuConfig)) {
|
|
834
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
908
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.menu-config=${this.menuConfig}`, 'table.menu-config={}']);
|
|
835
909
|
}
|
|
836
910
|
if (this.exportConfig && !_xeUtils.default.isObject(this.exportConfig)) {
|
|
837
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
911
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.export-config=${this.exportConfig}`, 'table.export-config={}']);
|
|
838
912
|
}
|
|
839
913
|
if (this.importConfig && !_xeUtils.default.isObject(this.importConfig)) {
|
|
840
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
914
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.import-config=${this.importConfig}`, 'table.import-config={}']);
|
|
841
915
|
}
|
|
842
916
|
if (this.printConfig && !_xeUtils.default.isObject(this.printConfig)) {
|
|
843
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
917
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.print-config=${this.printConfig}`, 'table.print-config={}']);
|
|
844
918
|
}
|
|
845
919
|
if (this.treeConfig && !_xeUtils.default.isObject(this.treeConfig)) {
|
|
846
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
920
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.tree-config=${this.treeConfig}`, 'table.tree-config={}']);
|
|
847
921
|
}
|
|
848
922
|
if (this.customConfig && !_xeUtils.default.isObject(this.customConfig)) {
|
|
849
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
923
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.custom-config=${this.customConfig}`, 'table.custom-config={}']);
|
|
850
924
|
}
|
|
851
925
|
if (this.editConfig && !_xeUtils.default.isObject(this.editConfig)) {
|
|
852
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
926
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.edit-config=${this.editConfig}`, 'table.edit-config={}']);
|
|
853
927
|
}
|
|
854
928
|
if (this.emptyRender && !_xeUtils.default.isObject(this.emptyRender)) {
|
|
855
|
-
(0, _log.warnLog)('vxe.error.errProp', [
|
|
929
|
+
(0, _log.warnLog)('vxe.error.errProp', [`table.empty-render=${this.emptyRender}`, 'table.empty-render={}']);
|
|
856
930
|
}
|
|
857
931
|
if (this.editConfig && this.editOpts.activeMethod) {
|
|
858
932
|
(0, _log.warnLog)('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod']);
|
|
@@ -865,7 +939,7 @@ var _default = exports.default = {
|
|
|
865
939
|
}
|
|
866
940
|
}
|
|
867
941
|
// 检查是否有安装需要的模块
|
|
868
|
-
if (process.env.
|
|
942
|
+
if (process.env.NODE_ENV === 'development') {
|
|
869
943
|
if (this.editConfig && !this._insert) {
|
|
870
944
|
(0, _log.errLog)('vxe.error.reqModule', ['Edit']);
|
|
871
945
|
}
|
|
@@ -890,14 +964,14 @@ var _default = exports.default = {
|
|
|
890
964
|
endIndex: 1,
|
|
891
965
|
visibleSize: 0
|
|
892
966
|
});
|
|
893
|
-
this.loadTableData(data).then(
|
|
967
|
+
this.loadTableData(data).then(() => {
|
|
894
968
|
if (data && data.length) {
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
969
|
+
this.inited = true;
|
|
970
|
+
this.initStatus = true;
|
|
971
|
+
this.handleLoadDefaults();
|
|
972
|
+
this.handleInitDefaults();
|
|
899
973
|
}
|
|
900
|
-
|
|
974
|
+
this.updateStyle();
|
|
901
975
|
});
|
|
902
976
|
globalEvents.on(this, 'paste', this.handleGlobalPasteEvent);
|
|
903
977
|
globalEvents.on(this, 'copy', this.handleGlobalCopyEvent);
|
|
@@ -910,10 +984,13 @@ var _default = exports.default = {
|
|
|
910
984
|
globalEvents.on(this, 'contextmenu', this.handleGlobalContextmenuEvent);
|
|
911
985
|
this.preventEvent(null, 'created');
|
|
912
986
|
},
|
|
913
|
-
mounted
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
987
|
+
mounted() {
|
|
988
|
+
const $xeTable = this;
|
|
989
|
+
const props = $xeTable;
|
|
990
|
+
if (process.env.NODE_ENV === 'development') {
|
|
991
|
+
const {
|
|
992
|
+
$listeners
|
|
993
|
+
} = this;
|
|
917
994
|
if (!this.menuConfig && ($listeners['menu-click'] || $listeners['cell-menu'] || $listeners['header-cell-menu'] || $listeners['footer-cell-menu'])) {
|
|
918
995
|
(0, _log.warnLog)('vxe.error.reqProp', ['menu-config']);
|
|
919
996
|
}
|
|
@@ -921,20 +998,35 @@ var _default = exports.default = {
|
|
|
921
998
|
(0, _log.warnLog)('vxe.error.reqProp', ['tooltip-config']);
|
|
922
999
|
}
|
|
923
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
|
+
}
|
|
924
1018
|
if (this.autoResize) {
|
|
925
|
-
|
|
926
|
-
return _this12.recalculate(true);
|
|
927
|
-
}, this.resizeOpts.refreshDelay, {
|
|
1019
|
+
const handleWrapperResize = this.resizeOpts.refreshDelay ? _xeUtils.default.throttle(() => this.recalculate(true), this.resizeOpts.refreshDelay, {
|
|
928
1020
|
leading: true,
|
|
929
1021
|
trailing: true
|
|
930
1022
|
}) : null;
|
|
931
|
-
|
|
932
|
-
if (
|
|
933
|
-
|
|
1023
|
+
const resizeObserver = globalResize.create(handleWrapperResize ? () => {
|
|
1024
|
+
if (this.autoResize) {
|
|
1025
|
+
handleWrapperResize();
|
|
934
1026
|
}
|
|
935
|
-
} :
|
|
936
|
-
if (
|
|
937
|
-
|
|
1027
|
+
} : () => {
|
|
1028
|
+
if (this.autoResize) {
|
|
1029
|
+
this.recalculate(true);
|
|
938
1030
|
}
|
|
939
1031
|
});
|
|
940
1032
|
resizeObserver.observe(this.$el);
|
|
@@ -943,17 +1035,14 @@ var _default = exports.default = {
|
|
|
943
1035
|
}
|
|
944
1036
|
this.preventEvent(null, 'mounted');
|
|
945
1037
|
},
|
|
946
|
-
activated
|
|
947
|
-
|
|
948
|
-
this.recalculate().then(function () {
|
|
949
|
-
return _this13.refreshScroll();
|
|
950
|
-
});
|
|
1038
|
+
activated() {
|
|
1039
|
+
this.recalculate().then(() => this.refreshScroll());
|
|
951
1040
|
this.preventEvent(null, 'activated');
|
|
952
1041
|
},
|
|
953
|
-
deactivated
|
|
1042
|
+
deactivated() {
|
|
954
1043
|
this.preventEvent(null, 'deactivated');
|
|
955
1044
|
},
|
|
956
|
-
beforeDestroy
|
|
1045
|
+
beforeDestroy() {
|
|
957
1046
|
if (this.$resize) {
|
|
958
1047
|
this.$resize.disconnect();
|
|
959
1048
|
}
|
|
@@ -961,7 +1050,7 @@ var _default = exports.default = {
|
|
|
961
1050
|
this.closeMenu();
|
|
962
1051
|
this.preventEvent(null, 'beforeDestroy');
|
|
963
1052
|
},
|
|
964
|
-
destroyed
|
|
1053
|
+
destroyed() {
|
|
965
1054
|
globalEvents.off(this, 'paste');
|
|
966
1055
|
globalEvents.off(this, 'copy');
|
|
967
1056
|
globalEvents.off(this, 'cut');
|
|
@@ -973,56 +1062,89 @@ var _default = exports.default = {
|
|
|
973
1062
|
globalEvents.off(this, 'contextmenu');
|
|
974
1063
|
this.preventEvent(null, 'destroyed');
|
|
975
1064
|
},
|
|
976
|
-
render
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
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;
|
|
1024
1119
|
return h('div', {
|
|
1025
|
-
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
|
+
}],
|
|
1026
1148
|
attrs: {
|
|
1027
1149
|
spellcheck: false
|
|
1028
1150
|
},
|
|
@@ -1047,9 +1169,9 @@ var _default = exports.default = {
|
|
|
1047
1169
|
showHeader ? h(_header.default, {
|
|
1048
1170
|
ref: 'tableHeader',
|
|
1049
1171
|
props: {
|
|
1050
|
-
tableData
|
|
1051
|
-
tableColumn
|
|
1052
|
-
tableGroupColumn
|
|
1172
|
+
tableData,
|
|
1173
|
+
tableColumn,
|
|
1174
|
+
tableGroupColumn,
|
|
1053
1175
|
size: vSize
|
|
1054
1176
|
}
|
|
1055
1177
|
}) : _e(),
|
|
@@ -1059,8 +1181,8 @@ var _default = exports.default = {
|
|
|
1059
1181
|
h(_body.default, {
|
|
1060
1182
|
ref: 'tableBody',
|
|
1061
1183
|
props: {
|
|
1062
|
-
tableData
|
|
1063
|
-
tableColumn
|
|
1184
|
+
tableData,
|
|
1185
|
+
tableColumn,
|
|
1064
1186
|
size: vSize
|
|
1065
1187
|
}
|
|
1066
1188
|
}),
|
|
@@ -1070,8 +1192,8 @@ var _default = exports.default = {
|
|
|
1070
1192
|
showFooter ? h(_footer.default, {
|
|
1071
1193
|
ref: 'tableFooter',
|
|
1072
1194
|
props: {
|
|
1073
|
-
footerTableData
|
|
1074
|
-
tableColumn
|
|
1195
|
+
footerTableData,
|
|
1196
|
+
tableColumn,
|
|
1075
1197
|
size: vSize
|
|
1076
1198
|
}
|
|
1077
1199
|
}) : _e()]), h('div', {
|
|
@@ -1106,28 +1228,28 @@ var _default = exports.default = {
|
|
|
1106
1228
|
h('div', {
|
|
1107
1229
|
class: 'vxe-table--resizable-bar',
|
|
1108
1230
|
style: overflowX ? {
|
|
1109
|
-
'padding-bottom':
|
|
1231
|
+
'padding-bottom': `${scrollbarHeight}px`
|
|
1110
1232
|
} : {},
|
|
1111
1233
|
ref: 'resizeBar'
|
|
1112
1234
|
}),
|
|
1113
1235
|
/**
|
|
1114
1236
|
* 加载中
|
|
1115
1237
|
*/
|
|
1116
|
-
h(
|
|
1238
|
+
VxeUILoadingComponent ? h(VxeUILoadingComponent, {
|
|
1117
1239
|
class: 'vxe-table--loading',
|
|
1118
1240
|
props: {
|
|
1119
1241
|
value: currLoading,
|
|
1120
1242
|
icon: loadingOpts.icon,
|
|
1121
1243
|
text: loadingOpts.text
|
|
1122
1244
|
}
|
|
1123
|
-
}, this.callSlot($scopedSlots.loading, {}, h)),
|
|
1245
|
+
}, this.callSlot($scopedSlots.loading, {}, h)) : _e(),
|
|
1124
1246
|
/**
|
|
1125
1247
|
* 自定义列
|
|
1126
1248
|
*/
|
|
1127
1249
|
initStore.custom ? h(_panel.default, {
|
|
1128
1250
|
ref: 'customWrapper',
|
|
1129
1251
|
props: {
|
|
1130
|
-
customStore
|
|
1252
|
+
customStore
|
|
1131
1253
|
}
|
|
1132
1254
|
}) : _e(),
|
|
1133
1255
|
/**
|
|
@@ -1136,7 +1258,7 @@ var _default = exports.default = {
|
|
|
1136
1258
|
initStore.filter ? h(_panel2.default, {
|
|
1137
1259
|
ref: 'filterWrapper',
|
|
1138
1260
|
props: {
|
|
1139
|
-
filterStore
|
|
1261
|
+
filterStore
|
|
1140
1262
|
}
|
|
1141
1263
|
}) : _e(),
|
|
1142
1264
|
/**
|
|
@@ -1163,14 +1285,14 @@ var _default = exports.default = {
|
|
|
1163
1285
|
ctxMenuStore.visible && this.isCtxMenu ? h(_panel3.default, {
|
|
1164
1286
|
ref: 'ctxWrapper',
|
|
1165
1287
|
props: {
|
|
1166
|
-
ctxMenuStore
|
|
1167
|
-
ctxMenuOpts
|
|
1288
|
+
ctxMenuStore,
|
|
1289
|
+
ctxMenuOpts
|
|
1168
1290
|
}
|
|
1169
1291
|
}) : _e(), h('div', {}, [
|
|
1170
1292
|
/**
|
|
1171
1293
|
* 通用提示
|
|
1172
1294
|
*/
|
|
1173
|
-
|
|
1295
|
+
VxeUITooltipComponent ? h(VxeUITooltipComponent, {
|
|
1174
1296
|
ref: 'commTip',
|
|
1175
1297
|
props: {
|
|
1176
1298
|
isArrow: false,
|
|
@@ -1180,14 +1302,14 @@ var _default = exports.default = {
|
|
|
1180
1302
|
/**
|
|
1181
1303
|
* 工具提示
|
|
1182
1304
|
*/
|
|
1183
|
-
|
|
1305
|
+
VxeUITooltipComponent ? h(VxeUITooltipComponent, {
|
|
1184
1306
|
ref: 'tooltip',
|
|
1185
1307
|
props: Object.assign({}, this.tipConfig, this.tooltipStore.currOpts)
|
|
1186
1308
|
}) : _e(),
|
|
1187
1309
|
/**
|
|
1188
1310
|
* 校验提示
|
|
1189
1311
|
*/
|
|
1190
|
-
|
|
1312
|
+
VxeUITooltipComponent && this.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? h(VxeUITooltipComponent, {
|
|
1191
1313
|
ref: 'validTip',
|
|
1192
1314
|
class: [{
|
|
1193
1315
|
'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete'
|