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.
Files changed (155) hide show
  1. package/lib/button/style/style.css +2 -0
  2. package/lib/button/style/style.min.css +1 -1
  3. package/lib/button-group/style/style.css +1 -0
  4. package/lib/checkbox/style/style.css +1 -0
  5. package/lib/checkbox-group/style/style.css +1 -0
  6. package/lib/colgroup/style/style.css +1 -0
  7. package/lib/column/style/style.css +1 -0
  8. package/lib/custom/style/style.css +3 -0
  9. package/lib/custom/style/style.min.css +1 -1
  10. package/lib/edit/style/style.css +1 -0
  11. package/lib/export/style/style.css +1 -0
  12. package/lib/filter/style/style.css +1 -0
  13. package/lib/form/style/style.css +1 -0
  14. package/lib/form-gather/style/style.css +1 -0
  15. package/lib/form-item/style/style.css +1 -0
  16. package/lib/grid/style/style.css +2 -0
  17. package/lib/grid/style/style.min.css +1 -1
  18. package/lib/icon/style/style.css +4 -2
  19. package/lib/icon/style/style.min.css +4 -2
  20. package/lib/index.css +1 -1
  21. package/lib/index.umd.js +36 -30
  22. package/lib/index.umd.min.js +1 -1
  23. package/lib/input/style/style.css +4 -3
  24. package/lib/input/style/style.min.css +1 -1
  25. package/lib/keyboard/style/style.css +1 -0
  26. package/lib/list/style/style.css +1 -0
  27. package/lib/loading/style/style.css +1 -0
  28. package/lib/locale/lang/en-US.js +1 -0
  29. package/lib/locale/lang/en-US.min.js +1 -1
  30. package/lib/locale/lang/en-US.umd.js +1 -0
  31. package/lib/locale/lang/es-ES.js +1 -0
  32. package/lib/locale/lang/es-ES.min.js +1 -1
  33. package/lib/locale/lang/es-ES.umd.js +1 -0
  34. package/lib/locale/lang/ja-JP.js +1 -0
  35. package/lib/locale/lang/ja-JP.min.js +1 -1
  36. package/lib/locale/lang/ja-JP.umd.js +1 -0
  37. package/lib/locale/lang/pt-BR.js +1 -0
  38. package/lib/locale/lang/pt-BR.min.js +1 -1
  39. package/lib/locale/lang/pt-BR.umd.js +1 -0
  40. package/lib/locale/lang/zh-CN.js +1 -0
  41. package/lib/locale/lang/zh-CN.min.js +1 -1
  42. package/lib/locale/lang/zh-CN.umd.js +1 -0
  43. package/lib/locale/lang/zh-HK.min.js +1 -1
  44. package/lib/locale/lang/zh-HK.umd.js +1 -0
  45. package/lib/locale/lang/zh-MO.min.js +1 -1
  46. package/lib/locale/lang/zh-MO.umd.js +1 -0
  47. package/lib/locale/lang/zh-TC.js +1 -0
  48. package/lib/locale/lang/zh-TC.min.js +1 -1
  49. package/lib/locale/lang/zh-TC.umd.js +1 -0
  50. package/lib/locale/lang/zh-TW.min.js +1 -1
  51. package/lib/locale/lang/zh-TW.umd.js +1 -0
  52. package/lib/menu/style/style.css +1 -0
  53. package/lib/modal/style/style.css +4 -0
  54. package/lib/modal/style/style.min.css +1 -1
  55. package/lib/optgroup/style/style.css +1 -0
  56. package/lib/option/style/style.css +1 -0
  57. package/lib/pager/src/pager.js +29 -25
  58. package/lib/pager/src/pager.min.js +1 -1
  59. package/lib/pager/style/style.css +2 -19
  60. package/lib/pager/style/style.min.css +1 -1
  61. package/lib/pulldown/style/style.css +3 -1
  62. package/lib/pulldown/style/style.min.css +1 -1
  63. package/lib/radio/style/style.css +1 -0
  64. package/lib/radio-button/style/style.css +1 -0
  65. package/lib/radio-group/style/style.css +1 -0
  66. package/lib/select/style/style.css +2 -0
  67. package/lib/select/style/style.min.css +1 -1
  68. package/lib/style.css +1 -1
  69. package/lib/style.min.css +1 -1
  70. package/lib/switch/style/style.css +1 -0
  71. package/lib/table/src/header.js +4 -3
  72. package/lib/table/src/header.min.js +1 -1
  73. package/lib/table/style/style.css +17 -10
  74. package/lib/table/style/style.min.css +1 -1
  75. package/lib/textarea/style/style.css +1 -0
  76. package/lib/toolbar/style/style.css +1 -0
  77. package/lib/tools/log.js +1 -1
  78. package/lib/tools/log.min.js +1 -1
  79. package/lib/tooltip/style/style.css +1 -0
  80. package/lib/v-x-e-table/index.js +1 -1
  81. package/lib/v-x-e-table/index.min.js +1 -1
  82. package/lib/v-x-e-table/style/style.css +3 -1
  83. package/lib/v-x-e-table/style/style.min.css +1 -1
  84. package/lib/validator/style/style.css +1 -0
  85. package/lib/vxe-button/style/style.css +2 -0
  86. package/lib/vxe-button/style/style.min.css +1 -1
  87. package/lib/vxe-button-group/style/style.css +1 -0
  88. package/lib/vxe-checkbox/style/style.css +1 -0
  89. package/lib/vxe-checkbox-group/style/style.css +1 -0
  90. package/lib/vxe-colgroup/style/style.css +1 -0
  91. package/lib/vxe-column/style/style.css +1 -0
  92. package/lib/vxe-form/style/style.css +1 -0
  93. package/lib/vxe-form-gather/style/style.css +1 -0
  94. package/lib/vxe-form-item/style/style.css +1 -0
  95. package/lib/vxe-grid/style/style.css +2 -0
  96. package/lib/vxe-grid/style/style.min.css +1 -1
  97. package/lib/vxe-icon/style/style.css +3 -1
  98. package/lib/vxe-icon/style/style.min.css +1 -1
  99. package/lib/vxe-input/style/style.css +4 -3
  100. package/lib/vxe-input/style/style.min.css +1 -1
  101. package/lib/vxe-list/style/style.css +1 -0
  102. package/lib/vxe-loading/style/style.css +1 -0
  103. package/lib/vxe-modal/style/style.css +4 -0
  104. package/lib/vxe-modal/style/style.min.css +1 -1
  105. package/lib/vxe-optgroup/style/style.css +1 -0
  106. package/lib/vxe-option/style/style.css +1 -0
  107. package/lib/vxe-pager/style/style.css +2 -19
  108. package/lib/vxe-pager/style/style.min.css +1 -1
  109. package/lib/vxe-pulldown/style/style.css +3 -1
  110. package/lib/vxe-pulldown/style/style.min.css +1 -1
  111. package/lib/vxe-radio/style/style.css +1 -0
  112. package/lib/vxe-radio-button/style/style.css +1 -0
  113. package/lib/vxe-radio-group/style/style.css +1 -0
  114. package/lib/vxe-select/style/style.css +2 -0
  115. package/lib/vxe-select/style/style.min.css +1 -1
  116. package/lib/vxe-switch/style/style.css +1 -0
  117. package/lib/vxe-table/style/style.css +17 -10
  118. package/lib/vxe-table/style/style.min.css +1 -1
  119. package/lib/vxe-table-custom-module/style/style.css +3 -0
  120. package/lib/vxe-table-custom-module/style/style.min.css +1 -1
  121. package/lib/vxe-table-edit-module/style/style.css +1 -0
  122. package/lib/vxe-table-export-module/style/style.css +1 -0
  123. package/lib/vxe-table-filter-module/style/style.css +1 -0
  124. package/lib/vxe-table-keyboard-module/style/style.css +1 -0
  125. package/lib/vxe-table-menu-module/style/style.css +1 -0
  126. package/lib/vxe-table-validator-module/style/style.css +1 -0
  127. package/lib/vxe-textarea/style/style.css +1 -0
  128. package/lib/vxe-toolbar/style/style.css +1 -0
  129. package/lib/vxe-tooltip/style/style.css +1 -0
  130. package/package.json +1 -1
  131. package/packages/locale/lang/en-US.js +1 -0
  132. package/packages/locale/lang/es-ES.js +1 -0
  133. package/packages/locale/lang/ja-JP.js +1 -0
  134. package/packages/locale/lang/pt-BR.js +1 -0
  135. package/packages/locale/lang/zh-CN.js +1 -0
  136. package/packages/locale/lang/zh-TC.js +1 -0
  137. package/packages/pager/src/pager.js +24 -21
  138. package/packages/table/src/header.js +4 -3
  139. package/styles/button.scss +1 -0
  140. package/styles/custom.scss +2 -0
  141. package/styles/grid.scss +1 -0
  142. package/styles/input.scss +3 -3
  143. package/styles/modal.scss +3 -0
  144. package/styles/old-icon.scss +1 -1
  145. package/styles/pager.scss +1 -19
  146. package/styles/pulldown.scss +2 -1
  147. package/styles/select.scss +1 -0
  148. package/styles/table.scss +14 -8
  149. package/styles/variable.scss +4 -0
  150. /package/lib/icon/style/{iconfont.1724212116436.ttf → iconfont.1724292682903.ttf} +0 -0
  151. /package/lib/icon/style/{iconfont.1724212116436.woff → iconfont.1724292682903.woff} +0 -0
  152. /package/lib/icon/style/{iconfont.1724212116436.woff2 → iconfont.1724292682903.woff2} +0 -0
  153. /package/lib/{iconfont.1724212116436.ttf → iconfont.1724292682903.ttf} +0 -0
  154. /package/lib/{iconfont.1724212116436.woff → iconfont.1724292682903.woff} +0 -0
  155. /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.21", "] ").concat(conf.i18n(message, params));
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.21";
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', column.id, (_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
+ 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: column.id,
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 ? column.id : $columnIndex
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
- domProps: {
38321
- value: this.inpCurrPage
38322
- },
38323
- attrs: {
38324
- type: 'text',
38325
- autocomplete: 'off'
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
- input: this.jumpInputEvent,
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 _this3 = this;
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 _this3.jumpPage(1);
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 _this3.jumpPage(number);
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 _this3.jumpPage(pageCount);
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
- jumpInputEvent: function jumpInputEvent(evnt) {
38478
- this.inpCurrPage = evnt.target.value;
38479
- },
38480
- jumpKeydownEvent: function jumpKeydownEvent(evnt) {
38481
- if (evnt.keyCode === 13) {
38482
- this.triggerJumpEvent(evnt);
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 (evnt.keyCode === 40) {
38487
- evnt.preventDefault();
38490
+ } else if ($event.keyCode === 40) {
38491
+ $event.preventDefault();
38488
38492
  this.prevPage();
38489
38493
  }
38490
38494
  },
38491
- triggerJumpEvent: function triggerJumpEvent(evnt) {
38492
- var value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(evnt.target.value);
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
- evnt.target.value = currPage;
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: '页',