vxe-table 3.10.0-beta.3 → 3.10.0-beta.5

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 (33) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/module/export/export-panel.js +5 -6
  3. package/es/table/module/export/import-panel.js +5 -6
  4. package/es/table/src/body.js +1 -1
  5. package/es/table/src/methods.js +9 -2
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/index.umd.js +24 -17
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/table/module/export/export-panel.js +5 -6
  12. package/lib/table/module/export/export-panel.min.js +1 -1
  13. package/lib/table/module/export/import-panel.js +5 -6
  14. package/lib/table/module/export/import-panel.min.js +1 -1
  15. package/lib/table/src/body.js +1 -1
  16. package/lib/table/src/body.min.js +1 -1
  17. package/lib/table/src/methods.js +11 -2
  18. package/lib/table/src/methods.min.js +1 -1
  19. package/lib/ui/index.js +1 -1
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +2 -2
  24. package/packages/table/module/export/export-panel.ts +5 -6
  25. package/packages/table/module/export/import-panel.ts +5 -6
  26. package/packages/table/src/body.ts +1 -1
  27. package/packages/table/src/methods.ts +10 -2
  28. /package/es/{iconfont.1730447026880.ttf → iconfont.1730463743051.ttf} +0 -0
  29. /package/es/{iconfont.1730447026880.woff → iconfont.1730463743051.woff} +0 -0
  30. /package/es/{iconfont.1730447026880.woff2 → iconfont.1730463743051.woff2} +0 -0
  31. /package/lib/{iconfont.1730447026880.ttf → iconfont.1730463743051.ttf} +0 -0
  32. /package/lib/{iconfont.1730447026880.woff → iconfont.1730463743051.woff} +0 -0
  33. /package/lib/{iconfont.1730447026880.woff2 → iconfont.1730463743051.woff2} +0 -0
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.10.0-beta.3";
2223
+ const version = "3.10.0-beta.5";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2764,7 +2764,7 @@ function isNodeElement(elem) {
2764
2764
  const {
2765
2765
  log: log_log
2766
2766
  } = core_.VxeUI;
2767
- const log_version = `table v${"3.10.0-beta.3"}`;
2767
+ const log_version = `table v${"3.10.0-beta.5"}`;
2768
2768
  const warnLog = log_log.create('warn', log_version);
2769
2769
  const errLog = log_log.create('error', log_version);
2770
2770
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -11370,7 +11370,12 @@ const Methods = {
11370
11370
  },
11371
11371
  // 计算可视渲染相关数据
11372
11372
  computeScrollLoad() {
11373
+ const $xeTable = this;
11374
+ const props = $xeTable;
11373
11375
  return this.$nextTick().then(() => {
11376
+ const {
11377
+ showOverflow
11378
+ } = props;
11374
11379
  const {
11375
11380
  sYOpts,
11376
11381
  sXOpts,
@@ -11384,7 +11389,9 @@ const Methods = {
11384
11389
  const {
11385
11390
  visibleSize: visibleXSize
11386
11391
  } = handleVirtualXVisible(this);
11387
- const offsetXSize = sXOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sXOpts.oSize) : browse.msie ? 10 : browse.edge ? 5 : 0;
11392
+ // 动态列缓冲量
11393
+ const bufferSize = showOverflow ? 0 : 2;
11394
+ const offsetXSize = Math.max(bufferSize, sXOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sXOpts.oSize) : browse.msie ? 10 : browse.edge ? 5 : 0);
11388
11395
  scrollXStore.offsetSize = offsetXSize;
11389
11396
  scrollXStore.visibleSize = visibleXSize;
11390
11397
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
@@ -11401,7 +11408,9 @@ const Methods = {
11401
11408
  visibleSize: visibleYSize
11402
11409
  } = handleVirtualYVisible(this);
11403
11410
  if (scrollYLoad) {
11404
- const offsetYSize = sYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sYOpts.oSize) : browse.msie ? 20 : browse.edge ? 10 : 0;
11411
+ // 动态高缓冲量
11412
+ const bufferSize = showOverflow ? 0 : 2;
11413
+ const offsetYSize = Math.max(bufferSize, sYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sYOpts.oSize) : browse.edge ? 10 : 0);
11405
11414
  scrollYStore.offsetSize = offsetYSize;
11406
11415
  scrollYStore.visibleSize = visibleYSize;
11407
11416
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
@@ -12287,7 +12296,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
12287
12296
  key: columnKey || columnOpts.useKey ? column.id : $columnIndex,
12288
12297
  attrs,
12289
12298
  style: Object.assign({
12290
- height: hasEllipsis && (scrollYRHeight || rowHeight) ? `${scrollYRHeight || rowHeight}px` : scrollYLoad ? `${rest.height || scrollYRHeight || rowHeight}px` : ''
12299
+ height: hasEllipsis && (scrollYRHeight || rowHeight) ? `${scrollYRHeight || rowHeight}px` : scrollYLoad ? `${rest.height || 24}px` : ''
12291
12300
  }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(compCellStyle) ? compCellStyle(params) : compCellStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cellStyle) ? cellStyle(params) : cellStyle),
12292
12301
  on: tdOns
12293
12302
  }, tdVNs);
