vxe-table 3.12.9 → 3.12.10-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.
Files changed (90) hide show
  1. package/es/grid/src/grid.js +6 -1
  2. package/es/index.css +1 -1
  3. package/es/index.min.css +1 -1
  4. package/es/locale/lang/ko-KR.js +515 -515
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/table/module/export/mixin.js +3 -3
  8. package/es/table/module/filter/mixin.js +3 -3
  9. package/es/table/module/keyboard/mixin.js +4 -4
  10. package/es/table/module/menu/mixin.js +2 -2
  11. package/es/table/module/validator/mixin.js +2 -2
  12. package/es/table/src/body.js +247 -351
  13. package/es/table/src/footer.js +135 -154
  14. package/es/table/src/header.js +120 -100
  15. package/es/table/src/methods.js +1192 -797
  16. package/es/table/src/props.js +9 -3
  17. package/es/table/src/table.js +187 -103
  18. package/es/table/src/util.js +16 -7
  19. package/es/table/style.css +146 -63
  20. package/es/table/style.min.css +1 -1
  21. package/es/ui/index.js +14 -4
  22. package/es/ui/src/log.js +1 -1
  23. package/es/vxe-table/style.css +146 -63
  24. package/es/vxe-table/style.min.css +1 -1
  25. package/lib/grid/src/grid.js +4 -1
  26. package/lib/grid/src/grid.min.js +1 -1
  27. package/lib/index.css +1 -1
  28. package/lib/index.min.css +1 -1
  29. package/lib/index.umd.js +1917 -1550
  30. package/lib/index.umd.min.js +1 -1
  31. package/lib/locale/lang/ko-KR.js +515 -515
  32. package/lib/locale/lang/ko-KR.min.js +1 -1
  33. package/lib/locale/lang/ko-KR.umd.js +515 -515
  34. package/lib/style.css +1 -1
  35. package/lib/style.min.css +1 -1
  36. package/lib/table/module/export/mixin.js +3 -3
  37. package/lib/table/module/export/mixin.min.js +1 -1
  38. package/lib/table/module/filter/mixin.js +4 -4
  39. package/lib/table/module/filter/mixin.min.js +1 -1
  40. package/lib/table/module/keyboard/mixin.js +5 -5
  41. package/lib/table/module/keyboard/mixin.min.js +1 -1
  42. package/lib/table/module/menu/mixin.js +2 -2
  43. package/lib/table/module/menu/mixin.min.js +1 -1
  44. package/lib/table/module/validator/mixin.js +2 -2
  45. package/lib/table/module/validator/mixin.min.js +1 -1
  46. package/lib/table/src/body.js +185 -365
  47. package/lib/table/src/body.min.js +1 -1
  48. package/lib/table/src/footer.js +124 -151
  49. package/lib/table/src/footer.min.js +1 -1
  50. package/lib/table/src/header.js +97 -74
  51. package/lib/table/src/header.min.js +1 -1
  52. package/lib/table/src/methods.js +1282 -840
  53. package/lib/table/src/methods.min.js +1 -1
  54. package/lib/table/src/props.js +9 -3
  55. package/lib/table/src/props.min.js +1 -1
  56. package/lib/table/src/table.js +171 -90
  57. package/lib/table/src/table.min.js +1 -1
  58. package/lib/table/src/util.js +17 -7
  59. package/lib/table/src/util.min.js +1 -1
  60. package/lib/table/style/style.css +146 -63
  61. package/lib/table/style/style.min.css +1 -1
  62. package/lib/ui/index.js +14 -4
  63. package/lib/ui/index.min.js +1 -1
  64. package/lib/ui/src/log.js +1 -1
  65. package/lib/ui/src/log.min.js +1 -1
  66. package/lib/vxe-table/style/style.css +146 -63
  67. package/lib/vxe-table/style/style.min.css +1 -1
  68. package/package.json +2 -2
  69. package/packages/grid/src/grid.ts +6 -1
  70. package/packages/locale/lang/ko-KR.ts +515 -515
  71. package/packages/table/module/export/mixin.ts +3 -3
  72. package/packages/table/module/filter/mixin.ts +3 -3
  73. package/packages/table/module/keyboard/mixin.ts +4 -4
  74. package/packages/table/module/menu/mixin.ts +2 -2
  75. package/packages/table/module/validator/mixin.ts +2 -2
  76. package/packages/table/src/body.ts +281 -427
  77. package/packages/table/src/footer.ts +148 -164
  78. package/packages/table/src/header.ts +135 -111
  79. package/packages/table/src/methods.ts +1271 -858
  80. package/packages/table/src/props.ts +9 -3
  81. package/packages/table/src/table.ts +195 -146
  82. package/packages/table/src/util.ts +17 -7
  83. package/packages/ui/index.ts +13 -3
  84. package/styles/components/table.scss +164 -74
  85. /package/es/{iconfont.1736414871619.ttf → iconfont.1736690657500.ttf} +0 -0
  86. /package/es/{iconfont.1736414871619.woff → iconfont.1736690657500.woff} +0 -0
  87. /package/es/{iconfont.1736414871619.woff2 → iconfont.1736690657500.woff2} +0 -0
  88. /package/lib/{iconfont.1736414871619.ttf → iconfont.1736690657500.ttf} +0 -0
  89. /package/lib/{iconfont.1736414871619.woff → iconfont.1736690657500.woff} +0 -0
  90. /package/lib/{iconfont.1736414871619.woff2 → iconfont.1736690657500.woff2} +0 -0
