vxe-table 4.23.19 → 4.23.21

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 (127) hide show
  1. package/dist/all.esm.js +289 -253
  2. package/dist/all.esm.min.js +3 -3
  3. package/dist/style.css +4 -1
  4. package/dist/style.mini.css +1 -1
  5. package/es/components.d.ts +1 -3
  6. package/es/components.js +1 -2
  7. package/es/esm.index.d.ts +7 -0
  8. package/es/esm.index.js +8 -0
  9. package/es/style.css +4 -1
  10. package/es/style.mini.css +1 -1
  11. package/es/table/src/table.js +6 -2
  12. package/es/table/style.css +4 -1
  13. package/es/table/style.mini.css +1 -1
  14. package/es/ui/abandon.d.ts +82 -0
  15. package/es/ui/abandon.js +90 -0
  16. package/es/ui/index.d.ts +1 -83
  17. package/es/ui/index.js +2 -89
  18. package/es/ui/src/log.js +1 -1
  19. package/es/vxe-table/style.css +4 -1
  20. package/es/vxe-table/style.mini.css +1 -1
  21. package/lib/components.d.ts +1 -3
  22. package/lib/components.js +1 -2
  23. package/lib/esm.index.d.ts +7 -0
  24. package/lib/esm.index.js +39 -0
  25. package/lib/index.umd.js +254 -249
  26. package/lib/index.umd.min.js +3 -3
  27. package/lib/style.css +4 -1
  28. package/lib/style.mini.css +1 -1
  29. package/lib/table/src/table.js +6 -2
  30. package/lib/table/style/style.css +4 -1
  31. package/lib/table/style/style.mini.css +1 -1
  32. package/lib/ui/abandon.d.ts +82 -0
  33. package/lib/ui/abandon.js +110 -0
  34. package/lib/ui/index.d.ts +1 -83
  35. package/lib/ui/index.js +3 -89
  36. package/lib/ui/src/log.js +1 -1
  37. package/lib/vxe-table/style/style.css +4 -1
  38. package/lib/vxe-table/style/style.mini.css +1 -1
  39. package/package.json +1 -1
  40. package/packages/colgroup/index.ts +22 -22
  41. package/packages/column/index.ts +22 -22
  42. package/packages/components.ts +42 -45
  43. package/packages/esm.index.ts +10 -0
  44. package/packages/grid/index.ts +18 -18
  45. package/packages/grid/src/emits.ts +5 -5
  46. package/packages/grid/src/grid.ts +2220 -2220
  47. package/packages/grid/src/props.ts +22 -22
  48. package/packages/index.ts +13 -13
  49. package/packages/locale/lang/ar-EG.ts +914 -914
  50. package/packages/locale/lang/de-DE.ts +914 -914
  51. package/packages/locale/lang/en-US.ts +914 -914
  52. package/packages/locale/lang/es-ES.ts +914 -914
  53. package/packages/locale/lang/fr-FR.ts +914 -914
  54. package/packages/locale/lang/hu-HU.ts +914 -914
  55. package/packages/locale/lang/hy-AM.ts +914 -914
  56. package/packages/locale/lang/id-ID.ts +914 -914
  57. package/packages/locale/lang/it-IT.ts +914 -914
  58. package/packages/locale/lang/ja-JP.ts +914 -914
  59. package/packages/locale/lang/ko-KR.ts +914 -914
  60. package/packages/locale/lang/ms-MY.ts +914 -914
  61. package/packages/locale/lang/nb-NO.ts +914 -914
  62. package/packages/locale/lang/pt-BR.ts +914 -914
  63. package/packages/locale/lang/ru-RU.ts +914 -914
  64. package/packages/locale/lang/th-TH.ts +914 -914
  65. package/packages/locale/lang/ug-CN.ts +914 -914
  66. package/packages/locale/lang/uk-UA.ts +914 -914
  67. package/packages/locale/lang/uz-UZ.ts +914 -914
  68. package/packages/locale/lang/vi-VN.ts +914 -914
  69. package/packages/locale/lang/zh-CHT.ts +914 -914
  70. package/packages/locale/lang/zh-CN.ts +914 -914
  71. package/packages/locale/lang/zh-HK.ts +914 -914
  72. package/packages/locale/lang/zh-MO.ts +914 -914
  73. package/packages/locale/lang/zh-TC.ts +914 -914
  74. package/packages/locale/lang/zh-TW.ts +914 -914
  75. package/packages/table/index.ts +26 -26
  76. package/packages/table/module/custom/hook.ts +510 -510
  77. package/packages/table/module/custom/panel.ts +2002 -2002
  78. package/packages/table/module/edit/hook.ts +1232 -1232
  79. package/packages/table/module/export/export-panel.ts +697 -697
  80. package/packages/table/module/export/hook.ts +2158 -2158
  81. package/packages/table/module/export/import-panel.ts +319 -319
  82. package/packages/table/module/export/util.ts +25 -25
  83. package/packages/table/module/filter/hook.ts +505 -505
  84. package/packages/table/module/filter/panel.ts +368 -368
  85. package/packages/table/module/keyboard/hook.ts +498 -498
  86. package/packages/table/module/menu/hook.ts +330 -330
  87. package/packages/table/module/menu/panel.ts +272 -272
  88. package/packages/table/module/validator/hook.ts +653 -653
  89. package/packages/table/render/index.ts +1819 -1819
  90. package/packages/table/src/body.ts +1078 -1078
  91. package/packages/table/src/cell.ts +1524 -1524
  92. package/packages/table/src/column.ts +192 -192
  93. package/packages/table/src/columnInfo.ts +232 -232
  94. package/packages/table/src/emits.ts +134 -134
  95. package/packages/table/src/footer.ts +425 -425
  96. package/packages/table/src/group.ts +67 -67
  97. package/packages/table/src/header.ts +661 -661
  98. package/packages/table/src/props.ts +336 -336
  99. package/packages/table/src/store.ts +14 -14
  100. package/packages/table/src/table.ts +8 -3
  101. package/packages/table/src/use/cell-view.ts +41 -41
  102. package/packages/table/src/use/index.ts +1 -1
  103. package/packages/table/src/util.ts +1206 -1206
  104. package/packages/toolbar/index.ts +18 -18
  105. package/packages/toolbar/src/toolbar.ts +768 -768
  106. package/packages/ui/abandon.ts +136 -0
  107. package/packages/ui/index.ts +404 -524
  108. package/packages/ui/src/anime.ts +51 -51
  109. package/packages/ui/src/comp.ts +3 -3
  110. package/packages/ui/src/dom.ts +466 -466
  111. package/packages/ui/src/log.ts +19 -19
  112. package/packages/ui/src/utils.ts +66 -66
  113. package/packages/ui/src/vn.ts +55 -55
  114. package/packages/v-x-e-table/index.d.ts +3 -3
  115. package/packages/v-x-e-table/index.ts +3 -3
  116. package/styles/components/table.scss +2 -1
  117. package/types/all.d.ts +76 -76
  118. package/types/index.d.ts +4 -4
  119. /package/dist/{iconfont.1794474448348.ttf → iconfont.1794983806256.ttf} +0 -0
  120. /package/dist/{iconfont.1794474448348.woff → iconfont.1794983806256.woff} +0 -0
  121. /package/dist/{iconfont.1794474448348.woff2 → iconfont.1794983806256.woff2} +0 -0
  122. /package/es/{iconfont.1794474448348.ttf → iconfont.1794983806256.ttf} +0 -0
  123. /package/es/{iconfont.1794474448348.woff → iconfont.1794983806256.woff} +0 -0
  124. /package/es/{iconfont.1794474448348.woff2 → iconfont.1794983806256.woff2} +0 -0
  125. /package/lib/{iconfont.1794474448348.ttf → iconfont.1794983806256.ttf} +0 -0
  126. /package/lib/{iconfont.1794474448348.woff → iconfont.1794983806256.woff} +0 -0
  127. /package/lib/{iconfont.1794474448348.woff2 → iconfont.1794983806256.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.23.19",
3
+ "version": "4.23.21",
4
4
  "description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -1,22 +1,22 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from '@vxe-ui/core'
3
- import VxeColgroupComponent from '../table/src/group'
4
-
5
- export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
6
- install(app: App) {
7
- app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
8
- // 兼容旧用法
9
- app.component('VxeTableColgroup', VxeColgroupComponent)
10
- }
11
- })
12
-
13
- if (VxeUI.dynamicApp) {
14
- VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
15
- // 兼容旧用法
16
- VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
17
- }
18
-
19
- VxeUI.component(VxeColgroupComponent)
20
-
21
- export const Colgroup = VxeColgroup
22
- export default VxeColgroup
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeColgroupComponent from '../table/src/group'
4
+
5
+ export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
6
+ install(app: App) {
7
+ app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
8
+ // 兼容旧用法
9
+ app.component('VxeTableColgroup', VxeColgroupComponent)
10
+ }
11
+ })
12
+
13
+ if (VxeUI.dynamicApp) {
14
+ VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
15
+ // 兼容旧用法
16
+ VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
17
+ }
18
+
19
+ VxeUI.component(VxeColgroupComponent)
20
+
21
+ export const Colgroup = VxeColgroup
22
+ export default VxeColgroup
@@ -1,22 +1,22 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from '@vxe-ui/core'
3
- import VxeColumnComponent from '../table/src/column'
4
-
5
- export const VxeColumn = Object.assign({}, VxeColumnComponent, {
6
- install(app: App) {
7
- app.component(VxeColumnComponent.name as string, VxeColumnComponent)
8
- // 兼容旧用法
9
- app.component('VxeTableColumn', VxeColumnComponent)
10
- }
11
- })
12
-
13
- if (VxeUI.dynamicApp) {
14
- VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
15
- // 兼容旧用法
16
- VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
17
- }
18
-
19
- VxeUI.component(VxeColumnComponent)
20
-
21
- export const Column = VxeColumn
22
- export default VxeColumn
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeColumnComponent from '../table/src/column'
4
+
5
+ export const VxeColumn = Object.assign({}, VxeColumnComponent, {
6
+ install(app: App) {
7
+ app.component(VxeColumnComponent.name as string, VxeColumnComponent)
8
+ // 兼容旧用法
9
+ app.component('VxeTableColumn', VxeColumnComponent)
10
+ }
11
+ })
12
+
13
+ if (VxeUI.dynamicApp) {
14
+ VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
15
+ // 兼容旧用法
16
+ VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
17
+ }
18
+
19
+ VxeUI.component(VxeColumnComponent)
20
+
21
+ export const Column = VxeColumn
22
+ export default VxeColumn
@@ -1,45 +1,42 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from '@vxe-ui/core'
3
- import './ui'
4
-
5
- import { VxeColumn } from './column'
6
- import { VxeColgroup } from './colgroup'
7
- import { VxeGrid } from './grid'
8
- import { VxeTable } from './table'
9
- import { VxeToolbar } from './toolbar'
10
-
11
- import zhCN from './locale/lang/zh-CN'
12
-
13
- import type { VxeGlobalConfig } from '../types'
14
-
15
- const components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar]
16
-
17
- // 默认安装
18
- export function install(app: App, options?: VxeGlobalConfig) {
19
- VxeUI.setConfig(options)
20
- components.forEach((component) => component.install(app))
21
- }
22
-
23
- // 保留兼容老版本
24
- if (!VxeUI.hasLanguage('zh-CN')) {
25
- const defaultLanguage = 'zh-CN'
26
- VxeUI.setI18n(defaultLanguage, zhCN)
27
- VxeUI.setLanguage(defaultLanguage)
28
- }
29
- VxeUI.setTheme('light')
30
-
31
- // eslint-disable-next-line import/export
32
- export { VxeUI }
33
-
34
- // eslint-disable-next-line import/export
35
- export * from '@vxe-ui/core'
36
-
37
- // 兼容老版本
38
- export * from './ui'
39
-
40
- // Components
41
- export * from './table'
42
- export * from './column'
43
- export * from './colgroup'
44
- export * from './grid'
45
- export * from './toolbar'
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import './ui'
4
+
5
+ import { VxeColumn } from './column'
6
+ import { VxeColgroup } from './colgroup'
7
+ import { VxeGrid } from './grid'
8
+ import { VxeTable } from './table'
9
+ import { VxeToolbar } from './toolbar'
10
+
11
+ import zhCN from './locale/lang/zh-CN'
12
+
13
+ import type { VxeGlobalConfig } from '../types'
14
+
15
+ const components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar]
16
+
17
+ // 默认安装
18
+ export function install(app: App, options?: VxeGlobalConfig) {
19
+ VxeUI.setConfig(options)
20
+ components.forEach((component) => component.install(app))
21
+ }
22
+
23
+ // 保留兼容老版本
24
+ if (!VxeUI.hasLanguage('zh-CN')) {
25
+ const defaultLanguage = 'zh-CN'
26
+ VxeUI.setI18n(defaultLanguage, zhCN)
27
+ VxeUI.setLanguage(defaultLanguage)
28
+ }
29
+ VxeUI.setTheme('light')
30
+
31
+ // 兼容老版本
32
+ export * from '@vxe-ui/core'
33
+
34
+ // 兼容老版本
35
+ export * from './ui/abandon'
36
+
37
+ // Components
38
+ export * from './table'
39
+ export * from './column'
40
+ export * from './colgroup'
41
+ export * from './grid'
42
+ export * from './toolbar'
@@ -0,0 +1,10 @@
1
+ import * as VxeUIExport from './index'
2
+
3
+ export { VxeUI } from './index'
4
+
5
+ export * from './index'
6
+
7
+ /**
8
+ * A vue based PC component library
9
+ */
10
+ export default VxeUIExport
@@ -1,18 +1,18 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from '@vxe-ui/core'
3
- import VxeGridComponent from './src/grid'
4
-
5
- export const VxeGrid = Object.assign({}, VxeGridComponent, {
6
- install(app: App) {
7
- app.component(VxeGridComponent.name as string, VxeGridComponent)
8
- }
9
- })
10
-
11
- if (VxeUI.dynamicApp) {
12
- VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
13
- }
14
-
15
- VxeUI.component(VxeGridComponent)
16
-
17
- export const Grid = VxeGrid
18
- export default VxeGrid
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeGridComponent from './src/grid'
4
+
5
+ export const VxeGrid = Object.assign({}, VxeGridComponent, {
6
+ install(app: App) {
7
+ app.component(VxeGridComponent.name as string, VxeGridComponent)
8
+ }
9
+ })
10
+
11
+ if (VxeUI.dynamicApp) {
12
+ VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
13
+ }
14
+
15
+ VxeUI.component(VxeGridComponent)
16
+
17
+ export const Grid = VxeGrid
18
+ export default VxeGrid
@@ -1,5 +1,5 @@
1
- import { tableComponenEmits } from '../../table/src/emits'
2
-
3
- import type { VxeGridEmits } from '../../../types'
4
-
5
- export const gridComponeEmits: VxeGridEmits = [...tableComponenEmits, 'page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom']
1
+ import { tableComponenEmits } from '../../table/src/emits'
2
+
3
+ import type { VxeGridEmits } from '../../../types'
4
+
5
+ export const gridComponeEmits: VxeGridEmits = [...tableComponenEmits, 'page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom']