vxe-table 3.11.2 → 3.11.4

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/index.umd.js CHANGED
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
2220
2220
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2221
2221
 
2222
2222
 
2223
- const version = "3.11.2";
2223
+ const version = "3.11.4";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2774,7 +2774,7 @@ function isNodeElement(elem) {
2774
2774
  const {
2775
2775
  log: log_log
2776
2776
  } = core_.VxeUI;
2777
- const log_version = `table v${"3.11.2"}`;
2777
+ const log_version = `table v${"3.11.4"}`;
2778
2778
  const warnLog = log_log.create('warn', log_version);
2779
2779
  const errLog = log_log.create('error', log_version);
2780
2780
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -3497,17 +3497,20 @@ function renderTitlePrefixIcon(h, params) {
3497
3497
  column
3498
3498
  } = params;
3499
3499
  const titlePrefix = column.titlePrefix || column.titleHelp;
3500
- return titlePrefix ? [h('i', {
3501
- class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || cell_getIcon().TABLE_TITLE_PREFIX],
3502
- on: {
3503
- mouseenter(evnt) {
3504
- $table.triggerHeaderTitleEvent(evnt, titlePrefix, params);
3505
- },
3506
- mouseleave(evnt) {
3507
- $table.handleTargetLeaveEvent(evnt);
3500
+ if (titlePrefix) {
3501
+ return h('i', {
3502
+ class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || cell_getIcon().TABLE_TITLE_PREFIX],
3503
+ on: {
3504
+ mouseenter(evnt) {
3505
+ $table.triggerHeaderTitleEvent(evnt, titlePrefix, params);
3506
+ },
3507
+ mouseleave(evnt) {
3508
+ $table.handleTargetLeaveEvent(evnt);
3509
+ }
3508
3510
  }
3509
- }
3510
- })] : [];
3511
+ });
3512
+ }
3513
+ return renderEmptyElement($table);
3511
3514
  }
3512
3515
  function renderTitleSuffixIcon(h, params) {
3513
3516
  const {
@@ -3515,17 +3518,20 @@ function renderTitleSuffixIcon(h, params) {
3515
3518
  column
3516
3519
  } = params;
3517
3520
  const titleSuffix = column.titleSuffix;
3518
- return titleSuffix ? [h('i', {
3519
- class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || cell_getIcon().TABLE_TITLE_SUFFIX],
3520
- on: {
3521
- mouseenter(evnt) {
3522
- $table.triggerHeaderTitleEvent(evnt, titleSuffix, params);
3523
- },
3524
- mouseleave(evnt) {
3525
- $table.handleTargetLeaveEvent(evnt);
3521
+ if (titleSuffix) {
3522
+ return h('i', {
3523
+ class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || cell_getIcon().TABLE_TITLE_SUFFIX],
3524
+ on: {
3525
+ mouseenter(evnt) {
3526
+ $table.triggerHeaderTitleEvent(evnt, titleSuffix, params);
3527
+ },
3528
+ mouseleave(evnt) {
3529
+ $table.handleTargetLeaveEvent(evnt);
3530
+ }
3526
3531
  }
3527
- }
3528
- })] : [];
3532
+ });
3533
+ }
3534
+ return renderEmptyElement($table);
3529
3535
  }
3530
3536
  function renderCellDragIcon(h, params) {
3531
3537
  const {
@@ -4412,7 +4418,7 @@ const Cell = {
4412
4418
  * 排序和筛选
4413
4419
  */
4414
4420
  renderSortAndFilterHeader(h, params) {
4415
- return renderHeaderCellBaseVNs(h, params, Cell.renderHeaderTitle(h, params).concat(Cell.renderSortIcon(h, params)));
4421
+ return renderHeaderCellBaseVNs(h, params, Cell.renderHeaderTitle(h, params).concat(Cell.renderSortIcon(h, params).concat(Cell.renderFilterIcon(h, params))));
4416
4422
  },
4417
4423
  /**
4418
4424
  * 排序