This commit is contained in:
zhuzichu
2024-01-17 14:00:20 +08:00
parent 4cfd14e9bd
commit 0f3910c96b
4 changed files with 66 additions and 32 deletions

View File

@ -4,6 +4,7 @@ import FluentUI 1.0
T.Slider {
property bool tooltipEnabled: true
property string text: String(control.value)
id: control
to:100
stepSize:1
@ -68,6 +69,6 @@ T.Slider {
FluTooltip{
parent: control.handle
visible: control.tooltipEnabled && (control.pressed || control.hovered)
text:String(control.value)
text:control.text
}
}