vue2-client 1.13.20 → 1.13.21

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": "vue2-client",
3
- "version": "1.13.20",
3
+ "version": "1.13.21",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -107,8 +107,12 @@ export default {
107
107
  console.warn('未找到父级a-row元素')
108
108
  return []
109
109
  }
110
- // 获取a-row中的所有a-col
111
- const allCols = Array.from(row.querySelectorAll('.ant-col-12'))
110
+
111
+ // 修改这里:只获取直接子元素中的.ant-col-12
112
+ const allCols = Array.from(row.children).filter(child =>
113
+ child.className.includes('ant-col-12')
114
+ )
115
+
112
116
  // 过滤掉当前a-col,返回其他所有a-col
113
117
  return allCols.filter(col => col !== currentCol)
114
118
  } catch (error) {