From ddabc839d3958739b48330d48fcdcc92d5a475ac Mon Sep 17 00:00:00 2001 From: zhangxCode Date: Wed, 22 May 2024 14:36:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=8F=9C=E5=8D=95=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E5=BC=80=E5=90=AF=E5=85=B3=E9=97=AD=E8=93=9D=E7=89=99?= =?UTF-8?q?=E5=BC=80=E5=85=B3=EF=BC=8C=E8=AE=BE=E5=A4=87=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=A4=84=E9=AB=98=E4=BA=AE=E5=92=8C=E7=BD=AE=E7=81=B0=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=8D=E4=BC=9A=E5=AE=9E=E6=97=B6=E5=88=B7=E6=96=B0?= =?UTF-8?q?=20Signed-off-by:=20zhangxCode=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/src/main/ets/default/deviceNameEntryComponent.ets | 2 +- product/phone/src/main/ets/pages/bluetooth.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/component/src/main/ets/default/deviceNameEntryComponent.ets b/common/component/src/main/ets/default/deviceNameEntryComponent.ets index dc1aff45..ff69264b 100644 --- a/common/component/src/main/ets/default/deviceNameEntryComponent.ets +++ b/common/component/src/main/ets/default/deviceNameEntryComponent.ets @@ -32,7 +32,7 @@ export default struct DeviceNameEntryComponent { @State isTouched: boolean = false; private settingTitle: string | Resource = ''; private settingUri: string = ''; - private isEnabled: boolean = true + @Link isEnabled: boolean; private onArrowClick?: () => void; private heights = $r('app.float.wh_value_70'); private image_wh = $r('app.float.wh_value_50'); diff --git a/product/phone/src/main/ets/pages/bluetooth.ets b/product/phone/src/main/ets/pages/bluetooth.ets index bc96fa70..d375a9f5 100644 --- a/product/phone/src/main/ets/pages/bluetooth.ets +++ b/product/phone/src/main/ets/pages/bluetooth.ets @@ -166,7 +166,7 @@ struct DeviceNameComponent { settingArrow: "", settingArrowStyle: '', settingUri: '', - isEnabled: this.isEnabled, + isEnabled: $isEnabled, heights: ($r('app.float.wh_value_48')), fontSize: ($r('app.float.font_16')) })