vxe-table 4.16.0-beta.6 → 4.16.0-beta.8

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 (154) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/ar-EG.js +30 -0
  4. package/es/locale/lang/de-DE.js +30 -0
  5. package/es/locale/lang/en-US.js +30 -0
  6. package/es/locale/lang/es-ES.js +30 -0
  7. package/es/locale/lang/fr-FR.js +30 -0
  8. package/es/locale/lang/hu-HU.js +30 -0
  9. package/es/locale/lang/hy-AM.js +30 -0
  10. package/es/locale/lang/id-ID.js +30 -0
  11. package/es/locale/lang/it-IT.js +30 -0
  12. package/es/locale/lang/ja-JP.js +30 -0
  13. package/es/locale/lang/ko-KR.js +30 -0
  14. package/es/locale/lang/ms-MY.js +30 -0
  15. package/es/locale/lang/nb-NO.js +30 -0
  16. package/es/locale/lang/pt-BR.js +30 -0
  17. package/es/locale/lang/ru-RU.js +30 -0
  18. package/es/locale/lang/th-TH.js +30 -0
  19. package/es/locale/lang/ug-CN.js +30 -0
  20. package/es/locale/lang/uk-UA.js +30 -0
  21. package/es/locale/lang/uz-UZ.js +30 -0
  22. package/es/locale/lang/vi-VN.js +30 -0
  23. package/es/locale/lang/zh-CHT.js +30 -0
  24. package/es/locale/lang/zh-CN.js +32 -0
  25. package/es/style.css +1 -1
  26. package/es/style.min.css +1 -1
  27. package/es/table/module/custom/panel.js +119 -125
  28. package/es/table/src/anime.js +4 -4
  29. package/es/table/src/table.js +147 -71
  30. package/es/table/style.css +178 -163
  31. package/es/table/style.min.css +1 -1
  32. package/es/ui/index.js +1 -1
  33. package/es/ui/src/log.js +1 -1
  34. package/es/vxe-table/style.css +178 -163
  35. package/es/vxe-table/style.min.css +1 -1
  36. package/lib/index.css +1 -1
  37. package/lib/index.min.css +1 -1
  38. package/lib/index.umd.js +64 -37
  39. package/lib/index.umd.min.js +1 -1
  40. package/lib/locale/lang/ar-EG.js +30 -0
  41. package/lib/locale/lang/ar-EG.min.js +1 -1
  42. package/lib/locale/lang/ar-EG.umd.js +30 -0
  43. package/lib/locale/lang/de-DE.js +30 -0
  44. package/lib/locale/lang/de-DE.min.js +1 -1
  45. package/lib/locale/lang/de-DE.umd.js +30 -0
  46. package/lib/locale/lang/en-US.js +30 -0
  47. package/lib/locale/lang/en-US.min.js +1 -1
  48. package/lib/locale/lang/en-US.umd.js +30 -0
  49. package/lib/locale/lang/es-ES.js +30 -0
  50. package/lib/locale/lang/es-ES.min.js +1 -1
  51. package/lib/locale/lang/es-ES.umd.js +30 -0
  52. package/lib/locale/lang/fr-FR.js +30 -0
  53. package/lib/locale/lang/fr-FR.min.js +1 -1
  54. package/lib/locale/lang/fr-FR.umd.js +30 -0
  55. package/lib/locale/lang/hu-HU.js +30 -0
  56. package/lib/locale/lang/hu-HU.min.js +1 -1
  57. package/lib/locale/lang/hu-HU.umd.js +30 -0
  58. package/lib/locale/lang/hy-AM.js +30 -0
  59. package/lib/locale/lang/hy-AM.min.js +1 -1
  60. package/lib/locale/lang/hy-AM.umd.js +30 -0
  61. package/lib/locale/lang/id-ID.js +30 -0
  62. package/lib/locale/lang/id-ID.min.js +1 -1
  63. package/lib/locale/lang/id-ID.umd.js +30 -0
  64. package/lib/locale/lang/it-IT.js +30 -0
  65. package/lib/locale/lang/it-IT.min.js +1 -1
  66. package/lib/locale/lang/it-IT.umd.js +30 -0
  67. package/lib/locale/lang/ja-JP.js +30 -0
  68. package/lib/locale/lang/ja-JP.min.js +1 -1
  69. package/lib/locale/lang/ja-JP.umd.js +30 -0
  70. package/lib/locale/lang/ko-KR.js +30 -0
  71. package/lib/locale/lang/ko-KR.min.js +1 -1
  72. package/lib/locale/lang/ko-KR.umd.js +30 -0
  73. package/lib/locale/lang/ms-MY.js +30 -0
  74. package/lib/locale/lang/ms-MY.min.js +1 -1
  75. package/lib/locale/lang/ms-MY.umd.js +30 -0
  76. package/lib/locale/lang/nb-NO.js +30 -0
  77. package/lib/locale/lang/nb-NO.min.js +1 -1
  78. package/lib/locale/lang/nb-NO.umd.js +30 -0
  79. package/lib/locale/lang/pt-BR.js +30 -0
  80. package/lib/locale/lang/pt-BR.min.js +1 -1
  81. package/lib/locale/lang/pt-BR.umd.js +30 -0
  82. package/lib/locale/lang/ru-RU.js +30 -0
  83. package/lib/locale/lang/ru-RU.min.js +1 -1
  84. package/lib/locale/lang/ru-RU.umd.js +30 -0
  85. package/lib/locale/lang/th-TH.js +30 -0
  86. package/lib/locale/lang/th-TH.min.js +1 -1
  87. package/lib/locale/lang/th-TH.umd.js +30 -0
  88. package/lib/locale/lang/ug-CN.js +30 -0
  89. package/lib/locale/lang/ug-CN.min.js +1 -1
  90. package/lib/locale/lang/ug-CN.umd.js +30 -0
  91. package/lib/locale/lang/uk-UA.js +30 -0
  92. package/lib/locale/lang/uk-UA.min.js +1 -1
  93. package/lib/locale/lang/uk-UA.umd.js +30 -0
  94. package/lib/locale/lang/uz-UZ.js +30 -0
  95. package/lib/locale/lang/uz-UZ.min.js +1 -1
  96. package/lib/locale/lang/uz-UZ.umd.js +30 -0
  97. package/lib/locale/lang/vi-VN.js +30 -0
  98. package/lib/locale/lang/vi-VN.min.js +1 -1
  99. package/lib/locale/lang/vi-VN.umd.js +30 -0
  100. package/lib/locale/lang/zh-CHT.js +30 -0
  101. package/lib/locale/lang/zh-CHT.min.js +1 -1
  102. package/lib/locale/lang/zh-CHT.umd.js +30 -0
  103. package/lib/locale/lang/zh-CN.js +32 -0
  104. package/lib/locale/lang/zh-CN.min.js +1 -1
  105. package/lib/locale/lang/zh-CN.umd.js +32 -0
  106. package/lib/style.css +1 -1
  107. package/lib/style.min.css +1 -1
  108. package/lib/table/module/custom/panel.js +2 -8
  109. package/lib/table/module/custom/panel.min.js +1 -1
  110. package/lib/table/src/anime.js +4 -4
  111. package/lib/table/src/anime.min.js +1 -1
  112. package/lib/table/src/table.js +23 -23
  113. package/lib/table/src/table.min.js +1 -1
  114. package/lib/table/style/style.css +178 -163
  115. package/lib/table/style/style.min.css +1 -1
  116. package/lib/ui/index.js +1 -1
  117. package/lib/ui/index.min.js +1 -1
  118. package/lib/ui/src/log.js +1 -1
  119. package/lib/ui/src/log.min.js +1 -1
  120. package/lib/vxe-table/style/style.css +178 -163
  121. package/lib/vxe-table/style/style.min.css +1 -1
  122. package/package.json +3 -2
  123. package/packages/locale/lang/ar-EG.ts +30 -0
  124. package/packages/locale/lang/de-DE.ts +30 -0
  125. package/packages/locale/lang/en-US.ts +30 -0
  126. package/packages/locale/lang/es-ES.ts +30 -0
  127. package/packages/locale/lang/fr-FR.ts +30 -0
  128. package/packages/locale/lang/hu-HU.ts +30 -0
  129. package/packages/locale/lang/hy-AM.ts +30 -0
  130. package/packages/locale/lang/id-ID.ts +30 -0
  131. package/packages/locale/lang/it-IT.ts +30 -0
  132. package/packages/locale/lang/ja-JP.ts +30 -0
  133. package/packages/locale/lang/ko-KR.ts +30 -0
  134. package/packages/locale/lang/ms-MY.ts +30 -0
  135. package/packages/locale/lang/nb-NO.ts +30 -0
  136. package/packages/locale/lang/pt-BR.ts +30 -0
  137. package/packages/locale/lang/ru-RU.ts +30 -0
  138. package/packages/locale/lang/th-TH.ts +30 -0
  139. package/packages/locale/lang/ug-CN.ts +30 -0
  140. package/packages/locale/lang/uk-UA.ts +30 -0
  141. package/packages/locale/lang/uz-UZ.ts +30 -0
  142. package/packages/locale/lang/vi-VN.ts +30 -0
  143. package/packages/locale/lang/zh-CHT.ts +30 -0
  144. package/packages/locale/lang/zh-CN.ts +32 -0
  145. package/packages/table/module/custom/panel.ts +128 -134
  146. package/packages/table/src/anime.ts +4 -4
  147. package/packages/table/src/table.ts +150 -72
  148. package/styles/components/table.scss +166 -165
  149. /package/es/{iconfont.1755597300201.ttf → iconfont.1755775667994.ttf} +0 -0
  150. /package/es/{iconfont.1755597300201.woff → iconfont.1755775667994.woff} +0 -0
  151. /package/es/{iconfont.1755597300201.woff2 → iconfont.1755775667994.woff2} +0 -0
  152. /package/lib/{iconfont.1755597300201.ttf → iconfont.1755775667994.ttf} +0 -0
  153. /package/lib/{iconfont.1755597300201.woff → iconfont.1755775667994.woff} +0 -0
  154. /package/lib/{iconfont.1755597300201.woff2 → iconfont.1755775667994.woff2} +0 -0
