mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
Merge pull request #330 from kevinlq/main
FluNavigationView 组件增加了 tooltip 提示,交互更友好些。
This commit is contained in:
commit
40ce63e1df
@ -176,6 +176,11 @@ Item {
|
|||||||
leftMargin: 6
|
leftMargin: 6
|
||||||
rightMargin: 6
|
rightMargin: 6
|
||||||
}
|
}
|
||||||
|
FluTooltip {
|
||||||
|
text: model.title
|
||||||
|
visible: item_control.hovered && model.title && d.isCompact
|
||||||
|
delay: 400
|
||||||
|
}
|
||||||
MouseArea{
|
MouseArea{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
@ -455,6 +460,11 @@ Item {
|
|||||||
leftMargin: 6
|
leftMargin: 6
|
||||||
rightMargin: 6
|
rightMargin: 6
|
||||||
}
|
}
|
||||||
|
FluTooltip {
|
||||||
|
text: model.title
|
||||||
|
visible: item_control.hovered && model.title && d.isCompact
|
||||||
|
delay: 400
|
||||||
|
}
|
||||||
onClicked:{
|
onClicked:{
|
||||||
if(type === 0){
|
if(type === 0){
|
||||||
if(model.onTapListener){
|
if(model.onTapListener){
|
||||||
|
@ -177,6 +177,11 @@ Item {
|
|||||||
leftMargin: 6
|
leftMargin: 6
|
||||||
rightMargin: 6
|
rightMargin: 6
|
||||||
}
|
}
|
||||||
|
FluTooltip {
|
||||||
|
text: model.title
|
||||||
|
visible: item_control.hovered && model.title && d.isCompact
|
||||||
|
delay: 400
|
||||||
|
}
|
||||||
MouseArea{
|
MouseArea{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
@ -458,6 +463,11 @@ Item {
|
|||||||
leftMargin: 6
|
leftMargin: 6
|
||||||
rightMargin: 6
|
rightMargin: 6
|
||||||
}
|
}
|
||||||
|
FluTooltip {
|
||||||
|
text: model.title
|
||||||
|
visible: item_control.hovered && model.title && d.isCompact
|
||||||
|
delay: 400
|
||||||
|
}
|
||||||
onClicked:{
|
onClicked:{
|
||||||
if(type === 0){
|
if(type === 0){
|
||||||
if(model.onTapListener){
|
if(model.onTapListener){
|
||||||
|
Loading…
Reference in New Issue
Block a user