vxe-table 4.14.0-beta.1 → 4.14.0-beta.10

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 (203) hide show
  1. package/README.en.md +1 -70
  2. package/README.ja-JP.md +1 -70
  3. package/README.md +9 -18
  4. package/README.zh-TW.md +1 -69
  5. package/es/grid/src/grid.js +30 -21
  6. package/es/index.css +1 -1
  7. package/es/index.esm.js +2 -2
  8. package/es/index.min.css +1 -1
  9. package/es/locale/lang/ar-EG.js +4 -1
  10. package/es/locale/lang/de-DE.js +4 -1
  11. package/es/locale/lang/en-US.js +4 -1
  12. package/es/locale/lang/es-ES.js +4 -1
  13. package/es/locale/lang/fr-FR.js +4 -1
  14. package/es/locale/lang/hu-HU.js +4 -1
  15. package/es/locale/lang/hy-AM.js +4 -1
  16. package/es/locale/lang/id-ID.js +4 -1
  17. package/es/locale/lang/it-IT.js +4 -1
  18. package/es/locale/lang/ja-JP.js +4 -1
  19. package/es/locale/lang/ko-KR.js +4 -1
  20. package/es/locale/lang/ms-MY.js +4 -1
  21. package/es/locale/lang/nb-NO.js +4 -1
  22. package/es/locale/lang/pt-BR.js +4 -1
  23. package/es/locale/lang/ru-RU.js +4 -1
  24. package/es/locale/lang/th-TH.js +4 -1
  25. package/es/locale/lang/ug-CN.js +4 -1
  26. package/es/locale/lang/uk-UA.js +4 -1
  27. package/es/locale/lang/uz-UZ.js +4 -1
  28. package/es/locale/lang/vi-VN.js +4 -1
  29. package/es/locale/lang/zh-CHT.js +4 -1
  30. package/es/locale/lang/zh-CN.js +4 -1
  31. package/es/style.css +1 -1
  32. package/es/style.min.css +1 -1
  33. package/es/table/module/custom/hook.js +0 -4
  34. package/es/table/module/custom/panel.js +0 -1
  35. package/es/table/module/edit/hook.js +31 -1
  36. package/es/table/module/filter/hook.js +1 -1
  37. package/es/table/src/anime.js +46 -0
  38. package/es/table/src/body.js +13 -27
  39. package/es/table/src/cell.js +1 -1
  40. package/es/table/src/columnInfo.js +5 -0
  41. package/es/table/src/footer.js +8 -25
  42. package/es/table/src/header.js +5 -22
  43. package/es/table/src/table.js +609 -381
  44. package/es/table/src/util.js +6 -2
  45. package/es/table/style.css +8 -8
  46. package/es/table/style.min.css +1 -1
  47. package/es/ui/index.js +7 -1
  48. package/es/ui/src/log.js +1 -1
  49. package/es/vxe-table/style.css +8 -8
  50. package/es/vxe-table/style.min.css +1 -1
  51. package/lib/grid/src/grid.js +35 -23
  52. package/lib/grid/src/grid.min.js +1 -1
  53. package/lib/index.common.js +5 -5
  54. package/lib/index.css +1 -1
  55. package/lib/index.min.css +1 -1
  56. package/lib/index.umd.js +211 -153
  57. package/lib/index.umd.min.js +1 -1
  58. package/lib/locale/lang/ar-EG.js +4 -1
  59. package/lib/locale/lang/ar-EG.min.js +1 -1
  60. package/lib/locale/lang/ar-EG.umd.js +4 -1
  61. package/lib/locale/lang/de-DE.js +4 -1
  62. package/lib/locale/lang/de-DE.min.js +1 -1
  63. package/lib/locale/lang/de-DE.umd.js +4 -1
  64. package/lib/locale/lang/en-US.js +4 -1
  65. package/lib/locale/lang/en-US.min.js +1 -1
  66. package/lib/locale/lang/en-US.umd.js +4 -1
  67. package/lib/locale/lang/es-ES.js +4 -1
  68. package/lib/locale/lang/es-ES.min.js +1 -1
  69. package/lib/locale/lang/es-ES.umd.js +4 -1
  70. package/lib/locale/lang/fr-FR.js +4 -1
  71. package/lib/locale/lang/fr-FR.min.js +1 -1
  72. package/lib/locale/lang/fr-FR.umd.js +4 -1
  73. package/lib/locale/lang/hu-HU.js +4 -1
  74. package/lib/locale/lang/hu-HU.min.js +1 -1
  75. package/lib/locale/lang/hu-HU.umd.js +4 -1
  76. package/lib/locale/lang/hy-AM.js +4 -1
  77. package/lib/locale/lang/hy-AM.min.js +1 -1
  78. package/lib/locale/lang/hy-AM.umd.js +4 -1
  79. package/lib/locale/lang/id-ID.js +4 -1
  80. package/lib/locale/lang/id-ID.min.js +1 -1
  81. package/lib/locale/lang/id-ID.umd.js +4 -1
  82. package/lib/locale/lang/it-IT.js +4 -1
  83. package/lib/locale/lang/it-IT.min.js +1 -1
  84. package/lib/locale/lang/it-IT.umd.js +4 -1
  85. package/lib/locale/lang/ja-JP.js +4 -1
  86. package/lib/locale/lang/ja-JP.min.js +1 -1
  87. package/lib/locale/lang/ja-JP.umd.js +4 -1
  88. package/lib/locale/lang/ko-KR.js +4 -1
  89. package/lib/locale/lang/ko-KR.min.js +1 -1
  90. package/lib/locale/lang/ko-KR.umd.js +4 -1
  91. package/lib/locale/lang/ms-MY.js +4 -1
  92. package/lib/locale/lang/ms-MY.min.js +1 -1
  93. package/lib/locale/lang/ms-MY.umd.js +4 -1
  94. package/lib/locale/lang/nb-NO.js +4 -1
  95. package/lib/locale/lang/nb-NO.min.js +1 -1
  96. package/lib/locale/lang/nb-NO.umd.js +4 -1
  97. package/lib/locale/lang/pt-BR.js +4 -1
  98. package/lib/locale/lang/pt-BR.min.js +1 -1
  99. package/lib/locale/lang/pt-BR.umd.js +4 -1
  100. package/lib/locale/lang/ru-RU.js +4 -1
  101. package/lib/locale/lang/ru-RU.min.js +1 -1
  102. package/lib/locale/lang/ru-RU.umd.js +4 -1
  103. package/lib/locale/lang/th-TH.js +4 -1
  104. package/lib/locale/lang/th-TH.min.js +1 -1
  105. package/lib/locale/lang/th-TH.umd.js +4 -1
  106. package/lib/locale/lang/ug-CN.js +4 -1
  107. package/lib/locale/lang/ug-CN.min.js +1 -1
  108. package/lib/locale/lang/ug-CN.umd.js +4 -1
  109. package/lib/locale/lang/uk-UA.js +4 -1
  110. package/lib/locale/lang/uk-UA.min.js +1 -1
  111. package/lib/locale/lang/uk-UA.umd.js +4 -1
  112. package/lib/locale/lang/uz-UZ.js +4 -1
  113. package/lib/locale/lang/uz-UZ.min.js +1 -1
  114. package/lib/locale/lang/uz-UZ.umd.js +4 -1
  115. package/lib/locale/lang/vi-VN.js +4 -1
  116. package/lib/locale/lang/vi-VN.min.js +1 -1
  117. package/lib/locale/lang/vi-VN.umd.js +4 -1
  118. package/lib/locale/lang/zh-CHT.js +4 -1
  119. package/lib/locale/lang/zh-CHT.min.js +1 -1
  120. package/lib/locale/lang/zh-CHT.umd.js +4 -1
  121. package/lib/locale/lang/zh-CN.js +4 -1
  122. package/lib/locale/lang/zh-CN.min.js +1 -1
  123. package/lib/locale/lang/zh-CN.umd.js +4 -1
  124. package/lib/style.css +1 -1
  125. package/lib/style.min.css +1 -1
  126. package/lib/table/module/custom/hook.js +0 -4
  127. package/lib/table/module/custom/hook.min.js +1 -1
  128. package/lib/table/module/custom/panel.js +0 -1
  129. package/lib/table/module/custom/panel.min.js +1 -1
  130. package/lib/table/module/edit/hook.js +30 -1
  131. package/lib/table/module/edit/hook.min.js +1 -1
  132. package/lib/table/module/filter/hook.js +1 -1
  133. package/lib/table/module/filter/hook.min.js +1 -1
  134. package/lib/table/src/anime.js +56 -0
  135. package/lib/table/src/anime.min.js +1 -0
  136. package/lib/table/src/body.js +6 -29
  137. package/lib/table/src/body.min.js +1 -1
  138. package/lib/table/src/cell.js +1 -1
  139. package/lib/table/src/cell.min.js +1 -1
  140. package/lib/table/src/columnInfo.js +5 -0
  141. package/lib/table/src/columnInfo.min.js +1 -1
  142. package/lib/table/src/footer.js +6 -23
  143. package/lib/table/src/footer.min.js +1 -1
  144. package/lib/table/src/header.js +3 -20
  145. package/lib/table/src/header.min.js +1 -1
  146. package/lib/table/src/table.js +56 -45
  147. package/lib/table/src/table.min.js +1 -1
  148. package/lib/table/src/util.js +11 -3
  149. package/lib/table/src/util.min.js +1 -1
  150. package/lib/table/style/style.css +8 -8
  151. package/lib/table/style/style.min.css +1 -1
  152. package/lib/ui/index.js +7 -1
  153. package/lib/ui/index.min.js +1 -1
  154. package/lib/ui/src/log.js +1 -1
  155. package/lib/ui/src/log.min.js +1 -1
  156. package/lib/vxe-table/style/style.css +8 -8
  157. package/lib/vxe-table/style/style.min.css +1 -1
  158. package/package.json +2 -2
  159. package/packages/grid/src/grid.ts +32 -22
  160. package/packages/index.ts +2 -2
  161. package/packages/locale/lang/ar-EG.ts +4 -1
  162. package/packages/locale/lang/de-DE.ts +4 -1
  163. package/packages/locale/lang/en-US.ts +4 -1
  164. package/packages/locale/lang/es-ES.ts +4 -1
  165. package/packages/locale/lang/fr-FR.ts +4 -1
  166. package/packages/locale/lang/hu-HU.ts +4 -1
  167. package/packages/locale/lang/hy-AM.ts +4 -1
  168. package/packages/locale/lang/id-ID.ts +4 -1
  169. package/packages/locale/lang/it-IT.ts +4 -1
  170. package/packages/locale/lang/ja-JP.ts +4 -1
  171. package/packages/locale/lang/ko-KR.ts +4 -1
  172. package/packages/locale/lang/ms-MY.ts +4 -1
  173. package/packages/locale/lang/nb-NO.ts +4 -1
  174. package/packages/locale/lang/pt-BR.ts +4 -1
  175. package/packages/locale/lang/ru-RU.ts +4 -1
  176. package/packages/locale/lang/th-TH.ts +4 -1
  177. package/packages/locale/lang/ug-CN.ts +4 -1
  178. package/packages/locale/lang/uk-UA.ts +4 -1
  179. package/packages/locale/lang/uz-UZ.ts +4 -1
  180. package/packages/locale/lang/vi-VN.ts +4 -1
  181. package/packages/locale/lang/zh-CHT.ts +4 -1
  182. package/packages/locale/lang/zh-CN.ts +4 -1
  183. package/packages/table/module/custom/hook.ts +0 -4
  184. package/packages/table/module/custom/panel.ts +0 -1
  185. package/packages/table/module/edit/hook.ts +29 -1
  186. package/packages/table/module/filter/hook.ts +1 -1
  187. package/packages/table/src/anime.ts +52 -0
  188. package/packages/table/src/body.ts +20 -41
  189. package/packages/table/src/cell.ts +1 -1
  190. package/packages/table/src/columnInfo.ts +5 -0
  191. package/packages/table/src/footer.ts +8 -25
  192. package/packages/table/src/header.ts +5 -22
  193. package/packages/table/src/table.ts +620 -384
  194. package/packages/table/src/util.ts +6 -2
  195. package/packages/ui/index.ts +6 -0
  196. package/styles/components/table.scss +9 -9
  197. package/types/all.d.ts +3 -18
  198. /package/es/{iconfont.1750910518778.ttf → iconfont.1751970630744.ttf} +0 -0
  199. /package/es/{iconfont.1750910518778.woff → iconfont.1751970630744.woff} +0 -0
  200. /package/es/{iconfont.1750910518778.woff2 → iconfont.1751970630744.woff2} +0 -0
  201. /package/lib/{iconfont.1750910518778.ttf → iconfont.1751970630744.ttf} +0 -0
  202. /package/lib/{iconfont.1750910518778.woff → iconfont.1751970630744.woff} +0 -0
  203. /package/lib/{iconfont.1750910518778.woff2 → iconfont.1751970630744.woff2} +0 -0
