vxe-table 3.14.3 → 3.14.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 (127) hide show
  1. package/es/locale/lang/ar-EG.js +4 -1
  2. package/es/locale/lang/de-DE.js +4 -1
  3. package/es/locale/lang/en-US.js +8 -5
  4. package/es/locale/lang/es-ES.js +4 -1
  5. package/es/locale/lang/fr-FR.js +4 -1
  6. package/es/locale/lang/hu-HU.js +4 -1
  7. package/es/locale/lang/hy-AM.js +4 -1
  8. package/es/locale/lang/id-ID.js +4 -1
  9. package/es/locale/lang/it-IT.js +4 -1
  10. package/es/locale/lang/ja-JP.js +4 -1
  11. package/es/locale/lang/ko-KR.js +4 -1
  12. package/es/locale/lang/nb-NO.js +4 -1
  13. package/es/locale/lang/pt-BR.js +4 -1
  14. package/es/locale/lang/ru-RU.js +4 -1
  15. package/es/locale/lang/th-TH.js +4 -1
  16. package/es/locale/lang/ug-CN.js +4 -1
  17. package/es/locale/lang/uk-UA.js +4 -1
  18. package/es/locale/lang/vi-VN.js +4 -1
  19. package/es/locale/lang/zh-CHT.js +4 -1
  20. package/es/locale/lang/zh-CN.js +4 -1
  21. package/es/style.css +1 -1
  22. package/es/table/module/export/export-panel.js +32 -17
  23. package/es/table/module/export/mixin.js +3 -1
  24. package/es/table/module/keyboard/mixin.js +27 -9
  25. package/es/table/src/methods.js +44 -42
  26. package/es/table/src/table.js +50 -17
  27. package/es/ui/index.js +1 -1
  28. package/es/ui/src/log.js +1 -1
  29. package/lib/index.umd.js +165 -90
  30. package/lib/index.umd.min.js +1 -1
  31. package/lib/locale/lang/ar-EG.js +4 -1
  32. package/lib/locale/lang/ar-EG.min.js +1 -1
  33. package/lib/locale/lang/de-DE.js +4 -1
  34. package/lib/locale/lang/de-DE.min.js +1 -1
  35. package/lib/locale/lang/en-US.js +8 -5
  36. package/lib/locale/lang/en-US.min.js +1 -1
  37. package/lib/locale/lang/en-US.umd.js +8 -5
  38. package/lib/locale/lang/es-ES.js +4 -1
  39. package/lib/locale/lang/es-ES.min.js +1 -1
  40. package/lib/locale/lang/es-ES.umd.js +4 -1
  41. package/lib/locale/lang/fr-FR.js +4 -1
  42. package/lib/locale/lang/fr-FR.min.js +1 -1
  43. package/lib/locale/lang/hu-HU.js +4 -1
  44. package/lib/locale/lang/hu-HU.min.js +1 -1
  45. package/lib/locale/lang/hu-HU.umd.js +4 -1
  46. package/lib/locale/lang/hy-AM.js +4 -1
  47. package/lib/locale/lang/hy-AM.min.js +1 -1
  48. package/lib/locale/lang/id-ID.js +4 -1
  49. package/lib/locale/lang/id-ID.min.js +1 -1
  50. package/lib/locale/lang/it-IT.js +4 -1
  51. package/lib/locale/lang/it-IT.min.js +1 -1
  52. package/lib/locale/lang/ja-JP.js +4 -1
  53. package/lib/locale/lang/ja-JP.min.js +1 -1
  54. package/lib/locale/lang/ja-JP.umd.js +4 -1
  55. package/lib/locale/lang/ko-KR.js +4 -1
  56. package/lib/locale/lang/ko-KR.min.js +1 -1
  57. package/lib/locale/lang/ko-KR.umd.js +4 -1
  58. package/lib/locale/lang/nb-NO.js +4 -1
  59. package/lib/locale/lang/nb-NO.min.js +1 -1
  60. package/lib/locale/lang/pt-BR.js +4 -1
  61. package/lib/locale/lang/pt-BR.min.js +1 -1
  62. package/lib/locale/lang/pt-BR.umd.js +4 -1
  63. package/lib/locale/lang/ru-RU.js +4 -1
  64. package/lib/locale/lang/ru-RU.min.js +1 -1
  65. package/lib/locale/lang/ru-RU.umd.js +4 -1
  66. package/lib/locale/lang/th-TH.js +4 -1
  67. package/lib/locale/lang/th-TH.min.js +1 -1
  68. package/lib/locale/lang/ug-CN.js +4 -1
  69. package/lib/locale/lang/ug-CN.min.js +1 -1
  70. package/lib/locale/lang/uk-UA.js +4 -1
  71. package/lib/locale/lang/uk-UA.min.js +1 -1
  72. package/lib/locale/lang/uk-UA.umd.js +4 -1
  73. package/lib/locale/lang/vi-VN.js +4 -1
  74. package/lib/locale/lang/vi-VN.min.js +1 -1
  75. package/lib/locale/lang/zh-CHT.js +4 -1
  76. package/lib/locale/lang/zh-CHT.min.js +1 -1
  77. package/lib/locale/lang/zh-CHT.umd.js +4 -1
  78. package/lib/locale/lang/zh-CN.js +4 -1
  79. package/lib/locale/lang/zh-CN.min.js +1 -1
  80. package/lib/locale/lang/zh-CN.umd.js +4 -1
  81. package/lib/style.css +1 -1
  82. package/lib/table/module/export/export-panel.js +29 -17
  83. package/lib/table/module/export/export-panel.min.js +1 -1
  84. package/lib/table/module/export/mixin.js +3 -1
  85. package/lib/table/module/export/mixin.min.js +1 -1
  86. package/lib/table/module/keyboard/mixin.js +28 -9
  87. package/lib/table/module/keyboard/mixin.min.js +1 -1
  88. package/lib/table/src/methods.js +47 -43
  89. package/lib/table/src/methods.min.js +1 -1
  90. package/lib/table/src/table.js +52 -17
  91. package/lib/table/src/table.min.js +1 -1
  92. package/lib/ui/index.js +1 -1
  93. package/lib/ui/index.min.js +1 -1
  94. package/lib/ui/src/log.js +1 -1
  95. package/lib/ui/src/log.min.js +1 -1
  96. package/package.json +2 -2
  97. package/packages/locale/lang/ar-EG.ts +4 -1
  98. package/packages/locale/lang/de-DE.ts +4 -1
  99. package/packages/locale/lang/en-US.ts +8 -5
  100. package/packages/locale/lang/es-ES.ts +4 -1
  101. package/packages/locale/lang/fr-FR.ts +4 -1
  102. package/packages/locale/lang/hu-HU.ts +4 -1
  103. package/packages/locale/lang/hy-AM.ts +4 -1
  104. package/packages/locale/lang/id-ID.ts +4 -1
  105. package/packages/locale/lang/it-IT.ts +4 -1
  106. package/packages/locale/lang/ja-JP.ts +4 -1
  107. package/packages/locale/lang/ko-KR.ts +4 -1
  108. package/packages/locale/lang/nb-NO.ts +4 -1
  109. package/packages/locale/lang/pt-BR.ts +4 -1
  110. package/packages/locale/lang/ru-RU.ts +4 -1
  111. package/packages/locale/lang/th-TH.ts +4 -1
  112. package/packages/locale/lang/ug-CN.ts +4 -1
  113. package/packages/locale/lang/uk-UA.ts +4 -1
  114. package/packages/locale/lang/vi-VN.ts +4 -1
  115. package/packages/locale/lang/zh-CHT.ts +4 -1
  116. package/packages/locale/lang/zh-CN.ts +4 -1
  117. package/packages/table/module/export/export-panel.ts +33 -17
  118. package/packages/table/module/export/mixin.ts +3 -1
  119. package/packages/table/module/keyboard/mixin.ts +25 -9
  120. package/packages/table/src/methods.ts +43 -41
  121. package/packages/table/src/table.ts +52 -17
  122. /package/es/{iconfont.1743389110592.ttf → iconfont.1743479120369.ttf} +0 -0
  123. /package/es/{iconfont.1743389110592.woff → iconfont.1743479120369.woff} +0 -0
  124. /package/es/{iconfont.1743389110592.woff2 → iconfont.1743479120369.woff2} +0 -0
  125. /package/lib/{iconfont.1743389110592.ttf → iconfont.1743479120369.ttf} +0 -0
  126. /package/lib/{iconfont.1743389110592.woff → iconfont.1743479120369.woff} +0 -0
  127. /package/lib/{iconfont.1743389110592.woff2 → iconfont.1743479120369.woff2} +0 -0
