mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 13:49:08 +08:00
update
This commit is contained in:
parent
47c84ed60e
commit
4b3548563b
@ -11,6 +11,17 @@ FluPage {
|
|||||||
property int topPadding: 0
|
property int topPadding: 0
|
||||||
property int rightPadding: 10
|
property int rightPadding: 10
|
||||||
property int bottomPadding: 10
|
property int bottomPadding: 10
|
||||||
|
property alias color: status_view.color
|
||||||
|
property alias statusMode: status_view.statusMode
|
||||||
|
property alias loadingText: status_view.loadingText
|
||||||
|
property alias emptyText:status_view.emptyText
|
||||||
|
property alias errorText:status_view.errorText
|
||||||
|
property alias errorButtonText:status_view.errorButtonText
|
||||||
|
property alias loadingItem :status_view.loadingItem
|
||||||
|
property alias emptyItem : status_view.emptyItem
|
||||||
|
property alias errorItem :status_view.errorItem
|
||||||
|
signal errorClicked
|
||||||
|
|
||||||
id:control
|
id:control
|
||||||
FluText{
|
FluText{
|
||||||
id:text_title
|
id:text_title
|
||||||
@ -26,9 +37,11 @@ FluPage {
|
|||||||
rightMargin: control.rightPadding
|
rightMargin: control.rightPadding
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item{
|
FluStatusView{
|
||||||
clip: true
|
id:status_view
|
||||||
id:container
|
color: "#00000000"
|
||||||
|
statusMode: FluStatusView.Success
|
||||||
|
onErrorClicked: control.errorClicked()
|
||||||
anchors{
|
anchors{
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
@ -38,5 +51,10 @@ FluPage {
|
|||||||
rightMargin: control.rightPadding
|
rightMargin: control.rightPadding
|
||||||
bottomMargin: control.bottomPadding
|
bottomMargin: control.bottomPadding
|
||||||
}
|
}
|
||||||
|
Item{
|
||||||
|
clip: true
|
||||||
|
id:container
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,16 @@ FluPage {
|
|||||||
property int topPadding: 0
|
property int topPadding: 0
|
||||||
property int rightPadding: 10
|
property int rightPadding: 10
|
||||||
property int bottomPadding: 10
|
property int bottomPadding: 10
|
||||||
|
property alias color: status_view.color
|
||||||
|
property alias statusMode: status_view.statusMode
|
||||||
|
property alias loadingText: status_view.loadingText
|
||||||
|
property alias emptyText:status_view.emptyText
|
||||||
|
property alias errorText:status_view.errorText
|
||||||
|
property alias errorButtonText:status_view.errorButtonText
|
||||||
|
property alias loadingItem :status_view.loadingItem
|
||||||
|
property alias emptyItem : status_view.emptyItem
|
||||||
|
property alias errorItem :status_view.errorItem
|
||||||
|
signal errorClicked
|
||||||
id:control
|
id:control
|
||||||
FluText{
|
FluText{
|
||||||
id:text_title
|
id:text_title
|
||||||
@ -28,9 +38,11 @@ FluPage {
|
|||||||
rightMargin: control.rightPadding
|
rightMargin: control.rightPadding
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Flickable{
|
FluStatusView{
|
||||||
id:flickview
|
id:status_view
|
||||||
clip: true
|
color: "#00000000"
|
||||||
|
statusMode: FluStatusView.Success
|
||||||
|
onErrorClicked: control.errorClicked()
|
||||||
anchors{
|
anchors{
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
@ -38,6 +50,10 @@ FluPage {
|
|||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
bottomMargin: control.bottomPadding
|
bottomMargin: control.bottomPadding
|
||||||
}
|
}
|
||||||
|
Flickable{
|
||||||
|
id:flickview
|
||||||
|
clip: true
|
||||||
|
anchors.fill: parent
|
||||||
contentWidth: parent.width
|
contentWidth: parent.width
|
||||||
contentHeight: container.height
|
contentHeight: container.height
|
||||||
ScrollBar.vertical: FluScrollBar {
|
ScrollBar.vertical: FluScrollBar {
|
||||||
@ -45,10 +61,6 @@ FluPage {
|
|||||||
anchors.rightMargin: 2
|
anchors.rightMargin: 2
|
||||||
}
|
}
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
anchors{
|
|
||||||
top: text_title.bottom
|
|
||||||
bottom: parent.bottom
|
|
||||||
}
|
|
||||||
ColumnLayout{
|
ColumnLayout{
|
||||||
id:container
|
id:container
|
||||||
spacing: control.spacing
|
spacing: control.spacing
|
||||||
@ -63,4 +75,5 @@ FluPage {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user