From f6cc83123b41110123c2fc58b067796d10da134b Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Wed, 20 Dec 2023 17:17:41 +0800 Subject: [PATCH] update --- example/qml-Qt6/global/ItemsOriginal.qml | 55 +++++-------------- example/qml-Qt6/page/T_Home.qml | 4 +- example/qml/global/ItemsOriginal.qml | 55 +++++-------------- example/qml/page/T_Home.qml | 4 +- .../imports/FluentUI/Controls/FluPaneItem.qml | 6 +- .../imports/FluentUI/Controls/FluPaneItem.qml | 6 +- 6 files changed, 34 insertions(+), 96 deletions(-) diff --git a/example/qml-Qt6/global/ItemsOriginal.qml b/example/qml-Qt6/global/ItemsOriginal.qml index 52118522..846c0bff 100644 --- a/example/qml-Qt6/global/ItemsOriginal.qml +++ b/example/qml-Qt6/global/ItemsOriginal.qml @@ -50,9 +50,7 @@ FluObject{ } title:"Buttons" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/Button.png" - recentlyUpdated:true - desc:"A control that responds to user input and raisesa Click event." + extra:({image:"qrc:/example/res/image/control/Button.png",recentlyUpdated:true,desc:"A control that responds to user input and raisesa Click event."}) url:"qrc:/example/qml/page/T_Buttons.qml" onTap:{ item_buttons.count = 0 @@ -83,18 +81,14 @@ FluObject{ FluPaneItem{ title:"Slider" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/Slider.png" - recentlyUpdated:true - desc:"A control that lets the user select from a rangeof values by moving a Thumb control along atrack." + extra:({image:"qrc:/example/res/image/control/Slider.png",recentlyUpdated:true,desc:"A control that lets the user select from a rangeof values by moving a Thumb control along atrack."}) url:"qrc:/example/qml/page/T_Slider.qml" onTap:{ navigationView.push(url) } } FluPaneItem{ title:"CheckBox" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/Checkbox.png" - recentlyUpdated:true - desc:"A control that a user can select or clear." + extra:({image:"qrc:/example/res/image/control/Checkbox.png",recentlyUpdated:true,desc:"A control that a user can select or clear."}) url:"qrc:/example/qml/page/T_CheckBox.qml" onTap:{ navigationView.push(url) } } @@ -164,9 +158,7 @@ FluObject{ FluPaneItem{ title:"InfoBar" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/InfoBar.png" - recentlyUpdated:true - desc:"An inline message to display app-wide statuschange information." + extra:({image:"qrc:/example/res/image/control/InfoBar.png",recentlyUpdated:true,desc:"An inline message to display app-wide statuschange information."}) url:"qrc:/example/qml/page/T_InfoBar.qml" onTap:{ navigationView.push(url) } } @@ -276,10 +268,7 @@ FluObject{ FluPaneItem{ title:"Pivot" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/Pivot.png" - recentlyAdded:true - order:3 - desc:"Presents information from different sources in atabbed view." + extra:({image:"qrc:/example/res/image/control/Pivot.png",order:3,recentlyAdded:true,desc:"Presents information from different sources in atabbed view."}) url:"qrc:/example/qml/page/T_Pivot.qml" onTap:{ navigationView.push(url) } } @@ -292,10 +281,7 @@ FluObject{ FluPaneItem{ title:"TabView" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/TabView.png" - recentlyAdded:true - order:1 - desc:"A control that displays a collection of tabs thatcan be used to display several documents." + extra:({image:"qrc:/example/res/image/control/TabView.png",order:1,recentlyAdded:true,desc:"A control that displays a collection of tabs thatcan be used to display several documents."}) url:"qrc:/example/qml/page/T_TabView.qml" onTap:{ navigationView.push(url) } } @@ -308,10 +294,7 @@ FluObject{ FluPaneItem{ title:"TableView" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/DataGrid.png" - recentlyAdded:true - order:4 - desc:"The TableView control provides a flexible way to display a collection of data in rows and columns" + extra:({image:"qrc:/example/res/image/control/DataGrid.png",order:4,recentlyAdded:true,desc:"The TableView control provides a flexible way to display a collection of data in rows and columns"}) url:"qrc:/example/qml/page/T_TableView.qml" onTap:{ navigationView.push(url) } } @@ -330,10 +313,7 @@ FluObject{ FluPaneItem{ title:"FlipView" menuDelegate: paneItemMenu - image:"qrc:/example/res/image/control/FlipView.png" - recentlyAdded:true - order:2 - desc:"Presents a collection of items that the user canflip through, one item at a time." + extra:({image:"qrc:/example/res/image/control/FlipView.png",order:2,recentlyAdded:true,desc:"Presents a collection of items that the user canflip through, one item at a time."}) url:"qrc:/example/qml/page/T_FlipView.qml" onTap:{ navigationView.push(url) } } @@ -490,21 +470,14 @@ FluObject{ function getRecentlyAddedData(){ var arr = [] - for(var i=0;i