Showing
5 changed files
with
3 additions
and
10 deletions
| 1 | @CustomDialog | 1 | @CustomDialog |
| 2 | export struct CustomToast { | 2 | export struct CustomToast { |
| 3 | - public static LENGTH_LONG = 5000; | ||
| 4 | - public static LENGTH_SHORT = 3000; | 3 | + public static LENGTH_LONG = 4000; |
| 4 | + public static LENGTH_SHORT = 2000; | ||
| 5 | 5 | ||
| 6 | @State msg: string = "" | 6 | @State msg: string = "" |
| 7 | @State duration: number = CustomToast.LENGTH_SHORT | 7 | @State duration: number = CustomToast.LENGTH_SHORT |
| @@ -29,6 +29,7 @@ export struct CustomToast { | @@ -29,6 +29,7 @@ export struct CustomToast { | ||
| 29 | .fontColor($r('app.color.white')) | 29 | .fontColor($r('app.color.white')) |
| 30 | .fontSize("27lpx") | 30 | .fontSize("27lpx") |
| 31 | .lineHeight("38lpx") | 31 | .lineHeight("38lpx") |
| 32 | + .textAlign(TextAlign.Center) | ||
| 32 | }.borderRadius(`${this.bgBorderRadius}lpx`) | 33 | }.borderRadius(`${this.bgBorderRadius}lpx`) |
| 33 | .constraintSize({maxWidth:"86%"}) | 34 | .constraintSize({maxWidth:"86%"}) |
| 34 | .padding({top:"23lpx",bottom:'23lpx',left:"35lpx",right:"35lpx"}) | 35 | .padding({top:"23lpx",bottom:'23lpx',left:"35lpx",right:"35lpx"}) |
| @@ -37,8 +37,6 @@ struct ForgetPasswordPage { | @@ -37,8 +37,6 @@ struct ForgetPasswordPage { | ||
| 37 | }), | 37 | }), |
| 38 | autoCancel: false, | 38 | autoCancel: false, |
| 39 | alignment: DialogAlignment.Center, | 39 | alignment: DialogAlignment.Center, |
| 40 | - offset: { dx: 0, dy: -20 }, | ||
| 41 | - gridCount: 1, | ||
| 42 | customStyle: true, | 40 | customStyle: true, |
| 43 | maskColor:"#00000000" | 41 | maskColor:"#00000000" |
| 44 | }) | 42 | }) |
| @@ -53,8 +53,6 @@ struct LoginPage { | @@ -53,8 +53,6 @@ struct LoginPage { | ||
| 53 | }), | 53 | }), |
| 54 | autoCancel: false, | 54 | autoCancel: false, |
| 55 | alignment: DialogAlignment.Center, | 55 | alignment: DialogAlignment.Center, |
| 56 | - offset: { dx: 0, dy: -20 }, | ||
| 57 | - gridCount: 1, | ||
| 58 | customStyle: true, | 56 | customStyle: true, |
| 59 | maskColor:"#00000000" | 57 | maskColor:"#00000000" |
| 60 | }) | 58 | }) |
| @@ -24,8 +24,6 @@ struct ModifyPasswordPage { | @@ -24,8 +24,6 @@ struct ModifyPasswordPage { | ||
| 24 | }), | 24 | }), |
| 25 | autoCancel: false, | 25 | autoCancel: false, |
| 26 | alignment: DialogAlignment.Center, | 26 | alignment: DialogAlignment.Center, |
| 27 | - offset: { dx: 0, dy: -20 }, | ||
| 28 | - gridCount: 1, | ||
| 29 | customStyle: true, | 27 | customStyle: true, |
| 30 | maskColor:"#00000000" | 28 | maskColor:"#00000000" |
| 31 | }) | 29 | }) |
| @@ -64,8 +64,6 @@ export struct SettingPasswordLayout { | @@ -64,8 +64,6 @@ export struct SettingPasswordLayout { | ||
| 64 | }), | 64 | }), |
| 65 | autoCancel: false, | 65 | autoCancel: false, |
| 66 | alignment: DialogAlignment.Center, | 66 | alignment: DialogAlignment.Center, |
| 67 | - offset: { dx: 0, dy: -20 }, | ||
| 68 | - gridCount: 1, | ||
| 69 | customStyle: true, | 67 | customStyle: true, |
| 70 | maskColor:"#00000000" | 68 | maskColor:"#00000000" |
| 71 | }) | 69 | }) |
-
Please register or login to post a comment