@@ -239,7 +239,7 @@ export function getRefElem (refEl: any) {
239
239
  return null
240
240
  }
241
241
 
242
- export function getCellHeight (height: number | 'unset' | undefined | null) {
242
+ export function getCalcHeight (height: number | 'unset' | undefined | null) {
243
243
  if (height === 'unset') {
244
244
  return 0
245
245
  }
@@ -415,12 +415,16 @@ const countTreeExpand = (prevRow: any, params: VxeTableDefines.CellRenderBodyPar
415
415
  return count
416
416
  }
417
417
  const { $table } = params
418
+ const reactData = $table.reactData
419
+ const { treeExpandedFlag } = reactData
420
+ const internalData = $table.internalData
421
+ const { treeExpandedMaps } = internalData
418
422
  const { computeTreeOpts } = $table.getComputeMaps()
419
423
  const treeOpts = computeTreeOpts.value
420
424
  const { transform, mapChildrenField } = treeOpts
421
425
  const childrenField = treeOpts.children || treeOpts.childrenField
422
426
  const rowChildren = prevRow[transform ? mapChildrenField : childrenField]
423
- if (rowChildren && $table.isTreeExpandByRow(prevRow)) {
427
+ if (rowChildren && treeExpandedFlag && treeExpandedMaps[getRowid($table, prevRow)]) {
424
428
  for (let index = 0; index < rowChildren.length; index++) {
425
429
  count += countTreeExpand(rowChildren[index], params)
426
430
  }
@@ -77,6 +77,11 @@ VxeUI.setConfig({
77
77
  theme: 'beautify'
78
78
  },
79
79
  columnConfig: {
80
+ autoOptions: {
81
+ isCalcHeader: true,
82
+ isCalcBody: true,
83
+ isCalcFooter: true
84
+ },
80
85
  maxFixedSize: 4
81
86
  },
82
87
  cellConfig: {
@@ -257,6 +262,7 @@ VxeUI.setConfig({
257
262
  proxyConfig: {
258
263
  enabled: true,
259
264
  autoLoad: true,
265
+ showLoading: true,
260
266
  showResponseMsg: true,
261
267
  showActiveMsg: true,
262
268
  response: {
@@ -1920,19 +1920,16 @@ $btnThemeList: (
1920
1920
  background-color: var( --vxe-ui-table-drag-over-background-color);
1921
1921
  }
1922
1922
  }
1923
- .vxe-header--column,
1924
- .vxe-body--column,
1925
- .vxe-footer--column {
1923
+ .vxe-table--column {
1924
+ &.col--drag-move {
1925
+ transition: transform 0.5s ease;
1926
+ }
1926
1927
  &.col--drag-origin {
1927
1928
  & > .vxe-cell {
1928
- opacity: 0.5;
1929
+ opacity: 0.3;
1929
1930
  }
1930
1931
  }
1931
1932
  }
1932
- .vxe-header--col-list-move {
1933
- transition-property: transform;
1934
- transition-duration: 0.35s;
1935
- }
1936
1933
 
1937
1934
  .vxe-table--drag-col-line,
1938
1935
  .vxe-table--drag-row-line {
@@ -1984,10 +1981,13 @@ $btnThemeList: (
1984
1981
  }
1985
1982
  }
1986
1983
  .vxe-body--row {
1984
+ &.row--drag-move {
1985
+ transition: transform 0.5s ease;
1986
+ }
1987
1987
  &.row--drag-origin {
1988
1988
  & > .vxe-body--column {
1989
1989
  & > .vxe-cell {
1990
- opacity: 0.5;
1990
+ opacity: 0.3;
1991
1991
  }
1992
1992
  }
1993
1993
  }
package/types/all.d.ts CHANGED
@@ -3,11 +3,12 @@ import { VxeUIExport, VxeGlobalConfig } from 'vxe-pc-ui'
3
3
 
4
4
  declare global {
5
5
  interface Window {
6
+ VxeUITable: VxeUIExport
7
+
6
8
  /**
7
9
  * @deprecated
8
10
  */
9
- VXETable: VxeUIExport;
10
- VxeUITable: VxeUIExport;
11
+ VXETable: VxeUIExport
11
12
  }
12
13
  }
13
14
 
@@ -34,19 +35,3 @@ export * from 'vxe-pc-ui/types/components/colgroup'
34
35
  export * from 'vxe-pc-ui/types/components/table'
35
36
  export * from 'vxe-pc-ui/types/components/grid'
36
37
  export * from 'vxe-pc-ui/types/components/toolbar'
37
-
38
- // 已废弃,兼容老版本类型
39
- export * from 'vxe-pc-ui/types/components/textarea'
40
- export * from 'vxe-pc-ui/types/components/select'
41
- export * from 'vxe-pc-ui/types/components/switch'
42
- export * from 'vxe-pc-ui/types/components/optgroup'
43
- export * from 'vxe-pc-ui/types/components/option'
44
- export * from 'vxe-pc-ui/types/components/pager'
45
- export * from 'vxe-pc-ui/types/components/form'
46
- export * from 'vxe-pc-ui/types/components/form-item'
47
- export * from 'vxe-pc-ui/types/components/modal'
48
- export * from 'vxe-pc-ui/types/components/button'
49
- export * from 'vxe-pc-ui/types/components/button-group'
50
- export * from 'vxe-pc-ui/types/components/input'
51
- export * from 'vxe-pc-ui/types/components/pulldown'
52
- export * from 'vxe-pc-ui/types/components/tooltip'