vxe-table 4.7.36 → 4.7.38

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 (94) hide show
  1. package/README.en.md +35 -12
  2. package/README.md +34 -11
  3. package/README.zh-TW.md +35 -12
  4. package/es/components.js +6 -0
  5. package/es/iconfont.1719496140745.ttf +0 -0
  6. package/es/iconfont.1719496140745.woff +0 -0
  7. package/es/iconfont.1719496140745.woff2 +0 -0
  8. package/es/locale/lang/en-US.js +5 -2
  9. package/es/locale/lang/es-ES.js +5 -2
  10. package/es/locale/lang/ja-JP.js +5 -2
  11. package/es/locale/lang/pt-BR.js +5 -2
  12. package/es/locale/lang/zh-CN.js +5 -2
  13. package/es/locale/lang/zh-TC.js +5 -2
  14. package/es/style.css +1 -1
  15. package/es/style.min.css +1 -1
  16. package/es/table/module/export/export-panel.js +1 -6
  17. package/es/table/module/export/hook.js +36 -18
  18. package/es/table/module/export/import-panel.js +7 -14
  19. package/es/table/render/index.js +3 -0
  20. package/es/table/style.css +168 -1
  21. package/es/table/style.min.css +1 -1
  22. package/es/ui/index.js +3 -3
  23. package/es/ui/src/log.js +1 -1
  24. package/es/vxe-table/style.css +168 -1
  25. package/es/vxe-table/style.min.css +1 -1
  26. package/lib/components.js +7 -0
  27. package/lib/components.min.js +1 -1
  28. package/lib/iconfont.1719496140745.ttf +0 -0
  29. package/lib/iconfont.1719496140745.woff +0 -0
  30. package/lib/iconfont.1719496140745.woff2 +0 -0
  31. package/lib/index.umd.js +675 -40
  32. package/lib/index.umd.min.js +1 -1
  33. package/lib/locale/lang/en-US.js +5 -2
  34. package/lib/locale/lang/en-US.min.js +1 -1
  35. package/lib/locale/lang/en-US.umd.js +5 -2
  36. package/lib/locale/lang/es-ES.js +5 -2
  37. package/lib/locale/lang/es-ES.min.js +1 -1
  38. package/lib/locale/lang/es-ES.umd.js +5 -2
  39. package/lib/locale/lang/ja-JP.js +5 -2
  40. package/lib/locale/lang/ja-JP.min.js +1 -1
  41. package/lib/locale/lang/ja-JP.umd.js +5 -2
  42. package/lib/locale/lang/pt-BR.js +5 -2
  43. package/lib/locale/lang/pt-BR.min.js +1 -1
  44. package/lib/locale/lang/pt-BR.umd.js +5 -2
  45. package/lib/locale/lang/zh-CN.js +5 -2
  46. package/lib/locale/lang/zh-CN.min.js +1 -1
  47. package/lib/locale/lang/zh-CN.umd.js +5 -2
  48. package/lib/locale/lang/zh-HK.min.js +1 -1
  49. package/lib/locale/lang/zh-HK.umd.js +5 -2
  50. package/lib/locale/lang/zh-MO.min.js +1 -1
  51. package/lib/locale/lang/zh-MO.umd.js +5 -2
  52. package/lib/locale/lang/zh-TC.js +5 -2
  53. package/lib/locale/lang/zh-TC.min.js +1 -1
  54. package/lib/locale/lang/zh-TC.umd.js +5 -2
  55. package/lib/locale/lang/zh-TW.min.js +1 -1
  56. package/lib/locale/lang/zh-TW.umd.js +5 -2
  57. package/lib/style.css +1 -1
  58. package/lib/style.min.css +1 -1
  59. package/lib/table/module/export/export-panel.js +1 -6
  60. package/lib/table/module/export/export-panel.min.js +1 -1
  61. package/lib/table/module/export/hook.js +35 -18
  62. package/lib/table/module/export/hook.min.js +1 -1
  63. package/lib/table/module/export/import-panel.js +5 -12
  64. package/lib/table/module/export/import-panel.min.js +1 -1
  65. package/lib/table/render/index.js +3 -0
  66. package/lib/table/render/index.min.js +1 -1
  67. package/lib/table/style/style.css +168 -1
  68. package/lib/table/style/style.min.css +1 -1
  69. package/lib/ui/index.js +3 -3
  70. package/lib/ui/index.min.js +1 -1
  71. package/lib/ui/src/log.js +1 -1
  72. package/lib/ui/src/log.min.js +1 -1
  73. package/lib/vxe-table/style/style.css +168 -1
  74. package/lib/vxe-table/style/style.min.css +1 -1
  75. package/package.json +2 -2
  76. package/packages/components.ts +8 -0
  77. package/packages/locale/lang/en-US.ts +5 -2
  78. package/packages/locale/lang/es-ES.ts +5 -2
  79. package/packages/locale/lang/ja-JP.ts +5 -2
  80. package/packages/locale/lang/pt-BR.ts +5 -2
  81. package/packages/locale/lang/zh-CN.ts +5 -2
  82. package/packages/locale/lang/zh-TC.ts +5 -2
  83. package/packages/table/module/export/export-panel.ts +1 -6
  84. package/packages/table/module/export/hook.ts +35 -19
  85. package/packages/table/module/export/import-panel.ts +8 -15
  86. package/packages/table/render/index.ts +3 -0
  87. package/packages/ui/index.ts +1 -1
  88. package/styles/components/icon.scss +185 -0
  89. package/styles/components/old-icon.scss +717 -0
  90. package/styles/components/table-module/export.scss +2 -1
  91. package/styles/components/table.scss +1 -0
  92. package/styles/icon/iconfont.ttf +0 -0
  93. package/styles/icon/iconfont.woff +0 -0
  94. package/styles/icon/iconfont.woff2 +0 -0
