main
朱子楚\zhuzi 2023-04-05 21:42:12 +08:00
parent 6de1b9d78f
commit e8460c2409
3 changed files with 59 additions and 14 deletions

View File

@ -3,6 +3,7 @@ import QtQuick.Layouts
import QtQuick.Window
import QtQuick.Controls
import FluentUI
import "./component"
FluScrollablePage{
@ -10,14 +11,28 @@ FluScrollablePage{
leftPadding:10
rightPadding:10
bottomPadding:20
spacing: 0
FluCheckBox{
FluArea{
Layout.fillWidth: true
height: 68
paddings: 10
Layout.topMargin: 20
Row{
spacing: 30
anchors.verticalCenter: parent.verticalCenter
FluCheckBox{
}
FluCheckBox{
text:"Text"
}
}
}
FluCheckBox{
Layout.topMargin: 20
text:"Text"
CodeExpander{
Layout.fillWidth: true
code:'FluCheckBox{
text:"Text"
}'
}
}

View File

@ -2,6 +2,7 @@
import QtQuick.Layouts
import QtQuick.Window
import QtQuick.Controls
import "./component"
import FluentUI
FluScrollablePage{
@ -10,17 +11,46 @@ FluScrollablePage{
leftPadding:10
rightPadding:10
bottomPadding:20
spacing: 0
FluSlider{
FluArea{
Layout.fillWidth: true
height: 100
paddings: 10
Layout.topMargin: 20
value: 50
Layout.leftMargin: 10
FluSlider{
value: 50
anchors.verticalCenter: parent.verticalCenter
}
}
FluSlider{
vertical:true
CodeExpander{
Layout.fillWidth: true
code:'FluSlider{
value:50
}'
}
FluArea{
Layout.fillWidth: true
height: 200
paddings: 10
Layout.topMargin: 20
Layout.leftMargin: 10
Layout.bottomMargin: 20
value: 50
FluSlider{
value: 50
vertical:true
anchors.left: parent.left
anchors.leftMargin: 20
anchors.verticalCenter: parent.verticalCenter
}
}
CodeExpander{
Layout.fillWidth: true
code:'FluSlider{
vertical:true
value:50
}'
}
}

View File

@ -11,7 +11,7 @@ FluMenu{
focus: false
FluMenuItem{
text: cutText
visible: inputItem.text !== ""
visible: inputItem.text !== "" && !inputItem.readOnly
onClicked: {
inputItem.cut()
}