vxe-table 3.10.11 → 3.10.13
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/es/style.css +1 -1
- package/es/table/module/edit/mixin.js +7 -1
- package/es/table/src/methods.js +17 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +25 -3
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +6 -1
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/methods.js +17 -0
- package/lib/ui/index.js +1 -1
- 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/table/module/edit/mixin.ts +6 -1
- package/packages/table/src/methods.ts +17 -0
- /package/es/{iconfont.1731339180386.ttf → iconfont.1731464588289.ttf} +0 -0
- /package/es/{iconfont.1731339180386.woff → iconfont.1731464588289.woff} +0 -0
- /package/es/{iconfont.1731339180386.woff2 → iconfont.1731464588289.woff2} +0 -0
- /package/lib/{iconfont.1731339180386.ttf → iconfont.1731464588289.ttf} +0 -0
- /package/lib/{iconfont.1731339180386.woff → iconfont.1731464588289.woff} +0 -0
- /package/lib/{iconfont.1731339180386.woff2 → iconfont.1731464588289.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.13",
|
|
4
4
|
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、列拖拽,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"style": "lib/style.css",
|
|
29
29
|
"typings": "types/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"vxe-pc-ui": "^3.2.
|
|
31
|
+
"vxe-pc-ui": "^3.2.21"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
|
|
@@ -634,7 +634,12 @@ export default {
|
|
|
634
634
|
if (XEUtils.isFunction(autoFocus)) {
|
|
635
635
|
inputElem = autoFocus.call(this, params)
|
|
636
636
|
} else if (autoFocus) {
|
|
637
|
-
|
|
637
|
+
if (autoFocus === true) {
|
|
638
|
+
// 自动匹配模式,会自动匹配第一个可输入元素
|
|
639
|
+
inputElem = cell.querySelector('input,textarea')
|
|
640
|
+
} else {
|
|
641
|
+
inputElem = cell.querySelector(autoFocus)
|
|
642
|
+
}
|
|
638
643
|
if (inputElem) {
|
|
639
644
|
inputElem.focus()
|
|
640
645
|
}
|
|
@@ -1262,6 +1262,23 @@ const Methods = {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
return this.createData(records).then((rows: any) => isArr ? rows : rows[0])
|
|
1264
1264
|
},
|
|
1265
|
+
// toOriginalRecords (rows: any[]) {
|
|
1266
|
+
// const { treeConfig } = props
|
|
1267
|
+
// const treeOpts = computeTreeOpts.value
|
|
1268
|
+
// const { transform, mapChildrenField } = treeOpts
|
|
1269
|
+
// const rowkey = getRowkey($xeTable)
|
|
1270
|
+
// if (treeConfig) {
|
|
1271
|
+
// if (transform) {
|
|
1272
|
+
// return []
|
|
1273
|
+
// }
|
|
1274
|
+
// return []
|
|
1275
|
+
// }
|
|
1276
|
+
// return rows.map(item => {
|
|
1277
|
+
// const obj = Object.assign({}, item)
|
|
1278
|
+
// delete obj.rowkey
|
|
1279
|
+
// return obj
|
|
1280
|
+
// })
|
|
1281
|
+
// },
|
|
1265
1282
|
/**
|
|
1266
1283
|
* 还原数据
|
|
1267
1284
|
* 如果不传任何参数,则还原整个表格
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|