vxe-table 3.7.9 → 3.7.10-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/helper/vetur/attributes.json +4 -0
  2. package/helper/vetur/tags.json +1 -0
  3. package/lib/form/src/form.js +4 -3
  4. package/lib/form/src/form.min.js +1 -1
  5. package/lib/icon/style/style.css +1 -1
  6. package/lib/icon/style/style.min.css +1 -1
  7. package/lib/index.css +1 -1
  8. package/lib/index.umd.js +40 -20
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/locale/lang/en-US.js +0 -1
  11. package/lib/locale/lang/en-US.min.js +1 -1
  12. package/lib/locale/lang/en-US.umd.js +0 -1
  13. package/lib/locale/lang/ja-JP.js +0 -1
  14. package/lib/locale/lang/ja-JP.min.js +1 -1
  15. package/lib/locale/lang/ja-JP.umd.js +0 -1
  16. package/lib/locale/lang/zh-CN.js +0 -1
  17. package/lib/locale/lang/zh-CN.min.js +1 -1
  18. package/lib/locale/lang/zh-CN.umd.js +0 -1
  19. package/lib/locale/lang/zh-HK.min.js +1 -1
  20. package/lib/locale/lang/zh-HK.umd.js +0 -1
  21. package/lib/locale/lang/zh-MO.min.js +1 -1
  22. package/lib/locale/lang/zh-MO.umd.js +0 -1
  23. package/lib/locale/lang/zh-TC.js +0 -1
  24. package/lib/locale/lang/zh-TC.min.js +1 -1
  25. package/lib/locale/lang/zh-TC.umd.js +0 -1
  26. package/lib/locale/lang/zh-TW.min.js +1 -1
  27. package/lib/locale/lang/zh-TW.umd.js +0 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/table/src/cell.js +19 -3
  31. package/lib/table/src/cell.min.js +1 -1
  32. package/lib/table/src/column.js +3 -1
  33. package/lib/table/src/column.min.js +1 -1
  34. package/lib/table/src/columnInfo.js +1 -0
  35. package/lib/table/src/columnInfo.min.js +1 -1
  36. package/lib/table/src/methods.js +5 -6
  37. package/lib/table/src/methods.min.js +1 -1
  38. package/lib/table/src/table.js +1 -1
  39. package/lib/table/src/table.min.js +1 -1
  40. package/lib/table/src/util.js +3 -2
  41. package/lib/table/src/util.min.js +1 -1
  42. package/lib/table/style/style.css +4 -2
  43. package/lib/table/style/style.min.css +1 -1
  44. package/lib/tools/log.js +1 -1
  45. package/lib/tools/log.min.js +1 -1
  46. package/lib/v-x-e-table/index.js +1 -1
  47. package/lib/v-x-e-table/index.min.js +1 -1
  48. package/lib/v-x-e-table/src/conf.js +2 -1
  49. package/lib/v-x-e-table/src/conf.min.js +1 -1
  50. package/package.json +2 -2
  51. package/packages/form/src/form.js +4 -3
  52. package/packages/locale/lang/en-US.js +0 -1
  53. package/packages/locale/lang/ja-JP.js +0 -1
  54. package/packages/locale/lang/zh-CN.js +0 -1
  55. package/packages/locale/lang/zh-TC.js +0 -1
  56. package/packages/table/src/cell.js +21 -3
  57. package/packages/table/src/column.js +3 -1
  58. package/packages/table/src/columnInfo.js +1 -0
  59. package/packages/table/src/methods.js +5 -6
  60. package/packages/table/src/table.js +1 -1
  61. package/packages/table/src/util.js +3 -2
  62. package/packages/v-x-e-table/src/conf.js +2 -1
  63. package/styles/table.scss +6 -3
  64. /package/lib/icon/style/{iconfont.1709080259515.ttf → iconfont.1710117177540.ttf} +0 -0
  65. /package/lib/icon/style/{iconfont.1709080259515.woff → iconfont.1710117177540.woff} +0 -0
  66. /package/lib/icon/style/{iconfont.1709080259515.woff2 → iconfont.1710117177540.woff2} +0 -0
  67. /package/lib/{iconfont.1709080259515.ttf → iconfont.1710117177540.ttf} +0 -0
  68. /package/lib/{iconfont.1709080259515.woff → iconfont.1710117177540.woff} +0 -0
  69. /package/lib/{iconfont.1709080259515.woff2 → iconfont.1710117177540.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -10355,7 +10355,8 @@ var iconPrefix = 'vxe-icon-';
10355
10355
  TABLE_FILTER_NONE: iconPrefix + 'funnel',
10356
10356
  TABLE_FILTER_MATCH: iconPrefix + 'funnel',
10357
10357
  TABLE_EDIT: iconPrefix + 'edit',
10358
- TABLE_HELP: iconPrefix + 'question-circle-fill',
10358
+ TABLE_TITLE_PREFIX: iconPrefix + 'question-circle-fill',
10359
+ TABLE_TITLE_SUFFIX: iconPrefix + 'question-circle-fill',
10359
10360
  TABLE_TREE_LOADED: iconPrefix + 'spinner roll',
10360
10361
  TABLE_TREE_OPEN: iconPrefix + 'caret-right rotate90',
10361
10362
  TABLE_TREE_CLOSE: iconPrefix + 'caret-right',
@@ -10595,7 +10596,7 @@ var es_array_concat = __webpack_require__(2222);
10595
10596
 
10596
10597
 
10597
10598
  function getLog(message, params) {
10598
- return "[vxe-table v".concat("3.7.9", "] ").concat(conf.i18n(message, params));
10599
+ return "[vxe-table v".concat("3.7.10-beta.0", "] ").concat(conf.i18n(message, params));
10599
10600
  }
10600
10601
  function outLog(type) {
10601
10602
  return function (message, params) {
@@ -12027,7 +12028,7 @@ var setup = config;
12027
12028
  var globalStore = {};
12028
12029
  var VXETable = {
12029
12030
  v: v,
12030
- version: "3.7.9",
12031
+ version: "3.7.10-beta.0",
12031
12032
  reg: reg,
12032
12033
  use: use,
12033
12034
  setup: setup,
@@ -12204,6 +12205,7 @@ var ColumnInfo = /*#__PURE__*/function () {
12204
12205
  footerExportMethod: _vm.footerExportMethod,
12205
12206
  titleHelp: _vm.titleHelp,
12206
12207
  titlePrefix: _vm.titlePrefix,
12208
+ titleSuffix: _vm.titleSuffix,
12207
12209
  // 自定义参数
12208
12210
  params: _vm.params,
12209
12211
  // 渲染属性
@@ -12619,10 +12621,11 @@ function getColReMinWidth(params) {
12619
12621
  var checkboxIconWidth = getPaddingLeftRightSize(queryCellElement(cell, '--title>.vxe-cell--checkbox'));
12620
12622
  var requiredIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--required-icon'));
12621
12623
  var editIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--edit-icon'));
12622
- var helpIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell-help-icon'));
12624
+ var prefixIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell-title-prefix-icon'));
12625
+ var suffixIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell-title-suffix-icon'));
12623
12626
  var sortIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--sort'));
12624
12627
  var filterIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--filter'));
12625
- mWidth += checkboxIconWidth + requiredIconWidth + editIconWidth + helpIconWidth + filterIconWidth + sortIconWidth;
12628
+ mWidth += checkboxIconWidth + requiredIconWidth + editIconWidth + prefixIconWidth + suffixIconWidth + filterIconWidth + sortIconWidth;
12626
12629
  }
12627
12630
  // 如果设置最小宽
12628
12631
  if (colMinWidth) {
@@ -14386,10 +14389,26 @@ function renderTitlePrefixIcon(h, params) {
14386
14389
  column = params.column;
14387
14390
  var titlePrefix = column.titlePrefix || column.titleHelp;
14388
14391
  return titlePrefix ? [h('i', {
14389
- class: ['vxe-cell-help-icon', titlePrefix.icon || conf.icon.TABLE_HELP],
14392
+ class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || conf.icon.TABLE_TITLE_PREFIX],
14390
14393
  on: {
14391
14394
  mouseenter: function mouseenter(evnt) {
14392
- $table.triggerHeaderHelpEvent(evnt, params);
14395
+ $table.triggerHeaderTitleEvent(evnt, titlePrefix, params);
14396
+ },
14397
+ mouseleave: function mouseleave(evnt) {
14398
+ $table.handleTargetLeaveEvent(evnt);
14399
+ }
14400
+ }
14401
+ })] : [];
14402
+ }
14403
+ function renderTitleSuffixIcon(h, params) {
14404
+ var $table = params.$table,
14405
+ column = params.column;
14406
+ var titleSuffix = column.titleSuffix;
14407
+ return titleSuffix ? [h('i', {
14408
+ class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || conf.icon.TABLE_TITLE_SUFFIX],
14409
+ on: {
14410
+ mouseenter: function mouseenter(evnt) {
14411
+ $table.triggerHeaderTitleEvent(evnt, titleSuffix, params);
14393
14412
  },
14394
14413
  mouseleave: function mouseleave(evnt) {
14395
14414
  $table.handleTargetLeaveEvent(evnt);
@@ -14547,7 +14566,7 @@ var Cell = {
14547
14566
  return renderTitleContent(h, params, utils.formatText(column.getTitle(), 1));
14548
14567
  },
14549
14568
  renderDefaultHeader: function renderDefaultHeader(h, params) {
14550
- return renderTitlePrefixIcon(h, params).concat(Cell.renderHeaderTitle(h, params));
14569
+ return renderTitlePrefixIcon(h, params).concat(Cell.renderHeaderTitle(h, params)).concat(renderTitleSuffixIcon(h, params));
14551
14570
  },
14552
14571
  renderDefaultCell: function renderDefaultCell(h, params) {
14553
14572
  var $table = params.$table,
@@ -18406,16 +18425,15 @@ var Methods = {
18406
18425
  this.closeTooltip();
18407
18426
  }
18408
18427
  },
18409
- triggerHeaderHelpEvent: function triggerHeaderHelpEvent(evnt, params) {
18410
- var column = params.column;
18411
- var titlePrefix = column.titlePrefix || column.titleHelp;
18412
- if (titlePrefix.content || titlePrefix.message) {
18428
+ triggerHeaderTitleEvent: function triggerHeaderTitleEvent(evnt, iconParams, params) {
18429
+ var tipContent = iconParams.content || iconParams.message;
18430
+ if (tipContent) {
18413
18431
  var $refs = this.$refs,
18414
18432
  tooltipStore = this.tooltipStore;
18415
- var content = getFuncText(titlePrefix.content || titlePrefix.message);
18433
+ var content = getFuncText(tipContent);
18416
18434
  this.handleTargetEnterEvent(true);
18417
18435
  tooltipStore.visible = true;
18418
- tooltipStore.currOpts = _objectSpread2(_objectSpread2({}, titlePrefix), {}, {
18436
+ tooltipStore.currOpts = _objectSpread2(_objectSpread2({}, params), {}, {
18419
18437
  content: null
18420
18438
  });
18421
18439
  this.$nextTick(function () {
@@ -22596,7 +22614,7 @@ function handleUupdateResize(_vm) {
22596
22614
  icon: loadingOpts.icon,
22597
22615
  text: loadingOpts.text
22598
22616
  }
22599
- }, this.callSlot($scopedSlots.loading, {})),
22617
+ }, this.callSlot($scopedSlots.loading, {}, h)),
22600
22618
  /**
22601
22619
  * 筛选
22602
22620
  */
@@ -33421,8 +33439,10 @@ var column_props = {
33421
33439
  footerExportMethod: Function,
33422
33440
  // 已废弃,被 titlePrefix 替换
33423
33441
  titleHelp: Object,
33424
- // 标题帮助图标配置项
33442
+ // 标题前缀图标配置项
33425
33443
  titlePrefix: Object,
33444
+ // 标题后缀图标配置项
33445
+ titleSuffix: Object,
33426
33446
  // 单元格值类型
33427
33447
  cellType: String,
33428
33448
  // 单元格渲染配置项
@@ -38182,6 +38202,7 @@ function getResetValue(value, resetValue) {
38182
38202
  customLayout = this.customLayout;
38183
38203
  var hasUseTooltip = v_x_e_table._tooltip;
38184
38204
  var defaultSlot = this.$scopedSlots.default;
38205
+ var loadingSlot = this.$scopedSlots.loading;
38185
38206
  return h('form', {
38186
38207
  class: ['vxe-form', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
38187
38208
  items: formItems,
@@ -38194,7 +38215,7 @@ function getResetValue(value, resetValue) {
38194
38215
  }
38195
38216
  }, [h('div', {
38196
38217
  class: 'vxe-form--wrapper vxe-row'
38197
- }, customLayout ? defaultSlot ? defaultSlot.call(this, h, {}) : [] : formItems.map(function (item, index) {
38218
+ }, customLayout ? defaultSlot ? this.callSlot(defaultSlot, {}, h) : [] : formItems.map(function (item, index) {
38198
38219
  return h(form_config_item, {
38199
38220
  key: index,
38200
38221
  props: {
@@ -38204,7 +38225,7 @@ function getResetValue(value, resetValue) {
38204
38225
  })), h('div', {
38205
38226
  class: 'vxe-form-slots',
38206
38227
  ref: 'hideItem'
38207
- }, customLayout ? [] : defaultSlot ? defaultSlot.call(this, h, {}) : []),
38228
+ }, customLayout ? [] : defaultSlot ? this.callSlot(defaultSlot, {}, h) : []),
38208
38229
  /**
38209
38230
  * 加载中
38210
38231
  */
@@ -38213,7 +38234,7 @@ function getResetValue(value, resetValue) {
38213
38234
  props: {
38214
38235
  value: loading
38215
38236
  }
38216
- }),
38237
+ }, loadingSlot ? this.callSlot(loadingSlot, {}, h) : []),
38217
38238
  /**
38218
38239
  * 工具提示
38219
38240
  */
@@ -40037,7 +40058,6 @@ var Pulldown = Object.assign(pulldown, {
40037
40058
  confirmFilter: '筛选',
40038
40059
  resetFilter: '重置',
40039
40060
  allFilter: '全部',
40040
- sortSingle: '点击排序',
40041
40061
  sortAsc: '升序:最低到最高',
40042
40062
  sortDesc: '降序:最高到最低',
40043
40063
  filter: '对所选的列启用筛选',