vxe-table 3.8.21 → 3.8.22
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/button/style/style.css +2 -0
- package/lib/button/style/style.min.css +1 -1
- package/lib/button-group/style/style.css +1 -0
- package/lib/checkbox/style/style.css +1 -0
- package/lib/checkbox-group/style/style.css +1 -0
- package/lib/colgroup/style/style.css +1 -0
- package/lib/column/style/style.css +1 -0
- package/lib/custom/style/style.css +3 -0
- package/lib/custom/style/style.min.css +1 -1
- package/lib/edit/style/style.css +1 -0
- package/lib/export/style/style.css +1 -0
- package/lib/filter/style/style.css +1 -0
- package/lib/form/style/style.css +1 -0
- package/lib/form-gather/style/style.css +1 -0
- package/lib/form-item/style/style.css +1 -0
- package/lib/grid/style/style.css +2 -0
- package/lib/grid/style/style.min.css +1 -1
- package/lib/icon/style/style.css +4 -2
- package/lib/icon/style/style.min.css +4 -2
- package/lib/index.css +1 -1
- package/lib/index.umd.js +36 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/input/style/style.css +4 -3
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/style/style.css +1 -0
- package/lib/list/style/style.css +1 -0
- package/lib/loading/style/style.css +1 -0
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +1 -0
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +1 -0
- package/lib/locale/lang/zh-TC.js +1 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -0
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +1 -0
- package/lib/menu/style/style.css +1 -0
- package/lib/modal/style/style.css +4 -0
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/style/style.css +1 -0
- package/lib/option/style/style.css +1 -0
- package/lib/pager/src/pager.js +29 -25
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +2 -19
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/style/style.css +3 -1
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/style/style.css +1 -0
- package/lib/radio-button/style/style.css +1 -0
- package/lib/radio-group/style/style.css +1 -0
- package/lib/select/style/style.css +2 -0
- 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/style/style.css +1 -0
- package/lib/table/src/header.js +4 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/style/style.css +17 -10
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/style/style.css +1 -0
- package/lib/toolbar/style/style.css +1 -0
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tooltip/style/style.css +1 -0
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +3 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/style/style.css +1 -0
- package/lib/vxe-button/style/style.css +2 -0
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-button-group/style/style.css +1 -0
- package/lib/vxe-checkbox/style/style.css +1 -0
- package/lib/vxe-checkbox-group/style/style.css +1 -0
- package/lib/vxe-colgroup/style/style.css +1 -0
- package/lib/vxe-column/style/style.css +1 -0
- package/lib/vxe-form/style/style.css +1 -0
- package/lib/vxe-form-gather/style/style.css +1 -0
- package/lib/vxe-form-item/style/style.css +1 -0
- package/lib/vxe-grid/style/style.css +2 -0
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +3 -1
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-input/style/style.css +4 -3
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-list/style/style.css +1 -0
- package/lib/vxe-loading/style/style.css +1 -0
- package/lib/vxe-modal/style/style.css +4 -0
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-optgroup/style/style.css +1 -0
- package/lib/vxe-option/style/style.css +1 -0
- package/lib/vxe-pager/style/style.css +2 -19
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-pulldown/style/style.css +3 -1
- package/lib/vxe-pulldown/style/style.min.css +1 -1
- package/lib/vxe-radio/style/style.css +1 -0
- package/lib/vxe-radio-button/style/style.css +1 -0
- package/lib/vxe-radio-group/style/style.css +1 -0
- package/lib/vxe-select/style/style.css +2 -0
- package/lib/vxe-select/style/style.min.css +1 -1
- package/lib/vxe-switch/style/style.css +1 -0
- package/lib/vxe-table/style/style.css +17 -10
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-table-custom-module/style/style.css +3 -0
- package/lib/vxe-table-custom-module/style/style.min.css +1 -1
- package/lib/vxe-table-edit-module/style/style.css +1 -0
- package/lib/vxe-table-export-module/style/style.css +1 -0
- package/lib/vxe-table-filter-module/style/style.css +1 -0
- package/lib/vxe-table-keyboard-module/style/style.css +1 -0
- package/lib/vxe-table-menu-module/style/style.css +1 -0
- package/lib/vxe-table-validator-module/style/style.css +1 -0
- package/lib/vxe-textarea/style/style.css +1 -0
- package/lib/vxe-toolbar/style/style.css +1 -0
- package/lib/vxe-tooltip/style/style.css +1 -0
- package/package.json +1 -1
- package/packages/locale/lang/en-US.js +1 -0
- package/packages/locale/lang/es-ES.js +1 -0
- package/packages/locale/lang/ja-JP.js +1 -0
- package/packages/locale/lang/pt-BR.js +1 -0
- package/packages/locale/lang/zh-CN.js +1 -0
- package/packages/locale/lang/zh-TC.js +1 -0
- package/packages/pager/src/pager.js +24 -21
- package/packages/table/src/header.js +4 -3
- package/styles/button.scss +1 -0
- package/styles/custom.scss +2 -0
- package/styles/grid.scss +1 -0
- package/styles/input.scss +3 -3
- package/styles/modal.scss +3 -0
- package/styles/old-icon.scss +1 -1
- package/styles/pager.scss +1 -19
- package/styles/pulldown.scss +2 -1
- package/styles/select.scss +1 -0
- package/styles/table.scss +14 -8
- package/styles/variable.scss +4 -0
- /package/lib/icon/style/{iconfont.1724212116436.ttf → iconfont.1724292682903.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1724212116436.woff → iconfont.1724292682903.woff} +0 -0
- /package/lib/icon/style/{iconfont.1724212116436.woff2 → iconfont.1724292682903.woff2} +0 -0
- /package/lib/{iconfont.1724212116436.ttf → iconfont.1724292682903.ttf} +0 -0
- /package/lib/{iconfont.1724212116436.woff → iconfont.1724292682903.woff} +0 -0
- /package/lib/{iconfont.1724212116436.woff2 → iconfont.1724292682903.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11521,7 +11521,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
11521
11521
|
|
|
11522
11522
|
|
|
11523
11523
|
function getLog(message, params) {
|
|
11524
|
-
return "[vxe-table v".concat("3.8.
|
|
11524
|
+
return "[vxe-table v".concat("3.8.22", "] ").concat(conf.i18n(message, params));
|
|
11525
11525
|
}
|
|
11526
11526
|
function outLog(type) {
|
|
11527
11527
|
return function (message, params) {
|
|
@@ -13225,7 +13225,7 @@ function component(comp) {
|
|
|
13225
13225
|
components[comp.name] = comp;
|
|
13226
13226
|
}
|
|
13227
13227
|
}
|
|
13228
|
-
var version = "3.8.
|
|
13228
|
+
var version = "3.8.22";
|
|
13229
13229
|
var tableVersion = version;
|
|
13230
13230
|
var VxeUI = {
|
|
13231
13231
|
v: v,
|
|
@@ -15062,6 +15062,7 @@ var cellType = 'header';
|
|
|
15062
15062
|
align = column.align,
|
|
15063
15063
|
headerClassName = column.headerClassName;
|
|
15064
15064
|
// const { enabled } = tooltipOpts
|
|
15065
|
+
var colid = column.id;
|
|
15065
15066
|
var isColGroup = column.children && column.children.length;
|
|
15066
15067
|
var fixedHiddenColumn = fixedType ? column.fixed !== fixedType && !isColGroup : column.fixed && overflowX;
|
|
15067
15068
|
var headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showHeaderOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
@@ -15110,15 +15111,15 @@ var cellType = 'header';
|
|
|
15110
15111
|
};
|
|
15111
15112
|
}
|
|
15112
15113
|
return h('th', {
|
|
15113
|
-
class: ['vxe-header--column',
|
|
15114
|
+
class: ['vxe-header--column', colid, (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "col--".concat(headAlign), headAlign), "col--".concat(type), type), 'col--last', $columnIndex === cols.length - 1), 'col--fixed', column.fixed), 'col--group', isColGroup), 'col--ellipsis', hasEllipsis), 'fixed--hidden', fixedHiddenColumn), 'is--sortable', column.sortable), 'col--filter', !!column.filters), 'is--filter-active', hasFilter), _defineProperty(_ref, 'col--current', currentColumn === column)), utils.getClass(headerClassName, params), utils.getClass(headerCellClassName, params)],
|
|
15114
15115
|
attrs: {
|
|
15115
|
-
colid:
|
|
15116
|
+
colid: colid,
|
|
15116
15117
|
colspan: column.colSpan > 1 ? column.colSpan : null,
|
|
15117
15118
|
rowspan: column.rowSpan > 1 ? column.rowSpan : null
|
|
15118
15119
|
},
|
|
15119
15120
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle : null,
|
|
15120
15121
|
on: thOns,
|
|
15121
|
-
key: columnKey || columnOpts.useKey || isColGroup ?
|
|
15122
|
+
key: columnKey || columnOpts.useKey || isColGroup ? colid : $columnIndex
|
|
15122
15123
|
}, [h('div', {
|
|
15123
15124
|
class: ['vxe-cell', {
|
|
15124
15125
|
'c--title': showTitle,
|
|
@@ -38311,21 +38312,26 @@ var Toolbar = VxeToolbar;
|
|
|
38311
38312
|
},
|
|
38312
38313
|
// Jump
|
|
38313
38314
|
renderJump: function renderJump(h, isFull) {
|
|
38315
|
+
var _this3 = this;
|
|
38314
38316
|
return h('span', {
|
|
38315
38317
|
class: 'vxe-pager--jump'
|
|
38316
38318
|
}, [isFull ? h('span', {
|
|
38317
38319
|
class: 'vxe-pager--goto-text'
|
|
38318
|
-
}, conf.i18n('vxe.pager.goto')) : null, h('input', {
|
|
38320
|
+
}, conf.i18n('vxe.pager.goto')) : null, h('vxe-input', {
|
|
38319
38321
|
class: 'vxe-pager--goto',
|
|
38320
|
-
|
|
38321
|
-
value: this.inpCurrPage
|
|
38322
|
-
|
|
38323
|
-
|
|
38324
|
-
type: '
|
|
38325
|
-
|
|
38322
|
+
props: {
|
|
38323
|
+
value: this.inpCurrPage,
|
|
38324
|
+
placeholder: conf.i18n('vxe.pager.gotoTitle'),
|
|
38325
|
+
align: 'center',
|
|
38326
|
+
type: 'integer',
|
|
38327
|
+
max: this.pageCount,
|
|
38328
|
+
min: 1,
|
|
38329
|
+
controls: false
|
|
38326
38330
|
},
|
|
38327
38331
|
on: {
|
|
38328
|
-
|
|
38332
|
+
modelValue: function modelValue(val) {
|
|
38333
|
+
_this3.inpCurrPage = val;
|
|
38334
|
+
},
|
|
38329
38335
|
keydown: this.jumpKeydownEvent,
|
|
38330
38336
|
blur: this.triggerJumpEvent
|
|
38331
38337
|
}
|
|
@@ -38349,7 +38355,7 @@ var Toolbar = VxeToolbar;
|
|
|
38349
38355
|
},
|
|
38350
38356
|
// number
|
|
38351
38357
|
renderPageBtn: function renderPageBtn(h, showJump) {
|
|
38352
|
-
var
|
|
38358
|
+
var _this4 = this;
|
|
38353
38359
|
var numList = this.numList,
|
|
38354
38360
|
currentPage = this.currentPage,
|
|
38355
38361
|
pageCount = this.pageCount,
|
|
@@ -38375,7 +38381,7 @@ var Toolbar = VxeToolbar;
|
|
|
38375
38381
|
},
|
|
38376
38382
|
on: {
|
|
38377
38383
|
click: function click() {
|
|
38378
|
-
return
|
|
38384
|
+
return _this4.jumpPage(1);
|
|
38379
38385
|
}
|
|
38380
38386
|
}
|
|
38381
38387
|
}, 1), this.renderPrevJump(h, 'span'));
|
|
@@ -38392,7 +38398,7 @@ var Toolbar = VxeToolbar;
|
|
|
38392
38398
|
},
|
|
38393
38399
|
on: {
|
|
38394
38400
|
click: function click() {
|
|
38395
|
-
return
|
|
38401
|
+
return _this4.jumpPage(number);
|
|
38396
38402
|
}
|
|
38397
38403
|
},
|
|
38398
38404
|
key: number
|
|
@@ -38407,7 +38413,7 @@ var Toolbar = VxeToolbar;
|
|
|
38407
38413
|
},
|
|
38408
38414
|
on: {
|
|
38409
38415
|
click: function click() {
|
|
38410
|
-
return
|
|
38416
|
+
return _this4.jumpPage(pageCount);
|
|
38411
38417
|
}
|
|
38412
38418
|
}
|
|
38413
38419
|
}, pageCount));
|
|
@@ -38474,25 +38480,24 @@ var Toolbar = VxeToolbar;
|
|
|
38474
38480
|
currentPage: currentPage
|
|
38475
38481
|
});
|
|
38476
38482
|
},
|
|
38477
|
-
|
|
38478
|
-
|
|
38479
|
-
|
|
38480
|
-
|
|
38481
|
-
if (
|
|
38482
|
-
|
|
38483
|
-
} else if (evnt.keyCode === 38) {
|
|
38484
|
-
evnt.preventDefault();
|
|
38483
|
+
jumpKeydownEvent: function jumpKeydownEvent(params) {
|
|
38484
|
+
var $event = params.$event;
|
|
38485
|
+
if ($event.keyCode === 13) {
|
|
38486
|
+
this.triggerJumpEvent(params);
|
|
38487
|
+
} else if ($event.keyCode === 38) {
|
|
38488
|
+
$event.preventDefault();
|
|
38485
38489
|
this.nextPage();
|
|
38486
|
-
} else if (
|
|
38487
|
-
|
|
38490
|
+
} else if ($event.keyCode === 40) {
|
|
38491
|
+
$event.preventDefault();
|
|
38488
38492
|
this.prevPage();
|
|
38489
38493
|
}
|
|
38490
38494
|
},
|
|
38491
|
-
triggerJumpEvent: function triggerJumpEvent(
|
|
38492
|
-
var
|
|
38495
|
+
triggerJumpEvent: function triggerJumpEvent(params) {
|
|
38496
|
+
var $event = params.$event;
|
|
38497
|
+
var value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger($event.target.value);
|
|
38493
38498
|
var current = value <= 0 ? 1 : value >= this.pageCount ? this.pageCount : value;
|
|
38494
38499
|
var currPage = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(current);
|
|
38495
|
-
|
|
38500
|
+
$event.target.value = currPage;
|
|
38496
38501
|
this.inpCurrPage = currPage;
|
|
38497
38502
|
this.jumpPage(current);
|
|
38498
38503
|
}
|
|
@@ -42816,6 +42821,7 @@ var Pulldown = VxePulldown;
|
|
|
42816
42821
|
},
|
|
42817
42822
|
pager: {
|
|
42818
42823
|
goto: '前往',
|
|
42824
|
+
gotoTitle: '页数',
|
|
42819
42825
|
pagesize: '{0}条/页',
|
|
42820
42826
|
total: '共 {0} 条记录',
|
|
42821
42827
|
pageClassifier: '页',
|