vxe-table 3.7.9 → 3.7.10-beta.1

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 (73) hide show
  1. package/helper/vetur/attributes.json +4 -0
  2. package/helper/vetur/tags.json +1 -0
  3. package/lib/button/src/button.js +2 -4
  4. package/lib/button/src/button.min.js +1 -1
  5. package/lib/form/src/form.js +4 -3
  6. package/lib/form/src/form.min.js +1 -1
  7. package/lib/icon/style/style.css +1 -1
  8. package/lib/icon/style/style.min.css +1 -1
  9. package/lib/index.css +1 -1
  10. package/lib/index.umd.js +42 -24
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/locale/lang/en-US.js +0 -1
  13. package/lib/locale/lang/en-US.min.js +1 -1
  14. package/lib/locale/lang/en-US.umd.js +0 -1
  15. package/lib/locale/lang/ja-JP.js +0 -1
  16. package/lib/locale/lang/ja-JP.min.js +1 -1
  17. package/lib/locale/lang/ja-JP.umd.js +0 -1
  18. package/lib/locale/lang/zh-CN.js +0 -1
  19. package/lib/locale/lang/zh-CN.min.js +1 -1
  20. package/lib/locale/lang/zh-CN.umd.js +0 -1
  21. package/lib/locale/lang/zh-HK.min.js +1 -1
  22. package/lib/locale/lang/zh-HK.umd.js +0 -1
  23. package/lib/locale/lang/zh-MO.min.js +1 -1
  24. package/lib/locale/lang/zh-MO.umd.js +0 -1
  25. package/lib/locale/lang/zh-TC.js +0 -1
  26. package/lib/locale/lang/zh-TC.min.js +1 -1
  27. package/lib/locale/lang/zh-TC.umd.js +0 -1
  28. package/lib/locale/lang/zh-TW.min.js +1 -1
  29. package/lib/locale/lang/zh-TW.umd.js +0 -1
  30. package/lib/style.css +1 -1
  31. package/lib/style.min.css +1 -1
  32. package/lib/table/src/cell.js +19 -3
  33. package/lib/table/src/cell.min.js +1 -1
  34. package/lib/table/src/column.js +3 -1
  35. package/lib/table/src/column.min.js +1 -1
  36. package/lib/table/src/columnInfo.js +1 -0
  37. package/lib/table/src/columnInfo.min.js +1 -1
  38. package/lib/table/src/methods.js +5 -6
  39. package/lib/table/src/methods.min.js +1 -1
  40. package/lib/table/src/table.js +1 -1
  41. package/lib/table/src/table.min.js +1 -1
  42. package/lib/table/src/util.js +3 -2
  43. package/lib/table/src/util.min.js +1 -1
  44. package/lib/table/style/style.css +4 -2
  45. package/lib/table/style/style.min.css +1 -1
  46. package/lib/tools/log.js +1 -1
  47. package/lib/tools/log.min.js +1 -1
  48. package/lib/v-x-e-table/index.js +1 -1
  49. package/lib/v-x-e-table/index.min.js +1 -1
  50. package/lib/v-x-e-table/src/conf.js +2 -1
  51. package/lib/v-x-e-table/src/conf.min.js +1 -1
  52. package/package.json +2 -2
  53. package/packages/button/src/button.js +2 -4
  54. package/packages/form/src/form.js +4 -3
  55. package/packages/locale/lang/en-US.js +0 -1
  56. package/packages/locale/lang/ja-JP.js +0 -1
  57. package/packages/locale/lang/zh-CN.js +0 -1
  58. package/packages/locale/lang/zh-TC.js +0 -1
  59. package/packages/table/src/cell.js +21 -3
  60. package/packages/table/src/column.js +3 -1
  61. package/packages/table/src/columnInfo.js +1 -0
  62. package/packages/table/src/methods.js +5 -6
  63. package/packages/table/src/table.js +1 -1
  64. package/packages/table/src/util.js +3 -2
  65. package/packages/v-x-e-table/src/conf.js +2 -1
  66. package/styles/table.scss +6 -3
  67. package/types/button.d.ts +4 -0
  68. /package/lib/icon/style/{iconfont.1709080259515.ttf → iconfont.1710549343264.ttf} +0 -0
  69. /package/lib/icon/style/{iconfont.1709080259515.woff → iconfont.1710549343264.woff} +0 -0
  70. /package/lib/icon/style/{iconfont.1709080259515.woff2 → iconfont.1710549343264.woff2} +0 -0
  71. /package/lib/{iconfont.1709080259515.ttf → iconfont.1710549343264.ttf} +0 -0
  72. /package/lib/{iconfont.1709080259515.woff → iconfont.1710549343264.woff} +0 -0
  73. /package/lib/{iconfont.1709080259515.woff2 → iconfont.1710549343264.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.1", "] ").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.1",
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
  // 单元格渲染配置项