@@ -44,6 +44,7 @@ export default {
44
44
  coverProp: '"{0}" نىڭ پارامېتىرى "{1}" قايتىلانما قىممەت بىرىلدى، بەلكىم خاتالىق كەلتۈرۈپ چىقىرىشى مومكىن',
45
45
  uniField: 'سۆز بولىكى "{0}" قايتىلانما قىممەت بىرىلدى، بۇ بەلكىم خاتالىق كەلتۈرۈپ چىقىرىشى مومكىن',
46
46
  repeatKey: 'ئاچقۇچلىق پارامېتىر قايتىلانما {0}="{1}" بۇ بەلكىم خاتالىق كەلتۈرۈپ چىقىرىشى مومكىن',
47
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
47
48
  delFunc: 'ئۇسۇل "{0}" تاشلىۋىتىلدى،تەۋسىيەلىك تولۇقلانما ئۇسۇل "{1}"',
48
49
  delProp: 'پارامېتىر "{0}" تاشلىۋىتىلدى،تەۋسىيەلىك پارامېتىر "{1}"',
49
50
  delEvent: 'ھەرىكەت "{0}" تاشلىۋىتىلدى،تەۋسىيەلىك ھەرىكەت "{1}"',
@@ -536,6 +537,35 @@ export default {
536
537
  ss: 'سېكۇنت'
537
538
  }
538
539
  },
