mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-02 08:05:29 +08:00
update
This commit is contained in:
@ -33,7 +33,7 @@ Item {
|
||||
FluNetwork.setInterceptor(function(param){
|
||||
param.addHeader("Token","000000000000000000000")
|
||||
})
|
||||
FluApp.init(app)
|
||||
FluApp.init(app,Qt.locale(TranslateHelper.current))
|
||||
FluApp.windowIcon = "qrc:/example/res/image/favicon.ico"
|
||||
FluApp.useSystemAppBar = SettingsHelper.getUseSystemAppBar()
|
||||
FluTheme.darkMode = SettingsHelper.getDarkMode()
|
||||
|
@ -24,11 +24,6 @@ FluScrollablePage{
|
||||
}
|
||||
FluDatePicker{
|
||||
current: new Date()
|
||||
yearText: qsTr("Year")
|
||||
monthText: qsTr("Month")
|
||||
dayText: qsTr("Day")
|
||||
cancelText: qsTr("Cancel")
|
||||
okText: qsTr("OK")
|
||||
onAccepted: {
|
||||
showSuccess(current.toLocaleDateString())
|
||||
}
|
||||
@ -58,11 +53,6 @@ FluScrollablePage{
|
||||
}
|
||||
FluDatePicker{
|
||||
showYear: false
|
||||
yearText: qsTr("Year")
|
||||
monthText: qsTr("Month")
|
||||
dayText: qsTr("Day")
|
||||
cancelText: qsTr("Cancel")
|
||||
okText: qsTr("OK")
|
||||
onAccepted: {
|
||||
showSuccess(current.toLocaleDateString())
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ FluScrollablePage{
|
||||
width: 384
|
||||
height: 240
|
||||
source: "https://gitee.com/zhu-zichu/zhu-zichu/raw/74f075efe2f8d3c3bb7ba3c2259e403450e4050b/image/banner_4.jpg"
|
||||
errorButtonText: qsTr("Reload")
|
||||
onStatusChanged:{
|
||||
if(status === Image.Error){
|
||||
showError(qsTr("The image failed to load, please reload"))
|
||||
|
@ -53,7 +53,7 @@ FluScrollablePage{
|
||||
FluButton{
|
||||
text:"Loading"
|
||||
onClicked: {
|
||||
showLoading(qsTr("Loading..."))
|
||||
showLoading()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -21,22 +21,16 @@ FluScrollablePage{
|
||||
pageCurrent: 1
|
||||
pageButtonCount: 5
|
||||
itemCount: 5000
|
||||
previousText: qsTr("<Previous")
|
||||
nextText: qsTr("Next>")
|
||||
}
|
||||
FluPagination{
|
||||
pageCurrent: 2
|
||||
itemCount: 5000
|
||||
pageButtonCount: 7
|
||||
previousText: qsTr("<Previous")
|
||||
nextText: qsTr("Next>")
|
||||
}
|
||||
FluPagination{
|
||||
pageCurrent: 3
|
||||
itemCount: 5000
|
||||
pageButtonCount: 9
|
||||
previousText: qsTr("<Previous")
|
||||
nextText: qsTr("Next>")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,11 +16,6 @@ FluScrollablePage{
|
||||
paddings: 10
|
||||
FluShortcutPicker{
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
title: qsTr("Activate the Shortcut")
|
||||
message: qsTr("Press the key combination to change the shortcut")
|
||||
positiveText: qsTr("Save")
|
||||
neutralText: qsTr("Cancel")
|
||||
negativeText: qsTr("Reset")
|
||||
}
|
||||
}
|
||||
CodeExpander{
|
||||
|
@ -11,9 +11,6 @@ FluScrollablePage{
|
||||
|
||||
FluTour{
|
||||
id:tour
|
||||
finishText: qsTr("Finish")
|
||||
nextText: qsTr("Next")
|
||||
previousText: qsTr("Previous")
|
||||
steps:[
|
||||
{title:qsTr("Upload File"),description: qsTr("Put your files here."),target:()=>btn_upload},
|
||||
{title:qsTr("Save"),description: qsTr("Save your changes."),target:()=>btn_save},
|
||||
|
Reference in New Issue
Block a user