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

arkts整改

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