@@ -1329,14 +1329,14 @@ export default {
1329
1329
  }
1330
1330
  }
1331
1331
 
1332
- if (!opts.data) {
1332
+ if (!handleOptions.data) {
1333
1333
  handleOptions.data = []
1334
1334
  if (mode === 'selected') {
1335
1335
  const selectRecords = $xeTable.getCheckboxRecords()
1336
1336
  if (['html', 'pdf'].indexOf(type) > -1 && treeConfig) {
1337
- opts.data = XEUtils.searchTree($xeTable.getTableData().fullData, item => $xeTable.findRowIndexOf(selectRecords, item) > -1, Object.assign({}, treeOpts, { data: '_row' }))
1337
+ handleOptions.data = XEUtils.searchTree($xeTable.getTableData().fullData, item => $xeTable.findRowIndexOf(selectRecords, item) > -1, Object.assign({}, treeOpts, { data: '_row' }))
1338
1338
  } else {
1339
- opts.data = selectRecords
1339
+ handleOptions.data = selectRecords
1340
1340
  }
1341
1341
  } else if (mode === 'all') {
1342
1342
  if (process.env.VUE_APP_VXE_ENV === 'development') {
@@ -92,9 +92,9 @@ export default {
92
92
  this.initStore.filter = true
93
93
  this.$nextTick(() => {
94
94
  const { $refs } = this
95
- const { tableHeader, tableBody, filterWrapper } = $refs
96
- const bodyElem = tableBody.$el
97
- const headerElem = tableHeader ? tableHeader.$el : null
95
+ const { refTableHeader, refTableBody, filterWrapper } = $refs
96
+ const bodyElem = refTableBody.$el
97
+ const headerElem = refTableHeader ? refTableHeader.$el : null
98
98
  if (!bodyElem) {
99
99
  return
100
100
  }
@@ -31,8 +31,8 @@ function getCheckboxRangeRows ($xeTable: any, evnt: MouseEvent, params: any, tar
31
31
  let rangeRows: any[] = []
32
32
  let moveSize = 0
33
33
  const isDown = moveRange > 0
34
- const { scrollYLoad } = reactData
35
- const { afterFullData, scrollYStore } = internalData
34
+ const { scrollYLoad, rowHeight } = reactData
35
+ const { afterFullData } = internalData
36
36
  if (scrollYLoad) {
37
37
  if (isDown) {
38
38
  moveSize = offsetClientTop + moveRange
@@ -41,9 +41,9 @@ function getCheckboxRangeRows ($xeTable: any, evnt: MouseEvent, params: any, tar
41
41
  }
42
42
  const _rowIndex = $xeTable.getVTRowIndex(params.row)
43
43
  if (isDown) {
44
- rangeRows = afterFullData.slice(_rowIndex, _rowIndex + Math.ceil(moveSize / scrollYStore.rowHeight))
44
+ rangeRows = afterFullData.slice(_rowIndex, _rowIndex + Math.ceil(moveSize / rowHeight))
45
45
  } else {
46
- rangeRows = afterFullData.slice(_rowIndex - Math.floor(moveSize / scrollYStore.rowHeight), _rowIndex + 1)
46
+ rangeRows = afterFullData.slice(_rowIndex - Math.floor(moveSize / rowHeight), _rowIndex + 1)
47
47
  }
48
48
  } else {
49
49
  if (isDown) {
@@ -59,7 +59,7 @@ export default {
59
59
  const { selected } = editStore
60
60
  const layoutList = ['header', 'body', 'footer']
61
61
  if (isEnableConf(menuConfig) || contextMenu) {
62
- if (ctxMenuStore.visible && $refs.ctxWrapper && getEventTargetNode(evnt, $refs.ctxWrapper.$el).flag) {
62
+ if (ctxMenuStore.visible && $refs.refTableMenu && getEventTargetNode(evnt, $refs.refTableMenu.$el).flag) {
63
63
  evnt.preventDefault()
64
64
  return
65
65
  }
@@ -165,7 +165,7 @@ export default {
165
165
  }
166
166
  })
167
167
  this.$nextTick(() => {
168
- const ctxElem = this.$refs.ctxWrapper.$el
168
+ const ctxElem = this.$refs.refTableMenu.$el
169
169
  const clientHeight = ctxElem.clientHeight
170
170
  const clientWidth = ctxElem.clientWidth
171
171
  const { boundingTop, boundingLeft } = getAbsolutePos(ctxElem)
@@ -388,7 +388,7 @@ export default {
388
388
  },
389
389
  _clearValidate (rows: any, fieldOrColumn: any) {
390
390
  const { validOpts, validErrorMaps } = this
391
- const validTip = this.$refs.validTip
391
+ const validTip = this.$refs.refValidTooltip
392
392
  const rowList = XEUtils.isArray(rows) ? rows : (rows ? [rows] : [])
393
393
  const colList = (XEUtils.isArray(fieldOrColumn) ? fieldOrColumn : (fieldOrColumn ? [fieldOrColumn] : [])).map(column => handleFieldOrColumn(this, column))
394
394
  let validErrMaps: any = {}
@@ -466,7 +466,7 @@ export default {
466
466
  showValidTooltip (params: any) {
467
467
  const { $refs, height, validStore, validErrorMaps, tableData, validOpts } = this
468
468
  const { rule, row, column, cell } = params
469
- const validTip = $refs.validTip
469
+ const validTip = $refs.refValidTooltip
470
470
  const content = rule.content
471
471
  validStore.visible = true
472
472
  if (validOpts.msgMode === 'single') {