From 4a457e15faa716df9f34d7708ca3bd890b0f1ef8 Mon Sep 17 00:00:00 2001 From: ChaXxl Date: Sun, 11 Aug 2024 14:02:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8=E4=B8=89?= =?UTF-8?q?=E5=85=83=E8=A1=A8=E8=BE=BE=E5=BC=8F=E6=9D=A5=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E7=9A=84=20source?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/qml/page/T_TableView.qml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/example/qml/page/T_TableView.qml b/example/qml/page/T_TableView.qml index dc4ae88a..242fdb4b 100644 --- a/example/qml/page/T_TableView.qml +++ b/example/qml/page/T_TableView.qml @@ -315,12 +315,7 @@ FluContentPage{ radius: [20,20,20,20] Image{ anchors.fill: parent - source: { - if(options && options.avatar){ - return options.avatar - } - return "" - } + source: options && options.avatar ? options.avatar : "" sourceSize: Qt.size(80,80) } }