@@ -625,6 +625,7 @@ export default {
625
625
  original: false,
626
626
  message: true,
627
627
  isHeader: false,
628
+ isTitle: false,
628
629
  isFooter: false
629
630
  },
630
631
 
@@ -1415,8 +1416,9 @@ export default {
1415
1416
  swYTotal: 0
1416
1417
  })
1417
1418
 
1418
- const { data, exportConfig, importConfig, treeConfig, showOverflow } = props
1419
+ const { data, exportConfig, importConfig, treeConfig, showOverflow, highlightCurrentRow, highlightCurrentColumn } = props
1419
1420
  const { scrollXStore, scrollYStore } = internalData
1421
+ const columnOpts = $xeTable.computeColumnOpts
1420
1422
  const editOpts = $xeTable.computeEditOpts
1421
1423
  const treeOpts = $xeTable.computeTreeOpts
1422
1424
  const radioOpts = $xeTable.computeRadioOpts
@@ -1427,6 +1429,11 @@ export default {
1427
1429
  const mouseOpts = $xeTable.computeMouseOpts
1428
1430
  const exportOpts = $xeTable.computeExportOpts
1429
1431
  const importOpts = $xeTable.computeImportOpts
1432
+ const currentRowOpts = $xeTable.computeCurrentRowOpts
1433
+ const currentColumnOpts = $xeTable.computeCurrentColumnOpts
1434
+ const virtualXOpts = $xeTable.computeVirtualXOpts
1435
+ const virtualYOpts = $xeTable.computeVirtualYOpts
1436
+ const keyboardOpts = $xeTable.computeKeyboardOpts
1430
1437
 
1431
1438
  if (props.rowId) {
1432
1439
  warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField'])
@@ -1470,6 +1477,12 @@ export default {
1470
1477
  if (this.highlightHoverColumn) {
1471
1478
  warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
1472
1479
  }
1480
+ // if (props.scrollY) {
1481
+ // warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
1482
+ // }
1483
+ // if (props.scrollX) {
1484
+ // warnLog('vxe.error.delProp', ['scroll-x', 'virtual-x-config'])
1485
+ // }
1473
1486
  // 检查导入导出类型,如果自定义导入导出方法,则不校验类型
1474
1487
  if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(XEUtils.keys(importOpts._typeMaps), importOpts.types)) {
1475
1488
  warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter((type) => XEUtils.includes(XEUtils.keys(importOpts._typeMaps), type)).join(',') || XEUtils.keys(importOpts._typeMaps).join(',')])
@@ -1539,29 +1552,51 @@ export default {
1539
1552
  warnLog('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}'])
1540
1553
  }
