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
@@ -1,4 +1,4 @@
1
- import { h, inject, ref, provide, nextTick, TransitionGroup, createCommentVNode, reactive, Teleport, onUnmounted } from 'vue';
1
+ import { h, inject, ref, provide, 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';
@@ -565,7 +565,6 @@ export default defineVxeComponent({
565
565
  const { customStore } = props;
566
566
  const { treeConfig, rowGroupConfig, aggregateConfig } = tableProps;
567
567
  const { isCustomStatus, customColumnList } = tableReactData;
568
- const { teleportToWrapperElem } = tableInternalData;
569
568
  const customOpts = computeCustomOpts.value;
570
569
  const { immediate } = customOpts;
571
570
  const columnDragOpts = computeColumnDragOpts.value;
@@ -701,141 +700,136 @@ export default defineVxeComponent({
701
700
  ]));
702
701
  }
703
702
  });
704
- return h(Teleport, {
705
- to: teleportToWrapperElem,
706
- disabled: !($xeGantt && teleportToWrapperElem)
707
- }, [
708
- h('div', {
709
- ref: refElem,
710
- key: 'simple',
711
- class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
712
- 'is--active': customStore.visible
713
- }],
714
- style: maxHeight && !['left', 'right'].includes(placement || '')
715
- ? {
716
- maxHeight: `${maxHeight}px`
717
- }
718
- : {}
719
- }, customStore.visible
720
- ? [
703
+ return h('div', {
704
+ ref: refElem,
705
+ key: 'simple',
706
+ class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
707
+ 'is--active': customStore.visible
708
+ }],
709
+ style: maxHeight && !['left', 'right'].includes(placement || '')
710
+ ? {
711
+ maxHeight: `${maxHeight}px`
712
+ }
713
+ : {}
714
+ }, customStore.visible
715
+ ? [
716
+ h('div', {
717
+ ref: refBodyWrapperElem,
718
+ class: 'vxe-table-custom-simple--body-wrapper'
719
+ }, [
720
+ !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel
721
+ ? h($xeTable.getPivotTableAggregateSimplePanel(), {
722
+ customStore
723
+ })
724
+ : renderEmptyElement($xeTable),
721
725
  h('div', {
722
- ref: refBodyWrapperElem,
723
- class: 'vxe-table-custom-simple--body-wrapper'
726
+ ref: refCustomBodyElem,
727
+ class: 'vxe-table-custom--handle-wrapper'
724
728
  }, [
725
- !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel
726
- ? h($xeTable.getPivotTableAggregateSimplePanel(), {
727
- customStore
728
- })
729
- : renderEmptyElement($xeTable),
730
729
  h('div', {
731
- ref: refCustomBodyElem,
732
- class: 'vxe-table-custom--handle-wrapper'
733
- }, [
734
- h('div', {
735
- class: 'vxe-table-custom--header'
736
- }, headerSlot
737
- ? $xeTable.callSlot(headerSlot, params)
738
- : [
739
- h('ul', {
740
- class: 'vxe-table-custom--panel-list'
730
+ class: 'vxe-table-custom--header'
731
+ }, headerSlot
732
+ ? $xeTable.callSlot(headerSlot, params)
733
+ : [
734
+ h('ul', {
735
+ class: 'vxe-table-custom--panel-list'
736
+ }, [
737
+ h('li', {
738
+ class: 'vxe-table-custom--option'
741
739
  }, [
742
- h('li', {
743
- class: 'vxe-table-custom--option'
744
- }, [
745
- allowVisible
746
- ? h('div', {
747
- class: ['vxe-table-custom--checkbox-option', {
748
- 'is--checked': isAllChecked,
749
- 'is--indeterminate': isAllIndeterminate
750
- }],
751
- title: getI18n('vxe.table.allTitle'),
752
- onClick: allOptionEvent
753
- }, [
754
- h('span', {
755
- class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
756
- }),
757
- h('span', {
758
- class: 'vxe-checkbox--label'
759
- }, getI18n('vxe.toolbar.customAll'))
760
- ])
761
- : h('span', {
740
+ allowVisible
741
+ ? h('div', {
742
+ class: ['vxe-table-custom--checkbox-option', {
743
+ 'is--checked': isAllChecked,
744
+ 'is--indeterminate': isAllIndeterminate
745
+ }],
746
+ title: getI18n('vxe.table.allTitle'),
747
+ onClick: allOptionEvent
748
+ }, [
749
+ h('span', {
750
+ class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
751
+ }),
752
+ h('span', {
762
753
  class: 'vxe-checkbox--label'
763
- }, getI18n('vxe.table.customTitle'))
764
- ])
754
+ }, getI18n('vxe.toolbar.customAll'))
755
+ ])
756
+ : h('span', {
757
+ class: 'vxe-checkbox--label'
758
+ }, getI18n('vxe.table.customTitle'))
765
759
  ])
766
- ]),
767
- h('div', {
768
- class: 'vxe-table-custom--body'
769
- }, [
770
- topSlot
771
- ? h('div', {
772
- class: 'vxe-table-custom--panel-top'
773
- }, $xeTable.callSlot(topSlot, params))
774
- : renderEmptyElement($xeTable),
775
- defaultSlot
776
- ? h('div', {
777
- class: 'vxe-table-custom--panel-body'
778
- }, $xeTable.callSlot(defaultSlot, params))
779
- : h(TransitionGroup, Object.assign({ class: 'vxe-table-custom--panel-list', name: 'vxe-table-custom--list', tag: 'ul' }, customWrapperOns), {
780
- default: () => colVNs
781
- }),
782
- bottomSlot
783
- ? h('div', {
784
- class: 'vxe-table-custom--panel-bottom'
785
- }, $xeTable.callSlot(bottomSlot, params))
786
- : renderEmptyElement($xeTable)
760
+ ])
787
761
  ]),
788
- customOpts.showFooter
762
+ h('div', {
763
+ class: 'vxe-table-custom--body'
764
+ }, [
765
+ topSlot
766
+ ? h('div', {
767
+ class: 'vxe-table-custom--panel-top'
768
+ }, $xeTable.callSlot(topSlot, params))
769
+ : renderEmptyElement($xeTable),
770
+ defaultSlot
771
+ ? h('div', {
772
+ class: 'vxe-table-custom--panel-body'
773
+ }, $xeTable.callSlot(defaultSlot, params))
774
+ : h(TransitionGroup, Object.assign({ class: 'vxe-table-custom--panel-list', name: 'vxe-table-custom--list', tag: 'ul' }, customWrapperOns), {
775
+ default: () => colVNs
776
+ }),
777
+ bottomSlot
789
778
  ? h('div', {
790
- class: 'vxe-table-custom--footer'
791
- }, footerSlot
792
- ? $xeTable.callSlot(footerSlot, params)
793
- : [
794
- h('div', {
795
- class: 'vxe-table-custom--footer-buttons'
796
- }, [
797
- VxeUIButtonComponent
779
+ class: 'vxe-table-custom--panel-bottom'
780
+ }, $xeTable.callSlot(bottomSlot, params))
781
+ : renderEmptyElement($xeTable)
782
+ ]),
783
+ customOpts.showFooter
784
+ ? h('div', {
785
+ class: 'vxe-table-custom--footer'
786
+ }, footerSlot
787
+ ? $xeTable.callSlot(footerSlot, params)
788
+ : [
789
+ h('div', {
790
+ class: 'vxe-table-custom--footer-buttons'
791
+ }, [
792
+ VxeUIButtonComponent
793
+ ? h(VxeUIButtonComponent, {
794
+ mode: 'text',
795
+ content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
796
+ disabled: !isCustomStatus,
797
+ onClick: resetCustomEvent
798
+ })
799
+ : createCommentVNode(),
800
+ immediate
801
+ ? (VxeUIButtonComponent
798
802
  ? h(VxeUIButtonComponent, {
799
803
  mode: 'text',
800
- content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
801
- disabled: !isCustomStatus,
802
- onClick: resetCustomEvent
804
+ content: customOpts.closeButtonText || getI18n('vxe.table.customClose'),
805
+ onClick: cancelCloseEvent
803
806
  })
804
- : createCommentVNode(),
805
- immediate
806
- ? (VxeUIButtonComponent
807
- ? h(VxeUIButtonComponent, {
808
- mode: 'text',
809
- content: customOpts.closeButtonText || getI18n('vxe.table.customClose'),
810
- onClick: cancelCloseEvent
811
- })
812
- : createCommentVNode())
813
- : (VxeUIButtonComponent
814
- ? h(VxeUIButtonComponent, {
815
- mode: 'text',
816
- content: customOpts.cancelButtonText || getI18n('vxe.table.customCancel'),
817
- onClick: cancelCustomEvent
818
- })
819
- : createCommentVNode()),
820
- immediate
821
- ? createCommentVNode()
822
- : (VxeUIButtonComponent
823
- ? h(VxeUIButtonComponent, {
824
- mode: 'text',
825
- status: 'primary',
826
- content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm'),
827
- onClick: confirmCustomEvent
828
- })
829
- : createCommentVNode())
830
- ])
807
+ : createCommentVNode())
808
+ : (VxeUIButtonComponent
809
+ ? h(VxeUIButtonComponent, {
810
+ mode: 'text',
811
+ content: customOpts.cancelButtonText || getI18n('vxe.table.customCancel'),
812
+ onClick: cancelCustomEvent
813
+ })
814
+ : createCommentVNode()),
815
+ immediate
816
+ ? createCommentVNode()
817
+ : (VxeUIButtonComponent
818
+ ? h(VxeUIButtonComponent, {
819
+ mode: 'text',
820
+ status: 'primary',
821
+ content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm'),
822
+ onClick: confirmCustomEvent
823
+ })
824
+ : createCommentVNode())
831
825
  ])
832
- : null
833
- ]),
834
- renderDragTip()
835
- ])
836
- ]
837
- : [])
838
- ]);
826
+ ])
827
+ : null
828
+ ]),
829
+ renderDragTip()
830
+ ])
831
+ ]
832
+ : []);
839
833
  };
