From 444cc1aeeeef83d4f6d9c14f6058e4497e3758b1 Mon Sep 17 00:00:00 2001 From: wuyubin <340145294@qq.com> Date: Fri, 21 Feb 2025 11:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DPivot=E7=9A=84=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 20 ++++++++++++++++++++ example/qml/page/T_Pivot.qml | 16 ++++++++-------- 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..0ce7a27d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,20 @@ +{ + "MicroPython.executeButton": [ + { + "text": "▶", + "tooltip": "运行", + "alignment": "left", + "command": "extension.executeFile", + "priority": 3.5 + } + ], + "MicroPython.syncButton": [ + { + "text": "$(sync)", + "tooltip": "同步", + "alignment": "left", + "command": "extension.execute", + "priority": 4 + } + ] +} \ No newline at end of file diff --git a/example/qml/page/T_Pivot.qml b/example/qml/page/T_Pivot.qml index 8f95b801..60cb274c 100644 --- a/example/qml/page/T_Pivot.qml +++ b/example/qml/page/T_Pivot.qml @@ -49,26 +49,26 @@ FluScrollablePage{ Layout.topMargin: -6 code:'FluPivot{ anchors.fill: parent - FluPivotItem:{ - text: qsTr("All") + FluPivotItem { + title: qsTr("All") contentItem: FluText{ text: qsTr("All emails go here.") } } - FluPivotItem:{ - text: qsTr("Unread") + FluPivotItem { + title: qsTr("Unread") contentItem: FluText{ text: qsTr("Unread emails go here.") } } - FluPivotItem:{ - text: qsTr("Flagged") + FluPivotItem { + title: qsTr("Flagged") contentItem: FluText{ text: qsTr("Flagged emails go here.") } } - FluPivotItem:{ - text: qsTr("Urgent") + FluPivotItem { + title: qsTr("Urgent") contentItem: FluText{ text: qsTr("Urgent emails go here.") }