mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
update
This commit is contained in:
parent
db47a75f6b
commit
531bffdf1a
@ -8,7 +8,7 @@ Button {
|
|||||||
property string contentDescription: ""
|
property string contentDescription: ""
|
||||||
QtObject{
|
QtObject{
|
||||||
id:d
|
id:d
|
||||||
property bool checked: rect_back.height === background.height
|
property bool checked: rect_back.height == background.height
|
||||||
}
|
}
|
||||||
property color normalColor: {
|
property color normalColor: {
|
||||||
if(d.checked){
|
if(d.checked){
|
||||||
|
@ -69,6 +69,8 @@ Window {
|
|||||||
id:popup_loading
|
id:popup_loading
|
||||||
modal:true
|
modal:true
|
||||||
focus: true
|
focus: true
|
||||||
|
width: window.width
|
||||||
|
height: window.height
|
||||||
anchors.centerIn: Overlay.overlay
|
anchors.centerIn: Overlay.overlay
|
||||||
closePolicy: {
|
closePolicy: {
|
||||||
if(cancel){
|
if(cancel){
|
||||||
@ -76,17 +78,38 @@ Window {
|
|||||||
}
|
}
|
||||||
return Popup.NoAutoClose
|
return Popup.NoAutoClose
|
||||||
}
|
}
|
||||||
Overlay.modal: Rectangle {
|
Overlay.modal: Item {}
|
||||||
color: "#44000000"
|
|
||||||
}
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if(!visible){
|
if(!visible){
|
||||||
loader_loading.sourceComponent = undefined
|
loader_loading.sourceComponent = undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
visible: true
|
padding: 0
|
||||||
background: Item{}
|
opacity: 0
|
||||||
|
visible:true
|
||||||
|
Behavior on opacity {
|
||||||
|
SequentialAnimation {
|
||||||
|
PauseAnimation {
|
||||||
|
duration: 88
|
||||||
|
}
|
||||||
|
NumberAnimation{
|
||||||
|
duration: 167
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Component.onCompleted: {
|
||||||
|
opacity = 1
|
||||||
|
}
|
||||||
|
background: Rectangle{
|
||||||
|
color:"#44000000"
|
||||||
|
}
|
||||||
contentItem: Item{
|
contentItem: Item{
|
||||||
|
MouseArea{
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: {
|
||||||
|
popup_loading.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
ColumnLayout{
|
ColumnLayout{
|
||||||
spacing: 8
|
spacing: 8
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
@ -9,7 +9,7 @@ Button {
|
|||||||
property string contentDescription: ""
|
property string contentDescription: ""
|
||||||
QtObject{
|
QtObject{
|
||||||
id:d
|
id:d
|
||||||
property bool checked: rect_back.height === background.height
|
property bool checked: rect_back.height == background.height
|
||||||
}
|
}
|
||||||
property color normalColor: {
|
property color normalColor: {
|
||||||
if(d.checked){
|
if(d.checked){
|
||||||
|
@ -68,6 +68,8 @@ Window {
|
|||||||
id:popup_loading
|
id:popup_loading
|
||||||
modal:true
|
modal:true
|
||||||
focus: true
|
focus: true
|
||||||
|
width: window.width
|
||||||
|
height: window.height
|
||||||
anchors.centerIn: Overlay.overlay
|
anchors.centerIn: Overlay.overlay
|
||||||
closePolicy: {
|
closePolicy: {
|
||||||
if(cancel){
|
if(cancel){
|
||||||
@ -75,17 +77,38 @@ Window {
|
|||||||
}
|
}
|
||||||
return Popup.NoAutoClose
|
return Popup.NoAutoClose
|
||||||
}
|
}
|
||||||
Overlay.modal: Rectangle {
|
Overlay.modal: Item {}
|
||||||
color: "#44000000"
|
|
||||||
}
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if(!visible){
|
if(!visible){
|
||||||
loader_loading.sourceComponent = undefined
|
loader_loading.sourceComponent = undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
visible: true
|
padding: 0
|
||||||
background: Item{}
|
opacity: 0
|
||||||
|
visible:true
|
||||||
|
Behavior on opacity {
|
||||||
|
SequentialAnimation {
|
||||||
|
PauseAnimation {
|
||||||
|
duration: 88
|
||||||
|
}
|
||||||
|
NumberAnimation{
|
||||||
|
duration: 167
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Component.onCompleted: {
|
||||||
|
opacity = 1
|
||||||
|
}
|
||||||
|
background: Rectangle{
|
||||||
|
color:"#44000000"
|
||||||
|
}
|
||||||
contentItem: Item{
|
contentItem: Item{
|
||||||
|
MouseArea{
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: {
|
||||||
|
popup_loading.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
ColumnLayout{
|
ColumnLayout{
|
||||||
spacing: 8
|
spacing: 8
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
Loading…
Reference in New Issue
Block a user