vxe-table 3.9.0 → 3.9.2
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.
- package/README.md +80 -9
- package/es/grid/src/grid.js +4 -4
- package/es/locale/lang/en-US.js +4 -1
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/table/module/edit/mixin.js +2 -16
- package/es/table/src/methods.js +71 -22
- package/es/table/src/table.js +28 -28
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +4 -4
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +133 -86
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +4 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -1
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -0
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +2 -16
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/methods.js +93 -35
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +28 -28
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +4 -4
- package/packages/locale/lang/en-US.ts +4 -1
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/module/edit/mixin.ts +2 -16
- package/packages/table/src/methods.ts +73 -22
- package/packages/table/src/table.ts +28 -28
- /package/es/{iconfont.1728348263835.ttf → iconfont.1728637870047.ttf} +0 -0
- /package/es/{iconfont.1728348263835.woff → iconfont.1728637870047.woff} +0 -0
- /package/es/{iconfont.1728348263835.woff2 → iconfont.1728637870047.woff2} +0 -0
- /package/lib/{iconfont.1728348263835.ttf → iconfont.1728637870047.ttf} +0 -0
- /package/lib/{iconfont.1728348263835.woff → iconfont.1728637870047.woff} +0 -0
- /package/lib/{iconfont.1728348263835.woff2 → iconfont.1728637870047.woff2} +0 -0
package/README.md
CHANGED
|
@@ -114,15 +114,86 @@ Vue.use(VxeTable)
|
|
|
114
114
|
***不建议将第三方的 CDN 地址用于正式环境,因为该连接随时都可能会失效***
|
|
115
115
|
|
|
116
116
|
```HTML
|
|
117
|
-
|
|
118
|
-
<
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<
|
|
125
|
-
<
|
|
117
|
+
<!DOCTYPE html>
|
|
118
|
+
<html>
|
|
119
|
+
<head>
|
|
120
|
+
<meta charset="utf-8">
|
|
121
|
+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
|
122
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
123
|
+
<!-- style -->
|
|
124
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-pc-ui@3/lib/style.css">
|
|
125
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vxe-table@3/lib/style.css">
|
|
126
|
+
<!-- vue -->
|
|
127
|
+
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
|
|
128
|
+
<!-- table -->
|
|
129
|
+
<script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
|
|
130
|
+
<script src="https://cdn.jsdelivr.net/npm/vxe-pc-ui@3"></script>
|
|
131
|
+
<script src="https://cdn.jsdelivr.net/npm/vxe-table@3"></script>
|
|
132
|
+
</head>
|
|
133
|
+
<body>
|
|
134
|
+
<div id="app">
|
|
135
|
+
<div>
|
|
136
|
+
<vxe-table :data="tableData">
|
|
137
|
+
<vxe-column type="seq" title="Seq" width="60"></vxe-column>
|
|
138
|
+
<vxe-column field="name" title="Name"></vxe-column>
|
|
139
|
+
<vxe-column field="role" title="Role"></vxe-column>
|
|
140
|
+
<vxe-colgroup title="Group1">
|
|
141
|
+
<vxe-column field="sex" title="Sex"></vxe-column>
|
|
142
|
+
<vxe-column field="address" title="Address"></vxe-column>
|
|
143
|
+
</vxe-colgroup>
|
|
144
|
+
</vxe-table>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
<script>
|
|
148
|
+
(function () {
|
|
149
|
+
var App = {
|
|
150
|
+
data() {
|
|
151
|
+
return {
|
|
152
|
+
tableData: [
|
|
153
|
+
{ id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', address: 'Shenzhen' },
|
|
154
|
+
{ id: 10002, name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou' },
|
|
155
|
+
{ id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai' }
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
new Vue(App).$mount('#app')
|
|
161
|
+
})()
|
|
162
|
+
</script>
|
|
163
|
+
</body>
|
|
164
|
+
</html>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## 示例
|
|
168
|
+
|
|
169
|
+
```html
|
|
170
|
+
<template>
|
|
171
|
+
<div>
|
|
172
|
+
<vxe-table :data="tableData">
|
|
173
|
+
<vxe-column type="seq" title="Seq" width="60"></vxe-column>
|
|
174
|
+
<vxe-column field="name" title="Name"></vxe-column>
|
|
175
|
+
<vxe-column field="role" title="Role"></vxe-column>
|
|
176
|
+
<vxe-colgroup title="Group1">
|
|
177
|
+
<vxe-column field="sex" title="Sex"></vxe-column>
|
|
178
|
+
<vxe-column field="address" title="Address"></vxe-column>
|
|
179
|
+
</vxe-colgroup>
|
|
180
|
+
</vxe-table>
|
|
181
|
+
</div>
|
|
182
|
+
</template>
|
|
183
|
+
|
|
184
|
+
<script>
|
|
185
|
+
export default {
|
|
186
|
+
data() {
|
|
187
|
+
return {
|
|
188
|
+
tableData: [
|
|
189
|
+
{ id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', address: 'Shenzhen' },
|
|
190
|
+
{ id: 10002, name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou' },
|
|
191
|
+
{ id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai' }
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
</script>
|
|
126
197
|
```
|
|
127
198
|
|
|
128
199
|
## 在线文档
|
package/es/grid/src/grid.js
CHANGED
|
@@ -367,25 +367,25 @@ export default {
|
|
|
367
367
|
return this.computePagerOpts;
|
|
368
368
|
},
|
|
369
369
|
computePagerOpts() {
|
|
370
|
-
return Object.assign({},
|
|
370
|
+
return Object.assign({}, getConfig().grid.pagerConfig, this.pagerConfig);
|
|
371
371
|
},
|
|
372
372
|
formOpts() {
|
|
373
373
|
return this.computeFormOpts;
|
|
374
374
|
},
|
|
375
375
|
computeFormOpts() {
|
|
376
|
-
return Object.assign({},
|
|
376
|
+
return Object.assign({}, getConfig().grid.formConfig, this.formConfig);
|
|
377
377
|
},
|
|
378
378
|
toolbarOpts() {
|
|
379
379
|
return this.computeToolbarOpts;
|
|
380
380
|
},
|
|
381
381
|
computeToolbarOpts() {
|
|
382
|
-
return Object.assign({},
|
|
382
|
+
return Object.assign({}, getConfig().grid.toolbarConfig, this.toolbarConfig || this.toolbar);
|
|
383
383
|
},
|
|
384
384
|
zoomOpts() {
|
|
385
385
|
return this.computeZoomOpts;
|
|
386
386
|
},
|
|
387
387
|
computeZoomOpts() {
|
|
388
|
-
return Object.assign({},
|
|
388
|
+
return Object.assign({}, getConfig().grid.zoomConfig, this.zoomConfig);
|
|
389
389
|
},
|
|
390
390
|
renderStyle() {
|
|
391
391
|
return this.isZMax ? { zIndex: this.tZindex } : null;
|
package/es/locale/lang/en-US.js
CHANGED
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
goto: 'Go to',
|
|
90
90
|
gotoTitle: 'Number',
|
|
91
91
|
pagesize: '{0}/page',
|
|
92
|
-
total: 'Total {0}
|
|
92
|
+
total: 'Total {0} records',
|
|
93
93
|
pageClassifier: '',
|
|
94
94
|
homePage: 'Home',
|
|
95
95
|
homePageTitle: 'Home page',
|
|
@@ -320,6 +320,9 @@ export default {
|
|
|
320
320
|
fileTitle: 'Upload file'
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
|
+
empty: {
|
|
324
|
+
defText: 'No Data'
|
|
325
|
+
},
|
|
323
326
|
formDesign: {
|
|
324
327
|
formName: 'Form name',
|
|
325
328
|
defFormTitle: 'Unnamed form',
|
package/es/locale/lang/es-ES.js
CHANGED
package/es/locale/lang/hu-HU.js
CHANGED
package/es/locale/lang/ja-JP.js
CHANGED
package/es/locale/lang/ko-KR.js
CHANGED
package/es/locale/lang/pt-BR.js
CHANGED
package/es/locale/lang/ru-RU.js
CHANGED
package/es/locale/lang/uk-UA.js
CHANGED
package/es/locale/lang/vi-VN.js
CHANGED
package/es/locale/lang/zh-CHT.js
CHANGED