840
834
  const renderPopupPanel = () => {
841
835
  const $xeGrid = $xeTable.xeGrid;
@@ -16,10 +16,10 @@ export function moveRowAnimateToTb(elemList, offsetTop) {
16
16
  });
17
17
  });
18
18
  }
19
- export function clearRowAnimate(elem) {
19
+ export function clearRowAnimate(elem, clss) {
20
20
  setTimeout(() => {
21
21
  if (elem) {
22
- XEUtils.arrayEach(elem.querySelectorAll(`.vxe-body--row.${rowMoveCls}`), elem => removeClass(elem, rowMoveCls));
22
+ XEUtils.arrayEach(elem.querySelectorAll(clss.map(cls => `${cls}.${rowMoveCls}`).join(',')), elem => removeClass(elem, rowMoveCls));
23
23
  }
24
24
  }, 500);
25
25
  }
@@ -37,10 +37,10 @@ export function moveColAnimateToLr(elemList, offsetLeft) {
37
37
  });
38
38
  });
39
39
  }
40
- export function clearColAnimate(elem) {
40
+ export function clearColAnimate(elem, clss) {
41
41
  setTimeout(() => {
42
42
  if (elem) {
43
- XEUtils.arrayEach(elem.querySelectorAll(`.vxe-table--column.${colMoveClass}`), elem => removeClass(elem, colMoveClass));
43
+ XEUtils.arrayEach(elem.querySelectorAll(clss.map(cls => `${cls}.${rowMoveCls}`).join(',')), elem => removeClass(elem, colMoveClass));
44
44
  }
45
45
  }, 500);
46
46
  }