update
parent
f20dc1edcb
commit
a3fb672cc7
|
@ -91,4 +91,6 @@
|
|||
|
||||
## 多窗口路由跳转
|
||||
|
||||
![](doc/preview/multiwindow.png)
|
||||
![](doc/preview/multiwindow.png)
|
||||
|
||||
### ⚡ Visitor count ![](https://profile-counter.glitch.me/zhuzichu520-FluentUI/count.svg)
|
|
@ -20,7 +20,7 @@ FluScrollablePage{
|
|||
left:parent.left
|
||||
}
|
||||
FluText{
|
||||
text:"此颜色组件是Github上大佬封装的"
|
||||
text:"此颜色组件是Github上的开源项目"
|
||||
}
|
||||
FluTextButton{
|
||||
leftPadding: 0
|
||||
|
|
|
@ -49,6 +49,8 @@ Rectangle{
|
|||
}
|
||||
|
||||
function toggleMaximized() {
|
||||
if(!resizable)
|
||||
return
|
||||
if (window.visibility === Window.Maximized) {
|
||||
window.showNormal();
|
||||
} else {
|
||||
|
|
|
@ -46,6 +46,7 @@ Item {
|
|||
Image {
|
||||
anchors.fill: parent
|
||||
source: model.url
|
||||
asynchronous: true
|
||||
fillMode:Image.PreserveAspectCrop
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue