vxe-table 3.11.38 → 3.11.39

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 (37) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/render/index.js +44 -11
  3. package/es/table/src/body.js +29 -26
  4. package/es/table/src/footer.js +29 -18
  5. package/es/table/src/header.js +25 -7
  6. package/es/table/src/methods.js +25 -16
  7. package/es/ui/index.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/lib/index.umd.js +192 -126
  10. package/lib/index.umd.min.js +1 -1
  11. package/lib/style.css +1 -1
  12. package/lib/table/render/index.js +44 -11
  13. package/lib/table/render/index.min.js +1 -1
  14. package/lib/table/src/body.js +47 -47
  15. package/lib/table/src/body.min.js +1 -1
  16. package/lib/table/src/footer.js +41 -32
  17. package/lib/table/src/footer.min.js +1 -1
  18. package/lib/table/src/header.js +35 -15
  19. package/lib/table/src/header.min.js +1 -1
  20. package/lib/table/src/methods.js +23 -19
  21. package/lib/table/src/methods.min.js +1 -1
  22. package/lib/ui/index.js +1 -1
  23. package/lib/ui/index.min.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/lib/ui/src/log.min.js +1 -1
  26. package/package.json +2 -2
  27. package/packages/table/render/index.ts +45 -11
  28. package/packages/table/src/body.ts +32 -26
  29. package/packages/table/src/footer.ts +33 -18
  30. package/packages/table/src/header.ts +25 -7
  31. package/packages/table/src/methods.ts +25 -19
  32. /package/es/{iconfont.1735003904481.ttf → iconfont.1735027791418.ttf} +0 -0
  33. /package/es/{iconfont.1735003904481.woff → iconfont.1735027791418.woff} +0 -0
  34. /package/es/{iconfont.1735003904481.woff2 → iconfont.1735027791418.woff2} +0 -0
  35. /package/lib/{iconfont.1735003904481.ttf → iconfont.1735027791418.ttf} +0 -0
  36. /package/lib/{iconfont.1735003904481.woff → iconfont.1735027791418.woff} +0 -0
  37. /package/lib/{iconfont.1735003904481.woff2 → iconfont.1735027791418.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.11.38";
2223
+ const version = "3.11.39";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2793,7 +2793,7 @@ function isNodeElement(elem) {
2793
2793
  const {
2794
2794
  log: log_log
2795
2795
  } = core_.VxeUI;
2796
- const log_version = `table v${"3.11.38"}`;
2796
+ const log_version = `table v${"3.11.39"}`;
2797
2797
  const warnLog = log_log.create('warn', log_version);
2798
2798
  const errLog = log_log.create('error', log_version);
2799
2799
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -8365,11 +8365,8 @@ const Methods = {
8365
8365
  editStore,
8366
8366
  currentRow,
8367
8367
  mouseConfig,
8368
- keyboardConfig,
8369
- keyboardOpts,
8370
8368
  spanMethod,
8371
- mergeList,
8372
- mergeFooterList,
8369
+ expandColumn,
8373
8370
  footerSpanMethod,
8374
8371
  isAllOverflow,
8375
8372
  visibleColumn
@@ -8426,10 +8423,17 @@ const Methods = {
8426
8423
  if (isGroup) {
8427
8424
  renderColumnList = visibleColumn;
8428
8425
  } else {
8429
- // 如果是使用优化模式
8430
8426
  if (fixedType) {
8431
- if (scrollXLoad || allColumnHeaderOverflow) {
8432
- renderColumnList = fixedColumn;
8427
+ // 如果是使用优化模式
8428
+ if (allColumnHeaderOverflow) {
8429
+ // 如果不支持优化模式
8430
+ if (spanMethod || footerSpanMethod) {
8431
+ renderColumnList = visibleColumn;
8432
+ } else {
8433
+ renderColumnList = fixedColumn || [];
8434
+ }
8435
+ } else {
8436
+ renderColumnList = visibleColumn;
8433
8437
  }
8434
8438
  }
8435
8439
  }
@@ -8516,14 +8520,14 @@ const Methods = {
8516
8520
  }
8517
8521
  let tWidth = tableWidth;
8518
8522
  let renderColumnList = tableColumn;
8519
- // 如果是使用优化模式
8520
8523
  if (fixedType) {
8521
- // 如果存在展开行使用全量渲染
8522
- if (!this.expandColumn && (scrollXLoad || scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
8523
- if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
8524
- renderColumnList = fixedColumn;
8525
- } else {
8524
+ // 如果是使用优化模式
8525
+ if (scrollXLoad || scrollYLoad || allColumnOverflow && isAllOverflow) {
8526
+ // 如果不支持优化模式
8527
+ if (expandColumn || spanMethod || footerSpanMethod) {
8526
8528
  renderColumnList = visibleColumn;
8529
+ } else {
8530
+ renderColumnList = fixedColumn || [];
8527
8531
  }
8528
8532
  } else {
8529
8533
  renderColumnList = visibleColumn;
@@ -8541,14 +8545,14 @@ const Methods = {
8541
8545
  } else if (layout === 'footer') {
8542
8546
  let tWidth = tableWidth;
8543
8547
  let renderColumnList = tableColumn;
8544
- // 如果是使用优化模式
8545
8548
  if (fixedType) {
8546
- // 如果存在展开行使用全量渲染
8547
- if (!this.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
8548
- if (!mergeFooterList.length || !footerSpanMethod) {
8549
- renderColumnList = fixedColumn;
8550
- } else {
8549
+ // 如果是使用优化模式
8550
+ if (allColumnFooterOverflow) {
8551
+ // 如果不支持优化模式
8552
+ if (spanMethod || footerSpanMethod) {
8551
8553
  renderColumnList = visibleColumn;
8554
+ } else {
8555
+ renderColumnList = fixedColumn || [];
8552
8556
  }
8553
8557
  } else {
8554
8558
  renderColumnList = visibleColumn;
@@ -14336,71 +14340,71 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14336
14340
  elemStore[`${prefix}emptyBlock`] = null;
14337
14341
  },
14338
14342
  render(h) {
14343
+ const props = this;
14339
14344
  const $xeTable = this.$parent;
14345
+ const tableProps = $xeTable;
14346
+ const tableReactData = $xeTable;
14347
+ const tableInternalData = $xeTable;
14340
14348
  const {
14341
- _e,
14342
- $parent: $xetable,
14343
- fixedColumn,
14344
- fixedType
14345
- } = this;
14346
- const rowOpts = $xeTable.computeRowOpts;
14347
- const rowDragOpts = $xeTable.computeRowDragOpts;
14348
- let {
14349
- $scopedSlots,
14350
14349
  tId,
14351
- tableData,
14352
- tableColumn,
14353
- visibleColumn,
14354
- expandColumn,
14350
+ $scopedSlots
14351
+ } = $xeTable;
14352
+ const {
14353
+ fixedColumn,
14354
+ fixedType,
14355
+ tableColumn
14356
+ } = props;
14357
+ const {
14355
14358
  showOverflow: allColumnOverflow,
14356
- keyboardConfig,
14357
- keyboardOpts,
14358
- mergeList,
14359
14359
  spanMethod,
14360
+ footerSpanMethod,
14361
+ mouseConfig
14362
+ } = tableProps;
14363
+ const {
14364
+ tableData,
14360
14365
  scrollXLoad,
14361
14366
  scrollYLoad,
14362
14367
  isAllOverflow,
14363
- emptyOpts,
14364
- mouseConfig,
14365
- mouseOpts,
14366
- sYOpts,
14367
- isDragRowMove
14368
- } = $xetable;
14369
- // 如果是使用优化模式
14368
+ isDragRowMove,
14369
+ expandColumn
14370
+ } = tableReactData;
14371
+ const {
14372
+ visibleColumn
14373
+ } = tableInternalData;
14374
+ const rowOpts = $xeTable.computeRowOpts;
14375
+ const sYOpts = $xeTable.computeSYOpts;
14376
+ const emptyOpts = $xeTable.computeEmptyOpts;
14377
+ const mouseOpts = $xeTable.computeMouseOpts;
14378
+ const rowDragOpts = $xeTable.computeRowDragOpts;
14379
+ let renderColumnList = tableColumn;
14370
14380
  if (fixedType) {
14371
- // 如果存在展开行使用全量渲染
14372
- if (!expandColumn && (scrollXLoad || scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
14373
- if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
14374
- tableColumn = fixedColumn;
14381
+ // 如果是使用优化模式
14382
+ if (scrollXLoad || scrollYLoad || allColumnOverflow && isAllOverflow) {
14383
+ // 如果不支持优化模式
14384
+ if (expandColumn || spanMethod || footerSpanMethod) {
14385
+ renderColumnList = visibleColumn;
14375
14386
  } else {
14376
- tableColumn = visibleColumn;
14377
- // 检查固定列是否被合并,合并范围是否超出固定列
14378
- // if (mergeList.length && !isMergeLeftFixedExceeded && fixedType === 'left') {
14379
- // tableColumn = fixedColumn
14380
- // } else if (mergeList.length && !isMergeRightFixedExceeded && fixedType === 'right') {
14381
- // tableColumn = fixedColumn
14382
- // } else {
14383
- // tableColumn = visibleColumn
14384
- // }
14387
+ renderColumnList = fixedColumn || [];
14385
14388
  }
14386
14389
  } else {
14387
- tableColumn = visibleColumn;
14390
+ renderColumnList = visibleColumn;
14388
14391
  }
14389
14392
  }
14390
14393
  let emptyContent;
14391
14394
  if ($scopedSlots.empty) {
14392
14395
  emptyContent = $scopedSlots.empty.call(this, {
14393
- $table: $xetable
14396
+ $table: $xeTable,
14397
+ $grid: $xeTable.xegrid
14394
14398
  }, h);
14395
14399
  } else {
14396
14400
  const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
14397
14401
  const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
14398
14402
  if (rtEmptyView) {
14399
14403
  emptyContent = getSlotVNs(rtEmptyView.call(this, h, emptyOpts, {
14400
- $table: $xetable
14404
+ $table: $xeTable
14401
14405
  }));
14402
14406
  } else {
14403
- emptyContent = $xetable.emptyText || body_getI18n('vxe.table.emptyText');
14407
+ emptyContent = tableProps.emptyText || body_getI18n('vxe.table.emptyText');
14404
14408
  }
14405
14409
  }
14406
14410
  const ons = {
@@ -14416,7 +14420,7 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14416
14420
  xid: tId
14417
14421
  },
14418
14422
  on: ons
14419
- }, [fixedType ? _e() : h('div', {
14423
+ }, [fixedType ? body_renderEmptyElement($xeTable) : h('div', {
14420
14424
  class: 'vxe-body--x-space',
14421
14425
  ref: 'xSpace'
14422
14426
  }), h('div', {
@@ -14437,7 +14441,7 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14437
14441
  */
14438
14442
  h('colgroup', {
14439
14443
  ref: 'colgroup'
14440
- }, tableColumn.map((column, $columnIndex) => {
14444
+ }, renderColumnList.map((column, $columnIndex) => {
14441
14445
  return h('col', {
14442
14446
  attrs: {
14443
14447
  name: column.id
@@ -14453,9 +14457,9 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14453
14457
  tag: 'tbody',
14454
14458
  name: `vxe-body--row-list${isDragRowMove ? '' : '-disabled'}`
14455
14459
  }
14456
- }, renderRows(h, this, $xetable, fixedType, tableData, tableColumn)) : h('tbody', {
14460
+ }, renderRows(h, this, $xeTable, fixedType, tableData, renderColumnList)) : h('tbody', {
14457
14461
  ref: 'tbody'
14458
- }, renderRows(h, this, $xetable, fixedType, tableData, tableColumn))]), h('div', {
14462
+ }, renderRows(h, this, $xeTable, fixedType, tableData, renderColumnList))]), h('div', {
14459
14463
  class: 'vxe-table--checkbox-range'
14460
14464
  }), mouseConfig && mouseOpts.area ? h('div', {
14461
14465
  class: 'vxe-table--cell-area'
@@ -14465,9 +14469,9 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14465
14469
  class: 'vxe-table--cell-main-area-btn',
14466
14470
  on: {
14467
14471
  mousedown(evnt) {
14468
- if ($xetable.triggerCellAreaExtendMousedownEvent) {
14469
- $xetable.triggerCellAreaExtendMousedownEvent(evnt, {
14470
- $table: $xetable,
14472
+ if ($xeTable.triggerCellAreaExtendMousedownEvent) {
14473
+ $xeTable.triggerCellAreaExtendMousedownEvent(evnt, {
14474
+ $table: $xeTable,
14471
14475
  fixed: fixedType,
14472
14476
  type: renderType
14473
14477
  });
@@ -14703,7 +14707,8 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14703
14707
 
14704
14708
 
14705
14709
  const {
14706
- renderer: header_renderer
14710
+ renderer: header_renderer,
14711
+ renderEmptyElement: header_renderEmptyElement
14707
14712
  } = core_.VxeUI;
14708
14713
  const cellType = 'header';
14709
14714
  const header_renderRows = (h, _vm, cols, $rowIndex) => {
@@ -14944,31 +14949,50 @@ function renderHeads(h, _vm, headerGroups) {
14944
14949
  elemStore[`${prefix}repair`] = null;
14945
14950
  },
14946
14951
  render(h) {
14952
+ const props = this;
14953
+ const $xeTable = this.$parent;
14954
+ const tableProps = $xeTable;
14955
+ const tableReactData = $xeTable;
14956
+ const tableInternalData = $xeTable;
14957
+ const {
14958
+ tId
14959
+ } = $xeTable;
14947
14960
  const {
14948
- _e,
14949
- $parent: $xetable,
14950
14961
  fixedType,
14951
- headerColumn,
14952
- tableColumn,
14953
- fixedColumn
14962
+ fixedColumn,
14963
+ tableColumn
14964
+ } = props;
14965
+ const {
14966
+ headerColumn
14954
14967
  } = this;
14955
14968
  const {
14956
- tId,
14957
- isGroup,
14958
- visibleColumn,
14959
14969
  showHeaderOverflow: allColumnHeaderOverflow,
14960
- scrollXLoad,
14970
+ spanMethod,
14971
+ footerSpanMethod
14972
+ } = tableProps;
14973
+ const {
14974
+ isGroup,
14961
14975
  scrollbarWidth
14962
- } = $xetable;
14976
+ } = tableReactData;
14977
+ const {
14978
+ visibleColumn
14979
+ } = tableInternalData;
14963
14980
  let headerGroups = headerColumn;
14964
14981
  let renderColumnList = tableColumn;
14965
14982
  if (isGroup) {
14966
14983
  renderColumnList = visibleColumn;
14967
14984
  } else {
14968
- // 如果是使用优化模式
14969
14985
  if (fixedType) {
14970
- if (scrollXLoad || allColumnHeaderOverflow) {
14971
- renderColumnList = fixedColumn;
14986
+ // 如果是使用优化模式
14987
+ if (allColumnHeaderOverflow) {
14988
+ // 如果不支持优化模式
14989
+ if (spanMethod || footerSpanMethod) {
14990
+ renderColumnList = visibleColumn;
14991
+ } else {
14992
+ renderColumnList = fixedColumn || [];
14993
+ }
14994
+ } else {
14995
+ renderColumnList = visibleColumn;
14972
14996
  }
14973
14997
  }
14974
14998
  headerGroups = [renderColumnList];
@@ -14978,7 +15002,7 @@ function renderHeads(h, _vm, headerGroups) {
14978
15002
  attrs: {
14979
15003
  xid: tId
14980
15004
  }
14981
- }, [fixedType ? _e() : h('div', {
15005
+ }, [fixedType ? header_renderEmptyElement($xeTable) : h('div', {
14982
15006
  class: 'vxe-body--x-space',
14983
15007
  ref: 'xSpace'
14984
15008
  }), h('table', {
@@ -15169,7 +15193,8 @@ function renderHeads(h, _vm, headerGroups) {
15169
15193
 
15170
15194
  const footer_renderType = 'footer';
15171
15195
  const {
15172
- renderer: footer_renderer
15196
+ renderer: footer_renderer,
15197
+ renderEmptyElement: footer_renderEmptyElement
15173
15198
  } = core_.VxeUI;
15174
15199
  function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
15175
15200
  for (let mIndex = 0; mIndex < mergeFooterList.length; mIndex++) {
@@ -15357,24 +15382,24 @@ function footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex,
15357
15382
  class: 'vxe-footer--gutter col--gutter'
15358
15383
  })] : []);
15359
15384
  }
15360
- function footer_renderHeads(h, _vm, footerTableData) {
15385
+ function footer_renderHeads(h, _vm, renderColumnList) {
15361
15386
  const $xeTable = _vm.$parent;
15387
+ const props = _vm;
15362
15388
  const columnOpts = $xeTable.computeColumnOpts;
15363
15389
  const columnDragOpts = $xeTable.computeColumnDragOpts;
15364
15390
  const {
15365
- $parent: $xetable,
15366
15391
  fixedType,
15367
- tableColumn
15368
- } = _vm;
15392
+ footerTableData
15393
+ } = props;
15369
15394
  const {
15370
15395
  footerRowClassName,
15371
15396
  footerRowStyle,
15372
15397
  isDragColMove
15373
- } = $xetable;
15398
+ } = $xeTable;
15374
15399
  return footerTableData.map((row, $rowIndex) => {
15375
15400
  const _rowIndex = $rowIndex;
15376
15401
  const rowParams = {
15377
- $table: $xetable,
15402
+ $table: $xeTable,
15378
15403
  row,
15379
15404
  _rowIndex,
15380
15405
  $rowIndex,
@@ -15390,13 +15415,13 @@ function footer_renderHeads(h, _vm, footerTableData) {
15390
15415
  class: ['vxe-footer--row', footerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
15391
15416
  style: footerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
15392
15417
  }
15393
- }, footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex, _rowIndex));
15418
+ }, footer_renderRows(h, _vm, renderColumnList, footerTableData, row, $rowIndex, _rowIndex));
15394
15419
  }
15395
15420
  return h('tr', {
15396
15421
  key: $rowIndex,
15397
15422
  class: ['vxe-footer--row', footerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
15398
15423
  style: footerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
15399
- }, footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex, _rowIndex));
15424
+ }, footer_renderRows(h, _vm, renderColumnList, footerTableData, row, $rowIndex, _rowIndex));
15400
15425
  });
15401
15426
  }
15402
15427
  /* harmony default export */ var footer = ({
@@ -15441,35 +15466,43 @@ function footer_renderHeads(h, _vm, footerTableData) {
15441
15466
  elemStore[`${prefix}xSpace`] = null;
15442
15467
  },
15443
15468
  render(h) {
15444
- let {
15445
- _e,
15446
- $parent: $xetable,
15469
+ const props = this;
15470
+ const $xeTable = this.$parent;
15471
+ const tableProps = $xeTable;
15472
+ const tableReactData = $xeTable;
15473
+ const tableInternalData = $xeTable;
15474
+ const {
15475
+ tId
15476
+ } = $xeTable;
15477
+ const {
15447
15478
  fixedType,
15448
15479
  fixedColumn,
15449
- tableColumn,
15450
- footerTableData
15451
- } = this;
15480
+ tableColumn
15481
+ } = props;
15452
15482
  const {
15453
- tId,
15454
- mergeFooterList,
15483
+ spanMethod,
15455
15484
  footerSpanMethod,
15456
- scrollXLoad,
15457
- showFooterOverflow: allColumnFooterOverflow,
15458
- scrollbarWidth,
15459
- visibleColumn,
15460
- expandColumn
15461
- } = $xetable;
15485
+ showFooterOverflow: allColumnFooterOverflow
15486
+ } = tableProps;
15487
+ const {
15488
+ visibleColumn
15489
+ } = tableInternalData;
15490
+ const {
15491
+ scrollbarWidth
15492
+ } = tableReactData;
15493
+ let renderColumnList = tableColumn;
15462
15494
  // 如果是使用优化模式
15463
15495
  if (fixedType) {
15464
- // 如果存在展开行使用全量渲染
15465
- if (!expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
15466
- if (!mergeFooterList.length || !footerSpanMethod) {
15467
- tableColumn = fixedColumn;
15496
+ // 如果是使用优化模式
15497
+ if (allColumnFooterOverflow) {
15498
+ // 如果不支持优化模式
15499
+ if (spanMethod || footerSpanMethod) {
15500
+ renderColumnList = visibleColumn;
15468
15501
  } else {
15469
- tableColumn = visibleColumn;
15502
+ renderColumnList = fixedColumn || [];
15470
15503
  }
15471
15504
  } else {
15472
- tableColumn = visibleColumn;
15505
+ renderColumnList = visibleColumn;
15473
15506
  }
15474
15507
  }
15475
15508
  const ons = {};
@@ -15482,7 +15515,7 @@ function footer_renderHeads(h, _vm, footerTableData) {
15482
15515
  xid: tId
15483
15516
  },
15484
15517
  on: ons
15485
- }, [fixedType ? _e() : h('div', {
15518
+ }, [fixedType ? footer_renderEmptyElement($xeTable) : h('div', {
15486
15519
  class: 'vxe-body--x-space',
15487
15520
  ref: 'xSpace'
15488
15521
  }), h('table', {
@@ -15500,7 +15533,7 @@ function footer_renderHeads(h, _vm, footerTableData) {
15500
15533
  */
15501
15534
  h('colgroup', {
15502
15535
  ref: 'colgroup'
15503
- }, tableColumn.map((column, $columnIndex) => {
15536
+ }, renderColumnList.map((column, $columnIndex) => {
15504
15537
  return h('col', {
15505
15538
  attrs: {
15506
15539
  name: column.id
@@ -15517,7 +15550,7 @@ function footer_renderHeads(h, _vm, footerTableData) {
15517
15550
  */
15518
15551
  h('tfoot', {
15519
15552
  ref: 'tfoot'
15520
- }, footer_renderHeads(h, this, footerTableData))])]);
15553
+ }, footer_renderHeads(h, this, renderColumnList))])]);
15521
15554
  },
15522
15555
  methods: {
15523
15556
  /**
@@ -26937,6 +26970,9 @@ const {
26937
26970
  } = core_.VxeUI;
26938
26971
  const componentDefaultModelProp = 'value';
26939
26972
  const defaultCompProps = {};
26973
+ function handleDefaultValue(value, defaultVal, initVal) {
26974
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(value) ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(defaultVal) ? initVal : defaultVal : value;
26975
+ }
26940
26976
  function parseDate(value, props) {
26941
26977
  return value && props.valueFormat ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, props.valueFormat) : value;
26942
26978
  }
@@ -27634,15 +27670,27 @@ render_renderer.mixin({
27634
27670
  if (cellValue) {
27635
27671
  const numberInputConfig = render_getConfig().numberInput || {};
27636
27672
  if (type === 'float') {
27637
- const digits = props.digits || numberInputConfig.digits || 1;
27673
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
27674
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 1);
27638
27675
  cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(cellValue, digits), digits);
27676
+ if (!autoFill) {
27677
+ cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
27678
+ }
27639
27679
  } else if (type === 'amount') {
27640
- const digits = props.digits || numberInputConfig.digits || 2;
27680
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
27681
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
27682
+ const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
27641
27683
  cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue), {
27642
27684
  digits
27643
27685
  });
27644
- const showCurrency = props.showCurrency;
27645
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showCurrency) ? showCurrency : numberInputConfig.showCurrency) {
27686
+ if (!autoFill) {
27687
+ const [iStr, dStr] = cellValue.split('.');
27688
+ if (dStr) {
27689
+ const dRest = dStr.replace(/0+$/, '');
27690
+ cellValue = dRest ? [iStr, '.', dRest].join('') : iStr;
27691
+ }
27692
+ }
27693
+ if (showCurrency) {
27646
27694
  cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`;
27647
27695
  }
27648
27696
  }
@@ -27662,20 +27710,38 @@ render_renderer.mixin({
27662
27710
  type
27663
27711
  } = props;
27664
27712
  // 兼容老模式
27665
- const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(row) ? row[_columnIndex] : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
27666
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(cellValue)) {
27713
+ const itemValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(row) ? row[_columnIndex] : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
27714
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(itemValue)) {
27667
27715
  const numberInputConfig = render_getConfig().numberInput || {};
27668
27716
  if (type === 'float') {
27669
- const digits = props.digits || numberInputConfig.digits || 1;
27670
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(cellValue, digits), digits);
27717
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
27718
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 1);
27719
+ let amountLabel = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(itemValue, digits), digits);
27720
+ if (!autoFill) {
27721
+ amountLabel = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(amountLabel);
27722
+ }
27723
+ return amountLabel;
27671
27724
  } else if (type === 'amount') {
27672
- const digits = props.digits || numberInputConfig.digits || 2;
27673
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue), {
27725
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
27726
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
27727
+ const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
27728
+ let amountLabel = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(itemValue), {
27674
27729
  digits
27675
27730
  });
27731
+ if (!autoFill) {
27732
+ const [iStr, dStr] = amountLabel.split('.');
27733
+ if (dStr) {
27734
+ const dRest = dStr.replace(/0+$/, '');
27735
+ amountLabel = dRest ? [iStr, '.', dRest].join('') : iStr;
27736
+ }
27737
+ }
27738
+ if (showCurrency) {
27739
+ amountLabel = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${amountLabel}`;
27740
+ }
27741
+ return amountLabel;
27676
27742
  }
27677
27743
  }
27678
- return getFuncText(cellValue, 1);
27744
+ return getFuncText(itemValue, 1);
27679
27745
  },
27680
27746
  renderTableDefault: defaultEditRender,
27681
27747
  renderTableFilter: defaultFilterRender,