mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
ac63514451
commit
83f94630f1
@ -6,6 +6,7 @@ import FluentUI
|
|||||||
FluObject{
|
FluObject{
|
||||||
|
|
||||||
property var navigationView
|
property var navigationView
|
||||||
|
property var paneItemMenu
|
||||||
|
|
||||||
id:footer_items
|
id:footer_items
|
||||||
|
|
||||||
@ -21,6 +22,7 @@ FluObject{
|
|||||||
|
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:Lang.settings
|
title:Lang.settings
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
icon:FluentIcons.Settings
|
icon:FluentIcons.Settings
|
||||||
url:"qrc:/example/qml/page/T_Settings.qml"
|
url:"qrc:/example/qml/page/T_Settings.qml"
|
||||||
onTap:{
|
onTap:{
|
||||||
@ -29,4 +31,3 @@ FluObject{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ import FluentUI
|
|||||||
FluObject{
|
FluObject{
|
||||||
|
|
||||||
property var navigationView
|
property var navigationView
|
||||||
|
property var paneItemMenu
|
||||||
|
|
||||||
function rename(item, newName){
|
function rename(item, newName){
|
||||||
if(newName && newName.trim().length>0){
|
if(newName && newName.trim().length>0){
|
||||||
@ -17,6 +18,7 @@ FluObject{
|
|||||||
id:item_home
|
id:item_home
|
||||||
count: 9
|
count: 9
|
||||||
title:Lang.home
|
title:Lang.home
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_home.count
|
count: item_home.count
|
||||||
}
|
}
|
||||||
@ -28,20 +30,6 @@ FluObject{
|
|||||||
}
|
}
|
||||||
navigationView.push(url)
|
navigationView.push(url)
|
||||||
}
|
}
|
||||||
editDelegate: FluTextBox{
|
|
||||||
text:item_home.title
|
|
||||||
}
|
|
||||||
menuDelegate: FluMenu{
|
|
||||||
id:nav_item_right_menu
|
|
||||||
width: 120
|
|
||||||
FluMenuItem{
|
|
||||||
text: "重命名"
|
|
||||||
visible: true
|
|
||||||
onClicked: {
|
|
||||||
item_home.showEdit = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FluPaneItemExpander{
|
FluPaneItemExpander{
|
||||||
@ -54,18 +42,6 @@ FluObject{
|
|||||||
id:item_expander_basic_input
|
id:item_expander_basic_input
|
||||||
title:Lang.basic_input
|
title:Lang.basic_input
|
||||||
icon:FluentIcons.CheckboxComposite
|
icon:FluentIcons.CheckboxComposite
|
||||||
editDelegate: FluTextBox{
|
|
||||||
text:item_expander_basic_input.title
|
|
||||||
}
|
|
||||||
menuDelegate: FluMenu{
|
|
||||||
FluMenuItem{
|
|
||||||
text: "重命名"
|
|
||||||
visible: true
|
|
||||||
onClicked: {
|
|
||||||
item_expander_basic_input.showEdit = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_buttons
|
id:item_buttons
|
||||||
count: 99
|
count: 99
|
||||||
@ -73,6 +49,7 @@ FluObject{
|
|||||||
count: item_buttons.count
|
count: item_buttons.count
|
||||||
}
|
}
|
||||||
title:"Buttons"
|
title:"Buttons"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Button.png"
|
image:"qrc:/example/res/image/control/Button.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"A control that responds to user input and raisesa Click event."
|
desc:"A control that responds to user input and raisesa Click event."
|
||||||
@ -85,6 +62,7 @@ FluObject{
|
|||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_text
|
id:item_text
|
||||||
title:"Text"
|
title:"Text"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
count: 5
|
count: 5
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_text.count
|
count: item_text.count
|
||||||
@ -98,11 +76,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Image"
|
title:"Image"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Image.qml"
|
url:"qrc:/example/qml/page/T_Image.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Slider"
|
title:"Slider"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Slider.png"
|
image:"qrc:/example/res/image/control/Slider.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"A control that lets the user select from a rangeof values by moving a Thumb control along atrack."
|
desc:"A control that lets the user select from a rangeof values by moving a Thumb control along atrack."
|
||||||
@ -111,6 +91,7 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"CheckBox"
|
title:"CheckBox"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Checkbox.png"
|
image:"qrc:/example/res/image/control/Checkbox.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"A control that a user can select or clear."
|
desc:"A control that a user can select or clear."
|
||||||
@ -119,11 +100,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"RadioButton"
|
title:"RadioButton"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_RadioButton.qml"
|
url:"qrc:/example/qml/page/T_RadioButton.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"ToggleSwitch"
|
title:"ToggleSwitch"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_ToggleSwitch.qml"
|
url:"qrc:/example/qml/page/T_ToggleSwitch.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -139,26 +122,31 @@ FluObject{
|
|||||||
icon:FluentIcons.GridView
|
icon:FluentIcons.GridView
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TextBox"
|
title:"TextBox"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_TextBox.qml"
|
url:"qrc:/example/qml/page/T_TextBox.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TimePicker"
|
title:"TimePicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_TimePicker.qml"
|
url:"qrc:/example/qml/page/T_TimePicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"DatePicker"
|
title:"DatePicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_DatePicker.qml"
|
url:"qrc:/example/qml/page/T_DatePicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"CalendarPicker"
|
title:"CalendarPicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_CalendarPicker.qml"
|
url:"qrc:/example/qml/page/T_CalendarPicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"ColorPicker"
|
title:"ColorPicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_ColorPicker.qml"
|
url:"qrc:/example/qml/page/T_ColorPicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -169,6 +157,7 @@ FluObject{
|
|||||||
icon:FluentIcons.SurfaceHub
|
icon:FluentIcons.SurfaceHub
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"InfoBar"
|
title:"InfoBar"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/InfoBar.png"
|
image:"qrc:/example/res/image/control/InfoBar.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"An inline message to display app-wide statuschange information."
|
desc:"An inline message to display app-wide statuschange information."
|
||||||
@ -177,51 +166,61 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Progress"
|
title:"Progress"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Progress.qml"
|
url:"qrc:/example/qml/page/T_Progress.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"RatingControl"
|
title:"RatingControl"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_RatingControl.qml"
|
url:"qrc:/example/qml/page/T_RatingControl.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Badge"
|
title:"Badge"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Badge.qml"
|
url:"qrc:/example/qml/page/T_Badge.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Rectangle"
|
title:"Rectangle"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Rectangle.qml"
|
url:"qrc:/example/qml/page/T_Rectangle.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Clip"
|
title:"Clip"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Clip.qml"
|
url:"qrc:/example/qml/page/T_Clip.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"StatusView"
|
title:"StatusView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_StatusView.qml"
|
url:"qrc:/example/qml/page/T_StatusView.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Carousel"
|
title:"Carousel"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Carousel.qml"
|
url:"qrc:/example/qml/page/T_Carousel.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Expander"
|
title:"Expander"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Expander.qml"
|
url:"qrc:/example/qml/page/T_Expander.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"StaggeredView"
|
title:"StaggeredView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_StaggeredView.qml"
|
url:"qrc:/example/qml/page/T_StaggeredView.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Watermark"
|
title:"Watermark"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Watermark.qml"
|
url:"qrc:/example/qml/page/T_Watermark.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -232,12 +231,14 @@ FluObject{
|
|||||||
icon:FluentIcons.ButtonMenu
|
icon:FluentIcons.ButtonMenu
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Dialog"
|
title:"Dialog"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Dialog.qml"
|
url:"qrc:/example/qml/page/T_Dialog.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_combobox
|
id:item_combobox
|
||||||
title:"ComboBox"
|
title:"ComboBox"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
count: 9
|
count: 9
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_combobox.count
|
count: item_combobox.count
|
||||||
@ -251,11 +252,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Tooltip"
|
title:"Tooltip"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Tooltip.qml"
|
url:"qrc:/example/qml/page/T_Tooltip.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Menu"
|
title:"Menu"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Menu.qml"
|
url:"qrc:/example/qml/page/T_Menu.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -266,6 +269,7 @@ FluObject{
|
|||||||
icon:FluentIcons.AllApps
|
icon:FluentIcons.AllApps
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Pivot"
|
title:"Pivot"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Pivot.png"
|
image:"qrc:/example/res/image/control/Pivot.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:3
|
order:3
|
||||||
@ -275,11 +279,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"BreadcrumbBar"
|
title:"BreadcrumbBar"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_BreadcrumbBar.qml"
|
url:"qrc:/example/qml/page/T_BreadcrumbBar.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TabView"
|
title:"TabView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/TabView.png"
|
image:"qrc:/example/res/image/control/TabView.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:1
|
order:1
|
||||||
@ -289,11 +295,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TreeView"
|
title:"TreeView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_TreeView.qml"
|
url:"qrc:/example/qml/page/T_TreeView.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TableView"
|
title:"TableView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/DataGrid.png"
|
image:"qrc:/example/res/image/control/DataGrid.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:4
|
order:4
|
||||||
@ -303,16 +311,19 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Pagination"
|
title:"Pagination"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Pagination.qml"
|
url:"qrc:/example/qml/page/T_Pagination.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"MultiWindow"
|
title:"MultiWindow"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_MultiWindow.qml"
|
url:"qrc:/example/qml/page/T_MultiWindow.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"FlipView"
|
title:"FlipView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/FlipView.png"
|
image:"qrc:/example/res/image/control/FlipView.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:2
|
order:2
|
||||||
@ -327,21 +338,25 @@ FluObject{
|
|||||||
icon:FluentIcons.Brightness
|
icon:FluentIcons.Brightness
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Acrylic"
|
title:"Acrylic"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Acrylic.qml"
|
url:"qrc:/example/qml/page/T_Acrylic.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Theme"
|
title:"Theme"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Theme.qml"
|
url:"qrc:/example/qml/page/T_Theme.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Typography"
|
title:"Typography"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Typography.qml"
|
url:"qrc:/example/qml/page/T_Typography.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Awesome"
|
title:"Awesome"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Awesome.qml"
|
url:"qrc:/example/qml/page/T_Awesome.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -357,42 +372,50 @@ FluObject{
|
|||||||
icon:FluentIcons.Shop
|
icon:FluentIcons.Shop
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"QRCode"
|
title:"QRCode"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_QRCode.qml"
|
url:"qrc:/example/qml/page/T_QRCode.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Tour"
|
title:"Tour"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Tour.qml"
|
url:"qrc:/example/qml/page/T_Tour.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Timeline"
|
title:"Timeline"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Timeline.qml"
|
url:"qrc:/example/qml/page/T_Timeline.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Screenshot(Todo)"
|
title:"Screenshot(Todo)"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Screenshot.qml"
|
url:"qrc:/example/qml/page/T_Screenshot.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Captcha"
|
title:"Captcha"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Captcha.qml"
|
url:"qrc:/example/qml/page/T_Captcha.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Chart"
|
title:"Chart"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Chart.qml"
|
url:"qrc:/example/qml/page/T_Chart.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Http"
|
title:"Http"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Http.qml"
|
url:"qrc:/example/qml/page/T_Http.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_other
|
id:item_other
|
||||||
title:"RemoteLoader"
|
title:"RemoteLoader"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
count: 99
|
count: 99
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_other.count
|
count: item_other.count
|
||||||
@ -412,6 +435,7 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"3D"
|
title:"3D"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_3D.qml"
|
url:"qrc:/example/qml/page/T_3D.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -474,4 +498,3 @@ FluObject{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ FluWindow {
|
|||||||
minimumWidth: 520
|
minimumWidth: 520
|
||||||
minimumHeight: 200
|
minimumHeight: 200
|
||||||
launchMode: FluWindowType.SingleTask
|
launchMode: FluWindowType.SingleTask
|
||||||
|
|
||||||
appBar: undefined
|
appBar: undefined
|
||||||
|
|
||||||
SettingsViewModel{
|
SettingsViewModel{
|
||||||
@ -32,6 +31,7 @@ FluWindow {
|
|||||||
checkUpdate(false)
|
checkUpdate(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
tour.open()
|
tour.open()
|
||||||
checkUpdate(true)
|
checkUpdate(true)
|
||||||
@ -51,7 +51,7 @@ FluWindow {
|
|||||||
MenuItem {
|
MenuItem {
|
||||||
text: "退出"
|
text: "退出"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
window.close()
|
FluApp.exit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -78,7 +78,22 @@ FluWindow {
|
|||||||
positiveText:"退出"
|
positiveText:"退出"
|
||||||
neutralText:"取消"
|
neutralText:"取消"
|
||||||
onPositiveClicked:{
|
onPositiveClicked:{
|
||||||
FluApp.exit()
|
FluApp.exit(0)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component{
|
||||||
|
id:nav_item_right_menu
|
||||||
|
FluMenu{
|
||||||
|
id:menu
|
||||||
|
width: 130
|
||||||
|
FluMenuItem{
|
||||||
|
text: "在独立窗口打开"
|
||||||
|
visible: true
|
||||||
|
onClicked: {
|
||||||
|
FluApp.navigate("/pageWindow",{title:modelData.title,url:modelData.url})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +163,7 @@ FluWindow {
|
|||||||
id:loader
|
id:loader
|
||||||
lazy: true
|
lazy: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: "https://zhu-zichu.gitee.io/Qt6_156_LieflatPage.qml"
|
source: "https://zhu-zichu.gitee.io/Qt5_156_LieflatPage.qml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
front: Item{
|
front: Item{
|
||||||
@ -164,8 +179,8 @@ FluWindow {
|
|||||||
}
|
}
|
||||||
darkText: Lang.dark_mode
|
darkText: Lang.dark_mode
|
||||||
showDark: true
|
showDark: true
|
||||||
closeClickListener: ()=>{dialog_close.open()}
|
|
||||||
darkClickListener:(button)=>handleDarkChanged(button)
|
darkClickListener:(button)=>handleDarkChanged(button)
|
||||||
|
closeClickListener: ()=>{dialog_close.open()}
|
||||||
z:7
|
z:7
|
||||||
}
|
}
|
||||||
FluNavigationView{
|
FluNavigationView{
|
||||||
@ -204,7 +219,9 @@ FluWindow {
|
|||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
ItemsOriginal.navigationView = nav_view
|
ItemsOriginal.navigationView = nav_view
|
||||||
|
ItemsOriginal.paneItemMenu = nav_item_right_menu
|
||||||
ItemsFooter.navigationView = nav_view
|
ItemsFooter.navigationView = nav_view
|
||||||
|
ItemsFooter.paneItemMenu = nav_item_right_menu
|
||||||
setCurrentIndex(0)
|
setCurrentIndex(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import FluentUI 1.0
|
|||||||
FluObject{
|
FluObject{
|
||||||
|
|
||||||
property var navigationView
|
property var navigationView
|
||||||
|
property var paneItemMenu
|
||||||
|
|
||||||
id:footer_items
|
id:footer_items
|
||||||
|
|
||||||
@ -21,6 +22,7 @@ FluObject{
|
|||||||
|
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:Lang.settings
|
title:Lang.settings
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
icon:FluentIcons.Settings
|
icon:FluentIcons.Settings
|
||||||
url:"qrc:/example/qml/page/T_Settings.qml"
|
url:"qrc:/example/qml/page/T_Settings.qml"
|
||||||
onTap:{
|
onTap:{
|
||||||
|
@ -6,6 +6,7 @@ import FluentUI 1.0
|
|||||||
FluObject{
|
FluObject{
|
||||||
|
|
||||||
property var navigationView
|
property var navigationView
|
||||||
|
property var paneItemMenu
|
||||||
|
|
||||||
function rename(item, newName){
|
function rename(item, newName){
|
||||||
if(newName && newName.trim().length>0){
|
if(newName && newName.trim().length>0){
|
||||||
@ -17,6 +18,7 @@ FluObject{
|
|||||||
id:item_home
|
id:item_home
|
||||||
count: 9
|
count: 9
|
||||||
title:Lang.home
|
title:Lang.home
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_home.count
|
count: item_home.count
|
||||||
}
|
}
|
||||||
@ -28,20 +30,6 @@ FluObject{
|
|||||||
}
|
}
|
||||||
navigationView.push(url)
|
navigationView.push(url)
|
||||||
}
|
}
|
||||||
editDelegate: FluTextBox{
|
|
||||||
text:item_home.title
|
|
||||||
}
|
|
||||||
menuDelegate: FluMenu{
|
|
||||||
id:nav_item_right_menu
|
|
||||||
width: 120
|
|
||||||
FluMenuItem{
|
|
||||||
text: "重命名"
|
|
||||||
visible: true
|
|
||||||
onClicked: {
|
|
||||||
item_home.showEdit = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FluPaneItemExpander{
|
FluPaneItemExpander{
|
||||||
@ -54,18 +42,6 @@ FluObject{
|
|||||||
id:item_expander_basic_input
|
id:item_expander_basic_input
|
||||||
title:Lang.basic_input
|
title:Lang.basic_input
|
||||||
icon:FluentIcons.CheckboxComposite
|
icon:FluentIcons.CheckboxComposite
|
||||||
editDelegate: FluTextBox{
|
|
||||||
text:item_expander_basic_input.title
|
|
||||||
}
|
|
||||||
menuDelegate: FluMenu{
|
|
||||||
FluMenuItem{
|
|
||||||
text: "重命名"
|
|
||||||
visible: true
|
|
||||||
onClicked: {
|
|
||||||
item_expander_basic_input.showEdit = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_buttons
|
id:item_buttons
|
||||||
count: 99
|
count: 99
|
||||||
@ -73,6 +49,7 @@ FluObject{
|
|||||||
count: item_buttons.count
|
count: item_buttons.count
|
||||||
}
|
}
|
||||||
title:"Buttons"
|
title:"Buttons"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Button.png"
|
image:"qrc:/example/res/image/control/Button.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"A control that responds to user input and raisesa Click event."
|
desc:"A control that responds to user input and raisesa Click event."
|
||||||
@ -85,6 +62,7 @@ FluObject{
|
|||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_text
|
id:item_text
|
||||||
title:"Text"
|
title:"Text"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
count: 5
|
count: 5
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_text.count
|
count: item_text.count
|
||||||
@ -98,11 +76,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Image"
|
title:"Image"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Image.qml"
|
url:"qrc:/example/qml/page/T_Image.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Slider"
|
title:"Slider"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Slider.png"
|
image:"qrc:/example/res/image/control/Slider.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"A control that lets the user select from a rangeof values by moving a Thumb control along atrack."
|
desc:"A control that lets the user select from a rangeof values by moving a Thumb control along atrack."
|
||||||
@ -111,6 +91,7 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"CheckBox"
|
title:"CheckBox"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Checkbox.png"
|
image:"qrc:/example/res/image/control/Checkbox.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"A control that a user can select or clear."
|
desc:"A control that a user can select or clear."
|
||||||
@ -119,11 +100,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"RadioButton"
|
title:"RadioButton"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_RadioButton.qml"
|
url:"qrc:/example/qml/page/T_RadioButton.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"ToggleSwitch"
|
title:"ToggleSwitch"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_ToggleSwitch.qml"
|
url:"qrc:/example/qml/page/T_ToggleSwitch.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -139,26 +122,31 @@ FluObject{
|
|||||||
icon:FluentIcons.GridView
|
icon:FluentIcons.GridView
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TextBox"
|
title:"TextBox"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_TextBox.qml"
|
url:"qrc:/example/qml/page/T_TextBox.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TimePicker"
|
title:"TimePicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_TimePicker.qml"
|
url:"qrc:/example/qml/page/T_TimePicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"DatePicker"
|
title:"DatePicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_DatePicker.qml"
|
url:"qrc:/example/qml/page/T_DatePicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"CalendarPicker"
|
title:"CalendarPicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_CalendarPicker.qml"
|
url:"qrc:/example/qml/page/T_CalendarPicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"ColorPicker"
|
title:"ColorPicker"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_ColorPicker.qml"
|
url:"qrc:/example/qml/page/T_ColorPicker.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -169,6 +157,7 @@ FluObject{
|
|||||||
icon:FluentIcons.SurfaceHub
|
icon:FluentIcons.SurfaceHub
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"InfoBar"
|
title:"InfoBar"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/InfoBar.png"
|
image:"qrc:/example/res/image/control/InfoBar.png"
|
||||||
recentlyUpdated:true
|
recentlyUpdated:true
|
||||||
desc:"An inline message to display app-wide statuschange information."
|
desc:"An inline message to display app-wide statuschange information."
|
||||||
@ -177,51 +166,61 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Progress"
|
title:"Progress"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Progress.qml"
|
url:"qrc:/example/qml/page/T_Progress.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"RatingControl"
|
title:"RatingControl"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_RatingControl.qml"
|
url:"qrc:/example/qml/page/T_RatingControl.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Badge"
|
title:"Badge"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Badge.qml"
|
url:"qrc:/example/qml/page/T_Badge.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Rectangle"
|
title:"Rectangle"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Rectangle.qml"
|
url:"qrc:/example/qml/page/T_Rectangle.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Clip"
|
title:"Clip"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Clip.qml"
|
url:"qrc:/example/qml/page/T_Clip.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"StatusView"
|
title:"StatusView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_StatusView.qml"
|
url:"qrc:/example/qml/page/T_StatusView.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Carousel"
|
title:"Carousel"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Carousel.qml"
|
url:"qrc:/example/qml/page/T_Carousel.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Expander"
|
title:"Expander"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Expander.qml"
|
url:"qrc:/example/qml/page/T_Expander.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"StaggeredView"
|
title:"StaggeredView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_StaggeredView.qml"
|
url:"qrc:/example/qml/page/T_StaggeredView.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Watermark"
|
title:"Watermark"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Watermark.qml"
|
url:"qrc:/example/qml/page/T_Watermark.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -232,12 +231,14 @@ FluObject{
|
|||||||
icon:FluentIcons.ButtonMenu
|
icon:FluentIcons.ButtonMenu
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Dialog"
|
title:"Dialog"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Dialog.qml"
|
url:"qrc:/example/qml/page/T_Dialog.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_combobox
|
id:item_combobox
|
||||||
title:"ComboBox"
|
title:"ComboBox"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
count: 9
|
count: 9
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_combobox.count
|
count: item_combobox.count
|
||||||
@ -251,11 +252,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Tooltip"
|
title:"Tooltip"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Tooltip.qml"
|
url:"qrc:/example/qml/page/T_Tooltip.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Menu"
|
title:"Menu"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Menu.qml"
|
url:"qrc:/example/qml/page/T_Menu.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -266,6 +269,7 @@ FluObject{
|
|||||||
icon:FluentIcons.AllApps
|
icon:FluentIcons.AllApps
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Pivot"
|
title:"Pivot"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/Pivot.png"
|
image:"qrc:/example/res/image/control/Pivot.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:3
|
order:3
|
||||||
@ -275,11 +279,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"BreadcrumbBar"
|
title:"BreadcrumbBar"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_BreadcrumbBar.qml"
|
url:"qrc:/example/qml/page/T_BreadcrumbBar.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TabView"
|
title:"TabView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/TabView.png"
|
image:"qrc:/example/res/image/control/TabView.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:1
|
order:1
|
||||||
@ -289,11 +295,13 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TreeView"
|
title:"TreeView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_TreeView.qml"
|
url:"qrc:/example/qml/page/T_TreeView.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"TableView"
|
title:"TableView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/DataGrid.png"
|
image:"qrc:/example/res/image/control/DataGrid.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:4
|
order:4
|
||||||
@ -303,16 +311,19 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Pagination"
|
title:"Pagination"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Pagination.qml"
|
url:"qrc:/example/qml/page/T_Pagination.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"MultiWindow"
|
title:"MultiWindow"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_MultiWindow.qml"
|
url:"qrc:/example/qml/page/T_MultiWindow.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"FlipView"
|
title:"FlipView"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
image:"qrc:/example/res/image/control/FlipView.png"
|
image:"qrc:/example/res/image/control/FlipView.png"
|
||||||
recentlyAdded:true
|
recentlyAdded:true
|
||||||
order:2
|
order:2
|
||||||
@ -327,21 +338,25 @@ FluObject{
|
|||||||
icon:FluentIcons.Brightness
|
icon:FluentIcons.Brightness
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Acrylic"
|
title:"Acrylic"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Acrylic.qml"
|
url:"qrc:/example/qml/page/T_Acrylic.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Theme"
|
title:"Theme"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Theme.qml"
|
url:"qrc:/example/qml/page/T_Theme.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Typography"
|
title:"Typography"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Typography.qml"
|
url:"qrc:/example/qml/page/T_Typography.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Awesome"
|
title:"Awesome"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Awesome.qml"
|
url:"qrc:/example/qml/page/T_Awesome.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
@ -357,42 +372,50 @@ FluObject{
|
|||||||
icon:FluentIcons.Shop
|
icon:FluentIcons.Shop
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"QRCode"
|
title:"QRCode"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_QRCode.qml"
|
url:"qrc:/example/qml/page/T_QRCode.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Tour"
|
title:"Tour"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Tour.qml"
|
url:"qrc:/example/qml/page/T_Tour.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Timeline"
|
title:"Timeline"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Timeline.qml"
|
url:"qrc:/example/qml/page/T_Timeline.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Screenshot(Todo)"
|
title:"Screenshot(Todo)"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Screenshot.qml"
|
url:"qrc:/example/qml/page/T_Screenshot.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Captcha"
|
title:"Captcha"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Captcha.qml"
|
url:"qrc:/example/qml/page/T_Captcha.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Chart"
|
title:"Chart"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Chart.qml"
|
url:"qrc:/example/qml/page/T_Chart.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Http"
|
title:"Http"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_Http.qml"
|
url:"qrc:/example/qml/page/T_Http.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
id:item_other
|
id:item_other
|
||||||
title:"RemoteLoader"
|
title:"RemoteLoader"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
count: 99
|
count: 99
|
||||||
infoBadge:FluBadge{
|
infoBadge:FluBadge{
|
||||||
count: item_other.count
|
count: item_other.count
|
||||||
@ -412,6 +435,7 @@ FluObject{
|
|||||||
}
|
}
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"3D"
|
title:"3D"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
url:"qrc:/example/qml/page/T_3D.qml"
|
url:"qrc:/example/qml/page/T_3D.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,22 @@ FluWindow {
|
|||||||
positiveText:"退出"
|
positiveText:"退出"
|
||||||
neutralText:"取消"
|
neutralText:"取消"
|
||||||
onPositiveClicked:{
|
onPositiveClicked:{
|
||||||
window.close()
|
FluApp.exit(0)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component{
|
||||||
|
id:nav_item_right_menu
|
||||||
|
FluMenu{
|
||||||
|
id:menu
|
||||||
|
width: 130
|
||||||
|
FluMenuItem{
|
||||||
|
text: "在独立窗口打开"
|
||||||
|
visible: true
|
||||||
|
onClicked: {
|
||||||
|
FluApp.navigate("/pageWindow",{title:modelData.title,url:modelData.url})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +222,9 @@ FluWindow {
|
|||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
ItemsOriginal.navigationView = nav_view
|
ItemsOriginal.navigationView = nav_view
|
||||||
|
ItemsOriginal.paneItemMenu = nav_item_right_menu
|
||||||
ItemsFooter.navigationView = nav_view
|
ItemsFooter.navigationView = nav_view
|
||||||
|
ItemsFooter.paneItemMenu = nav_item_right_menu
|
||||||
setCurrentIndex(0)
|
setCurrentIndex(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -88,6 +88,7 @@ void FluApp::navigate(const QString& route,const QJsonObject& argument,FluRegist
|
|||||||
|
|
||||||
void FluApp::exit(int retCode){
|
void FluApp::exit(int retCode){
|
||||||
for (const auto& pair : _windows.toStdMap()) {
|
for (const auto& pair : _windows.toStdMap()) {
|
||||||
|
pair.second->close();
|
||||||
removeWindow(pair.second);
|
removeWindow(pair.second);
|
||||||
}
|
}
|
||||||
qApp->exit(retCode);
|
qApp->exit(retCode);
|
||||||
|
@ -184,7 +184,9 @@ Item {
|
|||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
if(model.menuDelegate){
|
if(model.menuDelegate){
|
||||||
loader_item_menu.sourceComponent = model.menuDelegate
|
loader_item_menu.sourceComponent = model.menuDelegate
|
||||||
loader_item_menu.item.popup()
|
connection_item_menu.target = loader_item_menu.item
|
||||||
|
loader_item_menu.modelData = model
|
||||||
|
loader_item_menu.item.popup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -497,6 +499,8 @@ Item {
|
|||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
if(model.menuDelegate){
|
if(model.menuDelegate){
|
||||||
loader_item_menu.sourceComponent = model.menuDelegate
|
loader_item_menu.sourceComponent = model.menuDelegate
|
||||||
|
connection_item_menu.target = loader_item_menu.item
|
||||||
|
loader_item_menu.modelData = model
|
||||||
loader_item_menu.item.popup();
|
loader_item_menu.item.popup();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@ -1197,8 +1201,17 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loader{
|
Loader{
|
||||||
|
property var modelData
|
||||||
id:loader_item_menu
|
id:loader_item_menu
|
||||||
}
|
}
|
||||||
|
Connections{
|
||||||
|
id:connection_item_menu
|
||||||
|
function onVisibleChanged(visible){
|
||||||
|
if(target.visible === false){
|
||||||
|
loader_item_menu.sourceComponent = undefined
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Component{
|
Component{
|
||||||
id:com_placeholder
|
id:com_placeholder
|
||||||
Item{
|
Item{
|
||||||
|
@ -185,7 +185,9 @@ Item {
|
|||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
if(model.menuDelegate){
|
if(model.menuDelegate){
|
||||||
loader_item_menu.sourceComponent = model.menuDelegate
|
loader_item_menu.sourceComponent = model.menuDelegate
|
||||||
loader_item_menu.item.popup()
|
connection_item_menu.target = loader_item_menu.item
|
||||||
|
loader_item_menu.modelData = model
|
||||||
|
loader_item_menu.item.popup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -498,6 +500,8 @@ Item {
|
|||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
if(model.menuDelegate){
|
if(model.menuDelegate){
|
||||||
loader_item_menu.sourceComponent = model.menuDelegate
|
loader_item_menu.sourceComponent = model.menuDelegate
|
||||||
|
connection_item_menu.target = loader_item_menu.item
|
||||||
|
loader_item_menu.modelData = model
|
||||||
loader_item_menu.item.popup();
|
loader_item_menu.item.popup();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@ -1198,8 +1202,17 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loader{
|
Loader{
|
||||||
|
property var modelData
|
||||||
id:loader_item_menu
|
id:loader_item_menu
|
||||||
}
|
}
|
||||||
|
Connections{
|
||||||
|
id:connection_item_menu
|
||||||
|
function onVisibleChanged(visible){
|
||||||
|
if(target.visible === false){
|
||||||
|
loader_item_menu.sourceComponent = undefined
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Component{
|
Component{
|
||||||
id:com_placeholder
|
id:com_placeholder
|
||||||
Item{
|
Item{
|
||||||
|
Loading…
Reference in New Issue
Block a user