main
zhuzihcu 2023-03-28 18:14:14 +08:00
parent 6a2a93561a
commit b70a982586
8 changed files with 53 additions and 2 deletions

View File

@ -35,7 +35,7 @@ FluWindow {
fontStyle: FluText.Title
}
FluText{
text:"v1.1.4"
text:"v1.1.5"
fontStyle: FluText.Body
Layout.alignment: Qt.AlignBottom
}

View File

@ -139,6 +139,16 @@ TextField{
id:input_popup
visible: input.focus
y:input.height
modal: true
dim:false
enter: Transition {
NumberAnimation {
property: "y"
from:0
to:input_popup.y
duration: 150
}
}
onClosed: {
input.focus = false
}

View File

@ -65,6 +65,14 @@ Rectangle {
width: container.width
modal: true
dim:false
enter: Transition {
NumberAnimation {
property: "y"
from:0
to:popup.y
duration: 150
}
}
background: FluCalendarView{
id:container
onDateClicked:

View File

@ -36,6 +36,14 @@ Button{
background: FluColorView{
id:container
}
enter: Transition {
NumberAnimation {
property: "y"
from:0
to:popup.y
duration: 150
}
}
contentItem: Item{}
function showPopup() {
var pos = control.mapToItem(null, 0, 0)

View File

@ -104,6 +104,14 @@ Rectangle {
contentItem: Item{}
modal: true
dim:false
enter: Transition {
NumberAnimation {
property: "y"
from:0
to:popup.y
duration: 150
}
}
background: Rectangle{
id:container
width: 300

View File

@ -75,7 +75,7 @@ Button {
}else if(pos.y>menu.height){
menu.y = -menu.height
}else{
popup.y = window.height-(pos.y+menu.height)
menu.y = window.height-(pos.y+menu.height)
}
menu.open()
}

View File

@ -13,6 +13,15 @@ Menu {
dim:false
contentItem: Item{}
enter: Transition {
NumberAnimation {
property: "y"
from:0
to:popup.y
duration: 150
}
}
background: Item {
Rectangle{
anchors.fill: parent

View File

@ -106,6 +106,14 @@ Rectangle {
contentItem: Item{}
modal: true
dim:false
enter: Transition {
NumberAnimation {
property: "y"
from:0
to:popup.y
duration: 150
}
}
background: Rectangle{
id:container
width: 300