vxe-table 4.9.34 → 4.9.35

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 +17 -29
  4. package/es/table/src/footer.js +20 -21
  5. package/es/table/src/header.js +15 -8
  6. package/es/table/src/table.js +26 -24
  7. package/es/ui/index.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/lib/index.umd.js +125 -95
  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 +17 -28
  15. package/lib/table/src/body.min.js +1 -1
  16. package/lib/table/src/footer.js +21 -22
  17. package/lib/table/src/footer.min.js +1 -1
  18. package/lib/table/src/header.js +15 -7
  19. package/lib/table/src/header.min.js +1 -1
  20. package/lib/table/src/table.js +26 -25
  21. package/lib/table/src/table.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 +20 -28
  29. package/packages/table/src/footer.ts +21 -20
  30. package/packages/table/src/header.ts +14 -8
  31. package/packages/table/src/table.ts +28 -22
  32. /package/es/{iconfont.1735003904604.ttf → iconfont.1735027807086.ttf} +0 -0
  33. /package/es/{iconfont.1735003904604.woff → iconfont.1735027807086.woff} +0 -0
  34. /package/es/{iconfont.1735003904604.woff2 → iconfont.1735027807086.woff2} +0 -0
  35. /package/lib/{iconfont.1735003904604.ttf → iconfont.1735027807086.ttf} +0 -0
  36. /package/lib/{iconfont.1735003904604.woff → iconfont.1735027807086.woff} +0 -0
  37. /package/lib/{iconfont.1735003904604.woff2 → iconfont.1735027807086.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -1998,7 +1998,7 @@ function eqEmptyValue(cellValue) {
1998
1998
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
1999
1999
 
2000
2000
 
2001
- const version = "4.9.34";
2001
+ const version = "4.9.35";
2002
2002
  core_.VxeUI.version = version;
2003
2003
  core_.VxeUI.tableVersion = version;
2004
2004
  core_.VxeUI.setConfig({
@@ -2412,7 +2412,7 @@ var es_array_push = __webpack_require__(4114);
2412
2412
  const {
2413
2413
  log: log_log
2414
2414
  } = core_.VxeUI;
2415
- const log_version = `table v${"4.9.34"}`;
2415
+ const log_version = `table v${"4.9.35"}`;
2416
2416
  const warnLog = log_log.create('warn', log_version);
2417
2417
  const errLog = log_log.create('error', log_version);
2418
2418
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -4886,7 +4886,6 @@ const lineOffsetSizes = {
4886
4886
  computeAreaOpts,
4887
4887
  computeSYOpts,
4888
4888
  computeEmptyOpts,
4889
- computeKeyboardOpts,
4890
4889
  computeTooltipOpts,
4891
4890
  computeRadioOpts,
4892
4891
  computeExpandOpts,
@@ -5725,23 +5724,24 @@ const lineOffsetSizes = {
5725
5724
  elemStore[`${prefix}emptyBlock`] = null;
5726
5725
  });
5727
5726
  const renderVN = () => {
5728
- let {
5727
+ const {
5729
5728
  fixedColumn,
5730
5729
  fixedType,
5731
5730
  tableColumn
5732
5731
  } = props;
5733
5732
  const {
5734
- keyboardConfig,
5735
5733
  showOverflow: allColumnOverflow,
5736
5734
  spanMethod,
5735
+ footerSpanMethod,
5737
5736
  mouseConfig
5738
5737
  } = tableProps;
5739
5738
  const {
5740
5739
  tableData,
5741
- mergeList,
5740
+ scrollXLoad,
5742
5741
  scrollYLoad,
5743
5742
  isAllOverflow,
5744
- isDragRowMove
5743
+ isDragRowMove,
5744
+ expandColumn
5745
5745
  } = tableReactData;
5746
5746
  const {
5747
5747
  visibleColumn
@@ -5752,30 +5752,19 @@ const lineOffsetSizes = {
5752
5752
  const rowOpts = computeRowOpts.value;
5753
5753
  const sYOpts = computeSYOpts.value;
5754
5754
  const emptyOpts = computeEmptyOpts.value;
5755
- const keyboardOpts = computeKeyboardOpts.value;
5756
5755
  const mouseOpts = computeMouseOpts.value;
5757
5756
  const rowDragOpts = computeRowDragOpts.value;
5758
- // const isMergeLeftFixedExceeded = computeIsMergeLeftFixedExceeded.value
5759
- // const isMergeRightFixedExceeded = computeIsMergeRightFixedExceeded.value
5760
- // 如果是使用优化模式
5757
+ let renderColumnList = tableColumn;
5761
5758
  if (fixedType) {
5762
- // 如果存在展开行使用全量渲染
5763
- if (!tableReactData.expandColumn && (scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
5764
- if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
5765
- tableColumn = fixedColumn;
5759
+ renderColumnList = visibleColumn;
5760
+ // 如果是使用优化模式
5761
+ if (scrollXLoad || scrollYLoad || allColumnOverflow && isAllOverflow) {
5762
+ // 如果不支持优化模式
5763
+ if (expandColumn || spanMethod || footerSpanMethod) {
5764
+ renderColumnList = visibleColumn;
5766
5765
  } else {
5767
- tableColumn = visibleColumn;
5768
- // 检查固定列是否被合并,合并范围是否超出固定列
5769
- // if (mergeList.length && !isMergeLeftFixedExceeded && fixedType === 'left') {
5770
- // tableColumn = fixedColumn
5771
- // } else if (mergeList.length && !isMergeRightFixedExceeded && fixedType === 'right') {
5772
- // tableColumn = fixedColumn
5773
- // } else {
5774
- // tableColumn = visibleColumn
5775
- // }
5766
+ renderColumnList = fixedColumn || [];
5776
5767
  }
5777
- } else {
5778
- tableColumn = visibleColumn;
5779
5768
  }
5780
5769
  }
5781
5770
  let emptyContent;
@@ -5807,7 +5796,7 @@ const lineOffsetSizes = {
5807
5796
  class: ['vxe-table--body-wrapper', fixedType ? `fixed-${fixedType}--wrapper` : 'body--wrapper'],
5808
5797
  xid: xID,
5809
5798
  ...ons
5810
- }, [fixedType ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
5799
+ }, [fixedType ? body_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
5811
5800
  ref: refBodyXSpace,
5812
5801
  class: 'vxe-body--x-space'
5813
5802
  }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
@@ -5826,7 +5815,7 @@ const lineOffsetSizes = {
5826
5815
  */
5827
5816
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('colgroup', {
5828
5817
  ref: refBodyColgroup
5829
- }, tableColumn.map((column, $columnIndex) => {
5818
+ }, renderColumnList.map((column, $columnIndex) => {
5830
5819
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
5831
5820
  name: column.id,
5832
5821
  key: $columnIndex
@@ -5840,10 +5829,10 @@ const lineOffsetSizes = {
5840
5829
  name: `vxe-body--row-list${isDragRowMove ? '' : '-disabled'}`,
5841
5830
  tag: 'tbody'
5842
5831
  }, {
5843
- default: () => renderRows(fixedType, tableData, tableColumn)
5832
+ default: () => renderRows(fixedType, tableData, renderColumnList)
5844
5833
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', {
5845
5834
  ref: refBodyTBody
5846
- }, renderRows(fixedType, tableData, tableColumn))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
5835
+ }, renderRows(fixedType, tableData, renderColumnList))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
5847
5836
  class: 'vxe-table--checkbox-range'
5848
5837
  }), mouseConfig && mouseOpts.area ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
5849
5838
  class: 'vxe-table--cell-area'
@@ -5885,7 +5874,8 @@ const lineOffsetSizes = {
5885
5874
 
5886
5875
 
5887
5876
  const {
5888
- renderer: header_renderer
5877
+ renderer: header_renderer,
5878
+ renderEmptyElement: header_renderEmptyElement
5889
5879
  } = core_.VxeUI;
5890
5880
  const header_renderType = 'header';
5891
5881
  /* harmony default export */ var header = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
@@ -6244,11 +6234,12 @@ const header_renderType = 'header';
6244
6234
  tableColumn
6245
6235
  } = props;
6246
6236
  const {
6247
- showHeaderOverflow: allColumnHeaderOverflow
6237
+ showHeaderOverflow: allColumnHeaderOverflow,
6238
+ spanMethod,
6239
+ footerSpanMethod
6248
6240
  } = tableProps;
6249
6241
  const {
6250
6242
  isGroup,
6251
- scrollXLoad,
6252
6243
  scrollbarWidth
6253
6244
  } = tableReactData;
6254
6245
  const {
@@ -6259,10 +6250,16 @@ const header_renderType = 'header';
6259
6250
  if (isGroup) {
6260
6251
  renderColumnList = visibleColumn;
6261
6252
  } else {
6262
- // 如果是使用优化模式
6263
6253
  if (fixedType) {
6264
- if (scrollXLoad || allColumnHeaderOverflow) {
6265
- renderColumnList = fixedColumn;
6254
+ renderColumnList = visibleColumn;
6255
+ // 如果是使用优化模式
6256
+ if (allColumnHeaderOverflow) {
6257
+ // 如果不支持优化模式
6258
+ if (spanMethod || footerSpanMethod) {
6259
+ renderColumnList = visibleColumn;
6260
+ } else {
6261
+ renderColumnList = fixedColumn || [];
6262
+ }
6266
6263
  }
6267
6264
  }
6268
6265
  headerGroups = [renderColumnList];
@@ -6271,7 +6268,7 @@ const header_renderType = 'header';
6271
6268
  ref: refElem,
6272
6269
  class: ['vxe-table--header-wrapper', fixedType ? `fixed-${fixedType}--wrapper` : 'body--wrapper'],
6273
6270
  xid: xID
6274
- }, [fixedType ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
6271
+ }, [fixedType ? header_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
6275
6272
  ref: refHeaderXSpace,
6276
6273
  class: 'vxe-body--x-space'
6277
6274
  }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {
@@ -6358,7 +6355,8 @@ const header_renderType = 'header';
6358
6355
 
6359
6356
 
6360
6357
  const {
6361
- renderer: footer_renderer
6358
+ renderer: footer_renderer,
6359
+ renderEmptyElement: footer_renderEmptyElement
6362
6360
  } = core_.VxeUI;
6363
6361
  const footer_renderType = 'footer';
6364
6362
  function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
@@ -6632,10 +6630,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6632
6630
  class: 'vxe-footer--gutter col--gutter'
6633
6631
  })] : []);
6634
6632
  };
6635
- const renderHeads = footerTableData => {
6633
+ const renderHeads = renderColumnList => {
6636
6634
  const {
6637
6635
  fixedType,
6638
- tableColumn
6636
+ footerTableData
6639
6637
  } = props;
6640
6638
  const {
6641
6639
  footerRowClassName,
@@ -6664,24 +6662,24 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6664
6662
  class: ['vxe-footer--row', footerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
6665
6663
  style: footerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
6666
6664
  }, {
6667
- default: () => renderRows(tableColumn, footerTableData, row, $rowIndex, _rowIndex)
6665
+ default: () => renderRows(renderColumnList, footerTableData, row, $rowIndex, _rowIndex)
6668
6666
  });
6669
6667
  }
6670
6668
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {
6671
6669
  key: $rowIndex,
6672
6670
  class: ['vxe-footer--row', footerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
6673
6671
  style: footerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
6674
- }, renderRows(tableColumn, footerTableData, row, $rowIndex, _rowIndex));
6672
+ }, renderRows(renderColumnList, footerTableData, row, $rowIndex, _rowIndex));
6675
6673
  });
6676
6674
  };
6677
6675
  const renderVN = () => {
6678
- let {
6676
+ const {
6679
6677
  fixedType,
6680
6678
  fixedColumn,
6681
- tableColumn,
6682
- footerTableData
6679
+ tableColumn
6683
6680
  } = props;
6684
6681
  const {
6682
+ spanMethod,
6685
6683
  footerSpanMethod,
6686
6684
  showFooterOverflow: allColumnFooterOverflow
6687
6685
  } = tableProps;
@@ -6689,21 +6687,19 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6689
6687
  visibleColumn
6690
6688
  } = tableInternalData;
6691
6689
  const {
6692
- scrollXLoad,
6693
- scrollbarWidth,
6694
- mergeFooterList
6690
+ scrollbarWidth
6695
6691
  } = tableReactData;
6696
- // 如果是使用优化模式
6692
+ let renderColumnList = tableColumn;
6697
6693
  if (fixedType) {
6698
- // 如果存在展开行使用全量渲染
6699
- if (!tableReactData.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
6700
- if (!mergeFooterList.length || !footerSpanMethod) {
6701
- tableColumn = fixedColumn;
6694
+ renderColumnList = visibleColumn;
6695
+ // 如果是使用优化模式
6696
+ if (allColumnFooterOverflow) {
6697
+ // 如果不支持优化模式
6698
+ if (spanMethod || footerSpanMethod) {
6699
+ renderColumnList = visibleColumn;
6702
6700
  } else {
6703
- tableColumn = visibleColumn;
6701
+ renderColumnList = fixedColumn || [];
6704
6702
  }
6705
- } else {
6706
- tableColumn = visibleColumn;
6707
6703
  }
6708
6704
  }
6709
6705
  const ons = {};
@@ -6715,7 +6711,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6715
6711
  class: ['vxe-table--footer-wrapper', fixedType ? `fixed-${fixedType}--wrapper` : 'body--wrapper'],
6716
6712
  xid: xID,
6717
6713
  ...ons
6718
- }, [fixedType ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
6714
+ }, [fixedType ? footer_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
6719
6715
  ref: refFooterXSpace,
6720
6716
  class: 'vxe-body--x-space'
6721
6717
  }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {
@@ -6731,7 +6727,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6731
6727
  */
6732
6728
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('colgroup', {
6733
6729
  ref: refFooterColgroup
6734
- }, tableColumn.map((column, $columnIndex) => {
6730
+ }, renderColumnList.map((column, $columnIndex) => {
6735
6731
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
6736
6732
  name: column.id,
6737
6733
  key: $columnIndex
@@ -6744,7 +6740,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6744
6740
  */
6745
6741
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tfoot', {
6746
6742
  ref: refFooterTFoot
6747
- }, renderHeads(footerTableData))])]);
6743
+ }, renderHeads(renderColumnList))])]);
6748
6744
  };
