vxe-table 3.21.0-beta.3 → 3.21.0-beta.5

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 (204) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +106 -106
  3. package/es/locale/lang/ar-EG.js +4 -0
  4. package/es/locale/lang/de-DE.js +4 -0
  5. package/es/locale/lang/en-US.js +4 -0
  6. package/es/locale/lang/es-ES.js +4 -0
  7. package/es/locale/lang/fr-FR.js +4 -0
  8. package/es/locale/lang/hu-HU.js +4 -0
  9. package/es/locale/lang/hy-AM.js +4 -0
  10. package/es/locale/lang/id-ID.js +4 -0
  11. package/es/locale/lang/it-IT.js +4 -0
  12. package/es/locale/lang/ja-JP.js +4 -0
  13. package/es/locale/lang/ko-KR.js +4 -0
  14. package/es/locale/lang/ms-MY.js +4 -0
  15. package/es/locale/lang/nb-NO.js +4 -0
  16. package/es/locale/lang/pt-BR.js +4 -0
  17. package/es/locale/lang/ru-RU.js +4 -0
  18. package/es/locale/lang/th-TH.js +4 -0
  19. package/es/locale/lang/ug-CN.js +4 -0
  20. package/es/locale/lang/uk-UA.js +4 -0
  21. package/es/locale/lang/uz-UZ.js +4 -0
  22. package/es/locale/lang/vi-VN.js +4 -0
  23. package/es/locale/lang/zh-CHT.js +4 -0
  24. package/es/locale/lang/zh-CN.js +4 -0
  25. package/es/style.css +1 -1
  26. package/es/table/module/edit/mixin.js +8 -6
  27. package/es/table/src/methods.js +44 -2
  28. package/es/ui/index.js +1 -1
  29. package/es/ui/src/log.js +1 -1
  30. package/lib/index.umd.js +2859 -2764
  31. package/lib/index.umd.min.js +1 -1
  32. package/lib/locale/lang/ar-EG.js +4 -0
  33. package/lib/locale/lang/ar-EG.min.js +1 -1
  34. package/lib/locale/lang/ar-EG.umd.js +4 -0
  35. package/lib/locale/lang/de-DE.js +4 -0
  36. package/lib/locale/lang/de-DE.min.js +1 -1
  37. package/lib/locale/lang/de-DE.umd.js +4 -0
  38. package/lib/locale/lang/en-US.js +4 -0
  39. package/lib/locale/lang/en-US.min.js +1 -1
  40. package/lib/locale/lang/en-US.umd.js +4 -0
  41. package/lib/locale/lang/es-ES.js +4 -0
  42. package/lib/locale/lang/es-ES.min.js +1 -1
  43. package/lib/locale/lang/es-ES.umd.js +4 -0
  44. package/lib/locale/lang/fr-FR.js +4 -0
  45. package/lib/locale/lang/fr-FR.min.js +1 -1
  46. package/lib/locale/lang/fr-FR.umd.js +4 -0
  47. package/lib/locale/lang/hu-HU.js +4 -0
  48. package/lib/locale/lang/hu-HU.min.js +1 -1
  49. package/lib/locale/lang/hu-HU.umd.js +4 -0
  50. package/lib/locale/lang/hy-AM.js +4 -0
  51. package/lib/locale/lang/hy-AM.min.js +1 -1
  52. package/lib/locale/lang/hy-AM.umd.js +4 -0
  53. package/lib/locale/lang/id-ID.js +4 -0
  54. package/lib/locale/lang/id-ID.min.js +1 -1
  55. package/lib/locale/lang/id-ID.umd.js +4 -0
  56. package/lib/locale/lang/it-IT.js +4 -0
  57. package/lib/locale/lang/it-IT.min.js +1 -1
  58. package/lib/locale/lang/it-IT.umd.js +4 -0
  59. package/lib/locale/lang/ja-JP.js +4 -0
  60. package/lib/locale/lang/ja-JP.min.js +1 -1
  61. package/lib/locale/lang/ja-JP.umd.js +4 -0
  62. package/lib/locale/lang/ko-KR.js +4 -0
  63. package/lib/locale/lang/ko-KR.min.js +1 -1
  64. package/lib/locale/lang/ko-KR.umd.js +4 -0
  65. package/lib/locale/lang/ms-MY.js +4 -0
  66. package/lib/locale/lang/ms-MY.min.js +1 -1
  67. package/lib/locale/lang/ms-MY.umd.js +4 -0
  68. package/lib/locale/lang/nb-NO.js +4 -0
  69. package/lib/locale/lang/nb-NO.min.js +1 -1
  70. package/lib/locale/lang/nb-NO.umd.js +4 -0
  71. package/lib/locale/lang/pt-BR.js +4 -0
  72. package/lib/locale/lang/pt-BR.min.js +1 -1
  73. package/lib/locale/lang/pt-BR.umd.js +4 -0
  74. package/lib/locale/lang/ru-RU.js +4 -0
  75. package/lib/locale/lang/ru-RU.min.js +1 -1
  76. package/lib/locale/lang/ru-RU.umd.js +4 -0
  77. package/lib/locale/lang/th-TH.js +4 -0
  78. package/lib/locale/lang/th-TH.min.js +1 -1
  79. package/lib/locale/lang/th-TH.umd.js +4 -0
  80. package/lib/locale/lang/ug-CN.js +4 -0
  81. package/lib/locale/lang/ug-CN.min.js +1 -1
  82. package/lib/locale/lang/ug-CN.umd.js +4 -0
  83. package/lib/locale/lang/uk-UA.js +4 -0
  84. package/lib/locale/lang/uk-UA.min.js +1 -1
  85. package/lib/locale/lang/uk-UA.umd.js +4 -0
  86. package/lib/locale/lang/uz-UZ.js +4 -0
  87. package/lib/locale/lang/uz-UZ.min.js +1 -1
  88. package/lib/locale/lang/uz-UZ.umd.js +4 -0
  89. package/lib/locale/lang/vi-VN.js +4 -0
  90. package/lib/locale/lang/vi-VN.min.js +1 -1
  91. package/lib/locale/lang/vi-VN.umd.js +4 -0
  92. package/lib/locale/lang/zh-CHT.js +4 -0
  93. package/lib/locale/lang/zh-CHT.min.js +1 -1
  94. package/lib/locale/lang/zh-CHT.umd.js +4 -0
  95. package/lib/locale/lang/zh-CN.js +4 -0
  96. package/lib/locale/lang/zh-CN.min.js +1 -1
  97. package/lib/locale/lang/zh-CN.umd.js +4 -0
  98. package/lib/style.css +1 -1
  99. package/lib/table/module/edit/mixin.js +14 -6
  100. package/lib/table/module/edit/mixin.min.js +1 -1
  101. package/lib/table/src/methods.js +2 -2
  102. package/lib/table/src/methods.min.js +1 -1
  103. package/lib/ui/index.js +1 -1
  104. package/lib/ui/index.min.js +1 -1
  105. package/lib/ui/src/log.js +1 -1
  106. package/lib/ui/src/log.min.js +1 -1
  107. package/package.json +94 -94
  108. package/packages/colgroup/index.ts +22 -22
  109. package/packages/column/index.ts +22 -22
  110. package/packages/components.ts +42 -42
  111. package/packages/grid/index.ts +22 -22
  112. package/packages/grid/src/grid.ts +1935 -1935
  113. package/packages/index.ts +4 -4
  114. package/packages/locale/lang/ar-EG.ts +844 -840
  115. package/packages/locale/lang/de-DE.ts +844 -840
  116. package/packages/locale/lang/en-US.ts +844 -840
  117. package/packages/locale/lang/es-ES.ts +844 -840
  118. package/packages/locale/lang/fr-FR.ts +844 -840
  119. package/packages/locale/lang/hu-HU.ts +844 -840
  120. package/packages/locale/lang/hy-AM.ts +844 -840
  121. package/packages/locale/lang/id-ID.ts +844 -840
  122. package/packages/locale/lang/it-IT.ts +844 -840
  123. package/packages/locale/lang/ja-JP.ts +844 -840
  124. package/packages/locale/lang/ko-KR.ts +844 -840
  125. package/packages/locale/lang/ms-MY.ts +844 -840
  126. package/packages/locale/lang/nb-NO.ts +844 -840
  127. package/packages/locale/lang/pt-BR.ts +844 -840
  128. package/packages/locale/lang/ru-RU.ts +844 -840
  129. package/packages/locale/lang/th-TH.ts +844 -840
  130. package/packages/locale/lang/ug-CN.ts +844 -840
  131. package/packages/locale/lang/uk-UA.ts +844 -840
  132. package/packages/locale/lang/uz-UZ.ts +844 -840
  133. package/packages/locale/lang/vi-VN.ts +844 -840
  134. package/packages/locale/lang/zh-CHT.ts +844 -840
  135. package/packages/locale/lang/zh-CN.ts +844 -840
  136. package/packages/locale/lang/zh-HK.ts +3 -3
  137. package/packages/locale/lang/zh-MO.ts +3 -3
  138. package/packages/locale/lang/zh-TC.ts +3 -3
  139. package/packages/locale/lang/zh-TW.ts +3 -3
  140. package/packages/table/index.ts +49 -49
  141. package/packages/table/module/custom/mixin.ts +440 -440
  142. package/packages/table/module/custom/panel.ts +1691 -1691
  143. package/packages/table/module/edit/mixin.ts +1160 -1158
  144. package/packages/table/module/export/export-panel.ts +658 -658
  145. package/packages/table/module/export/import-panel.ts +319 -319
  146. package/packages/table/module/export/mixin.ts +1693 -1693
  147. package/packages/table/module/export/util.ts +24 -24
  148. package/packages/table/module/filter/mixin.ts +507 -507
  149. package/packages/table/module/filter/panel.ts +329 -329
  150. package/packages/table/module/keyboard/mixin.ts +511 -511
  151. package/packages/table/module/menu/mixin.ts +329 -329
  152. package/packages/table/module/menu/panel.ts +212 -212
  153. package/packages/table/module/validator/mixin.ts +626 -626
  154. package/packages/table/render/index.ts +1456 -1456
  155. package/packages/table/src/body.ts +973 -973
  156. package/packages/table/src/cell.ts +1285 -1285
  157. package/packages/table/src/column.ts +212 -212
  158. package/packages/table/src/columnInfo.ts +228 -228
  159. package/packages/table/src/footer.ts +389 -389
  160. package/packages/table/src/group.ts +59 -59
  161. package/packages/table/src/header.ts +607 -607
  162. package/packages/table/src/methods.ts +13276 -13229
  163. package/packages/table/src/props.ts +311 -311
  164. package/packages/table/src/store.ts +15 -15
  165. package/packages/table/src/table.ts +2534 -2534
  166. package/packages/table/src/util.ts +1032 -1032
  167. package/packages/toolbar/index.ts +18 -18
  168. package/packages/toolbar/src/toolbar.ts +858 -858
  169. package/packages/ui/index.ts +532 -532
  170. package/packages/ui/src/anime.ts +52 -52
  171. package/packages/ui/src/comp.ts +3 -3
  172. package/packages/ui/src/dom.ts +242 -242
  173. package/packages/ui/src/log.ts +8 -8
  174. package/packages/ui/src/utils.ts +56 -56
  175. package/packages/ui/src/vn.ts +65 -65
  176. package/packages/v-x-e-table/index.ts +4 -4
  177. package/styles/all.scss +7 -7
  178. package/styles/base.scss +16 -16
  179. package/styles/components/grid.scss +89 -89
  180. package/styles/components/icon.scss +225 -225
  181. package/styles/components/old-icon.scss +715 -715
  182. package/styles/components/table-module/all.scss +6 -6
  183. package/styles/components/table-module/custom.scss +550 -550
  184. package/styles/components/table-module/export.scss +130 -130
  185. package/styles/components/table-module/filter.scss +130 -130
  186. package/styles/components/table-module/menu.scss +81 -81
  187. package/styles/components/table.scss +2679 -2679
  188. package/styles/components/toolbar.scss +119 -119
  189. package/styles/default.scss +2 -2
  190. package/styles/helpers/baseMixin.scss +95 -95
  191. package/styles/index.scss +3 -3
  192. package/styles/modules.scss +5 -5
  193. package/styles/theme/base.scss +93 -93
  194. package/styles/theme/dark.scss +49 -49
  195. package/styles/theme/light.scss +44 -44
  196. package/styles/variable.scss +43 -43
  197. package/types/all.d.ts +53 -53
  198. package/types/index.d.ts +4 -4
  199. /package/es/{iconfont.1778318155450.ttf → iconfont.1778552507097.ttf} +0 -0
  200. /package/es/{iconfont.1778318155450.woff → iconfont.1778552507097.woff} +0 -0
  201. /package/es/{iconfont.1778318155450.woff2 → iconfont.1778552507097.woff2} +0 -0
  202. /package/lib/{iconfont.1778318155450.ttf → iconfont.1778552507097.ttf} +0 -0
  203. /package/lib/{iconfont.1778318155450.woff → iconfont.1778552507097.woff} +0 -0
  204. /package/lib/{iconfont.1778318155450.woff2 → iconfont.1778552507097.woff2} +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Xu Liangzhan
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Xu Liangzhan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,106 +1,106 @@
1
- # vxe-table
2
-
3
- [![github star](https://img.shields.io/github/stars/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/stargazers)
4
- [![npm version](https://img.shields.io/npm/v/vxe-table.svg?style=flat-square)](https://www.npmjs.com/package/vxe-table)
5
- [![NodeJS with Webpack](https://github.com/x-extends/vxe-table/actions/workflows/webpack.yml/badge.svg)](https://github.com/x-extends/vxe-table/actions/workflows/webpack.yml)
6
- [![npm downloads](https://img.shields.io/npm/dt/vxe-table.svg?style=flat-square)](https://npm-stat.com/charts.html?package=vxe-table)
7
- [![issues](https://img.shields.io/github/issues/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/issues)
8
- [![issues closed](https://img.shields.io/github/issues-closed/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/issues?q=is%3Aissue+is%3Aclosed)
9
- [![pull requests](https://img.shields.io/github/issues-pr/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/pulls)
10
- [![pull requests closed](https://img.shields.io/github/issues-pr-closed/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/pulls?q=is%3Apr+is%3Aclosed)
11
- [![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)
12
-
13
- 一个基于 [Vxe UI](https://github.com/x-extends/vxe-pc-ui) 的 PC 端表格组件,支持增删改查的可编辑表格,支持 Excel 复制粘贴、数据透视表、虚拟列表高性能的表格解决方案
14
-
15
- ## 浏览器支持
16
-
17
- ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
18
- --- | --- | --- | --- | --- |
19
- 80+ ✔ | 80+ ✔ | 90+ ✔ | 75+ ✔ | 10+ ✔ |
20
-
21
- ## 安装
22
-
23
- 版本:[vue](https://www.npmjs.com/package/vue) 2.x
24
-
25
- ```shell
26
- npm install vxe-table@3
27
- ```
28
-
29
- Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.net/npm/vxe-table/)
30
-
31
- ### NPM
32
-
33
- ```javascript
34
- // ...
35
- import VxeUITable from 'vxe-table'
36
- import 'vxe-table/lib/style.css'
37
- // ...
38
-
39
- createApp(App).use(VxeUITable).mount('#app')
40
- ```
41
-
42
- ### CDN
43
-
44
- 使用第三方 CDN 方式记得锁定版本号,避免受到非兼容性更新的影响
45
- ***不建议将第三方的 CDN 地址用于正式环境,因为该连接随时都可能会失效***
46
-
47
- ```HTML
48
- <!DOCTYPE html>
49
- <html>
50
- <head>
51
- <meta charset="utf-8">
52
- <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
53
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
54
- <!-- style -->
55
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-pc-ui@3/lib/style.css">
56
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-table@3/lib/style.css">
57
- <!-- vue -->
58
- <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
59
- <!-- table -->
60
- <script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
61
- <script src="https://cdn.jsdelivr.net/npm/vxe-pc-ui@3"></script>
62
- <script src="https://cdn.jsdelivr.net/npm/vxe-table@3"></script>
63
- </head>
64
- <body>
65
- <div id="app">
66
- <div>
67
- <vxe-table :data="tableData">
68
- <vxe-column type="seq" title="Seq" width="60"></vxe-column>
69
- <vxe-column field="name" title="Name"></vxe-column>
70
- <vxe-column field="role" title="Role"></vxe-column>
71
- <vxe-colgroup title="Group1">
72
- <vxe-column field="sex" title="Sex"></vxe-column>
73
- <vxe-column field="address" title="Address"></vxe-column>
74
- </vxe-colgroup>
75
- </vxe-table>
76
- </div>
77
- </div>
78
- <script>
79
- (function () {
80
- var App = {
81
- data() {
82
- return {
83
- tableData: [
84
- { id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', address: 'Shenzhen' },
85
- { id: 10002, name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou' },
86
- { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai' }
87
- ]
88
- }
89
- }
90
- }
91
- new Vue(App).$mount('#app')
92
- })()
93
- </script>
94
- </body>
95
- </html>
96
- ```
97
-
98
- ## Contributors
99
-
100
- Thank you to everyone who contributed to this project.
101
-
102
- [![vxe-table](https://contrib.rocks/image?repo=x-extends/vxe-table)](https://github.com/x-extends/vxe-table/graphs/contributors)
103
-
104
- ## License
105
-
106
- [MIT](LICENSE) © 2019-present, Xu Liangzhan
1
+ # vxe-table
2
+
3
+ [![github star](https://img.shields.io/github/stars/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/stargazers)
4
+ [![npm version](https://img.shields.io/npm/v/vxe-table.svg?style=flat-square)](https://www.npmjs.com/package/vxe-table)
5
+ [![NodeJS with Webpack](https://github.com/x-extends/vxe-table/actions/workflows/webpack.yml/badge.svg)](https://github.com/x-extends/vxe-table/actions/workflows/webpack.yml)
6
+ [![npm downloads](https://img.shields.io/npm/dt/vxe-table.svg?style=flat-square)](https://npm-stat.com/charts.html?package=vxe-table)
7
+ [![issues](https://img.shields.io/github/issues/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/issues)
8
+ [![issues closed](https://img.shields.io/github/issues-closed/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/issues?q=is%3Aissue+is%3Aclosed)
9
+ [![pull requests](https://img.shields.io/github/issues-pr/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/pulls)
10
+ [![pull requests closed](https://img.shields.io/github/issues-pr-closed/x-extends/vxe-table.svg)](https://github.com/x-extends/vxe-table/pulls?q=is%3Apr+is%3Aclosed)
11
+ [![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)
12
+
13
+ 一个基于 [Vxe UI](https://github.com/x-extends/vxe-pc-ui) 的 PC 端表格组件,支持增删改查的可编辑表格,支持 Excel 复制粘贴、数据透视表、虚拟列表高性能的表格解决方案
14
+
15
+ ## 浏览器支持
16
+
17
+ ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
18
+ --- | --- | --- | --- | --- |
19
+ 80+ ✔ | 80+ ✔ | 90+ ✔ | 75+ ✔ | 10+ ✔ |
20
+
21
+ ## 安装
22
+
23
+ 版本:[vue](https://www.npmjs.com/package/vue) 2.x
24
+
25
+ ```shell
26
+ npm install vxe-table@3
27
+ ```
28
+
29
+ Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.net/npm/vxe-table/)
30
+
31
+ ### NPM
32
+
33
+ ```javascript
34
+ // ...
35
+ import VxeUITable from 'vxe-table'
36
+ import 'vxe-table/lib/style.css'
37
+ // ...
38
+
39
+ createApp(App).use(VxeUITable).mount('#app')
40
+ ```
41
+
42
+ ### CDN
43
+
44
+ 使用第三方 CDN 方式记得锁定版本号,避免受到非兼容性更新的影响
45
+ ***不建议将第三方的 CDN 地址用于正式环境,因为该连接随时都可能会失效***
46
+
47
+ ```HTML
48
+ <!DOCTYPE html>
49
+ <html>
50
+ <head>
51
+ <meta charset="utf-8">
52
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
53
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
54
+ <!-- style -->
55
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-pc-ui@3/lib/style.css">
56
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-table@3/lib/style.css">
57
+ <!-- vue -->
58
+ <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
59
+ <!-- table -->
60
+ <script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
61
+ <script src="https://cdn.jsdelivr.net/npm/vxe-pc-ui@3"></script>
62
+ <script src="https://cdn.jsdelivr.net/npm/vxe-table@3"></script>
63
+ </head>
64
+ <body>
65
+ <div id="app">
66
+ <div>
67
+ <vxe-table :data="tableData">
68
+ <vxe-column type="seq" title="Seq" width="60"></vxe-column>
69
+ <vxe-column field="name" title="Name"></vxe-column>
70
+ <vxe-column field="role" title="Role"></vxe-column>
71
+ <vxe-colgroup title="Group1">
72
+ <vxe-column field="sex" title="Sex"></vxe-column>
73
+ <vxe-column field="address" title="Address"></vxe-column>
74
+ </vxe-colgroup>
75
+ </vxe-table>
76
+ </div>
77
+ </div>
78
+ <script>
79
+ (function () {
80
+ var App = {
81
+ data() {
82
+ return {
83
+ tableData: [
84
+ { id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', address: 'Shenzhen' },
85
+ { id: 10002, name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou' },
86
+ { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai' }
87
+ ]
88
+ }
89
+ }
90
+ }
91
+ new Vue(App).$mount('#app')
92
+ })()
93
+ </script>
94
+ </body>
95
+ </html>
96
+ ```
97
+
98
+ ## Contributors
99
+
100
+ Thank you to everyone who contributed to this project.
101
+
102
+ [![vxe-table](https://contrib.rocks/image?repo=x-extends/vxe-table)](https://github.com/x-extends/vxe-table/graphs/contributors)
103
+
104
+ ## License
105
+
106
+ [MIT](LICENSE) © 2019-present, Xu Liangzhan
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: 'Loading'
558
558
  },
559
+ switch: {
560
+ onText: 'On',
561
+ offText: 'Off'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',
@@ -556,6 +556,10 @@ export default {
556
556
  contextMenu: {
557
557
  loadingText: '加载中...'
558
558
  },
559
+ switch: {
560
+ onText: '打开',
561
+ offText: '关闭'
562
+ },
559
563
  gantt: {
560
564
  tFullFormat: {
561
565
  year: '{yyyy}年',