fix(qml/AppUI): 修复鼠标移动到搜索框不是光标样式

This commit is contained in:
youdiansaodongxi 2024-07-08 17:10:33 +08:00
parent d1585289b2
commit 4844bc739b
2 changed files with 15 additions and 0 deletions

View File

@ -100,6 +100,12 @@ Item {
updateTextInputColor(); updateTextInputColor();
forceActiveFocus(); forceActiveFocus();
} }
MouseArea {
anchors.fill: parent
cursorShape: Qt.IBeamCursor
enabled: false
}
} }
MouseArea { MouseArea {

View File

@ -130,4 +130,13 @@ UkuiItems.StyleBackground {
textInput.clear(); textInput.clear();
} }
} }
MouseArea {
anchors.left: textInput.left
anchors.verticalCenter: parent.verticalCenter
width: clearButton.visible ? textInput.width : textInput.width + clearButton.width
height: parent.height
cursorShape: Qt.IBeamCursor
enabled: false
}
} }