鼠标样式
This commit is contained in:
parent
dbc960d4a1
commit
0896a1bda3
@ -1320,12 +1320,22 @@ const toolbarClick = async (item) => {
|
||||
toolbarSwitchType.value = type
|
||||
}
|
||||
|
||||
//鼠标样式的问题
|
||||
if (toolbarSwitchType.value !== 'text') {
|
||||
state.cursorStyle = `auto`
|
||||
state.textFormToolShow = false
|
||||
state.showInputBox = false
|
||||
state.inputBoxValue = ''
|
||||
}
|
||||
if (
|
||||
toolbarSwitchType.value === 'generateLine' ||
|
||||
toolbarSwitchType.value === 'createLineLibrary' ||
|
||||
toolbarSwitchType.value === 'createRegion'
|
||||
) {
|
||||
state.cursorStyle = 'crosshair'
|
||||
} else {
|
||||
state.cursorStyle = `auto`
|
||||
}
|
||||
|
||||
//工具切换 不适用框选的 要把框选的信息都删掉
|
||||
if (
|
||||
@ -1534,6 +1544,9 @@ const toolbarClick = async (item) => {
|
||||
removeEventListener() //移除监听
|
||||
equipmentToolDialogRef.value.open(equipmentList)
|
||||
break
|
||||
case 'generateLine':
|
||||
// 生成直线
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user