未验证 提交 5aea8502 编写于 作者: O openharmony_ci 提交者: Gitee

!24169 【monthly_20230815】一多akrts整改0906

Merge pull request !24169 from songqq0825/monthly_20230815
...@@ -230,10 +230,16 @@ export class BreakpointSystem { ...@@ -230,10 +230,16 @@ export class BreakpointSystem {
} }
public unregister() :void{ public unregister() :void{
if(this.smListener){
this.smListener.off("change", this.isBreakpointSM) this.smListener.off("change", this.isBreakpointSM)
}
if(this.mdListener){
this.mdListener.off("change", this.isBreakpointMD) this.mdListener.off("change", this.isBreakpointMD)
}
if(this.lgListener){
this.lgListener.off("change", this.isBreakpointLG) 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
...@@ -115,12 +121,6 @@ let aboutTab:ItemObj={ ...@@ -115,12 +121,6 @@ let aboutTab:ItemObj={
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.
先完成此消息的编辑!
想要评论请 注册