vxe-table 3.12.1-beta.0 → 3.12.1-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.
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.1-beta.0";
3
+ export const version = "3.12.1-beta.1";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
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.1-beta.0"}`;
3
+ const version = `table v${"3.12.1-beta.1"}`;
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.1-beta.0";
2223
+ const version = "3.12.1-beta.1";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2814,7 +2814,7 @@ function isNodeElement(elem) {
2814
2814
  const {
2815
2815
  log: log_log
2816
2816
  } = core_.VxeUI;
2817
- const log_version = `table v${"3.12.1-beta.0"}`;
2817
+ const log_version = `table v${"3.12.1-beta.1"}`;
2818
2818
  const warnLog = log_log.create('warn', log_version);
2819
2819
  const errLog = log_log.create('error', log_version);
2820
2820
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -5291,14 +5291,13 @@ const calcCellHeight = $xeTable => {
5291
5291
  } = props;
5292
5292
  const {
5293
5293
  tableData,
5294
- scrollXLoad,
5295
- scrollYLoad
5294
+ scrollXLoad
5296
5295
  } = reactData;
5297
5296
  const {
5298
5297
  fullAllDataRowIdData
5299
5298
  } = internalData;
5300
5299
  const el = $xeTable.$refs.refElem;
5301
- if (!showOverflow && (scrollXLoad || scrollYLoad) && el) {
5300
+ if (!showOverflow && el) {
5302
5301
  let paddingTop = 0;
5303
5302
  let paddingBottom = 0;
5304
5303
  let calcPadding = false;
@@ -5567,7 +5566,7 @@ const handleScrollToRowColumn = ($xeTable, fieldOrColumn, row) => {
5567
5566
  function handleRecalculateLayout($xeTable, reFull) {
5568
5567
  const internalData = $xeTable;
5569
5568
  const el = $xeTable.$refs.refElem;
5570
- internalData.reRunTime = Date.now();
5569
+ internalData.rceRunTime = Date.now();
5571
5570
  if (!el || !el.clientWidth) {
5572
5571
  return $xeTable.$nextTick();
5573
5572
  }
@@ -5603,10 +5602,14 @@ function checkLastSyncScroll($xeTable, isRollX, isRollY) {
5603
5602
  internalData.bodyScrollType = '';
5604
5603
  internalData.inFooterScroll = false;
5605
5604
  if (isRollX && scrollXLoad) {
5606
- $xeTable.updateScrollXData();
5605
+ $xeTable.updateScrollXData().then(() => {
5606
+ $xeTable.loadScrollXData();
5607
+ });
5607
5608
  }
5608
5609
  if (isRollY && scrollYLoad) {
5609
- $xeTable.updateScrollYData();
5610
+ $xeTable.updateScrollYData().then(() => {
5611
+ $xeTable.loadScrollYData();
5612
+ });
5610
5613
  }
5611
5614
  $xeTable.updateCellAreas();
5612
5615
  }, 200);
@@ -7836,6 +7839,7 @@ const Methods = {
7836
7839
  saveCustomStore(type) {
7837
7840
  const $xeTable = this;
7838
7841
  const props = $xeTable;
7842
+ const reactData = $xeTable;
7839
7843
  const {
7840
7844
  customConfig
7841
7845
  } = props;
@@ -7851,6 +7855,9 @@ const Methods = {
7851
7855
  const isCustomVisible = isAllCustom || storageOpts.visible;
7852
7856
  const isCustomFixed = isAllCustom || storageOpts.fixed;
7853
7857
  const isCustomSort = isAllCustom || storageOpts.sort;
7858
+ if (type !== 'reset') {
7859
+ reactData.isCustomStatus = true;
7860
+ }
7854
7861
  if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
7855
7862
  if (!tableId) {
7856
7863
  errLog('vxe.error.reqProp', ['id']);
@@ -8141,7 +8148,7 @@ const Methods = {
8141
8148
  return new Promise(resolve => {
8142
8149
  const {
8143
8150
  rceTimeout,
8144
- reRunTime
8151
+ rceRunTime
8145
8152
  } = internalData;
8146
8153
  const resizeOpts = $xeTable.computeResizeOpts;
8147
8154
  const refreshDelay = resizeOpts.refreshDelay || 20;
@@ -8151,7 +8158,7 @@ const Methods = {
8151
8158
  }
8152
8159
  if (rceTimeout) {
8153
8160
  clearTimeout(rceTimeout);
8154
- if (reRunTime && reRunTime + (refreshDelay - 5) < Date.now()) {
8161
+ if (rceRunTime && rceRunTime + (refreshDelay - 5) < Date.now()) {
8155
8162
  resolve(handleRecalculateLayout($xeTable, !!reFull));
8156
8163
  } else {
8157
8164
  $xeTable.$nextTick(() => {
@@ -13225,7 +13232,9 @@ const Methods = {
13225
13232
  scrollXStore.offsetSize = offsetXSize;
13226
13233
  scrollXStore.visibleSize = visibleXSize;
13227
13234
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
13228
- $xeTable.updateScrollXData();
13235
+ $xeTable.updateScrollXData().then(() => {
13236
+ $xeTable.loadScrollXData();
13237
+ });
13229
13238
  } else {
13230
13239
  $xeTable.updateScrollXSpace();
13231
13240
  }
@@ -13242,7 +13251,9 @@ const Methods = {
13242
13251
  scrollYStore.offsetSize = offsetYSize;
13243
13252
  scrollYStore.visibleSize = visibleYSize;
13244
13253
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
13245
- $xeTable.updateScrollYData();
13254
+ $xeTable.updateScrollYData().then(() => {
13255
+ $xeTable.loadScrollYData();
13256
+ });
13246
13257
  } else {
13247
13258
  $xeTable.updateScrollYSpace();
13248
13259
  }
@@ -14174,12 +14185,14 @@ function renderColumn(h, _vm, $xeTable, seq, rowid, fixedType, rowLevel, row, ro
14174
14185
  }
14175
14186
  }
14176
14187
  let cellHeight = '';
14177
- if (hasEllipsis && (scrollYRHeight || rowHeight)) {
14178
- cellHeight = `${scrollYRHeight || rowHeight}px`;
14179
- } else if (scrollXLoad || scrollYLoad) {
14180
- if (!hasEllipsis) {
14181
- cellHeight = `${rest.height || 24}px`;
14188
+ if (hasEllipsis) {
14189
+ if (scrollYRHeight || rowHeight) {
14190
+ cellHeight = `${scrollYRHeight || rowHeight}px`;
14191
+ } else if (!isAllOverflow) {
14192
+ cellHeight = `${rest.height || 18}px`;
14182
14193
  }
14194
+ } else {
14195
+ cellHeight = `${rest.height || 18}px`;
14183
14196
  }
14184
14197
  if (mouseConfig && mouseOpts.area && selectCellToRow) {
14185
14198
  if (!$columnIndex && selectCellToRow === true || selectCellToRow === column.field) {
@@ -21848,7 +21861,7 @@ const convertToRows = originColumns => {
21848
21861
  handleOptions.data = afterFullData;
21849
21862
  }
21850
21863
  }
21851
- return handleExport($xeTable, opts);
21864
+ return handleExport($xeTable, handleOptions);
21852
21865
  },
21853
21866
  _importByFile(file, options) {
21854
21867
  const opts = Object.assign({}, options);