vxe-table 3.10.11 → 3.10.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "3.10.11",
3
+ "version": "3.10.12",
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.19"
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
- inputElem = cell.querySelector(autoFocus)
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
  }