提交 2a678e58 编写于 作者: S swx1239486

arkts整改

Signed-off-by: Nswx1239486 <songqinqin4@huawei.com>
上级 a142dd80
...@@ -230,9 +230,15 @@ export class BreakpointSystem { ...@@ -230,9 +230,15 @@ export class BreakpointSystem {
} }
public unregister() :void{ public unregister() :void{
this.smListener.off("change", this.isBreakpointSM) if(smListener){
this.mdListener.off("change", this.isBreakpointMD) this.smListener.off("change", this.isBreakpointSM)
this.lgListener.off("change", this.isBreakpointLG) }
if(mdListener){
this.mdListener.off("change", this.isBreakpointMD)
}
if(lgListener){
this.lgListener.off("change", this.isBreakpointLG)
}
} }
} }
......
...@@ -60,6 +60,12 @@ struct Index { ...@@ -60,6 +60,12 @@ struct Index {
``` ```
```typescript ```typescript
//核心代码 SettingList.ets //核心代码 SettingList.ets
import { MainItem } from '../components/MainItem'
import { ItemGroup } from '../components/ItemGroup'
import { SearchBox } from '../components/SearchBox'
import { MoreConnectionsItem } from '../moreconnections/MoreConnectionsItem'
import { WlanSettingItem } from '../wlan/WlanSettingItem'
class ItemObj { class ItemObj {
title?: Resource title?: Resource
tag?: string tag?: string
...@@ -114,13 +120,7 @@ let aboutTab:ItemObj={ ...@@ -114,13 +120,7 @@ let aboutTab:ItemObj={
title: $r('app.string.aboutTab'), title: $r('app.string.aboutTab'),
icon: $r('app.media.aboutDevice'), icon: $r('app.media.aboutDevice'),
} }
import { MainItem } from '../components/MainItem'
import { ItemGroup } from '../components/ItemGroup'
import { SearchBox } from '../components/SearchBox'
import { MoreConnectionsItem } from '../moreconnections/MoreConnectionsItem'
import { WlanSettingItem } from '../wlan/WlanSettingItem'
@Component @Component
export struct SettingList { export struct SettingList {
@Builder @Builder
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册