|
@@ -872,13 +872,14 @@ const leftWidth = ref(300)
|
|
|
const onmousedown = () => {
|
|
|
let leftNum = 0
|
|
|
if (isLayout.value === 'no') {
|
|
|
- leftNum = 300
|
|
|
+ leftNum = 0
|
|
|
} else {
|
|
|
leftNum = isCollapse.value ? 142 : 272
|
|
|
}
|
|
|
document.onmousemove = (ve) => {
|
|
|
+ console.log('ve.clientX', ve.clientX)
|
|
|
let diffVal = ve.clientX - leftNum
|
|
|
- console.log(diffVal, 'diffVal')
|
|
|
+ console.log('diffVal', diffVal)
|
|
|
if (diffVal >= 310 && diffVal <= 900) {
|
|
|
leftWidth.value = diffVal
|
|
|
}
|