vxe-table 3.6.6 → 3.6.8
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/lib/all.js +11 -82
- package/lib/all.min.js +1 -1
- package/lib/button/index.js +0 -3
- package/lib/button/src/button.js +39 -82
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +475 -349
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/index.js +0 -3
- package/lib/checkbox/src/checkbox.js +15 -29
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +4 -12
- package/lib/checkbox/style/style.css +158 -128
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/checkbox-group/index.js +0 -3
- package/lib/checkbox-group/style/style.css +1 -1
- package/lib/colgroup/index.js +2 -5
- package/lib/colgroup/style/style.css +1 -1
- package/lib/column/index.js +2 -5
- package/lib/column/style/style.css +1 -1
- package/lib/edit/index.js +0 -6
- package/lib/edit/src/mixin.js +91 -252
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/edit/style/style.css +1 -1
- package/lib/export/index.js +1 -16
- package/lib/export/index.min.js +1 -1
- package/lib/export/src/export-panel.js +16 -41
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/import-panel.js +5 -19
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/mixin.js +105 -387
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/export/style/style.css +138 -105
- package/lib/filter/index.js +0 -8
- package/lib/filter/src/mixin.js +18 -66
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +10 -22
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/filter/style/style.css +105 -81
- package/lib/footer/index.js +0 -3
- package/lib/footer/src/footer.js +52 -84
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/footer/style/style.css +1 -1
- package/lib/form/index.js +0 -3
- package/lib/form/src/form-config-item.js +23 -40
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +0 -5
- package/lib/form/src/form-item.js +18 -35
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +45 -137
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +7 -22
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/src/util.js +9 -42
- package/lib/form/src/util.min.js +1 -1
- package/lib/form/style/style.css +227 -185
- package/lib/form-gather/index.js +0 -3
- package/lib/form-gather/style/style.css +1 -1
- package/lib/form-item/index.js +0 -3
- package/lib/form-item/style/style.css +1 -1
- package/lib/grid/index.js +0 -4
- package/lib/grid/src/grid.js +87 -261
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +62 -50
- package/lib/header/index.js +0 -3
- package/lib/header/src/header.js +54 -87
- package/lib/header/src/header.min.js +1 -1
- package/lib/header/src/util.js +0 -17
- package/lib/header/src/util.min.js +1 -1
- package/lib/header/style/style.css +1 -1
- package/lib/icon/index.js +0 -3
- package/lib/icon/style/iconfont.1669391208345.ttf +0 -0
- package/lib/icon/style/iconfont.1669391208345.woff +0 -0
- package/lib/icon/style/iconfont.1669391208345.woff2 +0 -0
- package/lib/icon/style/style.css +384 -197
- package/lib/icon/style/style.min.css +738 -1
- package/lib/iconfont.1669391208345.ttf +0 -0
- package/lib/iconfont.1669391208345.woff +0 -0
- package/lib/iconfont.1669391208345.woff2 +0 -0
- package/lib/index.common.js +1 -7
- package/lib/index.common.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +11884 -13141
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +0 -3
- package/lib/input/src/date.js +0 -10
- package/lib/input/src/date.min.js +1 -1
- package/lib/input/src/input.js +208 -473
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/src/number.js +0 -5
- package/lib/input/style/style.css +820 -611
- package/lib/keyboard/index.js +0 -6
- package/lib/keyboard/src/mixin.js +35 -111
- package/lib/keyboard/src/mixin.min.js +1 -1
- package/lib/keyboard/style/style.css +1 -1
- package/lib/list/index.js +0 -3
- package/lib/list/src/list.js +23 -64
- package/lib/list/src/list.min.js +1 -1
- package/lib/list/style/style.css +19 -14
- package/lib/loading/index.js +0 -3
- package/lib/loading/index.min.js +1 -1
- package/lib/loading/src/loading.js +1 -4
- package/lib/loading/style/style.css +60 -45
- package/lib/locale/lang/zh-HK.js +0 -3
- package/lib/locale/lang/zh-MO.js +0 -3
- package/lib/locale/lang/zh-TW.js +0 -3
- package/lib/menu/index.js +0 -8
- package/lib/menu/src/mixin.js +38 -100
- package/lib/menu/src/mixin.min.js +1 -1
- package/lib/menu/src/panel.js +2 -5
- package/lib/menu/style/style.css +74 -55
- package/lib/mixins/size.js +1 -1
- package/lib/modal/index.js +3 -21
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +97 -254
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +346 -280
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +0 -3
- package/lib/optgroup/style/style.css +1 -1
- package/lib/option/index.js +0 -3
- package/lib/option/style/style.css +1 -1
- package/lib/pager/index.js +0 -3
- package/lib/pager/src/pager.js +13 -41
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +314 -262
- package/lib/pulldown/index.js +0 -3
- package/lib/pulldown/src/pulldown.js +29 -72
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/pulldown/style/style.css +51 -39
- package/lib/radio/index.js +0 -3
- package/lib/radio/src/button.js +11 -22
- package/lib/radio/src/group.js +2 -6
- package/lib/radio/src/radio.js +11 -23
- package/lib/radio/style/style.css +186 -152
- package/lib/radio/style/style.min.css +1 -1
- package/lib/radio-button/index.js +0 -3
- package/lib/radio-button/style/style.css +1 -1
- package/lib/radio-group/index.js +0 -3
- package/lib/radio-group/style/style.css +1 -1
- package/lib/select/index.js +0 -5
- package/lib/select/src/optgroup.js +0 -2
- package/lib/select/src/optgroup.min.js +1 -1
- package/lib/select/src/option.js +0 -2
- package/lib/select/src/option.min.js +1 -1
- package/lib/select/src/select.js +79 -211
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/src/util.js +5 -24
- package/lib/select/src/util.min.js +1 -1
- package/lib/select/style/style.css +120 -89
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +0 -3
- package/lib/switch/src/switch.js +7 -20
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/switch/style/style.css +92 -71
- package/lib/table/index.js +0 -9
- package/lib/table/src/body.js +167 -261
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +107 -222
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +2 -4
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +6 -35
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/group.js +0 -3
- package/lib/table/src/methods.js +570 -1461
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +123 -231
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +28 -105
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +1080 -863
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/index.js +0 -3
- package/lib/textarea/src/textarea.js +23 -55
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/textarea/style/style.css +66 -45
- package/lib/toolbar/index.js +0 -3
- package/lib/toolbar/src/toolbar.js +43 -117
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +232 -187
- package/lib/tools/dom.js +7 -42
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/event.js +4 -14
- package/lib/tools/event.min.js +1 -1
- package/lib/tools/log.js +1 -6
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/resize.js +3 -24
- package/lib/tools/resize.min.js +1 -1
- package/lib/tools/utils.js +7 -29
- package/lib/tools/utils.min.js +1 -1
- package/lib/tools/vn.js +0 -4
- package/lib/tooltip/index.js +0 -4
- package/lib/tooltip/src/tooltip.js +29 -76
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tooltip/style/style.css +88 -64
- package/lib/v-x-e-table/index.js +6 -41
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +0 -4
- package/lib/v-x-e-table/src/conf.js +30 -18
- package/lib/v-x-e-table/src/formats.js +0 -4
- package/lib/v-x-e-table/src/interceptor.js +4 -15
- package/lib/v-x-e-table/src/menus.js +0 -4
- package/lib/v-x-e-table/src/renderer.js +62 -169
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/setup.js +0 -4
- package/lib/v-x-e-table/src/store.js +3 -16
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +444 -242
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/index.js +0 -6
- package/lib/validator/src/mixin.js +31 -100
- package/lib/validator/src/mixin.min.js +1 -1
- package/lib/validator/style/style.css +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/package.json +28 -29
- package/packages/export/src/mixin.js +2 -1
- package/packages/filter/src/mixin.js +1 -1
- package/packages/form/src/form.js +5 -4
- package/packages/grid/src/grid.js +14 -14
- package/packages/table/src/column.js +2 -0
- package/packages/table/src/columnInfo.js +1 -0
- package/packages/table/src/methods.js +18 -18
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/icon.scss +9 -1
- package/styles/table.scss +1 -1
- package/styles/variable.scss +2 -2
- package/types/column.d.ts +3 -0
|
@@ -4,71 +4,52 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
9
|
-
|
|
10
8
|
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
11
|
-
|
|
12
9
|
var _size = _interopRequireDefault(require("../../mixins/size"));
|
|
13
|
-
|
|
14
10
|
var _utils = _interopRequireDefault(require("../../tools/utils"));
|
|
15
|
-
|
|
16
11
|
var _dom = _interopRequireDefault(require("../../tools/dom"));
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
|
|
22
14
|
function updateTipStyle(_vm) {
|
|
23
15
|
var wrapperElem = _vm.$el,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
tipTarget = _vm.tipTarget,
|
|
17
|
+
tipStore = _vm.tipStore;
|
|
27
18
|
if (tipTarget) {
|
|
28
19
|
var _DomTools$getDomNode = _dom.default.getDomNode(),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
scrollTop = _DomTools$getDomNode.scrollTop,
|
|
21
|
+
scrollLeft = _DomTools$getDomNode.scrollLeft,
|
|
22
|
+
visibleWidth = _DomTools$getDomNode.visibleWidth;
|
|
33
23
|
var _DomTools$getAbsolute = _dom.default.getAbsolutePos(tipTarget),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
top = _DomTools$getAbsolute.top,
|
|
25
|
+
left = _DomTools$getAbsolute.left;
|
|
37
26
|
var marginSize = 6;
|
|
38
27
|
var offsetHeight = wrapperElem.offsetHeight;
|
|
39
28
|
var offsetWidth = wrapperElem.offsetWidth;
|
|
40
29
|
var tipTop = top - offsetHeight - marginSize;
|
|
41
30
|
var tipLeft = Math.max(marginSize, left + Math.floor((tipTarget.offsetWidth - offsetWidth) / 2));
|
|
42
|
-
|
|
43
31
|
if (tipLeft + offsetWidth + marginSize > scrollLeft + visibleWidth) {
|
|
44
32
|
tipLeft = scrollLeft + visibleWidth - offsetWidth - marginSize;
|
|
45
33
|
}
|
|
46
|
-
|
|
47
34
|
if (top - offsetHeight < scrollTop + marginSize) {
|
|
48
35
|
tipStore.placement = 'bottom';
|
|
49
36
|
tipTop = top + tipTarget.offsetHeight + marginSize;
|
|
50
37
|
}
|
|
51
|
-
|
|
52
38
|
tipStore.style.top = "".concat(tipTop, "px");
|
|
53
39
|
tipStore.style.left = "".concat(tipLeft, "px");
|
|
54
40
|
tipStore.arrowStyle.left = "".concat(left - tipLeft + tipTarget.offsetWidth / 2, "px");
|
|
55
41
|
}
|
|
56
42
|
}
|
|
57
|
-
|
|
58
43
|
function showTip(_vm) {
|
|
59
44
|
var $el = _vm.$el,
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
tipStore = _vm.tipStore,
|
|
46
|
+
zIndex = _vm.zIndex;
|
|
62
47
|
var parentNode = $el.parentNode;
|
|
63
|
-
|
|
64
48
|
if (!parentNode) {
|
|
65
49
|
document.body.appendChild($el);
|
|
66
50
|
}
|
|
67
|
-
|
|
68
51
|
_vm.updateValue(true);
|
|
69
|
-
|
|
70
52
|
_vm.updateZindex();
|
|
71
|
-
|
|
72
53
|
tipStore.placement = 'top';
|
|
73
54
|
tipStore.style = {
|
|
74
55
|
width: 'auto',
|
|
@@ -81,19 +62,16 @@ function showTip(_vm) {
|
|
|
81
62
|
};
|
|
82
63
|
return _vm.updatePlacement();
|
|
83
64
|
}
|
|
84
|
-
|
|
85
65
|
function renderContent(h, _vm) {
|
|
86
66
|
var $scopedSlots = _vm.$scopedSlots,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
67
|
+
useHTML = _vm.useHTML,
|
|
68
|
+
tipContent = _vm.tipContent;
|
|
90
69
|
if ($scopedSlots.content) {
|
|
91
70
|
return h('div', {
|
|
92
71
|
key: 1,
|
|
93
72
|
class: 'vxe-table--tooltip-content'
|
|
94
73
|
}, $scopedSlots.content.call(this, {}));
|
|
95
74
|
}
|
|
96
|
-
|
|
97
75
|
if (useHTML) {
|
|
98
76
|
return h('div', {
|
|
99
77
|
key: 2,
|
|
@@ -103,13 +81,11 @@ function renderContent(h, _vm) {
|
|
|
103
81
|
}
|
|
104
82
|
});
|
|
105
83
|
}
|
|
106
|
-
|
|
107
84
|
return h('div', {
|
|
108
85
|
key: 3,
|
|
109
86
|
class: 'vxe-table--tooltip-content'
|
|
110
87
|
}, _utils.default.formatText(tipContent));
|
|
111
88
|
}
|
|
112
|
-
|
|
113
89
|
var _default2 = {
|
|
114
90
|
name: 'VxeTooltip',
|
|
115
91
|
mixins: [_size.default],
|
|
@@ -180,13 +156,11 @@ var _default2 = {
|
|
|
180
156
|
if (!this.isUpdate) {
|
|
181
157
|
this[_value ? 'open' : 'close']();
|
|
182
158
|
}
|
|
183
|
-
|
|
184
159
|
this.isUpdate = false;
|
|
185
160
|
}
|
|
186
161
|
},
|
|
187
162
|
created: function created() {
|
|
188
163
|
var _this = this;
|
|
189
|
-
|
|
190
164
|
this.showDelayTip = _xeUtils.default.debounce(function () {
|
|
191
165
|
if (_this.tipActive) {
|
|
192
166
|
showTip(_this);
|
|
@@ -198,29 +172,24 @@ var _default2 = {
|
|
|
198
172
|
},
|
|
199
173
|
mounted: function mounted() {
|
|
200
174
|
var $el = this.$el,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
175
|
+
trigger = this.trigger,
|
|
176
|
+
content = this.content,
|
|
177
|
+
value = this.value;
|
|
204
178
|
var parentNode = $el.parentNode;
|
|
205
|
-
|
|
206
179
|
if (parentNode) {
|
|
207
180
|
var target;
|
|
208
181
|
this.tipContent = content;
|
|
209
182
|
this.tipZindex = _utils.default.nextZIndex();
|
|
210
|
-
|
|
211
183
|
_xeUtils.default.arrayEach($el.children, function (elem, index) {
|
|
212
184
|
if (index > 1) {
|
|
213
185
|
parentNode.insertBefore(elem, $el);
|
|
214
|
-
|
|
215
186
|
if (!target) {
|
|
216
187
|
target = elem;
|
|
217
188
|
}
|
|
218
189
|
}
|
|
219
190
|
});
|
|
220
|
-
|
|
221
191
|
parentNode.removeChild($el);
|
|
222
192
|
this.target = target;
|
|
223
|
-
|
|
224
193
|
if (target) {
|
|
225
194
|
if (trigger === 'hover') {
|
|
226
195
|
target.onmouseleave = this.targetMouseleaveEvent;
|
|
@@ -229,7 +198,6 @@ var _default2 = {
|
|
|
229
198
|
target.onclick = this.clickEvent;
|
|
230
199
|
}
|
|
231
200
|
}
|
|
232
|
-
|
|
233
201
|
if (value) {
|
|
234
202
|
this.open();
|
|
235
203
|
}
|
|
@@ -237,14 +205,12 @@ var _default2 = {
|
|
|
237
205
|
},
|
|
238
206
|
beforeDestroy: function beforeDestroy() {
|
|
239
207
|
var $el = this.$el,
|
|
240
|
-
|
|
241
|
-
|
|
208
|
+
target = this.target,
|
|
209
|
+
trigger = this.trigger;
|
|
242
210
|
var parentNode = $el.parentNode;
|
|
243
|
-
|
|
244
211
|
if (parentNode) {
|
|
245
212
|
parentNode.removeChild($el);
|
|
246
213
|
}
|
|
247
|
-
|
|
248
214
|
if (target) {
|
|
249
215
|
if (trigger === 'hover') {
|
|
250
216
|
target.onmouseenter = null;
|
|
@@ -256,24 +222,21 @@ var _default2 = {
|
|
|
256
222
|
},
|
|
257
223
|
render: function render(h) {
|
|
258
224
|
var _ref;
|
|
259
|
-
|
|
260
225
|
var $scopedSlots = this.$scopedSlots,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
226
|
+
vSize = this.vSize,
|
|
227
|
+
theme = this.theme,
|
|
228
|
+
tipActive = this.tipActive,
|
|
229
|
+
isArrow = this.isArrow,
|
|
230
|
+
visible = this.visible,
|
|
231
|
+
tipStore = this.tipStore,
|
|
232
|
+
enterable = this.enterable;
|
|
268
233
|
var on;
|
|
269
|
-
|
|
270
234
|
if (enterable) {
|
|
271
235
|
on = {
|
|
272
236
|
mouseenter: this.wrapperMouseenterEvent,
|
|
273
237
|
mouseleave: this.wrapperMouseleaveEvent
|
|
274
238
|
};
|
|
275
239
|
}
|
|
276
|
-
|
|
277
240
|
return h('div', {
|
|
278
241
|
class: ['vxe-table--tooltip-wrapper', "theme--".concat(theme), (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, "placement--".concat(tipStore.placement), tipStore.placement), _defineProperty(_ref, 'is--enterable', enterable), _defineProperty(_ref, 'is--visible', visible), _defineProperty(_ref, 'is--arrow', isArrow), _defineProperty(_ref, 'is--actived', tipActive), _ref)],
|
|
279
242
|
style: tipStore.style,
|
|
@@ -303,7 +266,6 @@ var _default2 = {
|
|
|
303
266
|
if (value !== this.visible) {
|
|
304
267
|
this.visible = value;
|
|
305
268
|
this.isUpdate = true;
|
|
306
|
-
|
|
307
269
|
if (this.$listeners.input) {
|
|
308
270
|
this.$emit('input', this.visible);
|
|
309
271
|
}
|
|
@@ -317,30 +279,25 @@ var _default2 = {
|
|
|
317
279
|
toVisible: function toVisible(target, content) {
|
|
318
280
|
if (target) {
|
|
319
281
|
var trigger = this.trigger,
|
|
320
|
-
|
|
282
|
+
enterDelay = this.enterDelay;
|
|
321
283
|
this.tipActive = true;
|
|
322
284
|
this.tipTarget = target;
|
|
323
|
-
|
|
324
285
|
if (content) {
|
|
325
286
|
this.tipContent = content;
|
|
326
287
|
}
|
|
327
|
-
|
|
328
288
|
if (enterDelay && trigger === 'hover') {
|
|
329
289
|
this.showDelayTip();
|
|
330
290
|
} else {
|
|
331
291
|
return showTip(this);
|
|
332
292
|
}
|
|
333
293
|
}
|
|
334
|
-
|
|
335
294
|
return this.$nextTick();
|
|
336
295
|
},
|
|
337
296
|
updatePlacement: function updatePlacement() {
|
|
338
297
|
var _this2 = this;
|
|
339
|
-
|
|
340
298
|
return this.$nextTick().then(function () {
|
|
341
299
|
var wrapperElem = _this2.$el,
|
|
342
|
-
|
|
343
|
-
|
|
300
|
+
tipTarget = _this2.tipTarget;
|
|
344
301
|
if (tipTarget && wrapperElem) {
|
|
345
302
|
updateTipStyle(_this2);
|
|
346
303
|
return _this2.$nextTick().then(function () {
|
|
@@ -363,12 +320,10 @@ var _default2 = {
|
|
|
363
320
|
},
|
|
364
321
|
targetMouseleaveEvent: function targetMouseleaveEvent() {
|
|
365
322
|
var _this3 = this;
|
|
366
|
-
|
|
367
323
|
var trigger = this.trigger,
|
|
368
|
-
|
|
369
|
-
|
|
324
|
+
enterable = this.enterable,
|
|
325
|
+
leaveDelay = this.leaveDelay;
|
|
370
326
|
this.tipActive = false;
|
|
371
|
-
|
|
372
327
|
if (enterable && trigger === 'hover') {
|
|
373
328
|
setTimeout(function () {
|
|
374
329
|
if (!_this3.tipActive) {
|
|
@@ -384,12 +339,10 @@ var _default2 = {
|
|
|
384
339
|
},
|
|
385
340
|
wrapperMouseleaveEvent: function wrapperMouseleaveEvent() {
|
|
386
341
|
var _this4 = this;
|
|
387
|
-
|
|
388
342
|
var trigger = this.trigger,
|
|
389
|
-
|
|
390
|
-
|
|
343
|
+
enterable = this.enterable,
|
|
344
|
+
leaveDelay = this.leaveDelay;
|
|
391
345
|
this.tipActive = false;
|
|
392
|
-
|
|
393
346
|
if (enterable && trigger === 'hover') {
|
|
394
347
|
setTimeout(function () {
|
|
395
348
|
if (!_this4.tipActive) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=_interopRequireDefault(require("../../mixins/size")),_utils=_interopRequireDefault(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function updateTipStyle(e){var t,i,n,o,r,l,s,a=e.$el,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=_interopRequireDefault(require("../../mixins/size")),_utils=_interopRequireDefault(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function updateTipStyle(e){var t,i,n,o,r,l,s,a,u=e.$el,c=e.tipTarget,e=e.tipStore;c&&(t=(n=_dom.default.getDomNode()).scrollTop,i=n.scrollLeft,n=n.visibleWidth,o=(r=_dom.default.getAbsolutePos(c)).top,r=r.left,l=u.offsetHeight,u=u.offsetWidth,s=o-l-6,i+n<(a=Math.max(6,r+Math.floor((c.offsetWidth-u)/2)))+u+6&&(a=i+n-u-6),o-l<t+6&&(e.placement="bottom",s=o+c.offsetHeight+6),e.style.top="".concat(s,"px"),e.style.left="".concat(a,"px"),e.arrowStyle.left="".concat(r-a+c.offsetWidth/2,"px"))}function showTip(e){var t=e.$el,i=e.tipStore,n=e.zIndex;return t.parentNode||document.body.appendChild(t),e.updateValue(!0),e.updateZindex(),i.placement="top",i.style={width:"auto",left:0,top:0,zIndex:n||e.tipZindex},i.arrowStyle={left:"50%"},e.updatePlacement()}function renderContent(e,t){var i=t.$scopedSlots,n=t.useHTML,t=t.tipContent;return i.content?e("div",{key:1,class:"vxe-table--tooltip-content"},i.content.call(this,{})):n?e("div",{key:2,class:"vxe-table--tooltip-content",domProps:{innerHTML:t}}):e("div",{key:3,class:"vxe-table--tooltip-content"},_utils.default.formatText(t))}var _default2={name:"VxeTooltip",mixins:[_size.default],props:{value:Boolean,size:{type:String,default:function(){return _conf.default.tooltip.size||_conf.default.size}},trigger:{type:String,default:function(){return _conf.default.tooltip.trigger}},theme:{type:String,default:function(){return _conf.default.tooltip.theme}},content:{type:[String,Number],default:null},useHTML:Boolean,zIndex:[String,Number],isArrow:{type:Boolean,default:!0},enterable:Boolean,enterDelay:{type:Number,default:function(){return _conf.default.tooltip.enterDelay}},leaveDelay:{type:Number,default:function(){return _conf.default.tooltip.leaveDelay}}},data:function(){return{isUpdate:!1,visible:!1,tipContent:"",tipActive:!1,tipTarget:null,tipZindex:0,tipStore:{style:{},placement:"",arrowStyle:null}}},watch:{content:function(e){this.tipContent=e},value:function(e){this.isUpdate||this[e?"open":"close"](),this.isUpdate=!1}},created:function(){var e=this;this.showDelayTip=_xeUtils.default.debounce(function(){e.tipActive&&showTip(e)},this.enterDelay,{leading:!1,trailing:!0})},mounted:function(){var i,n=this.$el,e=this.trigger,t=this.content,o=this.value,r=n.parentNode;r&&(this.tipContent=t,this.tipZindex=_utils.default.nextZIndex(),_xeUtils.default.arrayEach(n.children,function(e,t){1<t&&(r.insertBefore(e,n),i=i||e)}),r.removeChild(n),(this.target=i)&&("hover"===e?(i.onmouseleave=this.targetMouseleaveEvent,i.onmouseenter=this.targetMouseenterEvent):"click"===e&&(i.onclick=this.clickEvent)),o)&&this.open()},beforeDestroy:function(){var e=this.$el,t=this.target,i=this.trigger,n=e.parentNode;n&&n.removeChild(e),t&&("hover"===i?(t.onmouseenter=null,t.onmouseleave=null):"click"===i&&(t.onclick=null))},render:function(e){var t,i=this.$scopedSlots,n=this.vSize,o=this.theme,r=this.tipActive,l=this.isArrow,s=this.visible,a=this.tipStore,u=this.enterable;return u&&(t={mouseenter:this.wrapperMouseenterEvent,mouseleave:this.wrapperMouseleaveEvent}),e("div",{class:["vxe-table--tooltip-wrapper","theme--".concat(o),(_defineProperty(o={},"size--".concat(n),n),_defineProperty(o,"placement--".concat(a.placement),a.placement),_defineProperty(o,"is--enterable",u),_defineProperty(o,"is--visible",s),_defineProperty(o,"is--arrow",l),_defineProperty(o,"is--actived",r),o)],style:a.style,ref:"tipWrapper",on:t},[renderContent(e,this),e("div",{class:"vxe-table--tooltip-arrow",style:a.arrowStyle})].concat(i.default?i.default.call(this,{}):[]))},methods:{open:function(e,t){return this.toVisible(e||this.target,t)},close:function(){return this.tipTarget=null,this.tipActive=!1,Object.assign(this.tipStore,{style:{},placement:"",arrowStyle:null}),this.updateValue(!1),this.$nextTick()},updateValue:function(e){e!==this.visible&&(this.visible=e,this.isUpdate=!0,this.$listeners.input)&&this.$emit("input",this.visible)},updateZindex:function(){this.tipZindex<_utils.default.getLastZIndex()&&(this.tipZindex=_utils.default.nextZIndex())},toVisible:function(e,t){if(e){var i=this.trigger,n=this.enterDelay;if(this.tipActive=!0,this.tipTarget=e,t&&(this.tipContent=t),!n||"hover"!==i)return showTip(this);this.showDelayTip()}return this.$nextTick()},updatePlacement:function(){var t=this;return this.$nextTick().then(function(){var e=t.$el;if(t.tipTarget&&e)return updateTipStyle(t),t.$nextTick().then(function(){return updateTipStyle(t)})})},isActived:function(){return this.tipActive},setActived:function(e){this.tipActive=!!e},clickEvent:function(){this[this.visible?"close":"open"]()},targetMouseenterEvent:function(){this.open()},targetMouseleaveEvent:function(){var e=this,t=this.trigger,i=this.enterable,n=this.leaveDelay;this.tipActive=!1,i&&"hover"===t?setTimeout(function(){e.tipActive||e.close()},n):this.close()},wrapperMouseenterEvent:function(){this.tipActive=!0},wrapperMouseleaveEvent:function(){var e=this,t=this.trigger,i=this.enterable,n=this.leaveDelay;this.tipActive=!1,i&&"hover"===t&&setTimeout(function(){e.tipActive||e.close()},n)}}};exports.default=_default2;
|
|
@@ -38,76 +38,100 @@
|
|
|
38
38
|
-webkit-box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
39
39
|
box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
40
40
|
color: #606266;
|
|
41
|
-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
41
|
+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
42
|
+
}
|
|
43
|
+
.vxe-table--tooltip-wrapper:not(.is--enterable) {
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
.vxe-table--tooltip-wrapper.is--visible {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
.vxe-table--tooltip-wrapper.is--arrow .vxe-table--tooltip-arrow {
|
|
50
|
+
display: block;
|
|
51
|
+
}
|
|
52
|
+
.vxe-table--tooltip-wrapper.is--enterable:after {
|
|
53
|
+
content: "";
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 0;
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 6px;
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
}
|
|
60
|
+
.vxe-table--tooltip-wrapper .vxe-table--tooltip-content {
|
|
61
|
+
white-space: pre-line;
|
|
62
|
+
}
|
|
63
|
+
.vxe-table--tooltip-wrapper .vxe-table--tooltip-arrow {
|
|
64
|
+
display: none;
|
|
65
|
+
position: absolute;
|
|
66
|
+
border-color: transparent;
|
|
67
|
+
border-width: 6px;
|
|
68
|
+
border-style: solid;
|
|
69
|
+
left: 50%;
|
|
70
|
+
-webkit-transform: translateX(-6px);
|
|
71
|
+
transform: translateX(-6px);
|
|
72
|
+
}
|
|
73
|
+
.vxe-table--tooltip-wrapper .vxe-table--tooltip-arrow:before {
|
|
74
|
+
content: "";
|
|
75
|
+
position: absolute;
|
|
76
|
+
border-color: transparent;
|
|
77
|
+
border-width: 5px;
|
|
78
|
+
border-style: solid;
|
|
79
|
+
left: -5px;
|
|
80
|
+
}
|
|
81
|
+
.vxe-table--tooltip-wrapper.placement--top.is--enterable:after {
|
|
82
|
+
bottom: -6px;
|
|
83
|
+
}
|
|
84
|
+
.vxe-table--tooltip-wrapper.placement--top .vxe-table--tooltip-arrow {
|
|
85
|
+
bottom: -12px;
|
|
86
|
+
}
|
|
87
|
+
.vxe-table--tooltip-wrapper.placement--top .vxe-table--tooltip-arrow:before {
|
|
88
|
+
top: -7px;
|
|
89
|
+
}
|
|
90
|
+
.vxe-table--tooltip-wrapper.placement--bottom.is--enterable:after {
|
|
91
|
+
top: -6px;
|
|
92
|
+
}
|
|
93
|
+
.vxe-table--tooltip-wrapper.placement--bottom .vxe-table--tooltip-arrow {
|
|
94
|
+
top: -12px;
|
|
95
|
+
}
|
|
96
|
+
.vxe-table--tooltip-wrapper.placement--bottom .vxe-table--tooltip-arrow:before {
|
|
97
|
+
top: -4px;
|
|
98
|
+
}
|
|
85
99
|
|
|
86
100
|
.vxe-table--tooltip-wrapper.theme--light {
|
|
87
101
|
background-color: #fff;
|
|
88
|
-
border: 1px solid #dcdfe6;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
border: 1px solid #dcdfe6;
|
|
103
|
+
}
|
|
104
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--top .vxe-table--tooltip-arrow {
|
|
105
|
+
border-top-color: #dcdfe6;
|
|
106
|
+
}
|
|
107
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--top .vxe-table--tooltip-arrow:before {
|
|
108
|
+
border-top-color: #fff;
|
|
109
|
+
}
|
|
110
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--bottom .vxe-table--tooltip-arrow {
|
|
111
|
+
border-bottom-color: #dcdfe6;
|
|
112
|
+
}
|
|
113
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--bottom .vxe-table--tooltip-arrow:before {
|
|
114
|
+
border-bottom-color: #fff;
|
|
115
|
+
}
|
|
98
116
|
.vxe-table--tooltip-wrapper.theme--dark {
|
|
99
117
|
background: #303133;
|
|
100
|
-
color: #fff;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
118
|
+
color: #fff;
|
|
119
|
+
}
|
|
120
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--top .vxe-table--tooltip-arrow {
|
|
121
|
+
border-top-color: #303133;
|
|
122
|
+
}
|
|
123
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--top .vxe-table--tooltip-arrow:before {
|
|
124
|
+
border-top-color: #303133;
|
|
125
|
+
}
|
|
126
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--bottom .vxe-table--tooltip-arrow {
|
|
127
|
+
border-bottom-color: #303133;
|
|
128
|
+
}
|
|
129
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--bottom .vxe-table--tooltip-arrow:before {
|
|
130
|
+
border-bottom-color: #303133;
|
|
131
|
+
}
|
|
109
132
|
|
|
110
133
|
/*valid error*/
|
|
111
134
|
.vxe-table--tooltip-wrapper.vxe-table--valid-error {
|
|
112
135
|
background-color: #f56c6c;
|
|
113
|
-
color: #fff;
|
|
136
|
+
color: #fff;
|
|
137
|
+
}
|
package/lib/v-x-e-table/index.js
CHANGED
|
@@ -17,13 +17,9 @@ exports.default = exports.config = void 0;
|
|
|
17
17
|
exports.t = t;
|
|
18
18
|
exports.use = use;
|
|
19
19
|
exports.v = void 0;
|
|
20
|
-
|
|
21
20
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
22
|
-
|
|
23
21
|
var _conf = _interopRequireDefault(require("../v-x-e-table/src/conf"));
|
|
24
|
-
|
|
25
22
|
var _interceptor = require("./src/interceptor");
|
|
26
|
-
|
|
27
23
|
Object.keys(_interceptor).forEach(function (key) {
|
|
28
24
|
if (key === "default" || key === "__esModule") return;
|
|
29
25
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -35,9 +31,7 @@ Object.keys(_interceptor).forEach(function (key) {
|
|
|
35
31
|
}
|
|
36
32
|
});
|
|
37
33
|
});
|
|
38
|
-
|
|
39
34
|
var _renderer = require("./src/renderer");
|
|
40
|
-
|
|
41
35
|
Object.keys(_renderer).forEach(function (key) {
|
|
42
36
|
if (key === "default" || key === "__esModule") return;
|
|
43
37
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -49,9 +43,7 @@ Object.keys(_renderer).forEach(function (key) {
|
|
|
49
43
|
}
|
|
50
44
|
});
|
|
51
45
|
});
|
|
52
|
-
|
|
53
46
|
var _commands = require("./src/commands");
|
|
54
|
-
|
|
55
47
|
Object.keys(_commands).forEach(function (key) {
|
|
56
48
|
if (key === "default" || key === "__esModule") return;
|
|
57
49
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -63,9 +55,7 @@ Object.keys(_commands).forEach(function (key) {
|
|
|
63
55
|
}
|
|
64
56
|
});
|
|
65
57
|
});
|
|
66
|
-
|
|
67
58
|
var _menus = require("./src/menus");
|
|
68
|
-
|
|
69
59
|
Object.keys(_menus).forEach(function (key) {
|
|
70
60
|
if (key === "default" || key === "__esModule") return;
|
|
71
61
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -77,9 +67,7 @@ Object.keys(_menus).forEach(function (key) {
|
|
|
77
67
|
}
|
|
78
68
|
});
|
|
79
69
|
});
|
|
80
|
-
|
|
81
70
|
var _formats = require("./src/formats");
|
|
82
|
-
|
|
83
71
|
Object.keys(_formats).forEach(function (key) {
|
|
84
72
|
if (key === "default" || key === "__esModule") return;
|
|
85
73
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -91,9 +79,7 @@ Object.keys(_formats).forEach(function (key) {
|
|
|
91
79
|
}
|
|
92
80
|
});
|
|
93
81
|
});
|
|
94
|
-
|
|
95
82
|
var _setup = require("./src/setup");
|
|
96
|
-
|
|
97
83
|
Object.keys(_setup).forEach(function (key) {
|
|
98
84
|
if (key === "default" || key === "__esModule") return;
|
|
99
85
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -105,21 +91,13 @@ Object.keys(_setup).forEach(function (key) {
|
|
|
105
91
|
}
|
|
106
92
|
});
|
|
107
93
|
});
|
|
108
|
-
|
|
109
94
|
var _utils = require("../tools/utils");
|
|
110
|
-
|
|
111
95
|
var _log = require("../tools/log");
|
|
112
|
-
|
|
113
96
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
114
|
-
|
|
115
97
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
116
|
-
|
|
117
98
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
118
|
-
|
|
119
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
120
|
-
|
|
99
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
121
100
|
var installedPlugins = [];
|
|
122
|
-
|
|
123
101
|
function use(Plugin, options) {
|
|
124
102
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
125
103
|
if (Plugin && Plugin.install) {
|
|
@@ -128,14 +106,12 @@ function use(Plugin, options) {
|
|
|
128
106
|
installedPlugins.push(Plugin);
|
|
129
107
|
}
|
|
130
108
|
}
|
|
131
|
-
|
|
132
109
|
return VXETable;
|
|
133
110
|
}
|
|
111
|
+
|
|
134
112
|
/**
|
|
135
113
|
* 检测模块的安装顺序是否正确
|
|
136
114
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
139
115
|
function reg(key) {
|
|
140
116
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
141
117
|
// 检测安装顺序是否正确
|
|
@@ -144,27 +120,21 @@ function reg(key) {
|
|
|
144
120
|
(0, _log.errLog)('vxe.error.useErr', [key]);
|
|
145
121
|
}
|
|
146
122
|
}
|
|
147
|
-
|
|
148
123
|
VXETable["_".concat(key)] = 1;
|
|
149
124
|
}
|
|
150
|
-
|
|
151
125
|
function getExportOrImpotType(types, flag) {
|
|
152
126
|
var rest = [];
|
|
153
|
-
|
|
154
127
|
_xeUtils.default.objectEach(types, function (val, type) {
|
|
155
128
|
if (val === 0 || val === flag) {
|
|
156
129
|
rest.push(type);
|
|
157
130
|
}
|
|
158
131
|
});
|
|
159
|
-
|
|
160
132
|
return rest;
|
|
161
133
|
}
|
|
162
|
-
|
|
163
134
|
var VXETableConfig = /*#__PURE__*/function () {
|
|
164
135
|
function VXETableConfig() {
|
|
165
136
|
_classCallCheck(this, VXETableConfig);
|
|
166
137
|
}
|
|
167
|
-
|
|
168
138
|
_createClass(VXETableConfig, [{
|
|
169
139
|
key: "zIndex",
|
|
170
140
|
get:
|
|
@@ -174,54 +144,49 @@ var VXETableConfig = /*#__PURE__*/function () {
|
|
|
174
144
|
function get() {
|
|
175
145
|
return _utils.UtilTools.getLastZIndex();
|
|
176
146
|
}
|
|
147
|
+
|
|
177
148
|
/**
|
|
178
149
|
* 获取下一个 zIndex
|
|
179
150
|
*/
|
|
180
|
-
|
|
181
151
|
}, {
|
|
182
152
|
key: "nextZIndex",
|
|
183
153
|
get: function get() {
|
|
184
154
|
return _utils.UtilTools.nextZIndex();
|
|
185
155
|
}
|
|
156
|
+
|
|
186
157
|
/**
|
|
187
158
|
* 获取所有导出类型
|
|
188
159
|
*/
|
|
189
|
-
|
|
190
160
|
}, {
|
|
191
161
|
key: "exportTypes",
|
|
192
162
|
get: function get() {
|
|
193
163
|
return getExportOrImpotType(_conf.default.export.types, 1);
|
|
194
164
|
}
|
|
165
|
+
|
|
195
166
|
/**
|
|
196
167
|
* 获取所有导入类型
|
|
197
168
|
*/
|
|
198
|
-
|
|
199
169
|
}, {
|
|
200
170
|
key: "importTypes",
|
|
201
171
|
get: function get() {
|
|
202
172
|
return getExportOrImpotType(_conf.default.export.types, 2);
|
|
203
173
|
}
|
|
204
174
|
}]);
|
|
205
|
-
|
|
206
175
|
return VXETableConfig;
|
|
207
176
|
}();
|
|
208
|
-
|
|
209
177
|
var config = new VXETableConfig();
|
|
210
178
|
exports.config = config;
|
|
211
|
-
|
|
212
179
|
function t(key, args) {
|
|
213
180
|
return _conf.default.i18n(key, args);
|
|
214
181
|
}
|
|
215
|
-
|
|
216
182
|
function _t(key, args) {
|
|
217
183
|
return key ? _xeUtils.default.toValueString(_conf.default.translate ? _conf.default.translate(key, args) : key) : '';
|
|
218
184
|
}
|
|
219
|
-
|
|
220
185
|
var v = 'v3';
|
|
221
186
|
exports.v = v;
|
|
222
187
|
var VXETable = {
|
|
223
188
|
v: v,
|
|
224
|
-
version: "3.6.
|
|
189
|
+
version: "3.6.8-beta.0",
|
|
225
190
|
reg: reg,
|
|
226
191
|
use: use,
|
|
227
192
|
setup: _setup.setup,
|