@@ -36706,6 +36726,7 @@ var Textarea = Object.assign(src_textarea, {
36706
36726
  mixins: [size],
36707
36727
  props: {
36708
36728
  type: String,
36729
+ mode: String,
36709
36730
  size: {
36710
36731
  type: String,
36711
36732
  default: function _default() {
@@ -36742,14 +36763,11 @@ var Textarea = Object.assign(src_textarea, {
36742
36763
  };
36743
36764
  },
36744
36765
  computed: {
36745
- isText: function isText() {
36746
- return this.type === 'text';
36747
- },
36748
36766
  isFormBtn: function isFormBtn() {
36749
36767
  return ['submit', 'reset', 'button'].indexOf(this.type) > -1;
36750
36768
  },
36751
36769
  btnType: function btnType() {
36752
- return this.isText ? this.type : 'button';
36770
+ return this.type === 'text' || this.mode === 'text' ? 'text' : 'button';
36753
36771
  }
36754
36772
  },
36755
36773
  created: function created() {
@@ -38182,6 +38200,7 @@ function getResetValue(value, resetValue) {
38182
38200
  customLayout = this.customLayout;
38183
38201
  var hasUseTooltip = v_x_e_table._tooltip;
38184
38202
  var defaultSlot = this.$scopedSlots.default;
38203
+ var loadingSlot = this.$scopedSlots.loading;
38185
38204
  return h('form', {
38186
38205
  class: ['vxe-form', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
38187
38206
  items: formItems,
@@ -38194,7 +38213,7 @@ function getResetValue(value, resetValue) {
38194
38213
  }
38195
38214
  }, [h('div', {
38196
38215
  class: 'vxe-form--wrapper vxe-row'
38197
- }, customLayout ? defaultSlot ? defaultSlot.call(this, h, {}) : [] : formItems.map(function (item, index) {
38216
+ }, customLayout ? defaultSlot ? this.callSlot(defaultSlot, {}, h) : [] : formItems.map(function (item, index) {
38198
38217
  return h(form_config_item, {
38199
38218
  key: index,
38200
38219
  props: {
@@ -38204,7 +38223,7 @@ function getResetValue(value, resetValue) {
38204
38223
  })), h('div', {
38205
38224
  class: 'vxe-form-slots',
38206
38225
  ref: 'hideItem'
38207
- }, customLayout ? [] : defaultSlot ? defaultSlot.call(this, h, {}) : []),
38226
+ }, customLayout ? [] : defaultSlot ? this.callSlot(defaultSlot, {}, h) : []),
38208
38227
  /**
38209
38228
  * 加载中
38210
38229
  */
@@ -38213,7 +38232,7 @@ function getResetValue(value, resetValue) {
38213
38232
  props: {
38214
38233
  value: loading
38215
38234
  }
38216
- }),
38235
+ }, loadingSlot ? this.callSlot(loadingSlot, {}, h) : []),
38217
38236
  /**
38218
38237
  * 工具提示
38219
38238
  */
@@ -40037,7 +40056,6 @@ var Pulldown = Object.assign(pulldown, {
40037
40056
  confirmFilter: '筛选',
40038
40057
  resetFilter: '重置',
40039
40058
  allFilter: '全部',
40040
- sortSingle: '点击排序',
40041
40059
  sortAsc: '升序:最低到最高',
40042
40060
  sortDesc: '降序:最高到最低',
40043
40061
  filter: '对所选的列启用筛选',