main
zhuzihcu 2023-04-19 17:25:46 +08:00
parent 98363542d3
commit 6dd859dd1d
29 changed files with 49 additions and 6 deletions

View File

@ -103,6 +103,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'Rectangle{ code:'Rectangle{
width: 40 width: 40
height: 40 height: 40

View File

@ -51,6 +51,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluTextButton{ code:'FluTextButton{
text:"Text Button" text:"Text Button"
onClicked: { onClicked: {
@ -92,6 +93,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluButton{ code:'FluButton{
text:"Standard Button" text:"Standard Button"
onClicked: { onClicked: {
@ -133,6 +135,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluFilledButton{ code:'FluFilledButton{
text:"Filled Button" text:"Filled Button"
onClicked: { onClicked: {
@ -174,6 +177,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluToggleButton{ code:'FluToggleButton{
text:"Toggle Button" text:"Toggle Button"
onClicked: { onClicked: {
@ -216,6 +220,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluIconButton{ code:'FluIconButton{
iconSource:FluentIcons.ChromeCloseContrast iconSource:FluentIcons.ChromeCloseContrast
onClicked: { onClicked: {
@ -266,6 +271,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluDropDownButton{ code:'FluDropDownButton{
text:"DropDownButton" text:"DropDownButton"
items:[ items:[
@ -327,6 +333,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluRadioButton{ code:'FluRadioButton{
selected:true selected:true
text:"Text Button" text:"Text Button"
@ -365,6 +372,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluCheckBox{ code:'FluCheckBox{
text:"Check Box" text:"Check Box"
}' }'

View File

@ -23,6 +23,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluCalendarView{ code:'FluCalendarView{
}' }'
@ -44,6 +45,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluCalendarPicker{ code:'FluCalendarPicker{
}' }'

View File

@ -39,6 +39,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluCarousel{ code:'FluCarousel{
width: 400 width: 400
height: 300 height: 300

View File

@ -30,6 +30,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluCheckBox{ code:'FluCheckBox{
text:"Text" text:"Text"
}' }'

View File

@ -41,6 +41,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluColorView{ code:'FluColorView{
}' }'
@ -64,6 +65,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluColorPicker{ code:'FluColorPicker{
}' }'

View File

@ -32,6 +32,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluDatePicker{ code:'FluDatePicker{
}' }'
@ -59,6 +60,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluDatePicker{ code:'FluDatePicker{
showYear:false showYear:false
}' }'

View File

@ -29,6 +29,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluContentDialog{ code:'FluContentDialog{
id:dialog id:dialog
title:"友情提示" title:"友情提示"

View File

@ -15,14 +15,14 @@ FluScrollablePage{
FluArea{ FluArea{
Layout.fillWidth: true Layout.fillWidth: true
height: layout_column.height+40 height: layout_column.height+20
paddings: 10 paddings: 10
Layout.topMargin: 20 Layout.topMargin: 20
Column{ Column{
id:layout_column id:layout_column
spacing: 15 spacing: 15
anchors{ anchors{
verticalCenter: parent.verticalCenter top:parent.top
left:parent.left left:parent.left
} }
@ -77,12 +77,12 @@ FluScrollablePage{
} }
} }
} }
} }
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluExpander{ code:'FluExpander{
headerText:"打开一个单选框" headerText:"打开一个单选框"
Item{ Item{

View File

@ -44,6 +44,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluFlipView{ code:'FluFlipView{
Image{ Image{
source: "qrc:/res/image/banner_1.jpg" source: "qrc:/res/image/banner_1.jpg"
@ -97,6 +98,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluFlipView{ code:'FluFlipView{
vertical:true vertical:true
Image{ Image{

View File

@ -52,6 +52,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'showInfo("这是一个Info样式的InfoBar") code:'showInfo("这是一个Info样式的InfoBar")
showWarning("这是一个Warning样式的InfoBar") showWarning("这是一个Warning样式的InfoBar")

View File

@ -38,6 +38,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluMediaPlayer{ code:'FluMediaPlayer{
id:player id:player
source:"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" source:"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"

View File

@ -53,6 +53,7 @@ FluScrollablePage{
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluMenu{ code:'FluMenu{
id:menu id:menu
FluMenuItem:{ FluMenuItem:{

View File

@ -95,6 +95,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluWindow{ code:'FluWindow{
//launchMode: FluWindow.Standard //launchMode: FluWindow.Standard
//launchMode: FluWindow.SingleTask //launchMode: FluWindow.SingleTask
@ -128,6 +129,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluButton{ code:'FluButton{
text:"点击跳转" text:"点击跳转"
onClicked: { onClicked: {
@ -165,6 +167,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'property var loginPageRegister: registerForPageResult("/login") code:'property var loginPageRegister: registerForPageResult("/login")
Connections{ Connections{

View File

@ -50,6 +50,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluPivot{ code:'FluPivot{
anchors.fill: parent anchors.fill: parent
FluPivotItem:{ FluPivotItem:{

View File

@ -47,6 +47,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluProgressBar{ code:'FluProgressBar{
} }

View File

@ -34,6 +34,7 @@ FluScrollablePage{
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluRatingControl{ code:'FluRatingControl{
}' }'

View File

@ -134,6 +134,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluRectangle{ code:'FluRectangle{
radius: [25,25,25,25] radius: [25,25,25,25]
width: 50 width: 50

View File

@ -51,7 +51,7 @@ FluScrollablePage{
FluArea{ FluArea{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 20 Layout.topMargin: 20
height: 168 height: 80
paddings: 10 paddings: 10
ColumnLayout{ ColumnLayout{

View File

@ -25,6 +25,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluSlider{ code:'FluSlider{
value:50 value:50
}' }'
@ -46,6 +47,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluSlider{ code:'FluSlider{
vertical:true vertical:true
value:50 value:50

View File

@ -78,6 +78,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluStatusView{ code:'FluStatusView{
anchors.fill: parent anchors.fill: parent
statusMode: FluStatusView.Loading statusMode: FluStatusView.Loading

View File

@ -113,6 +113,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluTabView{ code:'FluTabView{
anchors.fill: parent anchors.fill: parent
Component.onCompleted: { Component.onCompleted: {

View File

@ -45,6 +45,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluTextBox{ code:'FluTextBox{
placeholderText:"单行输入框" placeholderText:"单行输入框"
}' }'
@ -83,6 +84,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluMultilineTextBox{ code:'FluMultilineTextBox{
placeholderText:"多行输入框" placeholderText:"多行输入框"
}' }'
@ -122,6 +124,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluAutoSuggestBox{ code:'FluAutoSuggestBox{
placeholderText:"AutoSuggestBox" placeholderText:"AutoSuggestBox"
}' }'

View File

@ -76,12 +76,12 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluTheme.primaryColor = FluColors.Orange code:'FluTheme.primaryColor = FluColors.Orange
FluTheme.dark = true FluTheme.dark = true
FluTheme.nativeText = true FluTheme.nativeText = true'
'
} }

View File

@ -37,6 +37,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluTimePicker{ code:'FluTimePicker{
}' }'
@ -67,6 +68,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluTimePicker{ code:'FluTimePicker{
hourFormat:FluTimePicker.HH hourFormat:FluTimePicker.HH
}' }'

View File

@ -30,6 +30,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluToggleSwitch{ code:'FluToggleSwitch{
text:"Text" text:"Text"
}' }'

View File

@ -45,6 +45,7 @@ FluScrollablePage{
} }
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluIconButton{ code:'FluIconButton{
iconSource:FluentIcons.ChromeCloseContrast iconSource:FluentIcons.ChromeCloseContrast
iconSize: 15 iconSize: 15

View File

@ -142,6 +142,7 @@ FluScrollablePage {
CodeExpander{ CodeExpander{
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: -1
code:'FluTreeView{ code:'FluTreeView{
id:tree_view id:tree_view
width:240 width:240

View File

@ -76,6 +76,7 @@ Item {
clip: true clip: true
anchors{ anchors{
top: layout_header.bottom top: layout_header.bottom
topMargin: -1
left: layout_header.left left: layout_header.left
} }
radius: 4 radius: 4