@@ -15124,7 +15133,6 @@ const {
15124
15133
  },
15125
15134
  render(h) {
15126
15135
  const $xeTable = this.$xeTable;
15127
- const importOpts = $xeTable.importOpts;
15128
15136
  const {
15129
15137
  hasFile,
15130
15138
  parseTypeLabel,
@@ -15132,7 +15140,7 @@ const {
15132
15140
  storeData,
15133
15141
  selectName
15134
15142
  } = this;
15135
- const slots = importOpts.slots || {};
15143
+ const slots = defaultOptions.slots || {};
15136
15144
  const topSlot = slots.top;
15137
15145
  const bottomSlot = slots.bottom;
15138
15146
  const defaultSlot = slots.default;
@@ -15166,8 +15174,8 @@ const {
15166
15174
  const params = {
15167
15175
  $table: $xeTable,
15168
15176
  $grid: $xeTable.xegrid,
15169
- options: importOpts,
15170
- params: importOpts.params
15177
+ options: defaultOptions,
15178
+ params: defaultOptions.params
15171
15179
  };
15172
15180
  return h('div', {
15173
15181
  class: 'vxe-table-export--panel'
@@ -15219,8 +15227,8 @@ const {
15219
15227
  const params = {
15220
15228
  $table: $xeTable,
15221
15229
  $grid: $xeTable.xegrid,
15222
- options: importOpts,
15223
- params: importOpts.params
15230
+ options: defaultOptions,
15231
+ params: defaultOptions.params
15224
15232
  };
15225
15233
  return h('div', {
15226
15234
  class: 'vxe-table-export--panel-footer'
@@ -15376,7 +15384,6 @@ const {
15376
15384
  },
15377
15385
  render(h) {
15378
15386
  const $xeTable = this.$xeTable;
15379
- const exportOpts = $xeTable.exportOpts;
15380
15387
  const {
15381
15388
  _e,
15382
15389
  checkedAll,
@@ -15398,7 +15405,7 @@ const {
15398
15405
  const {
15399
15406
  isHeader
15400
15407
  } = defaultOptions;
15401
- const slots = exportOpts.slots || {};
15408
+ const slots = defaultOptions.slots || {};
15402
15409
  const topSlot = slots.top;
15403
15410
  const bottomSlot = slots.bottom;
15404
15411
  const defaultSlot = slots.default;
@@ -15470,9 +15477,9 @@ const {
15470
15477
  const params = {
15471
15478
  $table: $xeTable,
15472
15479
  $grid: $xeTable.xegrid,
15473
- options: exportOpts,
15480
+ options: defaultOptions,
15474
15481
  columns,
15475
- params: exportOpts.params
15482
+ params: defaultOptions.params
15476
15483
  };
15477
15484
  return h('div', {
15478
15485
  class: 'vxe-table-export--panel'
@@ -15650,9 +15657,9 @@ const {
15650
15657
  const params = {
15651
15658
  $table: $xeTable,
15652
15659
  $grid: $xeTable.xegrid,
15653
- options: exportOpts,
15660
+ options: defaultOptions,
15654
15661
  columns,
15655
- params: exportOpts.params
15662
+ params: defaultOptions.params
15656
15663
  };
15657
15664
  return h('div', {
15658
15665
  class: 'vxe-table-export--panel-footer'