package/README.en.md CHANGED
@@ -70,19 +70,37 @@ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
70
70
  Version: [vue](https://www.npmjs.com/package/vue) 3.x
71
71
 
72
72
  ```shell
73
- npm install vxe-table
73
+ npm install vxe-table@next
74
74
  ```
75
75
 
76
76
  Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.net/npm/vxe-table/)
77
77
 
78
- ### npm
78
+ ### NPM
79
+
80
+ ### Use Table
81
+
82
+ ```javascript
83
+ // ...
84
+ import VxeTable from 'vxe-table'
85
+ import 'vxe-table/lib/style.css'
86
+ // ...
87
+
88
+ createApp(App).use(VxeTable).mount('#app')
89
+ ```
90
+
91
+ ### Use Table and UI
79
92
 
80
93
  ```javascript
81
- import { createApp } from 'vue'
82
- import VxeUITable from 'vxe-table'
94
+ // ...
95
+ import VxeTable from 'vxe-table'
83
96
  import 'vxe-table/lib/style.css'
97
+ // ...
98
+
99
+ import VxeUI from 'vxe-pc-ui'
100
+ import 'vxe-pc-ui/lib/style.css'
101
+ // ...
84
102
 
85
- createApp(App).use(VxeUITable).mount('#app')
103
+ createApp(App).use(VxeUI).use(VxeTable).mount('#app')
86
104
  ```
87
105
 
88
106
  ### CDN
@@ -91,11 +109,15 @@ Use a third-party CDN to remember to lock the version number to avoid being affe
91
109
  ***It is not recommended to use the CDN address of a third party in a formal environment because the connection can fail at any time***
92
110
 
93
111
  ```HTML
94
- <!-- Style -->
95
- <link rel="stylesheet" href="https://unpkg.com/vxe-table/lib/style.css">
96
- <!-- Script -->
97
- <script src="https://unpkg.com/xe-utils"></script>
98
- <script src="https://unpkg.com/vxe-table"></script>
112
+ <!-- style -->
113
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-pc-ui/lib/style.css">
114
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-table@next/lib/style.css">
115
+ <!-- vue -->
116
+ <script src="https://cdn.jsdelivr.net/npm/vue"></script>
117
+ <!-- table -->
118
+ <script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
119
+ <script src="https://cdn.jsdelivr.net/npm/vxe-pc-ui"></script>
120
+ <script src="https://cdn.jsdelivr.net/npm/vxe-table@next"></script>
99
121
  ```
100
122
 
101
123
  ## Example
