vxe-table 3.13.14 → 3.13.16

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 (136) hide show
  1. package/es/locale/lang/ar-EG.js +1 -0
  2. package/es/locale/lang/de-DE.js +1 -0
  3. package/es/locale/lang/en-US.js +3 -2
  4. package/es/locale/lang/es-ES.js +1 -0
  5. package/es/locale/lang/fr-FR.js +1 -0
  6. package/es/locale/lang/hu-HU.js +1 -0
  7. package/es/locale/lang/hy-AM.js +1 -0
  8. package/es/locale/lang/id-ID.js +1 -0
  9. package/es/locale/lang/it-IT.js +1 -0
  10. package/es/locale/lang/ja-JP.js +1 -0
  11. package/es/locale/lang/ko-KR.js +1 -0
  12. package/es/locale/lang/nb-NO.js +1 -0
  13. package/es/locale/lang/pt-BR.js +1 -0
  14. package/es/locale/lang/ru-RU.js +1 -0
  15. package/es/locale/lang/th-TH.js +1 -0
  16. package/es/locale/lang/ug-CN.js +1 -0
  17. package/es/locale/lang/uk-UA.js +1 -0
  18. package/es/locale/lang/vi-VN.js +1 -0
  19. package/es/locale/lang/zh-CHT.js +1 -0
  20. package/es/locale/lang/zh-CN.js +1 -0
  21. package/es/style.css +1 -1
  22. package/es/table/module/custom/panel.js +18 -16
  23. package/es/table/module/edit/mixin.js +4 -2
  24. package/es/table/src/cell.js +2 -1
  25. package/es/table/src/column.js +2 -2
  26. package/es/table/src/group.js +2 -2
  27. package/es/table/src/methods.js +22 -18
  28. package/es/table/src/table.js +151 -147
  29. package/es/toolbar/src/toolbar.js +2 -2
  30. package/es/ui/index.js +1 -1
  31. package/es/ui/src/log.js +1 -1
  32. package/lib/index.umd.js +216 -207
  33. package/lib/index.umd.min.js +1 -1
  34. package/lib/locale/lang/ar-EG.js +1 -0
  35. package/lib/locale/lang/ar-EG.min.js +1 -1
  36. package/lib/locale/lang/de-DE.js +1 -0
  37. package/lib/locale/lang/de-DE.min.js +1 -1
  38. package/lib/locale/lang/en-US.js +3 -2
  39. package/lib/locale/lang/en-US.min.js +1 -1
  40. package/lib/locale/lang/en-US.umd.js +3 -2
  41. package/lib/locale/lang/es-ES.js +1 -0
  42. package/lib/locale/lang/es-ES.min.js +1 -1
  43. package/lib/locale/lang/es-ES.umd.js +1 -0
  44. package/lib/locale/lang/fr-FR.js +1 -0
  45. package/lib/locale/lang/fr-FR.min.js +1 -1
  46. package/lib/locale/lang/hu-HU.js +1 -0
  47. package/lib/locale/lang/hu-HU.min.js +1 -1
  48. package/lib/locale/lang/hu-HU.umd.js +1 -0
  49. package/lib/locale/lang/hy-AM.js +1 -0
  50. package/lib/locale/lang/hy-AM.min.js +1 -1
  51. package/lib/locale/lang/id-ID.js +1 -0
  52. package/lib/locale/lang/id-ID.min.js +1 -1
  53. package/lib/locale/lang/it-IT.js +1 -0
  54. package/lib/locale/lang/it-IT.min.js +1 -1
  55. package/lib/locale/lang/ja-JP.js +1 -0
  56. package/lib/locale/lang/ja-JP.min.js +1 -1
  57. package/lib/locale/lang/ja-JP.umd.js +1 -0
  58. package/lib/locale/lang/ko-KR.js +1 -0
  59. package/lib/locale/lang/ko-KR.min.js +1 -1
  60. package/lib/locale/lang/ko-KR.umd.js +1 -0
  61. package/lib/locale/lang/nb-NO.js +1 -0
  62. package/lib/locale/lang/nb-NO.min.js +1 -1
  63. package/lib/locale/lang/pt-BR.js +1 -0
  64. package/lib/locale/lang/pt-BR.min.js +1 -1
  65. package/lib/locale/lang/pt-BR.umd.js +1 -0
  66. package/lib/locale/lang/ru-RU.js +1 -0
  67. package/lib/locale/lang/ru-RU.min.js +1 -1
  68. package/lib/locale/lang/ru-RU.umd.js +1 -0
  69. package/lib/locale/lang/th-TH.js +1 -0
  70. package/lib/locale/lang/th-TH.min.js +1 -1
  71. package/lib/locale/lang/ug-CN.js +1 -0
  72. package/lib/locale/lang/ug-CN.min.js +1 -1
  73. package/lib/locale/lang/uk-UA.js +1 -0
  74. package/lib/locale/lang/uk-UA.min.js +1 -1
  75. package/lib/locale/lang/uk-UA.umd.js +1 -0
  76. package/lib/locale/lang/vi-VN.js +1 -0
  77. package/lib/locale/lang/vi-VN.min.js +1 -1
  78. package/lib/locale/lang/zh-CHT.js +1 -0
  79. package/lib/locale/lang/zh-CHT.min.js +1 -1
  80. package/lib/locale/lang/zh-CHT.umd.js +1 -0
  81. package/lib/locale/lang/zh-CN.js +1 -0
  82. package/lib/locale/lang/zh-CN.min.js +1 -1
  83. package/lib/locale/lang/zh-CN.umd.js +1 -0
  84. package/lib/style.css +1 -1
  85. package/lib/table/module/custom/panel.js +18 -16
  86. package/lib/table/module/custom/panel.min.js +1 -1
  87. package/lib/table/module/edit/mixin.js +4 -2
  88. package/lib/table/module/edit/mixin.min.js +1 -1
  89. package/lib/table/src/cell.js +2 -1
  90. package/lib/table/src/cell.min.js +1 -1
  91. package/lib/table/src/column.js +3 -2
  92. package/lib/table/src/group.js +3 -2
  93. package/lib/table/src/methods.js +23 -18
  94. package/lib/table/src/methods.min.js +1 -1
  95. package/lib/table/src/table.js +160 -162
  96. package/lib/table/src/table.min.js +1 -1
  97. package/lib/toolbar/src/toolbar.js +3 -2
  98. package/lib/ui/index.js +1 -1
  99. package/lib/ui/index.min.js +1 -1
  100. package/lib/ui/src/log.js +1 -1
  101. package/lib/ui/src/log.min.js +1 -1
  102. package/package.json +2 -2
  103. package/packages/locale/lang/ar-EG.ts +1 -0
  104. package/packages/locale/lang/de-DE.ts +1 -0
  105. package/packages/locale/lang/en-US.ts +3 -2
  106. package/packages/locale/lang/es-ES.ts +1 -0
  107. package/packages/locale/lang/fr-FR.ts +1 -0
  108. package/packages/locale/lang/hu-HU.ts +1 -0
  109. package/packages/locale/lang/hy-AM.ts +1 -0
  110. package/packages/locale/lang/id-ID.ts +1 -0
  111. package/packages/locale/lang/it-IT.ts +1 -0
  112. package/packages/locale/lang/ja-JP.ts +1 -0
  113. package/packages/locale/lang/ko-KR.ts +1 -0
  114. package/packages/locale/lang/nb-NO.ts +1 -0
  115. package/packages/locale/lang/pt-BR.ts +1 -0
  116. package/packages/locale/lang/ru-RU.ts +1 -0
  117. package/packages/locale/lang/th-TH.ts +1 -0
  118. package/packages/locale/lang/ug-CN.ts +1 -0
  119. package/packages/locale/lang/uk-UA.ts +1 -0
  120. package/packages/locale/lang/vi-VN.ts +1 -0
  121. package/packages/locale/lang/zh-CHT.ts +1 -0
  122. package/packages/locale/lang/zh-CN.ts +1 -0
  123. package/packages/table/module/custom/panel.ts +22 -20
  124. package/packages/table/module/edit/mixin.ts +4 -2
  125. package/packages/table/src/cell.ts +2 -1
  126. package/packages/table/src/column.ts +2 -2
  127. package/packages/table/src/group.ts +2 -2
  128. package/packages/table/src/methods.ts +22 -18
  129. package/packages/table/src/table.ts +152 -147
  130. package/packages/toolbar/src/toolbar.ts +2 -2
  131. /package/es/{iconfont.1740640529071.ttf → iconfont.1740799948632.ttf} +0 -0
  132. /package/es/{iconfont.1740640529071.woff → iconfont.1740799948632.woff} +0 -0
  133. /package/es/{iconfont.1740640529071.woff2 → iconfont.1740799948632.woff2} +0 -0
  134. /package/lib/{iconfont.1740640529071.ttf → iconfont.1740799948632.ttf} +0 -0
  135. /package/lib/{iconfont.1740640529071.woff → iconfont.1740799948632.woff} +0 -0
  136. /package/lib/{iconfont.1740640529071.woff2 → iconfont.1740799948632.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "3.13.14",
3
+ "version": "3.13.16",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -28,7 +28,7 @@
28
28
  "style": "lib/style.css",
29
29
  "typings": "types/index.d.ts",
30
30
  "dependencies": {
31
- "vxe-pc-ui": "^3.3.102"
31
+ "vxe-pc-ui": "^3.3.104"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-transform-modules-commonjs": "^7.25.7",
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
18
18
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
19
19
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
21
22
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
22
23
  barUnableLink: '工具栏无法关联表格',
@@ -18,6 +18,7 @@ export default
18
18
  groupTag: 'Bei der Gruppierung von Spaltenüberschriften sollte „{0}“ anstelle von „{1}“ verwendet werden, was zu Fehlern führen kann',
19
19
  scrollErrProp: 'Der Parameter „{0}“ wird nicht unterstützt, wenn virtuelles Scrollen aktiviert ist',
20
20
  errConflicts: 'Parameter „{0}“ stehen im Konflikt mit „{1}“',
21
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
21
22
  unableInsert: 'Das Einfügen an der angegebenen Position ist nicht möglich. Bitte überprüfen Sie, ob die Parameter korrekt sind',
22
23
  useErr: 'Bei der Installation des Moduls „{0}“ ist möglicherweise die falsche Reihenfolge aufgetreten. Die abhängigen Module müssen vor der Tabelle installiert werden.',
23
24
  barUnableLink: 'Die Symbolleiste kann nicht mit der Tabelle verknüpft werden',
@@ -11,12 +11,13 @@ export default {
11
11
  },
12
12
  error: {
13
13
  downErr: 'Download failed',
14
- errLargeData: '当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿',
14
+ errLargeData: 'When the amount of data bound is too large, you should use "{0}"; otherwise, a stall may occur',
15
15
  groupFixed: 'If using group headers, frozen columns must be set by group',
16
16
  groupMouseRange: 'The group header and "{0}" cannot be used at the same time, which may cause an error.',
17
17
  groupTag: 'Grouping column headers should use "{0}" instead of "{1}", which may cause errors',
18
18
  scrollErrProp: 'The parameter "{0}" is not supported when virtual scrolling is enabled',
19
- errConflicts: 'Parameters "{0}" conflict with "{1}"',
19
+ errConflicts: '"{1}" is not supported when parameter "{0}", it should be "{2}", otherwise an error will occur',
20
+ notSupportProp: '"{1}" is not supported when parameter "{0}" is enabled, it should be "{2}", otherwise an error will occur',
20
21
  unableInsert: 'Unable to insert into the specified position, please check whether the parameters are correct',
21
22
  useErr: 'An error occurred while installing the "{0}" module. The order may be incorrect. The dependent modules need to be installed before Table.',
22
23
  barUnableLink: 'The toolbar cannot be associated with the table',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'El encabezado de columna de agrupación debería utilizar "{0}" en lugar de "{1}", lo que puede causar errores.',
18
18
  scrollErrProp: 'El parámetro "{0}" no es compatible cuando el desplazamiento virtual está habilitado.',
19
19
  errConflicts: 'El argumento "{0}" entra en conflicto con "{1}"',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'No se puede insertar en la ubicación especificada.',
21
22
  useErr: 'Error al instalar el módulo "{0}", posiblemente en el orden equivocado, los módulos dependientes deben ser instalados antes de la tabla.',
22
23
  barUnableLink: 'La barra de herramientas no puede asociarse con la tabla.',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
18
18
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
19
19
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
21
22
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
22
23
  barUnableLink: '工具栏无法关联表格',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'A csoportosító oszlopfejlécben a „{0}” értéket kell használni a „{1}” helyett, ami hibákat okozhat',
18
18
  scrollErrProp: 'A "{0}" paraméter nem támogatott, ha a virtuális görgetés engedélyezve van',
19
19
  errConflicts: 'A "{0}" paraméter ütközik a következővel: "{1}"',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'Nem sikerült beilleszteni a megadott pozícióba, ellenőrizze, hogy a paraméterek helyesek-e',
21
22
  useErr: 'Hiba történt a "{0}" modul telepítésekor. Lehet, hogy a sorrend helytelen. A függő modulokat a táblázat előtt kell telepíteni.',
22
23
  barUnableLink: 'Az eszköztár nem társítható a táblázathoz',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
18
18
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
19
19
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
21
22
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
22
23
  barUnableLink: '工具栏无法关联表格',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
18
18
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
19
19
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
21
22
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
22
23
  barUnableLink: '工具栏无法关联表格',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'Le intestazioni delle colonne di raggruppamento devono utilizzare "{0}" anziché "{1}", il che potrebbe causare errori',
18
18
  scrollErrProp: 'Il parametro "{0}" non è supportato quando è abilitato lo scorrimento virtuale',
19
19
  errConflicts: 'I parametri "{0}" sono in conflitto con "{1}"',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'Impossibile inserire nella posizione specificata, verificare se i parametri sono corretti',
21
22
  useErr: "Si è verificato un errore durante l'installazione del modulo \"{0}\". L'ordine potrebbe essere errato. I moduli dipendenti devono essere installati prima della Tabella.",
22
23
  barUnableLink: 'La barra degli strumenti non può essere associata alla tabella',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'ヘッダー結合は "{0}" を使ってください。 "{1}" はエラーが発生する可能性があります',
18
18
  scrollErrProp: '仮想スクロールはこのパラメータを使えません: "{0}"',
19
19
  errConflicts: 'パラメータ "{0}" と "{1}" は同時に使えません',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '指定された位置に挿入できない',
21
22
  useErr: '"{0}" モジュールをインストールする際にエラーが発生し、順序が正しくない可能性がある。依存するモジュールはTableの前にインストールする必要がある',
22
23
  barUnableLink: 'ツールバーはフォームを関連付けることができない',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '그룹화된 열 헤더는 "{0}"을 사용해야 하며, "{1}"을 사용하면 오류가 발생할 수 있습니다.',
18
18
  scrollErrProp: '가상 스크롤을 활성화한 경우, 매개변수 "{0}"은 지원되지 않습니다.',
19
19
  errConflicts: '매개변수 "{0}"과(와) "{1}"은(는) 충돌합니다.',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '지정된 위치에 삽입할 수 없습니다. 매개변수가 올바른지 확인하세요.',
21
22
  useErr: '"{0}" 모듈 설치 중 오류가 발생했습니다. 순서가 잘못되었을 수 있으며, 테이블 전에 종속 모듈이 설치되어야 합니다.',
22
23
  barUnableLink: '도구 모음과 테이블을 연결할 수 없습니다.',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
18
18
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
19
19
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
21
22
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
22
23
  barUnableLink: '工具栏无法关联表格',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'O cabeçalho da coluna de agrupamento deve usar "{0}" em vez de "{1}", o que pode causar erros.',
18
18
  scrollErrProp: 'O parâmetro "{0}" não é suportado quando a rolagem virtual está habilitada.',
19
19
  errConflicts: 'O argumento "{0}" entra em conflito com "{1}"',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'Não é possível inserir na localização especificada.',
21
22
  useErr: 'Erro ao instalar o módulo "{0}", possivelmente na ordem errada, os módulos dependentes precisam ser instalados antes da Tabela.',
22
23
  barUnableLink: 'A barra de ferramentas não pode ser associada à tabela.',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'При группировке заголовков столбцов следует использовать "{0}" вместо "{1}", что может привести к ошибкам.',
18
18
  scrollErrProp: 'Параметр "{0}" не поддерживается, если включена виртуальная прокрутка.',
19
19
  errConflicts: 'Параметры "{0}" конфликтуют с "{1}"',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'Невозможно вставить в указанную позицию, проверьте правильность параметров.',
21
22
  useErr: 'Произошла ошибка при установке модуля "{0}". Порядок может быть неправильным. Зависимые модули необходимо установить перед Табл.',
22
23
  barUnableLink: 'Панель инструментов не может быть связана с таблицей',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'การจัดกลุ่มส่วนหัวคอลัมน์ควรใช้ "{0}" แทน "{1}" ซึ่งอาจทำให้เกิดข้อผิดพลาด',
18
18
  scrollErrProp: 'ไม่สนับสนุนพารามิเตอร์ "{0}" เมื่อเปิดใช้งานการเลื่อนเสมือน',
19
19
  errConflicts: 'พารามิเตอร์ "{0}" ขัดแย้งกับ "{1}"',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'ไม่สามารถแทรกลงในตำแหน่งที่ระบุได้ โปรดตรวจสอบว่าพารามิเตอร์ถูกต้องหรือไม่',
21
22
  useErr: 'เกิดข้อผิดพลาดขณะติดตั้งโมดูล "{0}" ลำดับอาจไม่ถูกต้อง จำเป็นต้องติดตั้งโมดูลที่ต้องพึ่งพาก่อนตาราง',
22
23
  barUnableLink: 'แถบเครื่องมือไม่สามารถเชื่อมโยงกับตารางได้',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'گۇرۇپپا قۇر بىشىغا چوقۇم "{0}" نى ئىشلىتىشىڭىز كىرەك،ھەرگىزمۇ "{1}"نى ئەمەس ،بولمىسا بۇ بەلكىم خاتالىق كەلتۈرۈپ چىقىرىشى مومكىن',
18
18
  scrollErrProp: 'مەۋھۇم يۇمىلاتما ئىقىدارىنى قوزغاتقاندىن كىيىن بۇ سېپىرنى تەكشەشكە بولمايدۇ "{0}"',
19
19
  errConflicts: 'سان سىپىر "{0}" بىلەن "{1}" دە ماسلاشماسلىق ئەھۋالى مەۋجۇت',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'بىكىتىلگەن ئورۇنغا قىستۇرۇشقا بولمايدۇ، پارامېتىرىڭىزنىڭ توغرا-خاتالىقىنى تەكشۈرۈڭ ',
21
22
  useErr: 'قاچىلاش: "{0}" پارچىنى قاچىلىغاندا خاتالىق كۆرۈلدى ،بەلكىم رەت تەرتىۋىدە بىنۇرماللىق كۆرۈلگەن بولۇشى مومكىن,مۇناسىۋەتلىك پارچە چوقۇم Table دىن ئاۋۋال قاچىلىنىشى كىرەك',
22
23
  barUnableLink: 'ئەسۋاب ئىستونى جەدىۋەل بىلەن ئۇلىنىشقا ئامالسىز',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: 'Груповані заголовки повинні використовувати "{0}", а не "{1}", це може спричинити помилки',
18
18
  scrollErrProp: 'Параметр "{0}" не підтримується після включення віртуального скролінгу',
19
19
  errConflicts: 'Параметри "{0}" та "{1}" конфліктують',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: 'Неможливо вставити в задане місце, перевірте правильність параметрів',
21
22
  useErr: 'Сталася помилка під час встановлення модуля "{0}", можливо, порядок неправильний, залежні модулі повинні бути встановлені до таблиці',
22
23
  barUnableLink: "Панель інструментів не може бути пов'язана з таблицею",
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
18
18
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
19
19
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
21
22
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
22
23
  barUnableLink: '工具栏无法关联表格',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',
18
18
  scrollErrProp: '啟用虛擬滾動後不支援此參數 "{0}"',
19
19
  errConflicts: '參數 "{0}" 與 "{1}" 有衝突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '無法插入指定位置,請檢查參數是否正確',
21
22
  useErr: '安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在 Table 之前安裝',
22
23
  barUnableLink: '工具列無法關聯表格',
@@ -17,6 +17,7 @@ export default {
17
17
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
18
18
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
19
19
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
20
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
20
21
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
21
22
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
22
23
  barUnableLink: '工具栏无法关联表格',
@@ -5,7 +5,7 @@ import { getTpImg, addClass, removeClass } from '../../../ui/src/dom'
5
5
  import { errLog } from '../../../ui/src/log'
6
6
  import XEUtils from 'xe-utils'
7
7
 
8
- import type { VxeTableDefines } from '../../../../types'
8
+ import type { VxeTableDefines, VxeTableConstructor, VxeTablePrivateMethods, TableReactData, TableInternalData } from '../../../../types'
9
9
  import type { VxeModalComponent, VxeDrawerComponent, VxeButtonComponent, VxeRadioGroupComponent, VxeInputComponent } from 'vxe-pc-ui'
10
10
 
11
11
  const { getI18n, getIcon, renderEmptyElement } = VxeUI
@@ -1083,10 +1083,10 @@ export default {
1083
1083
  }
1084
1084
  },
1085
1085
  sortDragendEvent (evnt: any) {
1086
- const $xeTable = this.$xetable
1086
+ const $xeTable = this.$xetable as VxeTableConstructor & VxeTablePrivateMethods
1087
1087
  const tableProps = $xeTable
1088
- const reactData = $xeTable
1089
- const internalData = $xeTable
1088
+ const reactData = $xeTable as unknown as TableReactData
1089
+ const internalData = $xeTable as unknown as TableInternalData
1090
1090
 
1091
1091
  const { dragCol, prevDragPos, prevDragCol, prevDragToChild } = this
1092
1092
 
@@ -1102,13 +1102,14 @@ export default {
1102
1102
  if (prevDragCol && dragCol) {
1103
1103
  // 判断是否有拖动
1104
1104
  if (prevDragCol !== dragCol) {
1105
- const oldColumn: VxeTableDefines.ColumnInfo = dragCol
1105
+ const dragColumn: VxeTableDefines.ColumnInfo = dragCol
1106
1106
  const newColumn: VxeTableDefines.ColumnInfo = prevDragCol
1107
1107
  Promise.resolve(
1108
1108
  dragEndMethod
1109
1109
  ? dragEndMethod({
1110
- oldColumn,
1110
+ oldColumn: dragColumn,
1111
1111
  newColumn,
1112
+ dragColumn,
1112
1113
  dragPos: prevDragPos as any,
1113
1114
  dragToChild: !!prevDragToChild,
1114
1115
  offsetIndex: dragOffsetIndex
@@ -1123,7 +1124,7 @@ export default {
1123
1124
  let nafIndex = -1
1124
1125
 
1125
1126
  const oldAllMaps: Record<string, any> = {}
1126
- XEUtils.eachTree([oldColumn], column => {
1127
+ XEUtils.eachTree([dragColumn], column => {
1127
1128
  oldAllMaps[column.id] = column
1128
1129
  })
1129
1130
 
@@ -1131,7 +1132,7 @@ export default {
1131
1132
 
1132
1133
  // 只有实时拖拽支持跨层级
1133
1134
  if (immediate) {
1134
- if (oldColumn.parentId && newColumn.parentId) {
1135
+ if (dragColumn.parentId && newColumn.parentId) {
1135
1136
  // 子到子
1136
1137
 
1137
1138
  if (!isCrossDrag) {
@@ -1149,7 +1150,7 @@ export default {
1149
1150
  return
1150
1151
  }
1151
1152
  }
1152
- } else if (oldColumn.parentId) {
1153
+ } else if (dragColumn.parentId) {
1153
1154
  // 子到根
1154
1155
 
1155
1156
  if (!isCrossDrag) {
@@ -1177,18 +1178,18 @@ export default {
1177
1178
  // 根到根
1178
1179
  }
1179
1180
 
1180
- const oldewMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], item => item.id === oldColumn.id)
1181
+ const oldewMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], item => item.id === dragColumn.id)
1181
1182
 
1182
1183
  // 改变层级
1183
1184
  if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
1184
1185
  if (oldewMatchRest) {
1185
1186
  const { items: oCols, index: oIndex } = oldewMatchRest
1186
- const childList = oldColumn.children || []
1187
+ const childList = dragColumn.children || []
1187
1188
  childList.forEach(column => {
1188
- column.parentId = oldColumn.parentId
1189
+ column.parentId = dragColumn.parentId
1189
1190
  })
1190
1191
  oCols.splice(oIndex, 1, ...childList)
1191
- oldColumn.children = []
1192
+ dragColumn.children = []
1192
1193
  }
1193
1194
  } else {
1194
1195
  if (oldewMatchRest) {
@@ -1205,11 +1206,11 @@ export default {
1205
1206
  const { items: nCols, index: nIndex, parent: nParent } = newMatchRest
1206
1207
  // 转子级
1207
1208
  if ((isCrossDrag && isToChildDrag) && prevDragToChild) {
1208
- oldColumn.parentId = newColumn.id
1209
- newColumn.children = (newColumn.children || []).concat([oldColumn])
1209
+ dragColumn.parentId = newColumn.id
1210
+ newColumn.children = (newColumn.children || []).concat([dragColumn])
1210
1211
  } else {
1211
- oldColumn.parentId = newColumn.parentId
1212
- nCols.splice(nIndex + dragOffsetIndex, 0, oldColumn)
1212
+ dragColumn.parentId = newColumn.parentId
1213
+ nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn)
1213
1214
  }
1214
1215
  if (!nParent) {
1215
1216
  nafIndex = nIndex
@@ -1223,11 +1224,11 @@ export default {
1223
1224
  }
1224
1225
  })
1225
1226
  } else {
1226
- oafIndex = XEUtils.findIndexOf(customColumnList, item => item.id === oldColumn.id)
1227
+ oafIndex = XEUtils.findIndexOf(customColumnList, item => item.id === dragColumn.id)
1227
1228
  customColumnList.splice(oafIndex, 1)
1228
1229
 
1229
1230
  nafIndex = XEUtils.findIndexOf(customColumnList, item => item.id === newColumn.id)
1230
- customColumnList.splice(nafIndex + dragOffsetIndex, 0, oldColumn)
1231
+ customColumnList.splice(nafIndex + dragOffsetIndex, 0, dragColumn)
1231
1232
  }
1232
1233
 
1233
1234
  reactData.isDragColMove = true
@@ -1242,8 +1243,9 @@ export default {
1242
1243
  }
1243
1244
 
1244
1245
  $xeTable.dispatchEvent('column-dragend', {
1245
- oldColumn,
1246
+ oldColumn: dragColumn,
1246
1247
  newColumn,
1248
+ dragColumn,
1247
1249
  dragPos: prevDragPos,
1248
1250
  offsetIndex: dragOffsetIndex,
1249
1251
  _index: {
@@ -278,7 +278,7 @@ function handleInsertChildRowAt ($xeTable: VxeTableConstructor, records: any, pa
278
278
  }
279
279
  return handleInsertRowAt($xeTable, records.map((item: any) => Object.assign({}, item, { [parentField]: parentRow[rowField] })), targetRow, isInsertNextRow)
280
280
  } else {
281
- errLog('vxe.error.errProp', ['tree-config.treeConfig=false', 'tree-config.treeConfig=true'])
281
+ errLog('vxe.error.errProp', ['tree-config.transform=false', 'tree-config.transform=true'])
282
282
  }
283
283
  return Promise.resolve({ row: null, rows: [] })
284
284
  }
@@ -863,7 +863,9 @@ export default {
863
863
  let isPos = false
864
864
  if (fieldOrColumn) {
865
865
  isPos = true
866
- column = XEUtils.isString(fieldOrColumn) ? this.getColumnByField(fieldOrColumn) : fieldOrColumn
866
+ if (fieldOrColumn !== true) {
867
+ column = XEUtils.isString(fieldOrColumn) ? this.getColumnByField(fieldOrColumn) : fieldOrColumn
868
+ }
867
869
  }
868
870
  return handleEditCell($xeTable, row, column, isPos)
869
871
  },
@@ -89,12 +89,13 @@ function renderCellBaseVNs (h: CreateElement, params: VxeTableDefines.CellRender
89
89
  const { treeConfig, dragConfig } = tableProps
90
90
  const rowOpts = $table.computeRowOpts
91
91
  const rowDragOpts = $table.computeRowDragOpts
92
+ const treeOpts = $table.computeTreeOpts
92
93
  const { showIcon, isPeerDrag, isCrossDrag, visibleMethod } = rowDragOpts
93
94
  const rVisibleMethod = visibleMethod || (dragConfig ? dragConfig.rowVisibleMethod : null)
94
95
  const vns: any[] = XEUtils.isArray(content) ? content : [content]
95
96
  if (dragSort && rowOpts.drag && ((showIcon || (dragConfig ? dragConfig.showRowIcon : false)) && (!rVisibleMethod || rVisibleMethod(params)))) {
96
97
  if (treeConfig) {
97
- if (isPeerDrag || isCrossDrag || !level) {
98
+ if (treeOpts.transform && (isPeerDrag || isCrossDrag || !level)) {
98
99
  vns.unshift(
99
100
  renderCellDragIcon(h, params)
100
101
  )
@@ -148,7 +148,7 @@ Object.keys(columnProps).forEach(name => {
148
148
  }
149
149
  })
150
150
 
151
- export default defineVxeComponent({
151
+ export default /* define-vxe-component start */ defineVxeComponent({
152
152
  name: 'VxeColumn',
153
153
  props: columnProps,
154
154
  provide () {
@@ -180,4 +180,4 @@ export default defineVxeComponent({
180
180
  return h('div', this.$slots.default)
181
181
  },
182
182
  methods: Cell
183
- })
183
+ }) /* define-vxe-component end */
@@ -3,7 +3,7 @@ import { defineVxeComponent } from '../../ui/src/comp'
3
3
  import { assembleColumn, destroyColumn } from './util'
4
4
  import { columnProps, columnWatch } from './column'
5
5
 
6
- export default defineVxeComponent({
6
+ export default /* define-vxe-component start */ defineVxeComponent({
7
7
  name: 'VxeColgroup',
8
8
  props: columnProps,
9
9
  provide () {
@@ -43,4 +43,4 @@ export default defineVxeComponent({
43
43
  return h('div', this.$slots.default)
44
44
  },
45
45
  methods: Cell
46
- })
46
+ }) /* define-vxe-component end */
@@ -6498,6 +6498,7 @@ const Methods = {
6498
6498
  const dragParams = {
6499
6499
  oldRow: dragRow,
6500
6500
  newRow: prevDragRow,
6501
+ dragRow,
6501
6502
  dragPos: prevDragPos as 'top' | 'bottom',
6502
6503
  dragToChild: !!prevDragToChild,
6503
6504
  offsetIndex: dragOffsetIndex as 0 | 1
@@ -6648,6 +6649,7 @@ const Methods = {
6648
6649
  $xeTable.dispatchEvent('row-dragend', {
6649
6650
  oldRow: dragRow,
6650
6651
  newRow: prevDragRow,
6652
+ dragRow,
6651
6653
  dragPos: prevDragPos as any,
6652
6654
  dragToChild: isDragToChildFlag,
6653
6655
  offsetIndex: dragOffsetIndex,
@@ -6813,11 +6815,12 @@ const Methods = {
6813
6815
  if (prevDragCol && dragCol) {
6814
6816
  // 判断是否有拖动
6815
6817
  if (prevDragCol !== dragCol) {
6816
- const oldColumn = dragCol
6818
+ const dragColumn = dragCol
6817
6819
  const newColumn = prevDragCol
6818
6820
  const dragParams = {
6819
- oldColumn,
6821
+ oldColumn: dragColumn,
6820
6822
  newColumn,
6823
+ dragColumn,
6821
6824
  dragPos: prevDragPos as 'left' | 'right',
6822
6825
  dragToChild: !!prevDragToChild,
6823
6826
  offsetIndex: dragOffsetIndex as 0 | 1
@@ -6832,17 +6835,17 @@ const Methods = {
6832
6835
  let nafIndex = -1
6833
6836
 
6834
6837
  const oldAllMaps: Record<string, any> = {}
6835
- XEUtils.eachTree([oldColumn], column => {
6838
+ XEUtils.eachTree([dragColumn], column => {
6836
6839
  oldAllMaps[column.id] = column
6837
6840
  })
6838
6841
 
6839
6842
  let isSelfToChildStatus = false
6840
6843
 
6841
- if (oldColumn.parentId && newColumn.parentId) {
6844
+ if (dragColumn.parentId && newColumn.parentId) {
6842
6845
  // 子到子
6843
6846
 
6844
6847
  if (isPeerDrag && !isCrossDrag) {
6845
- if (oldColumn.parentId !== newColumn.parentId) {
6848
+ if (dragColumn.parentId !== newColumn.parentId) {
6846
6849
  // 非同级
6847
6850
  return
6848
6851
  }
@@ -6864,7 +6867,7 @@ const Methods = {
6864
6867
  }
6865
6868
  }
6866
6869
  }
6867
- } else if (oldColumn.parentId) {
6870
+ } else if (dragColumn.parentId) {
6868
6871
  // 子到根
6869
6872
 
6870
6873
  if (!isCrossDrag) {
@@ -6892,18 +6895,18 @@ const Methods = {
6892
6895
  // 根到根
6893
6896
  }
6894
6897
 
6895
- const oldewMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], item => item.id === oldColumn.id)
6898
+ const oldewMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], item => item.id === dragColumn.id)
6896
6899
 
6897
6900
  // 改变层级
6898
6901
  if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
6899
6902
  if (oldewMatchRest) {
6900
6903
  const { items: oCols, index: oIndex } = oldewMatchRest
6901
- const childList = oldColumn.children || []
6904
+ const childList = dragColumn.children || []
6902
6905
  childList.forEach(column => {
6903
- column.parentId = oldColumn.parentId
6906
+ column.parentId = dragColumn.parentId
6904
6907
  })
6905
6908
  oCols.splice(oIndex, 1, ...childList)
6906
- oldColumn.children = []
6909
+ dragColumn.children = []
6907
6910
  }
6908
6911
  } else {
6909
6912
  if (oldewMatchRest) {
@@ -6920,11 +6923,11 @@ const Methods = {
6920
6923
  const { items: nCols, index: nIndex, parent: nParent } = newMatchRest
6921
6924
  // 转子级
6922
6925
  if ((isCrossDrag && isToChildDrag) && isDragToChildFlag) {
6923
- oldColumn.parentId = newColumn.id
6924
- newColumn.children = (newColumn.children || []).concat([oldColumn])
6926
+ dragColumn.parentId = newColumn.id
6927
+ newColumn.children = (newColumn.children || []).concat([dragColumn])
6925
6928
  } else {
6926
- oldColumn.parentId = newColumn.parentId
6927
- nCols.splice(nIndex + dragOffsetIndex, 0, oldColumn)
6929
+ dragColumn.parentId = newColumn.parentId
6930
+ nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn)
6928
6931
  }
6929
6932
  if (!nParent) {
6930
6933
  nafIndex = nIndex
@@ -6950,8 +6953,9 @@ const Methods = {
6950
6953
  }
6951
6954
 
6952
6955
  $xeTable.dispatchEvent('column-dragend', {
6953
- oldColumn,
6956
+ oldColumn: dragColumn,
6954
6957
  newColumn,
6958
+ dragColumn,
6955
6959
  dragPos: prevDragPos,
6956
6960
  dragToChild: isDragToChildFlag,
6957
6961
  offsetIndex: dragOffsetIndex,
@@ -8327,7 +8331,7 @@ const Methods = {
8327
8331
  const reactData = $xeTable as unknown as TableReactData
8328
8332
  const internalData = $xeTable as unknown as TableInternalData
8329
8333
 
8330
- const { target, deltaY, deltaX } = evnt
8334
+ const { target, deltaY, deltaX, shiftKey } = evnt
8331
8335
  if (target && /^textarea$/i.test((target as HTMLElement).tagName)) {
8332
8336
  return
8333
8337
  }
@@ -8361,8 +8365,8 @@ const Methods = {
8361
8365
  }
8362
8366
 
8363
8367
  const wheelSpeed = getWheelSpeed(reactData.lastScrollTime)
8364
- const deltaTop = Math.ceil(deltaY * wheelSpeed)
8365
- const deltaLeft = Math.ceil(deltaX * wheelSpeed)
8368
+ const deltaTop = Math.ceil((shiftKey ? deltaX : deltaY) * wheelSpeed)
8369
+ const deltaLeft = Math.ceil((shiftKey ? deltaY : deltaX) * wheelSpeed)
8366
8370
 
8367
8371
  const isTopWheel = deltaTop < 0
8368
8372
  const currScrollTop = bodyScrollElem.scrollTop