设置菜单中,开启关闭蓝牙开关,设备名称处高亮和置灰状态不会实时刷新

Signed-off-by: zhangxCode <zhangxiong076@chinasoftinc.com>
This commit is contained in:
zhangxCode 2024-05-22 14:36:56 +08:00
parent f9a64250bd
commit ddabc839d3
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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'))
})