|
@@ -165,19 +165,21 @@ ToolsHelper.showAlertDialog({
|
|
|
})
|
|
|
```
|
|
|
|
|
|
+>
|
|
|
> 如果需要自定义弹窗UI,可以参考`ToolsHelper`中以下部分代码
|
|
|
>
|
|
|
-> ```
|
|
|
-> @Builder
|
|
|
-> function customDialogBuilder<T>(option: ListOptions<T>, dialogTag: string) {
|
|
|
-> //......
|
|
|
-> }
|
|
|
-> ```
|
|
|
+
|
|
|
+ ```
|
|
|
+ @Builder
|
|
|
+ function customDialogBuilder<T>(option: ListOptions<T>, dialogTag: string) {
|
|
|
+ //......
|
|
|
+ }
|
|
|
+ ```
|
|
|
+
|
|
|
>
|
|
|
> `注意,传入参数(options: AlertBean)是固定的`
|
|
|
->
|
|
|
->
|
|
|
-
|
|
|
+>
|
|
|
+>
|
|
|
|
|
|
### 1.4.[ValidatorHelper](./src/main/ets/utils/ValidatorHelper.ets)
|
|
|
|
|
@@ -617,8 +619,10 @@ build() {
|
|
|
```
|
|
|
|
|
|
### 4.3.[SwipeView](src/main/ets/view/SwipeView.ets)
|
|
|
+
|
|
|
> 左滑删除
|
|
|
->
|
|
|
+>
|
|
|
+
|
|
|
```tsx
|
|
|
SwipeView({
|
|
|
onItemClick: () => {
|