vxe-table 4.19.14 → 4.19.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 (161) hide show
  1. package/dist/all.esm.js +139 -35
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/locale/lang/ar-EG.js +7 -0
  7. package/es/locale/lang/de-DE.js +7 -0
  8. package/es/locale/lang/en-US.js +7 -0
  9. package/es/locale/lang/es-ES.js +7 -0
  10. package/es/locale/lang/fr-FR.js +7 -0
  11. package/es/locale/lang/hu-HU.js +7 -0
  12. package/es/locale/lang/hy-AM.js +7 -0
  13. package/es/locale/lang/id-ID.js +7 -0
  14. package/es/locale/lang/it-IT.js +7 -0
  15. package/es/locale/lang/ja-JP.js +7 -0
  16. package/es/locale/lang/ko-KR.js +7 -0
  17. package/es/locale/lang/ms-MY.js +7 -0
  18. package/es/locale/lang/nb-NO.js +7 -0
  19. package/es/locale/lang/pt-BR.js +7 -0
  20. package/es/locale/lang/ru-RU.js +7 -0
  21. package/es/locale/lang/th-TH.js +7 -0
  22. package/es/locale/lang/ug-CN.js +7 -0
  23. package/es/locale/lang/uk-UA.js +7 -0
  24. package/es/locale/lang/uz-UZ.js +7 -0
  25. package/es/locale/lang/vi-VN.js +7 -0
  26. package/es/locale/lang/zh-CHT.js +7 -0
  27. package/es/locale/lang/zh-CN.js +7 -0
  28. package/es/style.css +1 -1
  29. package/es/style.min.css +1 -1
  30. package/es/table/module/export/hook.js +22 -3
  31. package/es/table/render/index.js +46 -18
  32. package/es/table/src/header.js +6 -3
  33. package/es/table/src/table.js +56 -9
  34. package/es/table/style.css +10 -5
  35. package/es/table/style.min.css +1 -1
  36. package/es/ui/index.js +1 -1
  37. package/es/ui/src/log.js +1 -1
  38. package/es/vxe-table/style.css +10 -5
  39. package/es/vxe-table/style.min.css +1 -1
  40. package/lib/index.css +1 -1
  41. package/lib/index.min.css +1 -1
  42. package/lib/index.umd.js +113 -30
  43. package/lib/index.umd.min.js +1 -1
  44. package/lib/locale/lang/ar-EG.js +7 -0
  45. package/lib/locale/lang/ar-EG.min.js +1 -1
  46. package/lib/locale/lang/ar-EG.umd.js +7 -0
  47. package/lib/locale/lang/de-DE.js +7 -0
  48. package/lib/locale/lang/de-DE.min.js +1 -1
  49. package/lib/locale/lang/de-DE.umd.js +7 -0
  50. package/lib/locale/lang/en-US.js +7 -0
  51. package/lib/locale/lang/en-US.min.js +1 -1
  52. package/lib/locale/lang/en-US.umd.js +7 -0
  53. package/lib/locale/lang/es-ES.js +7 -0
  54. package/lib/locale/lang/es-ES.min.js +1 -1
  55. package/lib/locale/lang/es-ES.umd.js +7 -0
  56. package/lib/locale/lang/fr-FR.js +7 -0
  57. package/lib/locale/lang/fr-FR.min.js +1 -1
  58. package/lib/locale/lang/fr-FR.umd.js +7 -0
  59. package/lib/locale/lang/hu-HU.js +7 -0
  60. package/lib/locale/lang/hu-HU.min.js +1 -1
  61. package/lib/locale/lang/hu-HU.umd.js +7 -0
  62. package/lib/locale/lang/hy-AM.js +7 -0
  63. package/lib/locale/lang/hy-AM.min.js +1 -1
  64. package/lib/locale/lang/hy-AM.umd.js +7 -0
  65. package/lib/locale/lang/id-ID.js +7 -0
  66. package/lib/locale/lang/id-ID.min.js +1 -1
  67. package/lib/locale/lang/id-ID.umd.js +7 -0
  68. package/lib/locale/lang/it-IT.js +7 -0
  69. package/lib/locale/lang/it-IT.min.js +1 -1
  70. package/lib/locale/lang/it-IT.umd.js +7 -0
  71. package/lib/locale/lang/ja-JP.js +7 -0
  72. package/lib/locale/lang/ja-JP.min.js +1 -1
  73. package/lib/locale/lang/ja-JP.umd.js +7 -0
  74. package/lib/locale/lang/ko-KR.js +7 -0
  75. package/lib/locale/lang/ko-KR.min.js +1 -1
  76. package/lib/locale/lang/ko-KR.umd.js +7 -0
  77. package/lib/locale/lang/ms-MY.js +7 -0
  78. package/lib/locale/lang/ms-MY.min.js +1 -1
  79. package/lib/locale/lang/ms-MY.umd.js +7 -0
  80. package/lib/locale/lang/nb-NO.js +7 -0
  81. package/lib/locale/lang/nb-NO.min.js +1 -1
  82. package/lib/locale/lang/nb-NO.umd.js +7 -0
  83. package/lib/locale/lang/pt-BR.js +7 -0
  84. package/lib/locale/lang/pt-BR.min.js +1 -1
  85. package/lib/locale/lang/pt-BR.umd.js +7 -0
  86. package/lib/locale/lang/ru-RU.js +7 -0
  87. package/lib/locale/lang/ru-RU.min.js +1 -1
  88. package/lib/locale/lang/ru-RU.umd.js +7 -0
  89. package/lib/locale/lang/th-TH.js +7 -0
  90. package/lib/locale/lang/th-TH.min.js +1 -1
  91. package/lib/locale/lang/th-TH.umd.js +7 -0
  92. package/lib/locale/lang/ug-CN.js +7 -0
  93. package/lib/locale/lang/ug-CN.min.js +1 -1
  94. package/lib/locale/lang/ug-CN.umd.js +7 -0
  95. package/lib/locale/lang/uk-UA.js +7 -0
  96. package/lib/locale/lang/uk-UA.min.js +1 -1
  97. package/lib/locale/lang/uk-UA.umd.js +7 -0
  98. package/lib/locale/lang/uz-UZ.js +7 -0
  99. package/lib/locale/lang/uz-UZ.min.js +1 -1
  100. package/lib/locale/lang/uz-UZ.umd.js +7 -0
  101. package/lib/locale/lang/vi-VN.js +7 -0
  102. package/lib/locale/lang/vi-VN.min.js +1 -1
  103. package/lib/locale/lang/vi-VN.umd.js +7 -0
  104. package/lib/locale/lang/zh-CHT.js +7 -0
  105. package/lib/locale/lang/zh-CHT.min.js +1 -1
  106. package/lib/locale/lang/zh-CHT.umd.js +7 -0
  107. package/lib/locale/lang/zh-CN.js +7 -0
  108. package/lib/locale/lang/zh-CN.min.js +1 -1
  109. package/lib/locale/lang/zh-CN.umd.js +7 -0
  110. package/lib/style.css +1 -1
  111. package/lib/style.min.css +1 -1
  112. package/lib/table/module/export/hook.js +26 -3
  113. package/lib/table/module/export/hook.min.js +1 -1
  114. package/lib/table/render/index.js +62 -18
  115. package/lib/table/render/index.min.js +1 -1
  116. package/lib/table/src/header.js +7 -3
  117. package/lib/table/src/header.min.js +1 -1
  118. package/lib/table/src/table.js +9 -4
  119. package/lib/table/src/table.min.js +1 -1
  120. package/lib/table/style/style.css +10 -5
  121. package/lib/table/style/style.min.css +1 -1
  122. package/lib/ui/index.js +1 -1
  123. package/lib/ui/index.min.js +1 -1
  124. package/lib/ui/src/log.js +1 -1
  125. package/lib/ui/src/log.min.js +1 -1
  126. package/lib/vxe-table/style/style.css +10 -5
  127. package/lib/vxe-table/style/style.min.css +1 -1
  128. package/package.json +2 -2
  129. package/packages/locale/lang/ar-EG.ts +7 -0
  130. package/packages/locale/lang/de-DE.ts +7 -0
  131. package/packages/locale/lang/en-US.ts +7 -0
  132. package/packages/locale/lang/es-ES.ts +7 -0
  133. package/packages/locale/lang/fr-FR.ts +7 -0
  134. package/packages/locale/lang/hu-HU.ts +7 -0
  135. package/packages/locale/lang/hy-AM.ts +7 -0
  136. package/packages/locale/lang/id-ID.ts +7 -0
  137. package/packages/locale/lang/it-IT.ts +7 -0
  138. package/packages/locale/lang/ja-JP.ts +7 -0
  139. package/packages/locale/lang/ko-KR.ts +7 -0
  140. package/packages/locale/lang/ms-MY.ts +7 -0
  141. package/packages/locale/lang/nb-NO.ts +7 -0
  142. package/packages/locale/lang/pt-BR.ts +7 -0
  143. package/packages/locale/lang/ru-RU.ts +7 -0
  144. package/packages/locale/lang/th-TH.ts +7 -0
  145. package/packages/locale/lang/ug-CN.ts +7 -0
  146. package/packages/locale/lang/uk-UA.ts +7 -0
  147. package/packages/locale/lang/uz-UZ.ts +7 -0
  148. package/packages/locale/lang/vi-VN.ts +7 -0
  149. package/packages/locale/lang/zh-CHT.ts +7 -0
  150. package/packages/locale/lang/zh-CN.ts +7 -0
  151. package/packages/table/module/export/hook.ts +23 -4
  152. package/packages/table/render/index.ts +46 -18
  153. package/packages/table/src/header.ts +6 -3
  154. package/packages/table/src/table.ts +57 -10
  155. package/styles/components/table.scss +8 -4
  156. /package/es/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
  157. /package/es/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
  158. /package/es/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
  159. /package/lib/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
  160. /package/lib/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
  161. /package/lib/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