@@ -128,14 +150,15 @@ const tableData = ref([
128
150
 
129
151
  ## Online Documents
130
152
 
131
- 👉 [Document](https://vxetable.cn)
153
+ 👉 [UI Document](https://vxeui.com)
154
+ 👉 [Table Document](https://vxetable.cn)
132
155
 
133
156
  ## Run the project
134
157
 
135
158
  Install dependencies
136
159
 
137
160
  ```shell
138
- npm install
161
+ npm run update
139
162
  ```
140
163
 
141
164
  Start local debugging
package/README.md CHANGED
@@ -84,19 +84,37 @@
84
84
  版本:[vue](https://www.npmjs.com/package/vue) 3.x
85
85
 
86
86
  ```shell
87
- npm install vxe-table
87
+ npm install vxe-table@next
88
88
  ```
89
89
 
90
90
  Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.net/npm/vxe-table/)
91
91
 
92
- ### npm
92
+ ### NPM
93
+
94
+ ### 只使用表格
95
+
96
+ ```javascript
97
+ // ...
98
+ import VxeTable from 'vxe-table'
99
+ import 'vxe-table/lib/style.css'
100
+ // ...
101
+
102
+ createApp(App).use(VxeTable).mount('#app')
103
+ ```
104
+
105
+ ### 使用表格与 UI 库
93
106
 
94
107
  ```javascript
95
- import { createApp } from 'vue'
96
- import VxeUITable from 'vxe-table'
108
+ // ...
109
+ import VxeTable from 'vxe-table'
97
110
  import 'vxe-table/lib/style.css'
111
+ // ...
112
+
113
+ import VxeUI from 'vxe-pc-ui'
114
+ import 'vxe-pc-ui/lib/style.css'
115
+ // ...
98
116
 
99
- createApp(App).use(VxeUITable).mount('#app')
117
+ createApp(App).use(VxeUI).use(VxeTable).mount('#app')
100
118
  ```
101
119
 
102
120
  ### CDN
@@ -105,11 +123,15 @@ createApp(App).use(VxeUITable).mount('#app')
105
123
  ***不建议将第三方的 CDN 地址用于正式环境,因为该连接随时都可能会失效***
106
124
 
107
125
  ```HTML
108
- <!-- 引入样式 -->
109
- <link rel="stylesheet" href="https://unpkg.com/vxe-table/lib/style.css">
110
- <!-- 引入脚本 -->
111
- <script src="https://unpkg.com/xe-utils"></script>
112
- <script src="https://unpkg.com/vxe-table"></script>
126
+ <!-- style -->
127
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-pc-ui/lib/style.css">
128
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-table@next/lib/style.css">
129
+ <!-- vue -->
130
+ <script src="https://cdn.jsdelivr.net/npm/vue"></script>
131
+ <!-- table -->
132
+ <script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
133
+ <script src="https://cdn.jsdelivr.net/npm/vxe-pc-ui"></script>
134
+ <script src="https://cdn.jsdelivr.net/npm/vxe-table@next"></script>
113
135
  ```
114
136
 
115
137
  ## 示例
@@ -142,7 +164,8 @@ const tableData = ref([
142
164
 
143
165
  ## 在线文档
144
166
 
145
- 👉 [官网文档](https://vxetable.cn)
167
+ 👉 [组件文档](https://vxeui.com)
168
+ 👉 [表格文档](https://vxetable.cn)
146
169
 
147
170
  ## QQ 交流群
148
171
 
package/README.zh-TW.md CHANGED
@@ -69,19 +69,37 @@ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
69
69
  版本:[vue](https://www.npmjs.com/package/vue) 3.x
70
70
 
71
71
  ```shell
72
- npm install vxe-table
72
+ npm install vxe-table@next
73
73
  ```
74
74
 
75
75
  Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.net/npm/vxe-table/)
76
76
 
77
- ### npm
77
+ ### NPM
78
+
79
+ ### 使用表格
80
+
81
+ ```javascript
82
+ // ...
83
+ import VxeTable from 'vxe-table'
84
+ import 'vxe-table/lib/style.css'
85
+ // ...
86
+
87
+ createApp(App).use(VxeTable).mount('#app')
88
+ ```
89
+
90
+ ### 使用表格与 UI 库
78
91
 
79
92
  ```javascript
80
- import { createApp } from 'vue'
81
- import VxeUITable from 'vxe-table'
93
+ // ...
94
+ import VxeTable from 'vxe-table'
82
95
  import 'vxe-table/lib/style.css'
96
+ // ...
97
+
98
+ import VxeUI from 'vxe-pc-ui'
99
+ import 'vxe-pc-ui/lib/style.css'
100
+ // ...
83
101
 
84
- createApp(App).use(VxeUITable).mount('#app')
102
+ createApp(App).use(VxeUI).use(VxeTable).mount('#app')
85
103
  ```
86
104
 
87
105
  ### CDN
@@ -90,11 +108,15 @@ createApp(App).use(VxeUITable).mount('#app')
90
108
  ***不建議將第三方的 CDN 地址用於正式環境,因爲該連接隨時都可能會失效***
91
109
 
92
110
  ```HTML
93
- <!-- 引入樣式 -->
94
- <link rel="stylesheet" href="https://unpkg.com/vxe-table/lib/style.css">
95
- <!-- 引入腳本 -->
96
- <script src="https://unpkg.com/xe-utils"></script>
97
- <script src="https://unpkg.com/vxe-table"></script>
111
+ <!-- style -->
112
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-pc-ui/lib/style.css">
113
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-table@next/lib/style.css">
114
+ <!-- vue -->
115
+ <script src="https://cdn.jsdelivr.net/npm/vue"></script>
116
+ <!-- table -->
117
+ <script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
118
+ <script src="https://cdn.jsdelivr.net/npm/vxe-pc-ui"></script>
119
+ <script src="https://cdn.jsdelivr.net/npm/vxe-table@next"></script>
98
120
  ```
99
121
 
100
122
  ## 示例
@@ -127,14 +149,15 @@ const tableData = ref([
127
149
 
128
150
  ## 線上檔案
129
151
 
130
- 👉 [官網檔案](https://vxetable.cn)
152
+ 👉 [組件文檔](https://vxeui.com)
153
+ 👉 [表格文檔](https://vxetable.cn)
131
154
 
132
155
  ## 運行項目
133
156
 
134
157
  安裝依賴
135
158
 
136
159
  ```shell
137
- npm install
160
+ npm run update
138
161
  ```
139
162
 
140
163
  啓動本地調試
package/es/components.js CHANGED
@@ -4,6 +4,7 @@ import { VxeColgroup } from './colgroup';
4
4
  import { VxeGrid } from './grid';
5
5
  import { VxeTable } from './table';
6
6
  import { VxeToolbar } from './toolbar';
7
+ import zhCN from './locale/lang/zh-CN';
7
8
  const components = [
8
9
  VxeColumn,
9
10
  VxeColgroup,
@@ -16,6 +17,11 @@ export function install(app, options) {
16
17
  VxeUI.setConfig(options);
17
18
  components.forEach(component => component.install(app));
18
19
  }
20
+ // 保留兼容老版本
21
+ const defaultLanguage = 'zh-CN';
22
+ VxeUI.setI18n(defaultLanguage, zhCN);
23
+ VxeUI.setLanguage(defaultLanguage);
24
+ VxeUI.setTheme('light');
19
25
  export * from './ui';
20
26
  // Components
21
27
  export * from './table';
Binary file
Binary file
Binary file
@@ -133,14 +133,17 @@ export default {
133
133
  },
134
134
  import: {
135
135
  modes: {
136
- covering: 'Covering',
137
- insert: 'Insert'
136
+ covering: 'Overwrite mode (directly overwrite table data)',
137
+ insert: 'Bottom append (appends new data to the bottom of the table)',
138
+ insertTop: 'Top append (appends new data to the top of the table)',
139
+ insertBottom: 'Bottom append (appends new data to the bottom of the table)'
138
140
  },
139
141
  impTitle: 'Import data',
140
142
  impFile: 'Filename',
141
143
  impSelect: 'Select file',
142
144
  impType: 'File type',
143
145
  impOpts: 'Settings',
146
+ impMode: 'Import mode',
144
147
  impConfirm: 'Import',
145
148
  impCancel: 'Cancel'
146
149
  },
@@ -133,14 +133,17 @@ export default {
133
133
  },
134
134
  import: {
135
135
  modes: {
136
- covering: 'Cubriendo',
137
- insert: 'Insertar'
136
+ covering: 'Overwrite mode (directly overwrite table data)',
137
+ insert: 'Bottom append (appends new data to the bottom of the table)',
138
+ insertTop: 'Top append (appends new data to the top of the table)',
139
+ insertBottom: 'Bottom append (appends new data to the bottom of the table)'
138
140
  },
139
141
  impTitle: 'Importar datos',
140
142
  impFile: 'Nombre del archivo',
141
143
  impSelect: 'Seleccionar archivo',
142
144
  impType: 'Tipo de archivo',
143
145
  impOpts: 'Configuración',
146
+ impMode: 'Import mode',
144
147
  impConfirm: 'Importar',
145
148
  impCancel: 'Cancelar'
146
149
  },
@@ -133,14 +133,17 @@ export default {
133
133
  },
134
134
  import: {
135
135
  modes: {
136
- covering: '上書き',
137
- insert: '追加'
136
+ covering: 'Overwrite mode (directly overwrite table data)',
137
+ insert: 'Bottom append (appends new data to the bottom of the table)',
138
+ insertTop: 'Top append (appends new data to the top of the table)',
139
+ insertBottom: 'Bottom append (appends new data to the bottom of the table)'
138
140
  },
139
141
  impTitle: 'データインポート',
140
142
  impFile: 'ファイル名',
141
143
  impSelect: 'ファイル選択',
142
144
  impType: 'ファイルの種類',
143
145
  impOpts: 'パラメータ指定',
146
+ impMode: 'Import mode',
144
147
  impConfirm: 'インポート',
145
148
  impCancel: 'キャンセル'
146
149
  },
@@ -133,14 +133,17 @@ export default {
133
133
  },
134
134
  import: {
135
135
  modes: {
136
- covering: 'Sobrescrever',
137
- insert: 'Inserir'
136
+ covering: 'Overwrite mode (directly overwrite table data)',
137
+ insert: 'Bottom append (appends new data to the bottom of the table)',
138
+ insertTop: 'Top append (appends new data to the top of the table)',
139
+ insertBottom: 'Bottom append (appends new data to the bottom of the table)'
138
140
  },
139
141
  impTitle: 'Importar dados',
140
142
  impFile: 'Nome do arquivo',
141
143
  impSelect: 'Selecionar arquivo',
142
144
  impType: 'Tipo de arquivo',
143
145
  impOpts: 'Configurações',
146
+ impMode: 'Import mode',
144
147
  impConfirm: 'Importar',
145
148
  impCancel: 'Cancelar'
146
149
  },
@@ -133,14 +133,17 @@ export default {
133
133
  },
134
134
  import: {
135
135
  modes: {
136
- covering: '覆盖',
137
- insert: '新增'
136
+ covering: 'Overwrite mode (directly overwrite table data)',
137
+ insert: 'Bottom append (appends new data to the bottom of the table)',
138
+ insertTop: 'Top append (appends new data to the top of the table)',
139
+ insertBottom: 'Bottom append (appends new data to the bottom of the table)'
138
140
  },
139
141
  impTitle: '导入数据',
140
142
  impFile: '文件名',
141
143
  impSelect: '选择文件',
142
144
  impType: '文件类型',
143
145
  impOpts: '参数设置',
146
+ impMode: '导入模式',
144
147
  impConfirm: '导入',
145
148
  impCancel: '取消'
146
149
  },
@@ -133,14 +133,17 @@ export default {
133
133
  },
134
134
  import: {
135
135
  modes: {
136
- covering: '覆盖',
137
- insert: '新增'
136
+ covering: '覆盖方式(直接覆盖表格数据)',
137
+ insert: '底部追加(在表格的底部追加新数据)',
138
+ insertTop: '顶部追加(在表格的顶部追加新数据)',
139
+ insertBottom: '底部追加(在表格的底部追加新数据)'
138
140
  },
139
141
  impTitle: '導入數據',
140
142
  impFile: '檔名',
141
143
  impSelect: '選擇檔案',
142
144
  impType: '檔案類型',
143
145
  impOpts: '參數設置',
146
+ impMode: '導入模式',
144
147
  impConfirm: '導入',
145
148
  impCancel: '取消'
146
149
  },