main
zhuzihcu 2023-03-24 14:15:06 +08:00
parent f20dc1edcb
commit a3fb672cc7
6 changed files with 28 additions and 11 deletions

View File

@ -92,3 +92,5 @@
## 多窗口路由跳转
![](doc/preview/multiwindow.png)
### ⚡ Visitor count ![](https://profile-counter.glitch.me/zhuzichu520-FluentUI/count.svg)

View File

@ -20,7 +20,7 @@ FluScrollablePage{
left:parent.left
}
FluText{
text:"此颜色组件是Github上大佬封装的"
text:"此颜色组件是Github上开源项目"
}
FluTextButton{
leftPadding: 0

View File

@ -49,6 +49,8 @@ Rectangle{
}
function toggleMaximized() {
if(!resizable)
return
if (window.visibility === Window.Maximized) {
window.showNormal();
} else {

View File

@ -46,6 +46,7 @@ Item {
Image {
anchors.fill: parent
source: model.url
asynchronous: true
fillMode:Image.PreserveAspectCrop
}
}

View File

@ -8,21 +8,18 @@ import QtGraphicalEffects 1.15
Item {
id:root
property int selectionMode: FluTreeView.None
property var currentElement
property var currentParentElement
property var rootModel: tree_model.get(0).items
signal itemClicked(var item)
enum TreeViewSelectionMode {
None,
Single,
Multiple
}
property int selectionMode: FluTreeView.None
property var currentElement
property var currentParentElement
property var rootModel: tree_model.get(0).items
signal itemClicked(var item)
ListModel{
id:tree_model
ListElement{

View File

@ -74,7 +74,22 @@ Item {
}
Component.onCompleted: {
updateWindowSize()
}
Connections{
target: FluTheme
function onIsFramelessChanged(){
updateWindowSize()
}
}
function updateWindowSize(){
if(FluTheme.isFrameless){
height = height + 34
}else{
height = height - 34
}
}
Connections{