这个提交包含在:
徐勤民 2024-10-16 11:58:52 +08:00
父节点 a2d70ffff2
当前提交 21960cd2b4

查看文件

@ -284,6 +284,33 @@ build() {
}
```
### 4.2.[SafeView](./src/main/ets/view/SafeView.ets)
> 基础布局
```tsx
import { SafeView } from '@szyx/sdk_base'
@State isLoading: boolean = false
build() {
SafeView({
isLoading: this.isLoading,
titleText: '注册',
onClickLeft:{img:$r("app.media.base_back"),
onClick:()=>{}
},
onClickRight:{
text:'添加',
color:'#ff1d9999',
onClick:()=>{}
}
}){
// 自己的布局
}
}
```
## 5.[Windows](./src/main/ets/utils/WindowHelper.ets)
### 5.1.弹出自定义窗口