@@ -30,7 +30,7 @@ import '../module/validator/hook'
30
30
  import '../module/custom/hook'
31
31
  import '../render'
32
32
 
33
- import type { VxeTooltipInstance, VxeTabsConstructor, VxeTabsPrivateMethods, ValueOf, VxeComponentSlotType, VxeComponentStyleType } from 'vxe-pc-ui'
33
+ import type { VxeTooltipInstance, VxeTabsConstructor, VxeTabsPrivateMethods, ValueOf, VxeComponentSlotType, VxeComponentStyleType, VxeModalConstructor, VxeModalMethods, VxeSplitterConstructor, VxeSplitterMethods } from 'vxe-pc-ui'
34
34
  import type { VxeGridConstructor, VxeGridPrivateMethods, VxeTableConstructor, VxeTablePropTypes, VxeToolbarConstructor, TablePrivateMethods, VxeTablePrivateRef, VxeTablePrivateComputed, VxeTablePrivateMethods, TableMethods, VxeTableMethods, VxeTableDefines, VxeTableEmits, VxeTableProps, VxeColumnPropTypes, VxeTableCustomPanelConstructor } from '../../../types'
35
35
 
36
36
  const { getConfig, getIcon, getI18n, renderer, formats, createEvent, globalResize, interceptor, hooks, globalEvents, GLOBAL_EVENT_KEYS, useFns, renderEmptyElement } = VxeUI
