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 fontStyle: FluText.Title
} }
FluText{ FluText{
text:"v1.1.4" text:"v1.1.5"
fontStyle: FluText.Body fontStyle: FluText.Body
Layout.alignment: Qt.AlignBottom Layout.alignment: Qt.AlignBottom
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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