540
+ gantt: {
541
+ tFullFormat: {
542
+ year: '{yy}年',
543
+ quarter: '{yy}年第{q}季度',
544
+ month: '{yy}年{M}月',
545
+ week: '{yy}年第{W}周',
546
+ day: '{yy}年{M}月{d}日',
547
+ hour: '{yy}年 {M}月{d}日{H}时',
548
+ minute: '{yy}年{M}月{d}日{H}时{m}分'
549
+ },
550
+ tSimpleFormat: {
551
+ year: '{yy}年',
552
+ quarter: '{q}季度',
553
+ month: '{M}月',
554
+ week: '{W}周',
555
+ day: '{d}',
556
+ hour: '{H}时',
557
+ minute: '{m}分'
558
+ },
559
+ dayss: {
560
+ w0: '日',
561
+ w1: '一',
562
+ w2: '二',
563
+ w3: '三',
564
+ w4: '四',
565
+ w5: '五',
566
+ w6: '六'
567
+ }
568
+ },
539
569
  plugins: {
540
570
  extendCellArea: {
541
571
  area: {
@@ -44,6 +44,7 @@ export default {
44
44
  coverProp: 'Параметр "{1}" "{0}" неодноразово визначається, що може спричинити помилку',
45
45
  uniField: 'Назва поля "{0}" неодноразово визначається, що може спричинити помилку',
46
46
  repeatKey: 'Повторіть первинний ключ {0} = "{1}", що може спричинити помилку',
47
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
47
48
  delFunc: 'Метод "{0}" застарілий, будь ласка, використовуйте "{1}"',
48
49
  delProp: 'Параметр "{0}" застарілий, будь ласка, використовуйте "{1}"',
49
50
  delEvent: 'Подія "{0}" застаріла, будь ласка, використовуйте "{1}"',
@@ -536,6 +537,35 @@ export default {
536
537
  ss: 'Другий'
537
538
  }
538
539
  },
540
+ gantt: {
541
+ tFullFormat: {
542
+ year: '{yy}年',
543
+ quarter: '{yy}年第{q}季度',
544
+ month: '{yy}年{M}月',
545
+ week: '{yy}年第{W}周',
546
+ day: '{yy}年{M}月{d}日',
547
+ hour: '{yy}年 {M}月{d}日{H}时',
548
+ minute: '{yy}年{M}月{d}日{H}时{m}分'
549
+ },
550
+ tSimpleFormat: {
551
+ year: '{yy}年',
552
+ quarter: '{q}季度',
553
+ month: '{M}月',
554
+ week: '{W}周',
555
+ day: '{d}',
556
+ hour: '{H}时',
557
+ minute: '{m}分'
558
+ },
559
+ dayss: {
560
+ w0: '日',
561
+ w1: '一',
562
+ w2: '二',
563
+ w3: '三',
564
+ w4: '四',
565
+ w5: '五',
566
+ w6: '六'
567
+ }
568
+ },
539
569
  plugins: {
540
570
  extendCellArea: {
541
571
  area: {
@@ -44,6 +44,7 @@ export default {
44
44
  coverProp: '"{1}" parametr "{0}" parametr bir necha bor aniqlanadi, bu xatoga olib kelishi mumkin',
45
45
  uniField: '"{0}" dagi "{0}" da bir necha bor aniqlanadi, bu xatoga olib kelishi mumkin',
46
46
  repeatKey: 'Birlamchi kalit {0} = "{1}" ni takrorlash mumkin, bu xatoga olib kelishi mumkin',
47
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
47
48
  delFunc: '"{0}" himoyalangan, iltimos "{1}" dan foydalaning',
48
49
  delProp: '"{0}" parametri bekor qilinadi, "{1}" dan foydalaning',
49
50
  delEvent: '"{0}" bekor qilinadi, iltimos "{1}" dan foydalaning',
@@ -536,6 +537,35 @@ export default {
536
537
  ss: 'Ikkinchi'
537
538
  }
538
539
  },
540
+ gantt: {
541
+ tFullFormat: {
542
+ year: '{yy}年',
543
+ quarter: '{yy}年第{q}季度',
544
+ month: '{yy}年{M}月',
545
+ week: '{yy}年第{W}周',
546
+ day: '{yy}年{M}月{d}日',
547
+ hour: '{yy}年 {M}月{d}日{H}时',
548
+ minute: '{yy}年{M}月{d}日{H}时{m}分'
549
+ },
550
+ tSimpleFormat: {
551
+ year: '{yy}年',
552
+ quarter: '{q}季度',
553
+ month: '{M}月',
554
+ week: '{W}周',
555
+ day: '{d}',
556
+ hour: '{H}时',
557
+ minute: '{m}分'
558
+ },
559
+ dayss: {
560
+ w0: '日',
561
+ w1: '一',
562
+ w2: '二',
563
+ w3: '三',
564
+ w4: '四',
565
+ w5: '五',
566
+ w6: '六'
567
+ }
568
+ },
539
569
  plugins: {
540
570
  extendCellArea: {
541
571
  area: {
@@ -44,6 +44,7 @@ export default {
44
44
  coverProp: 'Tham số "{1}" của "{0}" được xác định nhiều lần, có thể gây ra lỗi',
45
45
  uniField: 'Tên trường "{0}" được xác định nhiều lần, có thể gây ra lỗi',
46
46
  repeatKey: 'Lặp lại khóa chính {0} = "{1}", có thể gây ra lỗi',
47
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
47
48
  delFunc: 'Phương thức "{0}" không được dùng nữa, vui lòng sử dụng "{1}"',
48
49
  delProp: 'Tham số "{0}" không được dùng, vui lòng sử dụng "{1}"',
49
50
  delEvent: 'Sự kiện "{0}" được không dùng nữa, vui lòng sử dụng "{1}"',
@@ -536,6 +537,35 @@ export default {
536
537
  ss: 'Thứ hai'
537
538
  }
538
539
  },
540
+ gantt: {
541
+ tFullFormat: {
542
+ year: '{yy}年',
543
+ quarter: '{yy}年第{q}季度',
544
+ month: '{yy}年{M}月',
545
+ week: '{yy}年第{W}周',
546
+ day: '{yy}年{M}月{d}日',
547
+ hour: '{yy}年 {M}月{d}日{H}时',
548
+ minute: '{yy}年{M}月{d}日{H}时{m}分'
549
+ },
550
+ tSimpleFormat: {
551
+ year: '{yy}年',
552
+ quarter: '{q}季度',
553
+ month: '{M}月',
554
+ week: '{W}周',
555
+ day: '{d}',
556
+ hour: '{H}时',
557
+ minute: '{m}分'
558
+ },
559
+ dayss: {
560
+ w0: '日',
561
+ w1: '一',
562
+ w2: '二',
563
+ w3: '三',
564
+ w4: '四',
565
+ w5: '五',
566
+ w6: '六'
567
+ }
568
+ },
539
569
  plugins: {
540
570
  extendCellArea: {
541
571
  area: {
@@ -44,6 +44,7 @@ export default {
44
44
  coverProp: '"{0}" 的參數 "{1}" 重複定義,這可能會出現錯誤',
45
45
  uniField: '字段名 "{0}" 重複定義,這可能會出現錯誤',
46
46
  repeatKey: '主鍵重複 {0}="{1}",這可能會出現錯誤',
47
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
47
48
  delFunc: '方法 "{0}" 已廢棄,請使用 "{1}"',
48
49
  delProp: '參數 "{0}" 已廢棄,請使用 "{1}"',
49
50
  delEvent: '事件 "{0}" 已廢棄,請使用 "{1}"',
@@ -536,6 +537,35 @@ export default {
536
537
  ss: '秒'
537
538
  }
538
539
  },
540
+ gantt: {
541
+ tFullFormat: {
542
+ year: '{yy}年',
543
+ quarter: '{yy}年第{q}季度',
544
+ month: '{yy}年{M}月',
545
+ week: '{yy}年第{W}周',
546
+ day: '{yy}年{M}月{d}日',
547
+ hour: '{yy}年 {M}月{d}日{H}时',
548
+ minute: '{yy}年{M}月{d}日{H}时{m}分'
549
+ },
550
+ tSimpleFormat: {
551
+ year: '{yy}年',
552
+ quarter: '{q}季度',
553
+ month: '{M}月',
554
+ week: '{W}周',
555
+ day: '{d}',
556
+ hour: '{H}时',
557
+ minute: '{m}分'
558
+ },
559
+ dayss: {
560
+ w0: '日',
561
+ w1: '一',
562
+ w2: '二',
563
+ w3: '三',
564
+ w4: '四',
565
+ w5: '五',
566
+ w6: '六'
567
+ }
568
+ },
539
569
  plugins: {
540
570
  extendCellArea: {
541
571
  area: {
@@ -44,6 +44,7 @@ export default {
44
44
  coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
45
45
  uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
46
46
  repeatKey: '主键重复 {0}="{1}",这可能会出现错误',
47
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
47
48
  delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
48
49
  delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
49
50
  delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
@@ -536,6 +537,37 @@ export default {
536
537
  ss: '秒'
537
538
  }
538
539
  },
540
+ gantt: {
541
+ tFullFormat: {
542
+ year: '{yy}年',
543
+ quarter: '{yy}年第{q}季度',
544
+ month: '{yy}年{M}月',
545
+ week: '{yy}年第{W}周',
546
+ day: '{yy}年{M}月{E}日',
547
+ date: '{yy}年{M}月{d}日',
548
+ hour: '{yy}年 {M}月{d}日{H}时',
549
+ minute: '{yy}年{M}月{d}日{H}时{m}分'
550
+ },
551
+ tSimpleFormat: {
552
+ year: '{yy}年',
553
+ quarter: '{q}季度',
554
+ month: '{M}月',
555
+ week: '{W}周',
556
+ day: '{d}',
557
+ date: '{d}',
558
+ hour: '{H}时',
559
+ minute: '{m}分'
560
+ },
561
+ dayss: {
562
+ w0: '日',
563
+ w1: '一',
564
+ w2: '二',
565
+ w3: '三',
566
+ w4: '四',
567
+ w5: '五',
568
+ w6: '六'
569
+ }
570
+ },
539
571
  plugins: {
540
572
  extendCellArea: {
541
573
  area: {
@@ -1,4 +1,4 @@
1
- import { h, inject, ref, Ref, provide, VNode, PropType, nextTick, TransitionGroup, createCommentVNode, reactive, Teleport, onUnmounted } from 'vue'
1
+ import { h, inject, ref, Ref, provide, VNode, PropType, nextTick, TransitionGroup, createCommentVNode, reactive, onUnmounted } from 'vue'
2
2
  import { defineVxeComponent } from '../../../ui/src/comp'
3
3
  import { VxeUI } from '../../../ui'
4
4
  import { formatText } from '../../../ui/src/utils'
@@ -609,7 +609,6 @@ export default defineVxeComponent({
609
609
  const { customStore } = props
610
610
  const { treeConfig, rowGroupConfig, aggregateConfig } = tableProps
611
611
  const { isCustomStatus, customColumnList } = tableReactData
612
- const { teleportToWrapperElem } = tableInternalData
613
612
  const customOpts = computeCustomOpts.value
614
613
  const { immediate } = customOpts
615
614
  const columnDragOpts = computeColumnDragOpts.value
@@ -751,146 +750,141 @@ export default defineVxeComponent({
751
750
  )
752
751
  }
753
752
  })
754
- return h(Teleport, {
755
- to: teleportToWrapperElem,
756
- disabled: !($xeGantt && teleportToWrapperElem)
757
- }, [
758
- h('div', {
759
- ref: refElem,
760
- key: 'simple',
761
- class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
762
- 'is--active': customStore.visible
763
- }],
764
- style: maxHeight && !['left', 'right'].includes(placement || '')
765
- ? {
766
- maxHeight: `${maxHeight}px`
767
- }
768
- : {}
769
- }, customStore.visible
770
- ? [
753
+ return h('div', {
754
+ ref: refElem,
755
+ key: 'simple',
756
+ class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
757
+ 'is--active': customStore.visible
758
+ }],
759
+ style: maxHeight && !['left', 'right'].includes(placement || '')
760
+ ? {
761
+ maxHeight: `${maxHeight}px`
762
+ }
763
+ : {}
764
+ }, customStore.visible
765
+ ? [
766
+ h('div', {
767
+ ref: refBodyWrapperElem,
768
+ class: 'vxe-table-custom-simple--body-wrapper'
769
+ }, [
770
+ !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel
771
+ ? h($xeTable.getPivotTableAggregateSimplePanel(), {
772
+ customStore
773
+ })
774
+ : renderEmptyElement($xeTable),
771
775
  h('div', {
772
- ref: refBodyWrapperElem,
773
- class: 'vxe-table-custom-simple--body-wrapper'
776
+ ref: refCustomBodyElem,
777
+ class: 'vxe-table-custom--handle-wrapper'
774
778
  }, [
775
- !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel
776
- ? h($xeTable.getPivotTableAggregateSimplePanel(), {
777
- customStore
778
- })
779
- : renderEmptyElement($xeTable),
780
779
  h('div', {
781
- ref: refCustomBodyElem,
782
- class: 'vxe-table-custom--handle-wrapper'
783
- }, [
784
- h('div', {
785
- class: 'vxe-table-custom--header'
786
- }, headerSlot
787
- ? $xeTable.callSlot(headerSlot, params)
788
- : [
789
- h('ul', {
790
- class: 'vxe-table-custom--panel-list'
780
+ class: 'vxe-table-custom--header'
781
+ }, headerSlot
782
+ ? $xeTable.callSlot(headerSlot, params)
783
+ : [
784
+ h('ul', {
785
+ class: 'vxe-table-custom--panel-list'
786
+ }, [
787
+ h('li', {
788
+ class: 'vxe-table-custom--option'
791
789
  }, [
792
- h('li', {
793
- class: 'vxe-table-custom--option'
794
- }, [
795
- allowVisible
796
- ? h('div', {
797
- class: ['vxe-table-custom--checkbox-option', {
798
- 'is--checked': isAllChecked,
799
- 'is--indeterminate': isAllIndeterminate
800
- }],
801
- title: getI18n('vxe.table.allTitle'),
802
- onClick: allOptionEvent
803
- }, [
804
- h('span', {
805
- class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
806
- }),
807
- h('span', {
808
- class: 'vxe-checkbox--label'
809
- }, getI18n('vxe.toolbar.customAll'))
810
- ])
811
- : h('span', {
790
+ allowVisible
791
+ ? h('div', {
792
+ class: ['vxe-table-custom--checkbox-option', {
793
+ 'is--checked': isAllChecked,
794
+ 'is--indeterminate': isAllIndeterminate
795
+ }],
796
+ title: getI18n('vxe.table.allTitle'),
797
+ onClick: allOptionEvent
798
+ }, [
799
+ h('span', {
800
+ class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
801
+ }),
802
+ h('span', {
812
803
  class: 'vxe-checkbox--label'
813
- }, getI18n('vxe.table.customTitle'))
814
- ])
804
+ }, getI18n('vxe.toolbar.customAll'))
805
+ ])
806
+ : h('span', {
807
+ class: 'vxe-checkbox--label'
808
+ }, getI18n('vxe.table.customTitle'))
815
809
  ])
816
- ]),
817
- h('div', {
818
- class: 'vxe-table-custom--body'
819
- }, [
820
- topSlot
821
- ? h('div', {
822
- class: 'vxe-table-custom--panel-top'
823
- }, $xeTable.callSlot(topSlot, params))
824
- : renderEmptyElement($xeTable),
825
- defaultSlot
826
- ? h('div', {
827
- class: 'vxe-table-custom--panel-body'
828
- }, $xeTable.callSlot(defaultSlot, params))
829
- : h(TransitionGroup, {
830
- class: 'vxe-table-custom--panel-list',
831
- name: 'vxe-table-custom--list',
832
- tag: 'ul',
833
- ...customWrapperOns
834
- }, {
835
- default: () => colVNs
836
- }),
837
- bottomSlot
838
- ? h('div', {
839
- class: 'vxe-table-custom--panel-bottom'
840
- }, $xeTable.callSlot(bottomSlot, params))
841
- : renderEmptyElement($xeTable)
842
- ]),
843
- customOpts.showFooter
810
+ ])
811
+ ]),
812
+ h('div', {
813
+ class: 'vxe-table-custom--body'
814
+ }, [
815
+ topSlot
844
816
  ? h('div', {
845
- class: 'vxe-table-custom--footer'
846
- }, footerSlot
847
- ? $xeTable.callSlot(footerSlot, params)
848
- : [
849
- h('div', {
850
- class: 'vxe-table-custom--footer-buttons'
851
- }, [
852
- VxeUIButtonComponent
853
- ? h(VxeUIButtonComponent, {
854
- mode: 'text',
855
- content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
856
- disabled: !isCustomStatus,
857
- onClick: resetCustomEvent
858
- })
859
- : createCommentVNode(),
860
- immediate
861
- ? (VxeUIButtonComponent
862
- ? h(VxeUIButtonComponent, {
863
- mode: 'text',
864
- content: customOpts.closeButtonText || getI18n('vxe.table.customClose'),
865
- onClick: cancelCloseEvent
866
- })
867
- : createCommentVNode())
868
- : (VxeUIButtonComponent
869
- ? h(VxeUIButtonComponent, {
870
- mode: 'text',
871
- content: customOpts.cancelButtonText || getI18n('vxe.table.customCancel'),
872
- onClick: cancelCustomEvent
873
- })
874
- : createCommentVNode()),
875
- immediate
876
- ? createCommentVNode()
877
- : (VxeUIButtonComponent
878
- ? h(VxeUIButtonComponent, {
879
- mode: 'text',
880
- status: 'primary',
881
- content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm'),
882
- onClick: confirmCustomEvent
883
- })
884
- : createCommentVNode())
885
- ])
886
- ])
887
- : null
817
+ class: 'vxe-table-custom--panel-top'
818
+ }, $xeTable.callSlot(topSlot, params))
819
+ : renderEmptyElement($xeTable),
820
+ defaultSlot
821
+ ? h('div', {
822
+ class: 'vxe-table-custom--panel-body'
823
+ }, $xeTable.callSlot(defaultSlot, params))
824
+ : h(TransitionGroup, {
825
+ class: 'vxe-table-custom--panel-list',
826
+ name: 'vxe-table-custom--list',
827
+ tag: 'ul',
828
+ ...customWrapperOns
829
+ }, {
830
+ default: () => colVNs
831
+ }),
832
+ bottomSlot
833
+ ? h('div', {
834
+ class: 'vxe-table-custom--panel-bottom'
835
+ }, $xeTable.callSlot(bottomSlot, params))
836
+ : renderEmptyElement($xeTable)
888
837
  ]),
889
- renderDragTip()
890
- ])
891
- ]
892
- : [])
893
- ])
838
+ customOpts.showFooter
839
+ ? h('div', {
840
+ class: 'vxe-table-custom--footer'
841
+ }, footerSlot
842
+ ? $xeTable.callSlot(footerSlot, params)
843
+ : [
844
+ h('div', {
845
+ class: 'vxe-table-custom--footer-buttons'
846
+ }, [
847
+ VxeUIButtonComponent
848
+ ? h(VxeUIButtonComponent, {
849
+ mode: 'text',
850
+ content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
851
+ disabled: !isCustomStatus,
852
+ onClick: resetCustomEvent
853
+ })
854
+ : createCommentVNode(),
855
+ immediate
856
+ ? (VxeUIButtonComponent
857
+ ? h(VxeUIButtonComponent, {
858
+ mode: 'text',
859
+ content: customOpts.closeButtonText || getI18n('vxe.table.customClose'),
860
+ onClick: cancelCloseEvent
861
+ })
862
+ : createCommentVNode())
863
+ : (VxeUIButtonComponent
864
+ ? h(VxeUIButtonComponent, {
865
+ mode: 'text',
866
+ content: customOpts.cancelButtonText || getI18n('vxe.table.customCancel'),
867
+ onClick: cancelCustomEvent
868
+ })
869
+ : createCommentVNode()),
870
+ immediate
871
+ ? createCommentVNode()
872
+ : (VxeUIButtonComponent
873
+ ? h(VxeUIButtonComponent, {
874
+ mode: 'text',
875
+ status: 'primary',
876
+ content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm'),
877
+ onClick: confirmCustomEvent
878
+ })
879
+ : createCommentVNode())
880
+ ])
881
+ ])
882
+ : null
883
+ ]),
884
+ renderDragTip()
885
+ ])
886
+ ]
887
+ : [])
894
888
  }
895
889
 
896
890
  const renderPopupPanel = () => {
@@ -20,10 +20,10 @@ export function moveRowAnimateToTb (elemList: NodeListOf<HTMLElement> | HTMLDivE
20
20
  })
21
21
  }
22
22
 
23
- export function clearRowAnimate (elem: HTMLElement | undefined) {
23
+ export function clearRowAnimate (elem: HTMLElement | undefined, clss: string[]) {
24
24
  setTimeout(() => {
25
25
  if (elem) {
26
- XEUtils.arrayEach(elem.querySelectorAll(`.vxe-body--row.${rowMoveCls}`), elem => removeClass(elem, rowMoveCls))
26
+ XEUtils.arrayEach(elem.querySelectorAll(clss.map(cls => `${cls}.${rowMoveCls}`).join(',')), elem => removeClass(elem, rowMoveCls))
27
27
  }
28
28
  }, 500)
29
29
  }
@@ -43,10 +43,10 @@ export function moveColAnimateToLr (elemList: NodeListOf<HTMLElement> | HTMLDivE
43
43
  })
44
44
  }
45
45
 
46
- export function clearColAnimate (elem: HTMLElement | undefined) {
46
+ export function clearColAnimate (elem: HTMLElement | undefined, clss: string[]) {
47
47
  setTimeout(() => {
48
48
  if (elem) {
49
- XEUtils.arrayEach(elem.querySelectorAll(`.vxe-table--column.${colMoveClass}`), elem => removeClass(elem, colMoveClass))
49
+ XEUtils.arrayEach(elem.querySelectorAll(clss.map(cls => `${cls}.${rowMoveCls}`).join(',')), elem => removeClass(elem, colMoveClass))
50
50
  }
51
51
  }, 500)
52
52
  }