vxe-table 3.12.11 → 3.12.13

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.
@@ -115,7 +115,7 @@ const renderDragTipContents = (h, $xeTable) => {
115
115
  };
116
116
  const renderDragTip = (h, $xeTable) => {
117
117
  const reactData = $xeTable;
118
- const { dragRow } = reactData;
118
+ const { dragRow, dragCol } = reactData;
119
119
  const rowOpts = $xeTable.computeRowOpts;
120
120
  const columnOpts = $xeTable.computeColumnOpts;
121
121
  const rowDragOpts = $xeTable.computeRowDragOpts;
@@ -136,31 +136,33 @@ const renderDragTip = (h, $xeTable) => {
136
136
  'is--guides': columnDragOpts.showGuidesStatus
137
137
  }]
138
138
  }),
139
- h('div', {
140
- ref: 'refDragTipElem',
141
- class: 'vxe-table--drag-sort-tip'
142
- }, [
143
- h('div', {
144
- class: 'vxe-table--drag-sort-tip-wrapper'
139
+ (dragRow && rowDragOpts.showDragTip) || (dragCol && columnDragOpts.showDragTip)
140
+ ? h('div', {
141
+ ref: 'refDragTipElem',
142
+ class: 'vxe-table--drag-sort-tip'
145
143
  }, [
146
144
  h('div', {
147
- class: 'vxe-table--drag-sort-tip-status'
145
+ class: 'vxe-table--drag-sort-tip-wrapper'
148
146
  }, [
149
- h('span', {
150
- class: ['vxe-table--drag-sort-tip-normal-status', dragRow ? getIcon().TABLE_DRAG_STATUS_ROW : getIcon().TABLE_DRAG_STATUS_COLUMN]
151
- }),
152
- h('span', {
153
- class: ['vxe-table--drag-sort-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
154
- }),
155
- h('span', {
156
- class: ['vxe-table--drag-sort-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
157
- })
158
- ]),
159
- h('div', {
160
- class: 'vxe-table--drag-sort-tip-content'
161
- }, renderDragTipContents(h, $xeTable))
147
+ h('div', {
148
+ class: 'vxe-table--drag-sort-tip-status'
149
+ }, [
150
+ h('span', {
151
+ class: ['vxe-table--drag-sort-tip-normal-status', dragRow ? getIcon().TABLE_DRAG_STATUS_ROW : getIcon().TABLE_DRAG_STATUS_COLUMN]
152
+ }),
153
+ h('span', {
154
+ class: ['vxe-table--drag-sort-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
155
+ }),
156
+ h('span', {
157
+ class: ['vxe-table--drag-sort-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
158
+ })
159
+ ]),
160
+ h('div', {
161
+ class: 'vxe-table--drag-sort-tip-content'
162
+ }, renderDragTipContents(h, $xeTable))
163
+ ])
162
164
  ])
163
- ])
165
+ : renderEmptyElement($xeTable)
164
166
  ]);
165
167
  }
166
168
  return renderEmptyElement($xeTable);
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.12.11";
3
+ export const version = "3.12.13";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
@@ -47,12 +47,14 @@ VxeUI.setConfig({
47
47
  rowDragConfig: {
48
48
  showIcon: true,
49
49
  animation: true,
50
- showGuidesStatus: true
50
+ showGuidesStatus: true,
51
+ showDragTip: true
51
52
  },
52
53
  columnDragConfig: {
53
54
  showIcon: true,
54
55
  animation: true,
55
- showGuidesStatus: true
56
+ showGuidesStatus: true,
57
+ showDragTip: true
56
58
  },
57
59
  checkboxConfig: {
58
60
  // trigger: 'default',
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.12.11"}`;
3
+ const version = `table v${"3.12.13"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
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.12.11";
2223
+ const version = "3.12.13";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2267,12 +2267,14 @@ core_.VxeUI.setConfig({
2267
2267
  rowDragConfig: {
2268
2268
  showIcon: true,
2269
2269
  animation: true,
2270
- showGuidesStatus: true
2270
+ showGuidesStatus: true,
2271
+ showDragTip: true
2271
2272
  },
2272
2273
  columnDragConfig: {
2273
2274
  showIcon: true,
2274
2275
  animation: true,
2275
- showGuidesStatus: true
2276
+ showGuidesStatus: true,
2277
+ showDragTip: true
2276
2278
  },
2277
2279
  checkboxConfig: {
2278
2280
  // trigger: 'default',
@@ -2840,7 +2842,7 @@ function isNodeElement(elem) {
2840
2842
  const {
2841
2843
  log: log_log
2842
2844
  } = core_.VxeUI;
2843
- const log_version = `table v${"3.12.11"}`;
2845
+ const log_version = `table v${"3.12.13"}`;
2844
2846
  const warnLog = log_log.create('warn', log_version);
2845
2847
  const errLog = log_log.create('error', log_version);
2846
2848
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -15249,7 +15251,7 @@ function renderTdColumn(h, _vm, seq, rowid, fixedType, isOptimizeMode, rowLevel,
15249
15251
  const rowOpts = $xeTable.computeRowOpts;
15250
15252
  const rowDragOpts = $xeTable.computeRowDragOpts;
15251
15253
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
15252
- const customCellHeight = cellOpts.height || rowOpts.height;
15254
+ const customCellHeight = calcCellHeightFlag ? cellOpts.height || rowOpts.height : 0;
15253
15255
  const {
15254
15256
  disabledMethod: dragDisabledMethod,
15255
15257
  isCrossDrag,
@@ -15434,7 +15436,7 @@ function renderTdColumn(h, _vm, seq, rowid, fixedType, isOptimizeMode, rowLevel,
15434
15436
  isDirty = $xeTable.isUpdateByRow(row, column.field);
15435
15437
  }
15436
15438
  const isVNAutoHeight = scrollYLoad && !hasEllipsis;
15437
- const cellHeight = calcCellHeightFlag ? rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight : defaultRowHeight;
15439
+ const cellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
15438
15440
  const isLastColumn = $columnIndex === columns.length - 1;
15439
15441
  const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
15440
15442
  let isVNPreEmptyStatus = false;
@@ -24789,7 +24791,8 @@ const renderDragTipContents = (h, $xeTable) => {
24789
24791
  const table_renderDragTip = (h, $xeTable) => {
24790
24792
  const reactData = $xeTable;
24791
24793
  const {
24792
- dragRow
24794
+ dragRow,
24795
+ dragCol
24793
24796
  } = reactData;
24794
24797
  const rowOpts = $xeTable.computeRowOpts;
24795
24798
  const columnOpts = $xeTable.computeColumnOpts;
@@ -24808,7 +24811,7 @@ const table_renderDragTip = (h, $xeTable) => {
24808
24811
  class: ['vxe-table--drag-col-line', {
24809
24812
  'is--guides': columnDragOpts.showGuidesStatus
24810
24813
  }]
24811
- }), h('div', {
24814
+ }), dragRow && rowDragOpts.showDragTip || dragCol && columnDragOpts.showDragTip ? h('div', {
24812
24815
  ref: 'refDragTipElem',
24813
24816
  class: 'vxe-table--drag-sort-tip'
24814
24817
  }, [h('div', {
@@ -24823,7 +24826,7 @@ const table_renderDragTip = (h, $xeTable) => {
24823
24826
  class: ['vxe-table--drag-sort-tip-disabled-status', table_getIcon().TABLE_DRAG_DISABLED]
24824
24827
  })]), h('div', {
24825
24828
  class: 'vxe-table--drag-sort-tip-content'
24826
- }, renderDragTipContents(h, $xeTable))])])]);
24829
+ }, renderDragTipContents(h, $xeTable))])]) : table_renderEmptyElement($xeTable)]);
24827
24830
  }
24828
24831
  return table_renderEmptyElement($xeTable);
24829
24832
  };