6749
6745
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
6750
6746
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
@@ -11012,8 +11008,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11012
11008
  showFooterOverflow: allColumnFooterOverflow,
11013
11009
  mouseConfig,
11014
11010
  spanMethod,
11015
- footerSpanMethod,
11016
- keyboardConfig
11011
+ footerSpanMethod
11017
11012
  } = props;
11018
11013
  const {
11019
11014
  isGroup,
@@ -11026,9 +11021,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11026
11021
  scrollbarHeight,
11027
11022
  columnStore,
11028
11023
  editStore,
11029
- mergeList,
11030
- mergeFooterList,
11031
- isAllOverflow
11024
+ isAllOverflow,
11025
+ expandColumn
11032
11026
  } = reactData;
11033
11027
  let {
11034
11028
  visibleColumn,
@@ -11046,7 +11040,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11046
11040
  const emptyPlaceholderElem = refEmptyPlaceholder.value;
11047
11041
  const cellOffsetWidth = computeCellOffsetWidth.value;
11048
11042
  const mouseOpts = computeMouseOpts.value;
11049
- const keyboardOpts = computeKeyboardOpts.value;
11050
11043
  const bodyWrapperElem = getRefElem(elemStore['main-body-wrapper']);
11051
11044
  if (emptyPlaceholderElem) {
11052
11045
  emptyPlaceholderElem.style.top = `${headerHeight}px`;
@@ -11102,10 +11095,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11102
11095
  if (isGroup) {
11103
11096
  renderColumnList = visibleColumn;
11104
11097
  } else {
11105
- // 如果是使用优化模式
11106
11098
  if (fixedType) {
11107
- if (scrollXLoad || allColumnHeaderOverflow) {
11108
- renderColumnList = fixedColumn;
11099
+ renderColumnList = visibleColumn;
11100
+ // 如果是使用优化模式
11101
+ if (allColumnHeaderOverflow) {
11102
+ // 如果不支持优化模式
11103
+ if (spanMethod || footerSpanMethod) {
11104
+ renderColumnList = visibleColumn;
11105
+ } else {
11106
+ renderColumnList = fixedColumn || [];
11107
+ }
11109
11108
  }
11110
11109
  }
11111
11110
  }
@@ -11186,17 +11185,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11186
11185
  }
11187
11186
  let tWidth = tableWidth;
11188
11187
  let renderColumnList = tableColumn;
11189
- // 如果是使用优化模式
11190
11188
  if (fixedType) {
11191
- // 如果存在展开行使用全量渲染
11192
- if (!reactData.expandColumn && (scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
11193
- if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
11194
- renderColumnList = fixedColumn;
11195
- } else {
11189
+ renderColumnList = visibleColumn;
11190
+ // 如果是使用优化模式
11191
+ if (scrollXLoad || scrollYLoad || allColumnOverflow && isAllOverflow) {
11192
+ // 如果不支持优化模式
11193
+ if (expandColumn || spanMethod || footerSpanMethod) {
11196
11194
  renderColumnList = visibleColumn;
11195
+ } else {
11196
+ renderColumnList = fixedColumn || [];
11197
11197
  }
11198
- } else {
11199
- renderColumnList = visibleColumn;
11200
11198
  }
11201
11199
  }
11202
11200
  tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
@@ -11211,17 +11209,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11211
11209
  } else if (layout === 'footer') {
11212
11210
  let tWidth = tableWidth;
11213
11211
  let renderColumnList = tableColumn;
11214
- // 如果是使用优化模式
11215
11212
  if (fixedType) {
11216
- // 如果存在展开行使用全量渲染
11217
- if (!reactData.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
11218
- if (!mergeFooterList.length || !footerSpanMethod) {
11219
- renderColumnList = fixedColumn;
11220
- } else {
11213
+ renderColumnList = visibleColumn;
11214
+ // 如果是使用优化模式
11215
+ if (allColumnFooterOverflow) {
11216
+ // 如果不支持优化模式
11217
+ if (spanMethod || footerSpanMethod) {
11221
11218
  renderColumnList = visibleColumn;
11219
+ } else {
11220
+ renderColumnList = fixedColumn || [];
11222
11221
  }
11223
- } else {
11224
- renderColumnList = visibleColumn;
11225
11222
  }
11226
11223
  }
11227
11224
  tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
@@ -24385,6 +24382,9 @@ const {
24385
24382
  } = core_.VxeUI;
24386
24383
  const componentDefaultModelProp = 'modelValue';
24387
24384
  const defaultCompProps = {};
24385
+ function handleDefaultValue(value, defaultVal, initVal) {
24386
+ 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;
24387
+ }
24388
24388
  function parseDate(value, props) {
24389
24389
  return value && props.valueFormat ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, props.valueFormat) : value;
24390
24390
  }
@@ -25070,15 +25070,27 @@ render_renderer.mixin({
25070
25070
  if (cellValue) {
25071
25071
  const numberInputConfig = render_getConfig().numberInput || {};
25072
25072
  if (type === 'float') {
25073
- const digits = props.digits || numberInputConfig.digits || 1;
25073
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
25074
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 1);
25074
25075
  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);
25076
+ if (!autoFill) {
25077
+ cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
25078
+ }
25075
25079
  } else if (type === 'amount') {
25076
- const digits = props.digits || numberInputConfig.digits || 2;
25080
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
25081
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
25082
+ const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
25077
25083
  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), {
25078
25084
  digits
25079
25085
  });
25080
- const showCurrency = props.showCurrency;
25081
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showCurrency) ? showCurrency : numberInputConfig.showCurrency) {
25086
+ if (!autoFill) {
25087
+ const [iStr, dStr] = cellValue.split('.');
25088
+ if (dStr) {
25089
+ const dRest = dStr.replace(/0+$/, '');
25090
+ cellValue = dRest ? [iStr, '.', dRest].join('') : iStr;
25091
+ }
25092
+ }
25093
+ if (showCurrency) {
25082
25094
  cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`;
25083
25095
  }
25084
25096
  }
@@ -25098,20 +25110,38 @@ render_renderer.mixin({
25098
25110
  type
25099
25111
  } = props;
25100
25112
  // 兼容老模式
25101
- 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);
25102
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(cellValue)) {
25113
+ 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);
25114
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(itemValue)) {
25103
25115
  const numberInputConfig = render_getConfig().numberInput || {};
25104
25116
  if (type === 'float') {
25105
- const digits = props.digits || numberInputConfig.digits || 1;
25106
- 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);
25117
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
25118
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 1);
25119
+ 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);
25120
+ if (!autoFill) {
25121
+ amountLabel = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(amountLabel);
25122
+ }
25123
+ return amountLabel;
25107
25124
  } else if (type === 'amount') {
25108
- const digits = props.digits || numberInputConfig.digits || 2;
25109
- 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), {
25125
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
25126
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
25127
+ const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
25128
+ 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), {
25110
25129
  digits
25111
25130
  });
25131
+ if (!autoFill) {
25132
+ const [iStr, dStr] = amountLabel.split('.');
25133
+ if (dStr) {
25134
+ const dRest = dStr.replace(/0+$/, '');
25135
+ amountLabel = dRest ? [iStr, '.', dRest].join('') : iStr;
25136
+ }
25137
+ }
25138
+ if (showCurrency) {
25139
+ amountLabel = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${amountLabel}`;
25140
+ }
25141
+ return amountLabel;
25112
25142
  }
25113
25143
  }
25114
- return getFuncText(cellValue, 1);
25144
+ return getFuncText(itemValue, 1);
25115
25145
  },
25116
25146
  renderTableDefault: defaultEditRender,
25117
25147
  renderTableFilter: defaultFilterRender,