鼠标样式

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
}
//
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
}
}