@@ -62,8 +62,10 @@ export default defineVxeComponent({
62
62
  const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading')
63
63
  const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip')
64
64
 
65
+ const $xeModal = inject<(VxeModalConstructor & VxeModalMethods) | null>('$xeModal', null)
65
66
  const $xeTabs = inject<(VxeTabsConstructor & VxeTabsPrivateMethods) | null>('$xeTabs', null)
66
67
  const $xeParentTable = inject<(VxeTableConstructor & VxeTablePrivateMethods) | null>('$xeTable', null)
68
+ const $xeSplitter = inject<(VxeSplitterConstructor & VxeSplitterMethods) | null>('$xeSplitter', null)
67
69
  const $xeGrid = inject<(VxeGridConstructor & VxeGridPrivateMethods) | null>('$xeGrid', null)
68
70
  const $xeGantt = inject<VxeTableDefines.InjectGanttType | null>('$xeGantt', null)
69
71
  const $xeGGWrapper = $xeGrid || $xeGantt
@@ -786,6 +788,18 @@ export default defineVxeComponent({
786
788
  return []
787
789
  })
788
790
 
791
+ const combineTabsResizeFlag = computed(() => {
792
+ return $xeTabs ? $xeTabs.reactData.resizeFlag : null
793
+ })
794
+
795
+ const combineModalResizeFlag = computed(() => {
796
+ return $xeModal ? $xeModal.reactData.resizeFlag : null
797
+ })
798
+
799
+ const combineSplitterResizeFlag = computed(() => {
800
+ return $xeSplitter ? $xeSplitter.reactData.resizeFlag : null
801
+ })
802
+
789
803
  const refMaps: VxeTablePrivateRef = {
790
804
  refElem,
791
805
  refTooltip,
@@ -9249,11 +9263,36 @@ export default defineVxeComponent({
9249
9263
  const { tooltipStore } = reactData
9250
9264
  const { column, row } = params
9251
9265
  const { showAll, contentMethod } = tipOpts
9252
- const customContent = contentMethod ? contentMethod(params) : null
9253
- const useCustom = contentMethod && !XEUtils.eqNull(customContent)
9254
- const content = useCustom ? customContent : XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim()
9266
+ const cellText = XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim()
9255
9267
  const isOver = tipOverEl.scrollWidth > tipOverEl.clientWidth
9256
- if (content && (showAll || useCustom || isOver)) {
9268
+ let isShow = false
9269
+ let customContent: any = null
9270
+ let content = ''
9271
+ if (contentMethod) {
9272
+ customContent = contentMethod(params)
9273
+ }
9274
+ // 是否全部展示
9275
+ if (showAll) {
9276
+ // 如果为 null 默认显示
9277
+ if (XEUtils.eqNull(customContent)) {
9278
+ isShow = true
9279
+ content = cellText
9280
+ } else if (customContent !== '' && customContent !== false) {
9281
+ // 如果为 '' | false 则不显示
9282
+ isShow = true
9283
+ content = '' + customContent
9284
+ }
9285
+ } else {
9286
+ // 如果为 null 使用默认逻辑
9287
+ if (XEUtils.eqNull(customContent)) {
9288
+ isShow = isOver
9289
+ } else if (customContent !== '' && customContent !== false) {
9290
+ // 如果为 '' | false 则不显示
9291
+ isShow = true
9292
+ }
9293
+ content = cellText
9294
+ }
9295
+ if (isShow && content) {
9257
9296
  const tipContent = formatText(content)
9258
9297
  Object.assign(tooltipStore, {
9259
9298
  row,
@@ -14382,11 +14421,19 @@ export default defineVxeComponent({
14382
14421
  }
14383
14422
  })
14384
14423
 
14385
- if ($xeTabs) {
14386
- watch(() => $xeTabs ? $xeTabs.reactData.resizeFlag : null, () => {
14387
- handleGlobalResizeEvent()
14388
- })
14389
- }
14424
+ const layoutReFlag = ref(0)
14425
+ watch(combineTabsResizeFlag, () => {
14426
+ layoutReFlag.value++
14427
+ })
14428
+ watch(combineModalResizeFlag, () => {
14429
+ layoutReFlag.value++
14430
+ })
14431
+ watch(combineSplitterResizeFlag, () => {
14432
+ layoutReFlag.value++
14433
+ })
14434
+ watch(layoutReFlag, () => {
14435
+ handleGlobalResizeEvent()
14436
+ })
14390
14437
 
14391
14438
  handleKeyField()
14392
14439
 
@@ -213,7 +213,8 @@ $btnThemeList: (
213
213
  .vxe-date-picker,
214
214
  .vxe-date-range-picker,
215
215
  .vxe-number-input,
216
- .vxe-ico-picker {
216
+ .vxe-ico-picker,
217
+ .vxe-cascader {
217
218
  width: 100%;
218
219
  }
219
220
  }
@@ -236,7 +237,8 @@ $btnThemeList: (
236
237
  & > .vxe-date-picker,
237
238
  & > .vxe-date-range-picker,
238
239
  & > .vxe-number-input,
239
- & > .vxe-ico-picker {
240
+ & > .vxe-ico-picker,
241
+ .vxe-cascader {
240
242
  width: 100%;
241
243
  }
242
244
  & > .vxe-row-group--tree-node,
@@ -251,7 +253,8 @@ $btnThemeList: (
251
253
  .vxe-date-picker,
252
254
  .vxe-date-range-picker,
253
255
  .vxe-number-input,
254
- .vxe-ico-picker {
256
+ .vxe-ico-picker,
257
+ .vxe-cascader {
255
258
  width: 100%;
256
259
  }
257
260
  }
@@ -272,7 +275,8 @@ $btnThemeList: (
272
275
  & > .vxe-date-picker,
273
276
  & > .vxe-date-range-picker,
274
277
  & > .vxe-number-input,
275
- & > .vxe-ico-picker {
278
+ & > .vxe-ico-picker,
279
+ & > .vxe-cascader {
276
280
  width: 100%;
277
281
  }
278
282
  }