1541
1554
  }
1542
- if (this.menuConfig && !XEUtils.isObject(this.menuConfig)) {
1543
- warnLog('vxe.error.errProp', [`table.menu-config=${this.menuConfig}`, 'table.menu-config={}'])
1555
+ if (props.menuConfig && !XEUtils.isObject(props.menuConfig)) {
1556
+ warnLog('vxe.error.errProp', [`table.menu-config=${props.menuConfig}`, 'table.menu-config={}'])
1557
+ }
1558
+ if (props.exportConfig && !XEUtils.isObject(props.exportConfig)) {
1559
+ warnLog('vxe.error.errProp', [`table.export-config=${props.exportConfig}`, 'table.export-config={}'])
1560
+ }
1561
+ if (props.importConfig && !XEUtils.isObject(props.importConfig)) {
1562
+ warnLog('vxe.error.errProp', [`table.import-config=${props.importConfig}`, 'table.import-config={}'])
1563
+ }
1564
+ if (props.printConfig && !XEUtils.isObject(props.printConfig)) {
1565
+ warnLog('vxe.error.errProp', [`table.print-config=${props.printConfig}`, 'table.print-config={}'])
1566
+ }
1567
+ if (props.treeConfig && !XEUtils.isObject(props.treeConfig)) {
1568
+ warnLog('vxe.error.errProp', [`table.tree-config=${props.treeConfig}`, 'table.tree-config={}'])
1544
1569
  }
1545
- if (this.exportConfig && !XEUtils.isObject(this.exportConfig)) {
1546
- warnLog('vxe.error.errProp', [`table.export-config=${this.exportConfig}`, 'table.export-config={}'])
1570
+ if (props.customConfig && !XEUtils.isObject(props.customConfig)) {
1571
+ warnLog('vxe.error.errProp', [`table.custom-config=${props.customConfig}`, 'table.custom-config={}'])
1547
1572
  }
1548
- if (this.importConfig && !XEUtils.isObject(this.importConfig)) {
1549
- warnLog('vxe.error.errProp', [`table.import-config=${this.importConfig}`, 'table.import-config={}'])
1573
+ if (props.editConfig && !XEUtils.isObject(props.editConfig)) {
1574
+ warnLog('vxe.error.errProp', [`table.edit-config=${props.editConfig}`, 'table.edit-config={}'])
1550
1575
  }
1551
- if (this.printConfig && !XEUtils.isObject(this.printConfig)) {
1552
- warnLog('vxe.error.errProp', [`table.print-config=${this.printConfig}`, 'table.print-config={}'])
1576
+ if (props.emptyRender && !XEUtils.isObject(props.emptyRender)) {
1577
+ warnLog('vxe.error.errProp', [`table.empty-render=${props.emptyRender}`, 'table.empty-render={}'])
1553
1578
  }
1554
- if (this.treeConfig && !XEUtils.isObject(this.treeConfig)) {
1555
- warnLog('vxe.error.errProp', [`table.tree-config=${this.treeConfig}`, 'table.tree-config={}'])
1579
+
1580
+ if ((rowOpts.isCurrent || highlightCurrentRow) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentRowOpts.isFollowSelected)) {
1581
+ warnLog('vxe.error.notConflictProp', ['row-config.isCurrent', 'current-row-config.isFollowSelected'])
1556
1582
  }
1557
- if (this.customConfig && !XEUtils.isObject(this.customConfig)) {
1558
- warnLog('vxe.error.errProp', [`table.custom-config=${this.customConfig}`, 'table.custom-config={}'])
1583
+ if ((columnOpts.isCurrent || highlightCurrentColumn) && props.keyboardConfig && keyboardOpts.isArrow && !XEUtils.isBoolean(currentColumnOpts.isFollowSelected)) {
1584
+ warnLog('vxe.error.notConflictProp', ['column-config.isCurrent', 'current-column-config.isFollowSelected'])
1559
1585
  }
1560
- if (this.editConfig && !XEUtils.isObject(this.editConfig)) {
1561
- warnLog('vxe.error.errProp', [`table.edit-config=${this.editConfig}`, 'table.edit-config={}'])
1586
+
1587
+ // 如果不支持虚拟滚动
1588
+ if (props.spanMethod) {
1589
+ if (virtualXOpts.enabled) {
1590
+ warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-x-config.enabled=false'])
1591
+ }
1592
+ if (virtualYOpts.enabled) {
1593
+ warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-y-config.enabled=false'])
1594
+ }
1562
1595
  }
1563
- if (this.emptyRender && !XEUtils.isObject(this.emptyRender)) {
1564
- warnLog('vxe.error.errProp', [`table.empty-render=${this.emptyRender}`, 'table.empty-render={}'])
1596
+ if (props.footerSpanMethod) {
1597
+ if (virtualXOpts.enabled) {
1598
+ warnLog('vxe.error.notConflictProp', ['footer-span-method', 'virtual-x-config.enabled=false'])
1599
+ }
1565
1600
  }
1566
1601
 
1567
1602
  // 检查是否有安装需要的模块