mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 21:37:04 +08:00
update
This commit is contained in:
parent
5ac0ba7463
commit
0810572e27
@ -8,7 +8,7 @@ import "qrc:///example/qml/component"
|
|||||||
FluScrollablePage{
|
FluScrollablePage{
|
||||||
|
|
||||||
title:"TimePicker"
|
title:"TimePicker"
|
||||||
|
launchMode: FluPage.SingleInstance
|
||||||
FluArea{
|
FluArea{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
@ -60,10 +60,10 @@ FluScrollablePage{
|
|||||||
}
|
}
|
||||||
|
|
||||||
FluTimePicker{
|
FluTimePicker{
|
||||||
hourFormat:FluTimePicker.HH
|
hourFormat:FluTimePicker.HH
|
||||||
onCurrentChanged: {
|
onCurrentChanged: {
|
||||||
showSuccess(current.toLocaleTimeString(Qt.locale("de_DE")))
|
showSuccess(current.toLocaleTimeString(Qt.locale("de_DE")))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ CustomWindow {
|
|||||||
//Stack模式,每次切换都会将页面压入栈中,随着栈的页面增多,消耗的内存也越多,内存消耗多就会卡顿,这时候就需要按返回将页面pop掉,释放内存。该模式可以配合FluPage中的launchMode属性,设置页面的启动模式
|
//Stack模式,每次切换都会将页面压入栈中,随着栈的页面增多,消耗的内存也越多,内存消耗多就会卡顿,这时候就需要按返回将页面pop掉,释放内存。该模式可以配合FluPage中的launchMode属性,设置页面的启动模式
|
||||||
// pageMode: FluNavigationView.Stack
|
// pageMode: FluNavigationView.Stack
|
||||||
//NoStack模式,每次切换都会销毁之前的页面然后创建一个新的页面,只需消耗少量内存(推荐)
|
//NoStack模式,每次切换都会销毁之前的页面然后创建一个新的页面,只需消耗少量内存(推荐)
|
||||||
pageMode: FluNavigationView.NoStack
|
// pageMode: FluNavigationView.NoStack
|
||||||
items: ItemsOriginal
|
items: ItemsOriginal
|
||||||
footerItems:ItemsFooter
|
footerItems:ItemsFooter
|
||||||
topPadding:FluTools.isMacos() ? 20 : 5
|
topPadding:FluTools.isMacos() ? 20 : 5
|
||||||
|
@ -525,7 +525,7 @@ Item {
|
|||||||
nav_list.currentIndex = item._idx
|
nav_list.currentIndex = item._idx
|
||||||
if(pageMode === FluNavigationView.Stack){
|
if(pageMode === FluNavigationView.Stack){
|
||||||
var nav_stack = loader_content.item.navStack()
|
var nav_stack = loader_content.item.navStack()
|
||||||
var nav_stack2 = loader_content.item.navStack()
|
var nav_stack2 = loader_content.item.navStack2()
|
||||||
nav_stack.pop()
|
nav_stack.pop()
|
||||||
if(nav_stack.currentItem.launchMode === FluPage.SingleInstance){
|
if(nav_stack.currentItem.launchMode === FluPage.SingleInstance){
|
||||||
var url = nav_stack.currentItem.url
|
var url = nav_stack.currentItem.url
|
||||||
|
Loading…
Reference in New Issue
Block a user