vxe-table 3.7.2 → 3.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/all.js +3 -3
- package/lib/button/index.js +5 -5
- package/lib/button/src/button.js +29 -29
- package/lib/button/style/style.css +2 -2
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/index.js +5 -5
- package/lib/checkbox/src/checkbox.js +17 -17
- package/lib/checkbox/src/group.js +10 -10
- package/lib/checkbox/style/style.css +1 -0
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/checkbox-group/index.js +5 -5
- package/lib/colgroup/index.js +6 -6
- package/lib/column/index.js +6 -6
- package/lib/edit/index.js +5 -5
- package/lib/edit/src/mixin.js +28 -28
- package/lib/export/index.js +15 -15
- package/lib/export/src/export-panel.js +57 -57
- package/lib/export/src/import-panel.js +21 -21
- package/lib/export/src/mixin.js +72 -72
- package/lib/export/style/style.css +5 -0
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/index.js +7 -7
- package/lib/filter/src/mixin.js +8 -8
- package/lib/filter/src/panel.js +24 -24
- package/lib/filter/style/style.css +3 -0
- package/lib/filter/style/style.min.css +1 -1
- package/lib/footer/index.js +5 -5
- package/lib/footer/src/footer.js +14 -14
- package/lib/form/index.js +5 -5
- package/lib/form/src/form-config-item.js +27 -27
- package/lib/form/src/form-gather.js +5 -5
- package/lib/form/src/form-item.js +36 -36
- package/lib/form/src/form.js +69 -69
- package/lib/form/src/render.js +9 -9
- package/lib/form/src/util.js +6 -6
- package/lib/form/style/style.css +10 -2
- package/lib/form/style/style.min.css +1 -1
- package/lib/form-gather/index.js +5 -5
- package/lib/form-item/index.js +5 -5
- package/lib/grid/index.js +7 -7
- package/lib/grid/src/grid.js +77 -77
- package/lib/grid/style/style.css +1 -0
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/index.js +5 -5
- package/lib/header/src/header.js +21 -21
- package/lib/icon/index.js +5 -5
- package/lib/icon/src/icon.js +3 -3
- package/lib/icon/style/style.css +2 -1
- package/lib/icon/style/style.min.css +2 -1
- package/lib/index.common.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.umd.js +1238 -1836
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +5 -5
- package/lib/input/src/date.js +3 -3
- package/lib/input/src/input.js +248 -248
- package/lib/input/src/number.js +4 -4
- package/lib/input/style/style.css +9 -2
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/index.js +5 -5
- package/lib/keyboard/src/mixin.js +15 -15
- package/lib/list/index.js +5 -5
- package/lib/list/src/list.js +19 -19
- package/lib/loading/index.js +6 -6
- package/lib/loading/src/loading.js +13 -13
- package/lib/loading/style/style.css +1 -0
- package/lib/loading/style/style.min.css +1 -1
- package/lib/locale/lang/en-US.js +7 -7
- package/lib/locale/lang/en-US.umd.js +7 -7
- package/lib/locale/lang/es-ES.js +5 -5
- package/lib/locale/lang/es-ES.umd.js +5 -5
- package/lib/locale/lang/ja-JP.js +7 -7
- package/lib/locale/lang/ja-JP.umd.js +7 -7
- package/lib/locale/lang/pt-BR.js +7 -7
- package/lib/locale/lang/pt-BR.umd.js +7 -7
- package/lib/locale/lang/zh-CN.js +7 -7
- package/lib/locale/lang/zh-CN.umd.js +7 -7
- package/lib/locale/lang/zh-HK.js +4 -4
- package/lib/locale/lang/zh-HK.umd.js +7 -7
- package/lib/locale/lang/zh-MO.js +4 -4
- package/lib/locale/lang/zh-MO.umd.js +7 -7
- package/lib/locale/lang/zh-TC.js +7 -7
- package/lib/locale/lang/zh-TC.umd.js +7 -7
- package/lib/locale/lang/zh-TW.js +4 -4
- package/lib/locale/lang/zh-TW.umd.js +7 -7
- package/lib/menu/index.js +7 -7
- package/lib/menu/src/mixin.js +16 -16
- package/lib/menu/src/panel.js +14 -14
- package/lib/menu/style/style.css +1 -0
- package/lib/menu/style/style.min.css +1 -1
- package/lib/mixins/size.js +2 -2
- package/lib/modal/index.js +12 -12
- package/lib/modal/src/modal.js +104 -104
- package/lib/modal/style/style.css +2 -0
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +5 -5
- package/lib/option/index.js +5 -5
- package/lib/pager/index.js +5 -5
- package/lib/pager/src/pager.js +67 -67
- package/lib/pager/style/style.css +2 -0
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.js +5 -5
- package/lib/pulldown/src/pulldown.js +16 -16
- package/lib/pulldown/style/style.css +1 -2
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/index.js +5 -5
- package/lib/radio/src/button.js +14 -14
- package/lib/radio/src/group.js +12 -12
- package/lib/radio/src/radio.js +16 -16
- package/lib/radio/style/style.css +1 -0
- package/lib/radio/style/style.min.css +1 -1
- package/lib/radio-button/index.js +5 -5
- package/lib/radio-group/index.js +5 -5
- package/lib/select/index.js +9 -9
- package/lib/select/src/optgroup.js +6 -6
- package/lib/select/src/option.js +6 -6
- package/lib/select/src/select.js +58 -58
- package/lib/select/src/util.js +2 -2
- package/lib/select/style/style.css +2 -2
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +5 -5
- package/lib/switch/src/switch.js +17 -17
- package/lib/switch/style/style.css +1 -0
- package/lib/switch/style/style.min.css +1 -1
- package/lib/table/index.js +15 -15
- package/lib/table/src/body.js +39 -39
- package/lib/table/src/cell.js +77 -77
- package/lib/table/src/column.js +17 -17
- package/lib/table/src/columnInfo.js +13 -13
- package/lib/table/src/group.js +4 -4
- package/lib/table/src/methods.js +223 -223
- package/lib/table/src/table.js +124 -124
- package/lib/table/src/util.js +19 -19
- package/lib/table/style/style.css +10 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/index.js +5 -5
- package/lib/textarea/src/textarea.js +27 -27
- package/lib/textarea/style/style.css +3 -0
- package/lib/textarea/style/style.min.css +1 -1
- package/lib/toolbar/index.js +5 -5
- package/lib/toolbar/src/toolbar.js +79 -79
- package/lib/toolbar/style/style.css +3 -0
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +8 -8
- package/lib/tools/event.js +3 -3
- package/lib/tools/log.js +2 -2
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/resize.js +4 -4
- package/lib/tools/utils.js +13 -13
- package/lib/tools/vn.js +2 -2
- package/lib/tooltip/index.js +6 -6
- package/lib/tooltip/src/tooltip.js +30 -30
- package/lib/v-x-e-table/index.js +9 -9
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +6 -6
- package/lib/v-x-e-table/src/conf.js +4 -4
- package/lib/v-x-e-table/src/config.js +6 -2
- package/lib/v-x-e-table/src/config.min.js +1 -1
- package/lib/v-x-e-table/src/formats.js +6 -6
- package/lib/v-x-e-table/src/interceptor.js +5 -5
- package/lib/v-x-e-table/src/menus.js +6 -6
- package/lib/v-x-e-table/src/renderer.js +49 -49
- package/lib/v-x-e-table/src/store.js +7 -7
- package/lib/v-x-e-table/src/validators.js +2 -2
- package/lib/v-x-e-table/style/style.css +2 -0
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/index.js +5 -5
- package/lib/validator/src/mixin.js +29 -29
- package/package.json +4 -4
- package/packages/v-x-e-table/src/config.js +4 -0
- package/styles/form.scss +3 -2
- /package/lib/icon/style/{iconfont.1694939101562.ttf → iconfont.1695255877135.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1694939101562.woff → iconfont.1695255877135.woff} +0 -0
- /package/lib/icon/style/{iconfont.1694939101562.woff2 → iconfont.1695255877135.woff2} +0 -0
- /package/lib/{iconfont.1694939101562.ttf → iconfont.1695255877135.ttf} +0 -0
- /package/lib/{iconfont.1694939101562.woff → iconfont.1695255877135.woff} +0 -0
- /package/lib/{iconfont.1694939101562.woff2 → iconfont.1695255877135.woff2} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
9
9
|
var _vXETable = _interopRequireDefault(require("../../v-x-e-table"));
|
|
@@ -13,7 +13,7 @@ var _dom = _interopRequireDefault(require("../../tools/dom"));
|
|
|
13
13
|
var _vn = require("../../tools/vn");
|
|
14
14
|
var _event = require("../../tools/event");
|
|
15
15
|
var _log = require("../../tools/log");
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
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; }
|
|
18
18
|
var renderDropdowns = function renderDropdowns(h, _vm, item, isBtn) {
|
|
19
19
|
var _e = _vm._e;
|
|
@@ -62,7 +62,7 @@ function renderBtns(h, _vm) {
|
|
|
62
62
|
return buttons.map(function (item) {
|
|
63
63
|
var dropdowns = item.dropdowns,
|
|
64
64
|
buttonRender = item.buttonRender;
|
|
65
|
-
var compConf = buttonRender ? _vXETable
|
|
65
|
+
var compConf = buttonRender ? _vXETable.default.renderer.get(buttonRender.name) : null;
|
|
66
66
|
if (item.visible === false) {
|
|
67
67
|
return _e();
|
|
68
68
|
}
|
|
@@ -76,7 +76,7 @@ function renderBtns(h, _vm) {
|
|
|
76
76
|
};
|
|
77
77
|
if (renderToolbarButton) {
|
|
78
78
|
return h('span', {
|
|
79
|
-
|
|
79
|
+
class: ['vxe-button--item', toolbarButtonClassName ? _xeUtils.default.isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
|
|
80
80
|
}, (0, _vn.getSlotVNs)(renderToolbarButton.call(_vm, h, buttonRender, params)));
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -128,7 +128,7 @@ function renderRightTools(h, _vm) {
|
|
|
128
128
|
return tools.map(function (item) {
|
|
129
129
|
var dropdowns = item.dropdowns,
|
|
130
130
|
toolRender = item.toolRender;
|
|
131
|
-
var compConf = toolRender ? _vXETable
|
|
131
|
+
var compConf = toolRender ? _vXETable.default.renderer.get(toolRender.name) : null;
|
|
132
132
|
if (item.visible === false) {
|
|
133
133
|
return _e();
|
|
134
134
|
}
|
|
@@ -142,7 +142,7 @@ function renderRightTools(h, _vm) {
|
|
|
142
142
|
tool: item
|
|
143
143
|
};
|
|
144
144
|
return h('span', {
|
|
145
|
-
|
|
145
|
+
class: ['vxe-tool--item', toolbarToolClassName ? _xeUtils.default.isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
|
|
146
146
|
}, (0, _vn.getSlotVNs)(renderToolbarTool.call(_vm, h, toolRender, params)));
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -195,8 +195,8 @@ function renderCustoms(h, _vm) {
|
|
|
195
195
|
// 点击触发
|
|
196
196
|
customBtnOns.click = _vm.handleClickSettingEvent;
|
|
197
197
|
}
|
|
198
|
-
_xeUtils
|
|
199
|
-
var colTitle = _utils
|
|
198
|
+
_xeUtils.default.eachTree(columns, function (column, index, items, path, parent) {
|
|
199
|
+
var colTitle = _utils.default.formatText(column.getTitle(), 1);
|
|
200
200
|
var colKey = column.getKey();
|
|
201
201
|
var isColGroup = column.children && column.children.length;
|
|
202
202
|
var isDisabled = checkMethod ? !checkMethod({
|
|
@@ -206,12 +206,12 @@ function renderCustoms(h, _vm) {
|
|
|
206
206
|
var isChecked = column.visible;
|
|
207
207
|
var isIndeterminate = column.halfVisible;
|
|
208
208
|
cols.push(h('li', {
|
|
209
|
-
|
|
209
|
+
class: ['vxe-custom--option', "level--".concat(column.level), {
|
|
210
210
|
'is--group': isColGroup
|
|
211
211
|
}]
|
|
212
212
|
}, [h('div', {
|
|
213
213
|
title: colTitle,
|
|
214
|
-
|
|
214
|
+
class: ['vxe-custom--checkbox-option', {
|
|
215
215
|
'is--checked': isChecked,
|
|
216
216
|
'is--indeterminate': isIndeterminate,
|
|
217
217
|
'is--disabled': isDisabled
|
|
@@ -227,18 +227,18 @@ function renderCustoms(h, _vm) {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}, [h('span', {
|
|
230
|
-
|
|
230
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
231
231
|
}), h('span', {
|
|
232
|
-
|
|
232
|
+
class: 'vxe-checkbox--label'
|
|
233
233
|
}, colTitle)]), !parent && customOpts.allowFixed ? h('div', {
|
|
234
|
-
|
|
234
|
+
class: 'vxe-custom--fixed-option'
|
|
235
235
|
}, [h('span', {
|
|
236
|
-
|
|
236
|
+
class: ['vxe-custom--fixed-left-option', column.fixed === 'left' ? _conf.default.icon.TOOLBAR_TOOLS_FIXED_LEFT_ACTIVED : _conf.default.icon.TOOLBAR_TOOLS_FIXED_LEFT, {
|
|
237
237
|
'is--checked': column.fixed === 'left',
|
|
238
238
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
239
239
|
}],
|
|
240
240
|
attrs: {
|
|
241
|
-
title: _conf
|
|
241
|
+
title: _conf.default.i18n(column.fixed === 'left' ? 'vxe.toolbar.cancelfixed' : 'vxe.toolbar.fixedLeft')
|
|
242
242
|
},
|
|
243
243
|
on: {
|
|
244
244
|
click: function click() {
|
|
@@ -246,12 +246,12 @@ function renderCustoms(h, _vm) {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}), h('span', {
|
|
249
|
-
|
|
249
|
+
class: ['vxe-custom--fixed-right-option', column.fixed === 'right' ? _conf.default.icon.TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVED : _conf.default.icon.TOOLBAR_TOOLS_FIXED_RIGHT, {
|
|
250
250
|
'is--checked': column.fixed === 'right',
|
|
251
251
|
'is--disabled': isMaxFixedColumn && !column.fixed
|
|
252
252
|
}],
|
|
253
253
|
attrs: {
|
|
254
|
-
title: _conf
|
|
254
|
+
title: _conf.default.i18n(column.fixed === 'right' ? 'vxe.toolbar.cancelfixed' : 'vxe.toolbar.fixedRight')
|
|
255
255
|
},
|
|
256
256
|
on: {
|
|
257
257
|
click: function click() {
|
|
@@ -264,97 +264,97 @@ function renderCustoms(h, _vm) {
|
|
|
264
264
|
var isAllChecked = customStore.isAll;
|
|
265
265
|
var isAllIndeterminate = customStore.isIndeterminate;
|
|
266
266
|
return h('div', {
|
|
267
|
-
|
|
267
|
+
class: ['vxe-custom--wrapper', {
|
|
268
268
|
'is--active': customStore.visible
|
|
269
269
|
}],
|
|
270
270
|
ref: 'customWrapper'
|
|
271
271
|
}, [h('vxe-button', {
|
|
272
272
|
props: {
|
|
273
273
|
circle: true,
|
|
274
|
-
icon: customOpts.icon || _conf
|
|
274
|
+
icon: customOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_CUSTOM
|
|
275
275
|
},
|
|
276
276
|
attrs: {
|
|
277
|
-
title: _conf
|
|
277
|
+
title: _conf.default.i18n('vxe.toolbar.custom')
|
|
278
278
|
},
|
|
279
279
|
on: customBtnOns
|
|
280
280
|
}), h('div', {
|
|
281
|
-
|
|
281
|
+
class: 'vxe-custom--option-wrapper'
|
|
282
282
|
}, [h('ul', {
|
|
283
|
-
|
|
283
|
+
class: 'vxe-custom--header'
|
|
284
284
|
}, [h('li', {
|
|
285
|
-
|
|
285
|
+
class: 'vxe-custom--option'
|
|
286
286
|
}, [h('div', {
|
|
287
|
-
|
|
287
|
+
class: ['vxe-custom--checkbox-option', {
|
|
288
288
|
'is--checked': isAllChecked,
|
|
289
289
|
'is--indeterminate': isAllIndeterminate
|
|
290
290
|
}],
|
|
291
291
|
attrs: {
|
|
292
|
-
title: _conf
|
|
292
|
+
title: _conf.default.i18n('vxe.table.allTitle')
|
|
293
293
|
},
|
|
294
294
|
on: {
|
|
295
295
|
click: _vm.allCustomEvent
|
|
296
296
|
}
|
|
297
297
|
}, [h('span', {
|
|
298
|
-
|
|
298
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
299
299
|
}), h('span', {
|
|
300
|
-
|
|
301
|
-
}, _conf
|
|
302
|
-
|
|
300
|
+
class: 'vxe-checkbox--label'
|
|
301
|
+
}, _conf.default.i18n('vxe.toolbar.customAll'))])])]), h('ul', {
|
|
302
|
+
class: 'vxe-custom--body',
|
|
303
303
|
on: customWrapperOns
|
|
304
304
|
}, cols), customOpts.showFooter || customOpts.isFooter ? h('div', {
|
|
305
|
-
|
|
305
|
+
class: 'vxe-custom--footer'
|
|
306
306
|
}, [h('button', {
|
|
307
|
-
|
|
307
|
+
class: 'btn--reset',
|
|
308
308
|
on: {
|
|
309
309
|
click: _vm.resetCustomEvent
|
|
310
310
|
}
|
|
311
|
-
}, customOpts.resetButtonText || _conf
|
|
312
|
-
|
|
311
|
+
}, customOpts.resetButtonText || _conf.default.i18n('vxe.toolbar.customRestore')), h('button', {
|
|
312
|
+
class: 'btn--confirm',
|
|
313
313
|
on: {
|
|
314
314
|
click: _vm.confirmCustomEvent
|
|
315
315
|
}
|
|
316
|
-
}, customOpts.confirmButtonText || _conf
|
|
316
|
+
}, customOpts.confirmButtonText || _conf.default.i18n('vxe.toolbar.customConfirm'))]) : null])]);
|
|
317
317
|
}
|
|
318
318
|
var _default2 = {
|
|
319
319
|
name: 'VxeToolbar',
|
|
320
|
-
mixins: [_size
|
|
320
|
+
mixins: [_size.default],
|
|
321
321
|
props: {
|
|
322
322
|
loading: Boolean,
|
|
323
323
|
refresh: [Boolean, Object],
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
import: [Boolean, Object],
|
|
325
|
+
export: [Boolean, Object],
|
|
326
326
|
print: [Boolean, Object],
|
|
327
327
|
zoom: [Boolean, Object],
|
|
328
328
|
custom: [Boolean, Object],
|
|
329
329
|
buttons: {
|
|
330
330
|
type: Array,
|
|
331
|
-
|
|
332
|
-
return _conf
|
|
331
|
+
default: function _default() {
|
|
332
|
+
return _conf.default.toolbar.buttons;
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
335
|
tools: {
|
|
336
336
|
type: Array,
|
|
337
|
-
|
|
338
|
-
return _conf
|
|
337
|
+
default: function _default() {
|
|
338
|
+
return _conf.default.toolbar.tools;
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
341
|
perfect: {
|
|
342
342
|
type: Boolean,
|
|
343
|
-
|
|
344
|
-
return _conf
|
|
343
|
+
default: function _default() {
|
|
344
|
+
return _conf.default.toolbar.perfect;
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
size: {
|
|
348
348
|
type: String,
|
|
349
|
-
|
|
350
|
-
return _conf
|
|
349
|
+
default: function _default() {
|
|
350
|
+
return _conf.default.toolbar.size || _conf.default.size;
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
353
|
className: [String, Function]
|
|
354
354
|
},
|
|
355
355
|
inject: {
|
|
356
356
|
$xegrid: {
|
|
357
|
-
|
|
357
|
+
default: null
|
|
358
358
|
}
|
|
359
359
|
},
|
|
360
360
|
data: function data() {
|
|
@@ -371,22 +371,22 @@ var _default2 = {
|
|
|
371
371
|
},
|
|
372
372
|
computed: {
|
|
373
373
|
refreshOpts: function refreshOpts() {
|
|
374
|
-
return Object.assign({}, _conf
|
|
374
|
+
return Object.assign({}, _conf.default.toolbar.refresh, this.refresh);
|
|
375
375
|
},
|
|
376
376
|
importOpts: function importOpts() {
|
|
377
|
-
return Object.assign({}, _conf
|
|
377
|
+
return Object.assign({}, _conf.default.toolbar.import, this.import);
|
|
378
378
|
},
|
|
379
379
|
exportOpts: function exportOpts() {
|
|
380
|
-
return Object.assign({}, _conf
|
|
380
|
+
return Object.assign({}, _conf.default.toolbar.export, this.export);
|
|
381
381
|
},
|
|
382
382
|
printOpts: function printOpts() {
|
|
383
|
-
return Object.assign({}, _conf
|
|
383
|
+
return Object.assign({}, _conf.default.toolbar.print, this.print);
|
|
384
384
|
},
|
|
385
385
|
zoomOpts: function zoomOpts() {
|
|
386
|
-
return Object.assign({}, _conf
|
|
386
|
+
return Object.assign({}, _conf.default.toolbar.zoom, this.zoom);
|
|
387
387
|
},
|
|
388
388
|
customOpts: function customOpts() {
|
|
389
|
-
return Object.assign({}, _conf
|
|
389
|
+
return Object.assign({}, _conf.default.toolbar.custom, this.custom);
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
392
|
created: function created() {
|
|
@@ -410,7 +410,7 @@ var _default2 = {
|
|
|
410
410
|
if (_this.buttons) {
|
|
411
411
|
_this.buttons.forEach(function (item) {
|
|
412
412
|
var buttonRender = item.buttonRender;
|
|
413
|
-
var compConf = buttonRender ? _vXETable
|
|
413
|
+
var compConf = buttonRender ? _vXETable.default.renderer.get(buttonRender.name) : null;
|
|
414
414
|
if (compConf && compConf.renderButton) {
|
|
415
415
|
(0, _log.warnLog)('vxe.error.delFunc', ['renderButton', 'renderToolbarButton']);
|
|
416
416
|
}
|
|
@@ -441,33 +441,33 @@ var _default2 = {
|
|
|
441
441
|
vSize = this.vSize,
|
|
442
442
|
className = this.className;
|
|
443
443
|
return h('div', {
|
|
444
|
-
|
|
444
|
+
class: ['vxe-toolbar', className ? _xeUtils.default.isFunction(className) ? className({
|
|
445
445
|
$toolbar: this
|
|
446
446
|
}) : className : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--perfect', perfect), _defineProperty(_ref, 'is--loading', loading), _ref)]
|
|
447
447
|
}, [h('div', {
|
|
448
|
-
|
|
448
|
+
class: 'vxe-buttons--wrapper'
|
|
449
449
|
}, renderBtns(h, this)), h('div', {
|
|
450
|
-
|
|
450
|
+
class: 'vxe-tools--wrapper'
|
|
451
451
|
}, renderRightTools(h, this)), h('div', {
|
|
452
|
-
|
|
453
|
-
}, [this
|
|
452
|
+
class: 'vxe-tools--operate'
|
|
453
|
+
}, [this.import ? h('vxe-button', {
|
|
454
454
|
props: {
|
|
455
455
|
circle: true,
|
|
456
|
-
icon: importOpts.icon || _conf
|
|
456
|
+
icon: importOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_IMPORT
|
|
457
457
|
},
|
|
458
458
|
attrs: {
|
|
459
|
-
title: _conf
|
|
459
|
+
title: _conf.default.i18n('vxe.toolbar.import')
|
|
460
460
|
},
|
|
461
461
|
on: {
|
|
462
462
|
click: this.importEvent
|
|
463
463
|
}
|
|
464
|
-
}) : _e(), this
|
|
464
|
+
}) : _e(), this.export ? h('vxe-button', {
|
|
465
465
|
props: {
|
|
466
466
|
circle: true,
|
|
467
|
-
icon: exportOpts.icon || _conf
|
|
467
|
+
icon: exportOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_EXPORT
|
|
468
468
|
},
|
|
469
469
|
attrs: {
|
|
470
|
-
title: _conf
|
|
470
|
+
title: _conf.default.i18n('vxe.toolbar.export')
|
|
471
471
|
},
|
|
472
472
|
on: {
|
|
473
473
|
click: this.exportEvent
|
|
@@ -475,10 +475,10 @@ var _default2 = {
|
|
|
475
475
|
}) : _e(), this.print ? h('vxe-button', {
|
|
476
476
|
props: {
|
|
477
477
|
circle: true,
|
|
478
|
-
icon: this.printOpts.icon || _conf
|
|
478
|
+
icon: this.printOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_PRINT
|
|
479
479
|
},
|
|
480
480
|
attrs: {
|
|
481
|
-
title: _conf
|
|
481
|
+
title: _conf.default.i18n('vxe.toolbar.print')
|
|
482
482
|
},
|
|
483
483
|
on: {
|
|
484
484
|
click: this.printEvent
|
|
@@ -486,10 +486,10 @@ var _default2 = {
|
|
|
486
486
|
}) : _e(), refresh ? h('vxe-button', {
|
|
487
487
|
props: {
|
|
488
488
|
circle: true,
|
|
489
|
-
icon: this.isRefresh ? refreshOpts.iconLoading || _conf
|
|
489
|
+
icon: this.isRefresh ? refreshOpts.iconLoading || _conf.default.icon.TOOLBAR_TOOLS_REFRESH_LOADING : refreshOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_REFRESH
|
|
490
490
|
},
|
|
491
491
|
attrs: {
|
|
492
|
-
title: _conf
|
|
492
|
+
title: _conf.default.i18n('vxe.toolbar.refresh')
|
|
493
493
|
},
|
|
494
494
|
on: {
|
|
495
495
|
click: this.refreshEvent
|
|
@@ -497,10 +497,10 @@ var _default2 = {
|
|
|
497
497
|
}) : _e(), zoom && $xegrid ? h('vxe-button', {
|
|
498
498
|
props: {
|
|
499
499
|
circle: true,
|
|
500
|
-
icon: $xegrid.isMaximized() ? zoomOpts.iconOut || _conf
|
|
500
|
+
icon: $xegrid.isMaximized() ? zoomOpts.iconOut || _conf.default.icon.TOOLBAR_TOOLS_MINIMIZE : zoomOpts.iconIn || _conf.default.icon.TOOLBAR_TOOLS_FULLSCREEN
|
|
501
501
|
},
|
|
502
502
|
attrs: {
|
|
503
|
-
title: _conf
|
|
503
|
+
title: _conf.default.i18n("vxe.toolbar.zoom".concat($xegrid.isMaximized() ? 'Out' : 'In'))
|
|
504
504
|
},
|
|
505
505
|
on: {
|
|
506
506
|
click: $xegrid.triggerZoomEvent
|
|
@@ -517,7 +517,7 @@ var _default2 = {
|
|
|
517
517
|
fintTable: function fintTable() {
|
|
518
518
|
var $children = this.$parent.$children;
|
|
519
519
|
var selfIndex = $children.indexOf(this);
|
|
520
|
-
return _xeUtils
|
|
520
|
+
return _xeUtils.default.find($children, function (comp, index) {
|
|
521
521
|
return comp && comp.loadData && index > selfIndex && comp.$vnode.componentOptions.tag === 'vxe-table';
|
|
522
522
|
});
|
|
523
523
|
},
|
|
@@ -580,7 +580,7 @@ var _default2 = {
|
|
|
580
580
|
},
|
|
581
581
|
changeCustomOption: function changeCustomOption(column) {
|
|
582
582
|
var isChecked = !column.visible;
|
|
583
|
-
_xeUtils
|
|
583
|
+
_xeUtils.default.eachTree([column], function (item) {
|
|
584
584
|
item.visible = isChecked;
|
|
585
585
|
item.halfVisible = false;
|
|
586
586
|
});
|
|
@@ -601,7 +601,7 @@ var _default2 = {
|
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
603
|
handleOptionCheck: function handleOptionCheck(column) {
|
|
604
|
-
var matchObj = _xeUtils
|
|
604
|
+
var matchObj = _xeUtils.default.findTree(this.columns, function (item) {
|
|
605
605
|
return item === column;
|
|
606
606
|
});
|
|
607
607
|
if (matchObj && matchObj.parent) {
|
|
@@ -642,7 +642,7 @@ var _default2 = {
|
|
|
642
642
|
customStore = this.customStore;
|
|
643
643
|
var checkMethod = $xetable.customOpts.checkMethod;
|
|
644
644
|
var isAll = !customStore.isAll;
|
|
645
|
-
_xeUtils
|
|
645
|
+
_xeUtils.default.eachTree(columns, function (column) {
|
|
646
646
|
if (!checkMethod || checkMethod({
|
|
647
647
|
column: column
|
|
648
648
|
})) {
|
|
@@ -654,7 +654,7 @@ var _default2 = {
|
|
|
654
654
|
this.checkCustomStatus();
|
|
655
655
|
},
|
|
656
656
|
handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
|
|
657
|
-
if (!_dom
|
|
657
|
+
if (!_dom.default.getEventTargetNode(evnt, this.$refs.customWrapper).flag) {
|
|
658
658
|
this.customColseEvent(evnt);
|
|
659
659
|
}
|
|
660
660
|
},
|
|
@@ -706,7 +706,7 @@ var _default2 = {
|
|
|
706
706
|
if (queryMethod) {
|
|
707
707
|
this.isRefresh = true;
|
|
708
708
|
try {
|
|
709
|
-
Promise.resolve(queryMethod({}))
|
|
709
|
+
Promise.resolve(queryMethod({})).catch(function (e) {
|
|
710
710
|
return e;
|
|
711
711
|
}).then(function () {
|
|
712
712
|
_this4.isRefresh = false;
|
|
@@ -718,7 +718,7 @@ var _default2 = {
|
|
|
718
718
|
this.isRefresh = true;
|
|
719
719
|
$xegrid.triggerToolbarCommitEvent({
|
|
720
720
|
code: refreshOpts.code || 'reload'
|
|
721
|
-
}, evnt)
|
|
721
|
+
}, evnt).catch(function (e) {
|
|
722
722
|
return e;
|
|
723
723
|
}).then(function () {
|
|
724
724
|
_this4.isRefresh = false;
|
|
@@ -734,7 +734,7 @@ var _default2 = {
|
|
|
734
734
|
if ($xegrid) {
|
|
735
735
|
$xegrid.triggerToolbarBtnEvent(item, evnt);
|
|
736
736
|
} else {
|
|
737
|
-
var gCommandOpts = _vXETable
|
|
737
|
+
var gCommandOpts = _vXETable.default.commands.get(code);
|
|
738
738
|
var params = {
|
|
739
739
|
code: code,
|
|
740
740
|
button: item,
|
|
@@ -763,7 +763,7 @@ var _default2 = {
|
|
|
763
763
|
if ($xegrid) {
|
|
764
764
|
$xegrid.triggerToolbarTolEvent(item, evnt);
|
|
765
765
|
} else {
|
|
766
|
-
var gCommandOpts = _vXETable
|
|
766
|
+
var gCommandOpts = _vXETable.default.commands.get(code);
|
|
767
767
|
var params = {
|
|
768
768
|
code: code,
|
|
769
769
|
tool: item,
|
|
@@ -801,4 +801,4 @@ var _default2 = {
|
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
|
-
exports
|
|
804
|
+
exports.default = _default2;
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
font-weight: 700;
|
|
33
33
|
-webkit-user-select: none;
|
|
34
34
|
-moz-user-select: none;
|
|
35
|
+
-ms-user-select: none;
|
|
35
36
|
user-select: none;
|
|
36
37
|
}
|
|
37
38
|
.is--checked.vxe-custom--checkbox-option, .is--indeterminate.vxe-custom--checkbox-option {
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
z-index: 999;
|
|
93
94
|
-webkit-user-select: none;
|
|
94
95
|
-moz-user-select: none;
|
|
96
|
+
-ms-user-select: none;
|
|
95
97
|
user-select: none;
|
|
96
98
|
background-color: rgba(255, 255, 255, 0.5);
|
|
97
99
|
}
|
|
@@ -258,6 +260,7 @@
|
|
|
258
260
|
padding: 0;
|
|
259
261
|
-webkit-user-select: none;
|
|
260
262
|
-moz-user-select: none;
|
|
263
|
+
-ms-user-select: none;
|
|
261
264
|
user-select: none;
|
|
262
265
|
}
|
|
263
266
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-custom--checkbox-option .vxe-checkbox--icon{font-size:1.34em}.vxe-custom--checkbox-option .vxe-checkbox--icon{color:#dcdfe6;vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;user-select:none}.is--checked.vxe-custom--checkbox-option,.is--indeterminate.vxe-custom--checkbox-option{color:#409eff}.is--checked.vxe-custom--checkbox-option .vxe-checkbox--icon,.is--indeterminate.vxe-custom--checkbox-option .vxe-checkbox--icon{color:#409eff}.vxe-custom--checkbox-option:not(.is--disabled){cursor:pointer}.vxe-custom--checkbox-option:not(.is--disabled):hover .vxe-checkbox--icon{color:#409eff}.is--disabled.vxe-custom--checkbox-option{color:#bfbfbf;cursor:not-allowed}.is--disabled.vxe-custom--checkbox-option .vxe-checkbox--icon{color:#dcdfe6}.vxe-custom--checkbox-option .vxe-checkbox--label{padding-left:.5em;vertical-align:middle}.vxe-toolbar{position:relative;display:flex;flex-direction:row;align-items:center;padding:.6em 0;color:#606266;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;background-color:#fff}.vxe-toolbar:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-toolbar.is--perfect{border:1px solid #e8eaec;border-bottom-width:0;background-color:#f8f8f9}.vxe-toolbar.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:rgba(255,255,255,.5)}.vxe-toolbar .vxe-buttons--wrapper{flex-grow:1}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button+.vxe-button--item,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button--item{margin-left:.8em}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button+.vxe-tool--item,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-button,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-tool--item{margin-left:.8em}.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button{display:flex;align-items:center;justify-content:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--operate,.vxe-toolbar .vxe-tools--wrapper{display:flex;align-items:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--wrapper{flex-wrap:wrap}.vxe-toolbar .vxe-tools--operate{flex-shrink:0}.vxe-toolbar .vxe-custom--wrapper{position:relative;margin-left:.8em}.vxe-toolbar .vxe-custom--wrapper.is--active>.vxe-button{background-color:#d9dadb;border-radius:50%}.vxe-toolbar .vxe-custom--wrapper.is--active .vxe-custom--option-wrapper{display:block}.vxe-toolbar .vxe-custom--option-wrapper{display:none;position:absolute;right:2px;text-align:left;background-color:#fff;z-index:19;border:1px solid #e8eaec;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header{padding:.28em 0;font-weight:700;border-bottom:1px solid #dadce0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body{padding:.2em 0;max-height:17.6em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body .vxe-custom--option:hover{background-color:#f5f7fa}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li{max-width:18em;min-width:14em;padding:.2em 1em .2em 1em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2{padding-left:3.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2 .vxe-checkbox--icon{left:1.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3{padding-left:4.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3 .vxe-checkbox--icon{left:2.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4{padding-left:5.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4 .vxe-checkbox--icon{left:3.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5{padding-left:6.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5 .vxe-checkbox--icon{left:4.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6{padding-left:7.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6 .vxe-checkbox--icon{left:5.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7{padding-left:8.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7 .vxe-checkbox--icon{left:6.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8{padding-left:9.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8 .vxe-checkbox--icon{left:7.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer{border-top:1px solid #dadce0;text-align:right}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button{background-color:transparent;width:50%;height:2.5em;border:0;color:#606266;text-align:center;cursor:pointer}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:focus{outline:0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:hover{color:#409eff}.vxe-custom--option{display:flex;flex-direction:row}.vxe-custom--option-wrapper .vxe-custom--body,.vxe-custom--option-wrapper .vxe-custom--header{list-style-type:none;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-custom--checkbox-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}.vxe-custom--fixed-option{flex-shrink:0;padding-left:.5em;display:flex;flex-direction:row;align-items:center}.vxe-custom--fixed-option .vxe-custom--fixed-left-option,.vxe-custom--fixed-option .vxe-custom--fixed-right-option{line-height:1.34em;font-size:1.1em;padding:0 .2em;cursor:pointer}.vxe-custom--fixed-option .vxe-custom--fixed-left-option.is--checked,.vxe-custom--fixed-option .vxe-custom--fixed-left-option:hover,.vxe-custom--fixed-option .vxe-custom--fixed-right-option.is--checked,.vxe-custom--fixed-option .vxe-custom--fixed-right-option:hover{color:#409eff}.vxe-custom--fixed-option .vxe-custom--fixed-left-option.is--disabled,.vxe-custom--fixed-option .vxe-custom--fixed-right-option.is--disabled{cursor:no-drop;color:#dcdfe6}.vxe-toolbar{font-size:14px}.vxe-toolbar.size--medium{font-size:14px}.vxe-toolbar.size--small{font-size:13px}.vxe-toolbar.size--mini{font-size:12px}
|
|
1
|
+
.vxe-custom--checkbox-option .vxe-checkbox--icon{font-size:1.34em}.vxe-custom--checkbox-option .vxe-checkbox--icon{color:#dcdfe6;vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.is--checked.vxe-custom--checkbox-option,.is--indeterminate.vxe-custom--checkbox-option{color:#409eff}.is--checked.vxe-custom--checkbox-option .vxe-checkbox--icon,.is--indeterminate.vxe-custom--checkbox-option .vxe-checkbox--icon{color:#409eff}.vxe-custom--checkbox-option:not(.is--disabled){cursor:pointer}.vxe-custom--checkbox-option:not(.is--disabled):hover .vxe-checkbox--icon{color:#409eff}.is--disabled.vxe-custom--checkbox-option{color:#bfbfbf;cursor:not-allowed}.is--disabled.vxe-custom--checkbox-option .vxe-checkbox--icon{color:#dcdfe6}.vxe-custom--checkbox-option .vxe-checkbox--label{padding-left:.5em;vertical-align:middle}.vxe-toolbar{position:relative;display:flex;flex-direction:row;align-items:center;padding:.6em 0;color:#606266;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;background-color:#fff}.vxe-toolbar:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-toolbar.is--perfect{border:1px solid #e8eaec;border-bottom-width:0;background-color:#f8f8f9}.vxe-toolbar.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:rgba(255,255,255,.5)}.vxe-toolbar .vxe-buttons--wrapper{flex-grow:1}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button+.vxe-button--item,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button--item{margin-left:.8em}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button+.vxe-tool--item,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-button,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-tool--item{margin-left:.8em}.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button{display:flex;align-items:center;justify-content:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--operate,.vxe-toolbar .vxe-tools--wrapper{display:flex;align-items:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--wrapper{flex-wrap:wrap}.vxe-toolbar .vxe-tools--operate{flex-shrink:0}.vxe-toolbar .vxe-custom--wrapper{position:relative;margin-left:.8em}.vxe-toolbar .vxe-custom--wrapper.is--active>.vxe-button{background-color:#d9dadb;border-radius:50%}.vxe-toolbar .vxe-custom--wrapper.is--active .vxe-custom--option-wrapper{display:block}.vxe-toolbar .vxe-custom--option-wrapper{display:none;position:absolute;right:2px;text-align:left;background-color:#fff;z-index:19;border:1px solid #e8eaec;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header{padding:.28em 0;font-weight:700;border-bottom:1px solid #dadce0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body{padding:.2em 0;max-height:17.6em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body .vxe-custom--option:hover{background-color:#f5f7fa}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li{max-width:18em;min-width:14em;padding:.2em 1em .2em 1em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2{padding-left:3.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2 .vxe-checkbox--icon{left:1.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3{padding-left:4.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3 .vxe-checkbox--icon{left:2.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4{padding-left:5.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4 .vxe-checkbox--icon{left:3.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5{padding-left:6.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5 .vxe-checkbox--icon{left:4.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6{padding-left:7.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6 .vxe-checkbox--icon{left:5.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7{padding-left:8.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7 .vxe-checkbox--icon{left:6.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8{padding-left:9.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8 .vxe-checkbox--icon{left:7.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer{border-top:1px solid #dadce0;text-align:right}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button{background-color:transparent;width:50%;height:2.5em;border:0;color:#606266;text-align:center;cursor:pointer}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:focus{outline:0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:hover{color:#409eff}.vxe-custom--option{display:flex;flex-direction:row}.vxe-custom--option-wrapper .vxe-custom--body,.vxe-custom--option-wrapper .vxe-custom--header{list-style-type:none;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-custom--checkbox-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}.vxe-custom--fixed-option{flex-shrink:0;padding-left:.5em;display:flex;flex-direction:row;align-items:center}.vxe-custom--fixed-option .vxe-custom--fixed-left-option,.vxe-custom--fixed-option .vxe-custom--fixed-right-option{line-height:1.34em;font-size:1.1em;padding:0 .2em;cursor:pointer}.vxe-custom--fixed-option .vxe-custom--fixed-left-option.is--checked,.vxe-custom--fixed-option .vxe-custom--fixed-left-option:hover,.vxe-custom--fixed-option .vxe-custom--fixed-right-option.is--checked,.vxe-custom--fixed-option .vxe-custom--fixed-right-option:hover{color:#409eff}.vxe-custom--fixed-option .vxe-custom--fixed-left-option.is--disabled,.vxe-custom--fixed-option .vxe-custom--fixed-right-option.is--disabled{cursor:no-drop;color:#dcdfe6}.vxe-toolbar{font-size:14px}.vxe-toolbar.size--medium{font-size:14px}.vxe-toolbar.size--small{font-size:13px}.vxe-toolbar.size--mini{font-size:12px}
|
package/lib/tools/dom.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = exports.browse = exports.DomTools = void 0;
|
|
7
7
|
exports.getOffsetHeight = getOffsetHeight;
|
|
8
8
|
exports.getPaddingTopBottomSize = getPaddingTopBottomSize;
|
|
9
9
|
exports.setScrollLeft = setScrollLeft;
|
|
10
10
|
exports.setScrollTop = setScrollTop;
|
|
11
11
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
13
|
-
var browse = _xeUtils
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
var browse = _xeUtils.default.browse();
|
|
14
14
|
exports.browse = browse;
|
|
15
15
|
var reClsMap = {};
|
|
16
16
|
function getClsRE(cls) {
|
|
@@ -61,8 +61,8 @@ function getOffsetHeight(elem) {
|
|
|
61
61
|
function getPaddingTopBottomSize(elem) {
|
|
62
62
|
if (elem) {
|
|
63
63
|
var computedStyle = getComputedStyle(elem);
|
|
64
|
-
var paddingTop = _xeUtils
|
|
65
|
-
var paddingBottom = _xeUtils
|
|
64
|
+
var paddingTop = _xeUtils.default.toNumber(computedStyle.paddingTop);
|
|
65
|
+
var paddingBottom = _xeUtils.default.toNumber(computedStyle.paddingBottom);
|
|
66
66
|
return paddingTop + paddingBottom;
|
|
67
67
|
}
|
|
68
68
|
return 0;
|
|
@@ -183,9 +183,9 @@ var DomTools = {
|
|
|
183
183
|
} else {
|
|
184
184
|
var excludeHeight = $xetable.getExcludeHeight();
|
|
185
185
|
if (isScale(val)) {
|
|
186
|
-
num = Math.floor((_xeUtils
|
|
186
|
+
num = Math.floor((_xeUtils.default.toInteger(val) || 1) / 100 * $xetable.parentHeight);
|
|
187
187
|
} else {
|
|
188
|
-
num = _xeUtils
|
|
188
|
+
num = _xeUtils.default.toNumber(val);
|
|
189
189
|
}
|
|
190
190
|
num = Math.max(40, num - excludeHeight);
|
|
191
191
|
}
|
|
@@ -196,4 +196,4 @@ var DomTools = {
|
|
|
196
196
|
};
|
|
197
197
|
exports.DomTools = DomTools;
|
|
198
198
|
var _default = DomTools;
|
|
199
|
-
exports
|
|
199
|
+
exports.default = _default;
|
package/lib/tools/event.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.hasEventKey = exports.GlobalEvent = exports.EVENT_KEYS = void 0;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _dom = require("./dom");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
var EVENT_KEYS = {
|
|
11
11
|
F2: 'F2',
|
|
12
12
|
ESCAPE: 'Escape',
|
|
@@ -54,7 +54,7 @@ var GlobalEvent = {
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
off: function off(comp, type) {
|
|
57
|
-
_xeUtils
|
|
57
|
+
_xeUtils.default.remove(eventStore, function (item) {
|
|
58
58
|
return item.comp === comp && item.type === type;
|
|
59
59
|
});
|
|
60
60
|
},
|
|
@@ -92,7 +92,7 @@ if (_dom.browse.isDoc) {
|
|
|
92
92
|
window.addEventListener('mousedown', GlobalEvent.trigger, false);
|
|
93
93
|
window.addEventListener('blur', GlobalEvent.trigger, false);
|
|
94
94
|
window.addEventListener('resize', GlobalEvent.trigger, false);
|
|
95
|
-
window.addEventListener(wheelName, _xeUtils
|
|
95
|
+
window.addEventListener(wheelName, _xeUtils.default.throttle(GlobalEvent.trigger, 100, {
|
|
96
96
|
leading: true,
|
|
97
97
|
trailing: false
|
|
98
98
|
}), false);
|
package/lib/tools/log.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.errLog = void 0;
|
|
|
7
7
|
exports.getLog = getLog;
|
|
8
8
|
exports.warnLog = void 0;
|
|
9
9
|
var _conf = _interopRequireDefault(require("../v-x-e-table/src/conf"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function getLog(message, params) {
|
|
12
|
-
return "[vxe-table v".concat("3.7.
|
|
12
|
+
return "[vxe-table v".concat("3.7.3", "] ", _conf.default.i18n(message, params));
|
|
13
13
|
}
|
|
14
14
|
function outLog(type) {
|
|
15
15
|
return function (message, params) {
|
package/lib/tools/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errLog=void 0,exports.getLog=getLog,exports.warnLog=void 0;var _conf=_interopRequireDefault(require("../v-x-e-table/src/conf"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getLog(e,o){return"[vxe-table v".concat("3.7.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errLog=void 0,exports.getLog=getLog,exports.warnLog=void 0;var _conf=_interopRequireDefault(require("../v-x-e-table/src/conf"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getLog(e,o){return"[vxe-table v".concat("3.7.3","] ",_conf.default.i18n(e,o))}function outLog(r){return function(e,o){e=getLog(e,o);return console[r](e),e}}var warnLog=outLog("warn"),errLog=(exports.warnLog=warnLog,outLog("error"));exports.errLog=errLog;
|
package/lib/tools/resize.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createResizeEvent = createResizeEvent;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _conf = _interopRequireDefault(require("../v-x-e-table/src/conf"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
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); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -41,7 +41,7 @@ function eventHandle() {
|
|
|
41
41
|
}
|
|
42
42
|
function eventListener() {
|
|
43
43
|
clearTimeout(resizeTimeout);
|
|
44
|
-
resizeTimeout = setTimeout(eventHandle, _conf
|
|
44
|
+
resizeTimeout = setTimeout(eventHandle, _conf.default.resizeInterval || defaultInterval);
|
|
45
45
|
}
|
|
46
46
|
var ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
47
47
|
function ResizeObserverPolyfill(callback) {
|
|
@@ -76,7 +76,7 @@ var ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
|
76
76
|
}, {
|
|
77
77
|
key: "unobserve",
|
|
78
78
|
value: function unobserve(target) {
|
|
79
|
-
_xeUtils
|
|
79
|
+
_xeUtils.default.remove(eventStore, function (item) {
|
|
80
80
|
return item.tarList.some(function (observer) {
|
|
81
81
|
return observer.target === target;
|
|
82
82
|
});
|
|
@@ -86,7 +86,7 @@ var ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
|
86
86
|
key: "disconnect",
|
|
87
87
|
value: function disconnect() {
|
|
88
88
|
var _this2 = this;
|
|
89
|
-
_xeUtils
|
|
89
|
+
_xeUtils.default.remove(eventStore, function (item) {
|
|
90
90
|
return item === _this2;
|
|
91
91
|
});
|
|
92
92
|
}
|