diff --git a/README.md b/README.md index 1c73a4e..f942eba 100644 --- a/README.md +++ b/README.md @@ -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.弹出自定义窗口