鼠标样式

This commit is contained in:
yyy 2025-03-19 10:27:48 +08:00
parent dbc960d4a1
commit 0896a1bda3

View File

@ -1320,12 +1320,22 @@ const toolbarClick = async (item) => {
toolbarSwitchType.value = type toolbarSwitchType.value = type
} }
//
if (toolbarSwitchType.value !== 'text') { if (toolbarSwitchType.value !== 'text') {
state.cursorStyle = `auto` state.cursorStyle = `auto`
state.textFormToolShow = false state.textFormToolShow = false
state.showInputBox = false state.showInputBox = false
state.inputBoxValue = '' state.inputBoxValue = ''
} }
if (
toolbarSwitchType.value === 'generateLine' ||
toolbarSwitchType.value === 'createLineLibrary' ||
toolbarSwitchType.value === 'createRegion'
) {
state.cursorStyle = 'crosshair'
} else {
state.cursorStyle = `auto`
}
// //
if ( if (
@ -1534,6 +1544,9 @@ const toolbarClick = async (item) => {
removeEventListener() // removeEventListener() //
equipmentToolDialogRef.value.open(equipmentList) equipmentToolDialogRef.value.open(equipmentList)
break break
case 'generateLine':
// 线
break
} }
} }