vue2-client 1.12.51 → 1.12.52
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
|
@@ -49,7 +49,7 @@ export default {
|
|
|
49
49
|
return {
|
|
50
50
|
isOpen: true,
|
|
51
51
|
// 定义主内容区域的最大和最小宽度百分比
|
|
52
|
-
mainWithData: [{ max:
|
|
52
|
+
mainWithData: [{ max: 17, min: 17 }, { max: 78, min: 56 }]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
mounted () {
|
|
@@ -82,8 +82,8 @@ export default {
|
|
|
82
82
|
return []
|
|
83
83
|
}
|
|
84
84
|
// 获取a-row中的所有a-col
|
|
85
|
-
const allCol1 = Array.from(row.querySelectorAll('.ant-col-
|
|
86
|
-
const allCol2 = Array.from(row.querySelectorAll('.ant-col-
|
|
85
|
+
const allCol1 = Array.from(row.querySelectorAll('.ant-col-4'))
|
|
86
|
+
const allCol2 = Array.from(row.querySelectorAll('.ant-col-14'))
|
|
87
87
|
const allCols = [...allCol1, ...allCol2]
|
|
88
88
|
// 过滤掉当前a-col,返回其他所有a-col
|
|
89
89
|
return allCols.filter(col => col !== currentCol)
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
}
|
|
108
108
|
if (currentCol) {
|
|
109
109
|
// 更新当前列的宽度
|
|
110
|
-
const drawerWidth = isOpen ?
|
|
110
|
+
const drawerWidth = isOpen ? 25 : 2
|
|
111
111
|
currentCol.style.flex = `0 0 ${drawerWidth}%`
|
|
112
112
|
currentCol.style.maxWidth = `${drawerWidth}%`
|
|
113
113
|
// 根据mainWithData设置其他列的宽度
|