vxe-table 4.20.7 → 4.20.9

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 (69) hide show
  1. package/dist/all.esm.js +67 -36
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/grid/src/grid.js +11 -0
  5. package/es/index.css +1 -1
  6. package/es/index.min.css +1 -1
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/table/module/export/hook.js +3 -3
  10. package/es/table/src/body.js +3 -3
  11. package/es/table/src/cell.js +2 -2
  12. package/es/table/src/footer.js +3 -3
  13. package/es/table/src/header.js +3 -3
  14. package/es/table/src/table.js +33 -19
  15. package/es/table/src/util.js +5 -1
  16. package/es/table/style.css +22 -12
  17. package/es/table/style.min.css +1 -1
  18. package/es/ui/index.js +3 -1
  19. package/es/ui/src/log.js +1 -1
  20. package/es/vxe-table/style.css +22 -12
  21. package/es/vxe-table/style.min.css +1 -1
  22. package/lib/grid/src/grid.js +15 -0
  23. package/lib/grid/src/grid.min.js +1 -1
  24. package/lib/index.css +1 -1
  25. package/lib/index.min.css +1 -1
  26. package/lib/index.umd.js +57 -33
  27. package/lib/index.umd.min.js +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/table/module/export/hook.js +3 -3
  31. package/lib/table/module/export/hook.min.js +1 -1
  32. package/lib/table/src/body.js +3 -3
  33. package/lib/table/src/body.min.js +1 -1
  34. package/lib/table/src/cell.js +2 -2
  35. package/lib/table/src/cell.min.js +1 -1
  36. package/lib/table/src/footer.js +3 -3
  37. package/lib/table/src/footer.min.js +1 -1
  38. package/lib/table/src/header.js +3 -3
  39. package/lib/table/src/header.min.js +1 -1
  40. package/lib/table/src/table.js +19 -16
  41. package/lib/table/src/table.min.js +1 -1
  42. package/lib/table/src/util.js +5 -1
  43. package/lib/table/src/util.min.js +1 -1
  44. package/lib/table/style/style.css +22 -12
  45. package/lib/table/style/style.min.css +1 -1
  46. package/lib/ui/index.js +3 -1
  47. package/lib/ui/index.min.js +1 -1
  48. package/lib/ui/src/log.js +1 -1
  49. package/lib/ui/src/log.min.js +1 -1
  50. package/lib/vxe-table/style/style.css +22 -12
  51. package/lib/vxe-table/style/style.min.css +1 -1
  52. package/package.json +2 -2
  53. package/packages/grid/src/grid.ts +11 -0
  54. package/packages/table/module/export/hook.ts +3 -3
  55. package/packages/table/src/body.ts +3 -3
  56. package/packages/table/src/cell.ts +2 -2
  57. package/packages/table/src/footer.ts +3 -3
  58. package/packages/table/src/header.ts +3 -3
  59. package/packages/table/src/table.ts +33 -19
  60. package/packages/table/src/util.ts +5 -1
  61. package/packages/ui/index.ts +2 -0
  62. package/styles/components/table.scss +24 -6
  63. package/styles/theme/base.scss +0 -1
  64. /package/es/{iconfont.1784868296497.ttf → iconfont.1785242738274.ttf} +0 -0
  65. /package/es/{iconfont.1784868296497.woff → iconfont.1785242738274.woff} +0 -0
  66. /package/es/{iconfont.1784868296497.woff2 → iconfont.1785242738274.woff2} +0 -0
  67. /package/lib/{iconfont.1784868296497.ttf → iconfont.1785242738274.ttf} +0 -0
  68. /package/lib/{iconfont.1784868296497.woff → iconfont.1785242738274.woff} +0 -0
  69. /package/lib/{iconfont.1784868296497.woff2 → iconfont.1785242738274.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.20.7",
3
+ "version": "4.20.9",
4
4
  "description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -66,7 +66,7 @@
66
66
  "typescript": "~5.9.3",
67
67
  "vue": "3.4.27",
68
68
  "vue-router": "~4.5.1",
69
- "vxe-pc-ui": "4.16.21"
69
+ "vxe-pc-ui": "4.16.22"
70
70
  },
