From aa8fcb304f78940864f2729ff54b58cdaa3d45b4 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Mon, 3 Mar 2025 10:40:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E4=B8=AD=E5=8A=A0=E8=BD=BD=E6=8C=89=E9=92=AE=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化 example 中加载按钮页面交互效果 --- example/example_en_US.ts | 24 +++++++++++++++--------- example/example_zh_CN.ts | 24 +++++++++++++++--------- example/qml/page/T_Buttons.qml | 4 ++-- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/example/example_en_US.ts b/example/example_en_US.ts index 2e1c76fd..cd15eb41 100644 --- a/example/example_en_US.ts +++ b/example/example_en_US.ts @@ -969,10 +969,16 @@ Updated content: + Loading + + + Normal + + Click IconButton @@ -2291,39 +2297,39 @@ Some contents... - - + + Equal - + SizeToContent - + Compact - + Tab Close Button Visibility: - - + + Always - + Never - + OnHover diff --git a/example/example_zh_CN.ts b/example/example_zh_CN.ts index fe147afa..276388d8 100644 --- a/example/example_zh_CN.ts +++ b/example/example_zh_CN.ts @@ -995,10 +995,16 @@ Updated content: 加载按钮 + Loading 正在加载 + + + Normal + 开启加载 + Click IconButton @@ -2480,39 +2486,39 @@ Some contents... 选项卡宽度: - - + + Equal 相同宽度 - + SizeToContent 由内容 - + Compact 紧凑 - + Tab Close Button Visibility: 选项卡关闭按钮可见性: - - + + Always 可见 - + Never 不可见 - + OnHover 鼠标悬浮显示 diff --git a/example/qml/page/T_Buttons.qml b/example/qml/page/T_Buttons.qml index e2aa4239..39e5d565 100644 --- a/example/qml/page/T_Buttons.qml +++ b/example/qml/page/T_Buttons.qml @@ -219,7 +219,7 @@ FluScrollablePage{ FluLoadingButton{ id: btn_loading loading: loading_button_switch.checked - text: qsTr("Loading Button") + text: loading_button_switch.checked ? qsTr("Loading") : qsTr("Loading Button") anchors{ verticalCenter: parent.verticalCenter left: parent.left @@ -235,7 +235,7 @@ FluScrollablePage{ right: parent.right verticalCenter: parent.verticalCenter } - text: qsTr("Loading") + text: loading_button_switch.checked ? qsTr("Loading") : qsTr("Normal") } } CodeExpander{