Skip to content

Commit 882cc89

Browse files
authored
Merge pull request zhuzichu520#589 from soulwyb/repair-FluPivot-example-error
修复Pivot的示例代码错误
2 parents db0588e + 444cc1a commit 882cc89

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.vscode/settings.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"MicroPython.executeButton": [
3+
{
4+
"text": "",
5+
"tooltip": "运行",
6+
"alignment": "left",
7+
"command": "extension.executeFile",
8+
"priority": 3.5
9+
}
10+
],
11+
"MicroPython.syncButton": [
12+
{
13+
"text": "$(sync)",
14+
"tooltip": "同步",
15+
"alignment": "left",
16+
"command": "extension.execute",
17+
"priority": 4
18+
}
19+
]
20+
}

example/qml/page/T_Pivot.qml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,26 @@ FluScrollablePage{
4949
Layout.topMargin: -6
5050
code:'FluPivot{
5151
anchors.fill: parent
52-
FluPivotItem:{
53-
text: qsTr("All")
52+
FluPivotItem {
53+
title: qsTr("All")
5454
contentItem: FluText{
5555
text: qsTr("All emails go here.")
5656
}
5757
}
58-
FluPivotItem:{
59-
text: qsTr("Unread")
58+
FluPivotItem {
59+
title: qsTr("Unread")
6060
contentItem: FluText{
6161
text: qsTr("Unread emails go here.")
6262
}
6363
}
64-
FluPivotItem:{
65-
text: qsTr("Flagged")
64+
FluPivotItem {
65+
title: qsTr("Flagged")
6666
contentItem: FluText{
6767
text: qsTr("Flagged emails go here.")
6868
}
6969
}
70-
FluPivotItem:{
71-
text: qsTr("Urgent")
70+
FluPivotItem {
71+
title: qsTr("Urgent")
7272
contentItem: FluText{
7373
text: qsTr("Urgent emails go here.")
7474
}

0 commit comments

Comments
 (0)