This commit is contained in:
朱子楚\zhuzi 2023-05-09 19:52:35 +08:00
parent a14e502abd
commit 88cae89f31
5 changed files with 53 additions and 11 deletions

View File

@ -120,7 +120,8 @@ FluExpander{
"FluStatusView",
"FluRatingControl",
"FluPasswordBox",
"FluBreadcrumbBar"
"FluBreadcrumbBar",
"FluCopyableText"
];
code = code.replace(/\n/g, "<br>");
code = code.replace(/ /g, "&nbsp;");

View File

@ -9,14 +9,14 @@ FluObject{
FluPaneItem{
title:lang.home
// icon:FluentIcons.Home
cusIcon: Image{
anchors.centerIn: parent
source: FluTheme.dark ? "qrc:/example/res/svg/home_dark.svg" : "qrc:/example/res/svg/home.svg"
sourceSize: Qt.size(30,30)
width: 18
height: 18
}
icon:FluentIcons.Home
// cusIcon: Image{
// anchors.centerIn: parent
// source: FluTheme.dark ? "qrc:/example/res/svg/home_dark.svg" : "qrc:/example/res/svg/home.svg"
// sourceSize: Qt.size(30,30)
// width: 18
// height: 18
// }
onTap:{
navigationView.push("qrc:/example/qml/page/T_Home.qml")
}
@ -34,6 +34,12 @@ FluObject{
navigationView.push("qrc:/example/qml/page/T_Buttons.qml")
}
}
FluPaneItem{
title:"Text"
onTap:{
navigationView.push("qrc:/example/qml/page/T_Text.qml")
}
}
FluPaneItem{
title:"Slider"
image:"qrc:/example/res/image/control/Slider.png"

View File

@ -71,7 +71,6 @@ FluScrollablePage{
leftPadding:6
rightPadding:6
onClicked:{
console.debug(dataModel.index)
showSuccess(JSON.stringify(dataObject))
}
}

View File

@ -0,0 +1,36 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Window
import FluentUI
import "../component"
FluScrollablePage{
title:"Text"
leftPadding:10
rightPadding:10
bottomPadding:20
spacing: 0
FluArea{
Layout.fillWidth: true
Layout.topMargin: 20
height: 60
paddings: 10
FluCopyableText{
text: "这是一个可以支持复制的Text"
anchors.verticalCenter: parent.verticalCenter
}
}
CodeExpander{
Layout.fillWidth: true
Layout.topMargin: -1
code:'FluCopyableText{
text:"这是一个可以支持复制的Text"
}'
}
}

View File

@ -509,7 +509,7 @@ Item {
onClicked: {
d.enableNavigationPanel = !d.enableNavigationPanel
}
visible: Layout.preferredWidth !== 0
visible: d.isMinimal
Behavior on Layout.preferredWidth{
NumberAnimation{
duration: 167