71
71
  "vetur": {
72
72
  "tags": "helper/vetur/tags.json",
@@ -1536,6 +1536,17 @@ export default defineVxeComponent({
1536
1536
  }
1537
1537
  }
1538
1538
  return null
1539
+ },
1540
+ getCustomPagerData () {
1541
+ const { pagerConfig } = props
1542
+ const { tablePage } = reactData
1543
+ const pagerOpts = computePagerOpts.value
1544
+ if (pagerConfig && isEnableConf(pagerOpts)) {
1545
+ return {
1546
+ pSize: tablePage.pageSize
1547
+ }
1548
+ }
1549
+ return {}
1539
1550
  }
1540
1551
  // setProxyInfo (options) {
1541
1552
  // if (props.proxyConfig && options) {
@@ -1355,7 +1355,7 @@ hooks.add('tableExportModule', {
1355
1355
  const isColGroup = column.children && column.children.length > 0
1356
1356
  let isChecked = false
1357
1357
  const isExtraChecked = extraFdMaps[column.field]
1358
- if (columns && columns.length) {
1358
+ if (columns) {
1359
1359
  isChecked = handleFilterColumns(defOpts, column, columns)
1360
1360
  } else if (excludeFields || includeFields) {
1361
1361
  isChecked = handleFilterFields(defOpts, column, includeFields, includeFdMaps, excludeFdMaps, extraFdMaps)
@@ -1510,7 +1510,7 @@ hooks.add('tableExportModule', {
1510
1510
 
1511
1511
  let isCustomCol = false
1512
1512
  let customCols = []
1513
- if (columns && columns.length) {
1513
+ if (columns) {
1514
1514
  isCustomCol = true
1515
1515
  customCols = XEUtils.searchTree(columns, () => true, { children: 'children', mapChildren: 'childNodes', original: true })
1516
1516
  } else {
@@ -1518,7 +1518,7 @@ hooks.add('tableExportModule', {
1518
1518
  const isColGroup = column.children && column.children.length > 0
1519
1519
  let isChecked = false
1520
1520
  const isExtraChecked = extraFdMaps[column.field]
1521
- if (columns && columns.length) {
1521
+ if (columns) {
1522
1522
  isChecked = handleFilterColumns(opts, column, columns)
1523
1523
  } else if (excludeFields || includeFields) {
1524
1524
  isChecked = handleFilterFields(opts, column, includeFields, includeFdMaps, excludeFdMaps, extraFdMaps)
@@ -161,9 +161,9 @@ export default defineVxeComponent({
161
161
  let fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed)
162
162
  const isCellPadding = XEUtils.eqNull(padding) ? (allPadding === null ? cellOpts.padding : allPadding) : padding
163
163
  const cellOverflow = XEUtils.eqNull(showOverflow) ? allShowOverflow : showOverflow
164
- const showEllipsis = cellOverflow === 'ellipsis'
165
- const showTitle = cellOverflow === 'title'
166
- const showTooltip = cellOverflow === true ? tooltipOpts.mode === 'tooltip' : cellOverflow === 'tooltip'
164
+ const showEllipsis = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === 'ellipsis'
165
+ const showTitle = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === 'title'
166
+ const showTooltip = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === 'tooltip'
167
167
  const hasEllipsis = isAllOverflow || showTitle || showTooltip || showEllipsis
168
168
  const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable))
169
169
  const isCsHeight = !!customCellHeight
@@ -191,8 +191,8 @@ function renderTitleContent (params: VxeTableDefines.CellRenderHeaderParams & {
191
191
  const headerTooltipOpts = computeHeaderTooltipOpts.value
192
192
  const showAllTip = headerTooltipOpts.showAll
193
193
  const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow
194
- const showTitle = headOverflow === 'title'
195
- const showTooltip = headOverflow === true || headOverflow === 'tooltip'
194
+ const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'title'
195
+ const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'tooltip'
196
196
  const ons: Record<string, any> = {}
197
197
  if (showTitle || showTooltip || showAllTip) {
198
198
  ons.onMouseenter = (evnt: MouseEvent) => {
@@ -74,9 +74,9 @@ export default defineVxeComponent({
74
74
  const isPadding = XEUtils.isBoolean(footerCellOpts.padding) ? footerCellOpts.padding : cellOpts.padding
75
75
  const footOverflow = XEUtils.eqNull(showFooterOverflow) ? allColumnFooterOverflow : showFooterOverflow
76
76
  const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign
77
- const showEllipsis = footOverflow === 'ellipsis'
78
- const showTitle = footOverflow === 'title'
79
- const showTooltip = footOverflow === true ? footerTooltipOpts.mode === 'tooltip' : footOverflow === 'tooltip'
77
+ const showEllipsis = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'ellipsis'
78
+ const showTitle = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'title'
79
+ const showTooltip = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'tooltip'
80
80
  const hasEllipsis = showTitle || showTooltip || showEllipsis
81
81
  const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable))
82
82
  const attrs: any = { colid }
@@ -88,9 +88,9 @@ export default defineVxeComponent({
88
88
  const isPadding = XEUtils.isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding
89
89
  const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow
90
90
  const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : '') || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign
91
- const showEllipsis = headOverflow === 'ellipsis'
92
- const showTitle = headOverflow === 'title'
93
- const showTooltip = headOverflow === true ? headerTooltipOpts.mode === 'tooltip' : headOverflow === 'tooltip'
91
+ const showEllipsis = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'ellipsis'
92
+ const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'title'
93
+ const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'tooltip'
94
94
  const hasEllipsis = showTitle || showTooltip || showEllipsis
95
95
  let hasFilter = false
96
96
  let firstFilterOption: VxeTableDefines.FilterOption | null = null
@@ -1610,9 +1610,9 @@ export default defineVxeComponent({
1610
1610
  const handleCustomRestore = (storeData: VxeTableDefines.CustomStoreData) => {
1611
1611
  const { aggregateConfig, rowGroupConfig } = props
1612
1612
  const { collectColumn } = internalData
1613
- const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable)
1613
+ const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable)
1614
1614
 
1615
- let { alignData, headerAlignData, footerAlignData, resizableData, sortData, visibleData, fixedData, aggGroupData, aggFuncData } = storeData
1615
+ let { alignData, headerAlignData, footerAlignData, resizableData, sortData, visibleData, fixedData, aggGroupData, aggFuncData, pagerData } = storeData
1616
1616
  // 处理还原
1617
1617
  if ((isCustomAlign && alignData) ||
1618
1618
  (isCustomHeaderAlign && headerAlignData) ||
@@ -1622,7 +1622,8 @@ export default defineVxeComponent({
1622
1622
  (isCustomVisible && visibleData) ||
1623
1623
  (isCustomFixed && fixedData) ||
1624
1624
  (isCustomAggGroup && aggGroupData) ||
1625
- (isCustomAggFunc && aggFuncData)) {
1625
+ (isCustomAggFunc && aggFuncData) ||
1626
+ (isCustomPager && pagerData && $xeGGWrapper)) {
1626
1627
  const sortColMaps: Record<string, {
1627
1628
  key: string
1628
1629
  sNum: number
@@ -1957,7 +1958,7 @@ export default defineVxeComponent({
1957
1958
  const autoWidthColumnList = computeAutoWidthColumnList.value
1958
1959
  const { fullColumnIdData } = internalData
1959
1960
  const el = refElem.value
1960
- if (el) {
1961
+ if (el && autoWidthColumnList.length) {
1961
1962
  el.setAttribute('data-calc-col', 'Y')
1962
1963
  autoWidthColumnList.forEach(column => {
1963
1964
  const colid = column.id
@@ -2244,7 +2245,7 @@ export default defineVxeComponent({
2244
2245
  const fullMaps: Record<string, any> = {}
2245
2246
  let rowNum = 0
2246
2247
  const { handleGetRowId } = createHandleGetRowId($xeTable)
2247
- XEUtils.eachTree(afterTreeFullData, (row, index, items, path) => {
2248
+ XEUtils.eachTree(afterTreeFullData, (row, index, items, path, parentRow) => {
2248
2249
  const rowid = handleGetRowId(row)
2249
2250
  const rowRest = fullAllDataRowIdData[rowid]
2250
2251
  const seq = path.map((num, i) => i % 2 === 0 ? (Number(num) + 1) : '.').join('')
@@ -2252,9 +2253,10 @@ export default defineVxeComponent({
2252
2253
  rowRest.seq = seq
2253
2254
  rowRest._seq = rowNum
2254
2255
  rowRest.treeIndex = index
2256
+ rowRest._index = rowNum
2255
2257
  rowRest._tIndex = rowNum
2256
2258
  } else {
2257
- const rest = { row, rowid, _seq: rowNum, seq, index: -1, $index: -1, _index: -1, treeIndex: -1, _tIndex: rowNum, items: [], parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
2259
+ const rest = { row, rowid, _seq: rowNum, seq, index, $index: -1, _index: rowNum, treeIndex: index, _tIndex: rowNum, items, parent: parentRow, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
2258
2260
  fullAllDataRowIdData[rowid] = rest
2259
2261
  fullDataRowIdData[rowid] = rest
2260
2262
  }
@@ -3493,7 +3495,7 @@ export default defineVxeComponent({
3493
3495
  if (reWidth) {
3494
3496
  calcCellWidth()
3495
3497
  }
3496
- if (reFull) {
3498
+ if (reWidth || reFull) {
3497
3499
  autoCellWidth()
3498
3500
  }
3499
3501
  calcScrollbar()
@@ -3508,7 +3510,7 @@ export default defineVxeComponent({
3508
3510
  if (reWidth) {
3509
3511
  calcCellWidth()
3510
3512
  }
3511
- if (reFull) {
3513
+ if (reWidth || reFull) {
3512
3514
  autoCellWidth()
3513
3515
  }
3514
3516
  if (reHeight) {
@@ -3606,7 +3608,7 @@ export default defineVxeComponent({
3606
3608
  return
3607
3609
  }
3608
3610
  internalData.rsePending = true
3609
- handleLazyRecalculate(true, true, true, {
3611
+ handleLazyRecalculate(false, true, true, {
3610
3612
  minRunDelay: 200
3611
3613
  }).then(() => {
3612
3614
  internalData.rsePending = false
@@ -4888,12 +4890,12 @@ export default defineVxeComponent({
4888
4890
  return
4889
4891
  }
4890
4892
  const expandOpts = computeExpandOpts.value
4891
- const rowOpts = computeRowOpts.value
4892
- const cellOpts = computeCellOpts.value
4893
- const defaultRowHeight = computeDefaultRowHeight.value
4894
4893
  const { mode } = expandOpts
4895
4894
  if (expandColumn && mode === 'fixed') {
4896
4895
  const { elemStore, fullAllDataRowIdData } = internalData
4896
+ const rowOpts = computeRowOpts.value
4897
+ const cellOpts = computeCellOpts.value
4898
+ const defaultRowHeight = computeDefaultRowHeight.value
4897
4899
  const rowExpandEl = refRowExpandElem.value
4898
4900
  const bodyScrollElem = getRefElem(elemStore['main-body-scroll'])
4899
4901
  if (rowExpandEl && bodyScrollElem) {
@@ -8241,7 +8243,7 @@ export default defineVxeComponent({
8241
8243
  const { isRowGroupStatus, rowGroupList } = reactData
8242
8244
  const { fullColumnFieldData, collectColumn } = internalData
8243
8245
  const { storage, checkMethod } = customOpts
8244
- const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable)
8246
+ const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable)
8245
8247
 
8246
8248
  const alignData: Record<string, VxeColumnPropTypes.Align> = {}
8247
8249
  const headerAlignData: Record<string, VxeColumnPropTypes.HeaderAlign> = {}
@@ -8254,6 +8256,7 @@ export default defineVxeComponent({
8254
8256
  const aggFuncData: Record<string, VxeColumnPropTypes.AggFunc> = {}
8255
8257
 
8256
8258
  const storeData: VxeTableDefines.CustomStoreData = {
8259
+ pagerData: isCustomPager && $xeGGWrapper && $xeGGWrapper.getCustomPagerData ? $xeGGWrapper.getCustomPagerData() : undefined,
8257
8260
  alignData: undefined,
8258
8261
  headerAlignData: undefined,
8259
8262
  footerAlignData: undefined,
@@ -9090,8 +9093,10 @@ export default defineVxeComponent({
9090
9093
  if (!el || !el.clientWidth) {
9091
9094
  return
9092
9095
  }
9096
+ if (internalData.rsePending) {
9097
+ return
9098
+ }
9093
9099
  handleResizeEvent()
9094
- $xeTable.updateCellAreas()
9095
9100
  }
9096
9101
 
9097
9102
  const handleTargetEnterEvent = (isClear: boolean) => {
@@ -10232,7 +10237,7 @@ export default defineVxeComponent({
10232
10237
  const tableId = computeTableId.value
10233
10238
  const customOpts = computeCustomOpts.value
10234
10239
  const { updateStore, storage } = customOpts
10235
- const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable)
10240
+ const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable)
10236
10241
 
10237
10242
  if (type !== 'reset') {
10238
10243
  // fix:修复拖动列宽,重置按钮无法点击的问题
@@ -10249,7 +10254,8 @@ export default defineVxeComponent({
10249
10254
  isCustomFixed ||
10250
10255
  isCustomSort ||
10251
10256
  isCustomAggGroup ||
10252
- isCustomAggFunc
10257
+ isCustomAggFunc ||
10258
+ isCustomPager
10253
10259
  )
10254
10260
  ) {
10255
10261
  if (!tableId) {
@@ -10258,6 +10264,7 @@ export default defineVxeComponent({
10258
10264
  }
10259
10265
  const storeData: VxeTableDefines.CustomStoreData = type === 'reset'
10260
10266
  ? {
10267
+ pagerData: {},
10261
10268
  alignData: {},
10262
10269
  headerAlignData: {},
10263
10270
  footerAlignData: {},
@@ -11573,6 +11580,7 @@ export default defineVxeComponent({
11573
11580
  status: false
11574
11581
  }
11575
11582
  if (!(el && prevDragRow && dragRow)) {
11583
+ handleRowDragEndClearStatus()
11576
11584
  return Promise.resolve(errRest)
11577
11585
  }
11578
11586
  // 判断是否有拖动
@@ -11681,6 +11689,9 @@ export default defineVxeComponent({
11681
11689
  }
11682
11690
 
11683
11691
  const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild
11692
+ if (dEndMethod) {
11693
+ handleRowDragEndClearStatus()
11694
+ }
11684
11695
  return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then((status) => {
11685
11696
  if (!status) {
11686
11697
  return errRest
@@ -11985,6 +11996,9 @@ export default defineVxeComponent({
11985
11996
  const errRest = {
11986
11997
  status: false
11987
11998
  }
11999
+ if (dragEndMethod) {
12000
+ handleRowDragEndClearStatus()
12001
+ }
11988
12002
  Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
11989
12003
  if (!status) {
11990
12004
  if ($oldTable) {
@@ -14657,9 +14671,9 @@ export default defineVxeComponent({
14657
14671
  // if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
14658
14672
  // warnLog('vxe.error.reqProp', ['show-overflow'])
14659
14673
  // }
14660
- if (treeConfig && !treeOpts.transform && props.stripe) {
14661
- warnLog('vxe.error.noTree', ['stripe'])
14662
- }
14674
+ // if (treeConfig && !treeOpts.transform && props.stripe) {
14675
+ // warnLog('vxe.error.noTree', ['stripe'])
14676
+ // }
14663
14677
  if (treeConfig && !treeOpts.transform) {
14664
14678
  if (sortOpts.isDeep) {
14665
14679
  warnLog('vxe.error.reqSupportProp', ['transform=false', 'sort-config.isDeep=false'])
@@ -165,6 +165,8 @@ export function createInternalData (): TableInternalData {
165
165
  initStatus: false,
166
166
  isActivated: false,
167
167
 
168
+ // rceTimeout: undefined,
169
+ // rceRunTime: undefined,
168
170
  rceDelay: 0
169
171
 
170
172
  // _sToTime: null
@@ -1136,6 +1138,7 @@ export function handleCustomStoreConfig ($xeTable: VxeTableConstructor) {
1136
1138
  const isCustomSort = hangleBolleanDefaultValue(storageOpts.sort, isAllCustom)
1137
1139
  const isCustomAggGroup = hangleBolleanDefaultValue(storageOpts.aggGroup, isAllCustom)
1138
1140
  const isCustomAggFunc = hangleBolleanDefaultValue(storageOpts.aggFunc, isAllCustom)
1141
+ const isCustomPager = hangleBolleanDefaultValue(storageOpts.pager, isAllCustom)
1139
1142
  return {
1140
1143
  isCustomAlign,
1141
1144
  isCustomHeaderAlign,
@@ -1145,6 +1148,7 @@ export function handleCustomStoreConfig ($xeTable: VxeTableConstructor) {
1145
1148
  isCustomFixed,
1146
1149
  isCustomSort,
1147
1150
  isCustomAggGroup,
1148
- isCustomAggFunc
1151
+ isCustomAggFunc,
1152
+ isCustomPager
1149
1153
  }
1150
1154
  }
@@ -77,9 +77,11 @@ VxeUI.setConfig({
77
77
  defaultPlacement: 'top'
78
78
  },
79
79
  headerTooltipConfig: {
80
+ mode: 'tooltip',
80
81
  enterable: true
81
82
  },
82
83
  footerTooltipConfig: {
84
+ mode: 'tooltip',
83
85
  enterable: true
84
86
  },
85
87
  validConfig: {
@@ -4,6 +4,27 @@
4
4
  @use './icon.scss';
5
5
  @use './table-module/all.scss';
6
6
 
7
+
8
+ // 局部变量
9
+ .vxe-table {
10
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-default);
11
+ &.size--xlarge {
12
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-xlarge);
13
+ }
14
+ &.size--large {
15
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-large);
16
+ }
17
+ &.size--medium {
18
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-medium);
19
+ }
20
+ &.size--small {
21
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-small);
22
+ }
23
+ &.size--mini {
24
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-mini);
25
+ }
26
+ }
27
+
7
28
  $btnThemeList: (
8
29
  (
9
30
  name: "primary",
@@ -1374,7 +1395,7 @@ $btnThemeList: (
1374
1395
  /*table*/
1375
1396
  .vxe-table--render-default {
1376
1397
  position: relative;
1377
- font-size: var(--vxe-ui-font-size-default);
1398
+ font-size: var(--vxe-ui-table-current-font-size);
1378
1399
  color: var(--vxe-ui-font-color);
1379
1400
  font-family: var(--vxe-ui-font-family);
1380
1401
  direction: ltr;
@@ -1832,7 +1853,6 @@ $btnThemeList: (
1832
1853
  }
1833
1854
 
1834
1855
  &.size--medium {
1835
- font-size: var(--vxe-ui-font-size-medium);
1836
1856
  .vxe-table--empty-placeholder,
1837
1857
  .vxe-table--empty-block {
1838
1858
  min-height: var(--vxe-ui-table-row-height-medium);
@@ -1866,7 +1886,6 @@ $btnThemeList: (
1866
1886
  }
1867
1887
  }
1868
1888
  &.size--small {
1869
- font-size: var(--vxe-ui-font-size-small);
1870
1889
  .vxe-table--empty-placeholder,
1871
1890
  .vxe-table--empty-block {
1872
1891
  min-height: var(--vxe-ui-table-row-height-small);
@@ -1900,7 +1919,6 @@ $btnThemeList: (
1900
1919
  }
1901
1920
  }
1902
1921
  &.size--mini {
1903
- font-size: var(--vxe-ui-font-size-mini);
1904
1922
  .vxe-table--empty-placeholder,
1905
1923
  .vxe-table--empty-block {
1906
1924
  min-height: var(--vxe-ui-table-row-height-mini);
@@ -2447,7 +2465,7 @@ $btnThemeList: (
2447
2465
  width: 100%;
2448
2466
  position: absolute;
2449
2467
  left: 50%;
2450
- font-size: var(--vxe-ui-table-validate-error-font-size);
2468
+ font-size: var(--vxe-ui-table-validate-error-font-size, var(--vxe-ui-table-current-font-size));
2451
2469
  line-height: 1em;
2452
2470
  transform: translate(-50%, -2px);
2453
2471
  text-align: left;
@@ -2473,7 +2491,7 @@ $btnThemeList: (
2473
2491
  // }
2474
2492
  }
2475
2493
  .vxe-cell--valid-error-theme-beautify {
2476
- padding: 0.2em 0.6em 0.25em 0.6em;
2494
+ padding: var(--vxe-ui-table-validate-error-padding, 0.2em 0.6em);
2477
2495
  color: #fff;
2478
2496
  background-color: var(--vxe-ui-table-validate-error-color);
2479
2497
  .vxe-cell--valid-error-msg {
@@ -91,7 +91,6 @@
91
91
  --vxe-ui-table-view-scrollbar-width: 18px;
92
92
  --vxe-ui-table-view-scrollbar-height: 18px;
93
93
 
94
- --vxe-ui-table-validate-error-font-size: 12px;
95
94
  --vxe-ui-table-validate-error-color: #f56c6c;
96
95
  --vxe-ui-table-validate-error-cell-background-color: rgba(245, 108,108, 0.1);
97
96
  --vxe-ui-table-validate-error-theme-normal-background-color: var(--vxe-ui-layout-background-color);