|
@@ -184,6 +184,12 @@ struct SettingPage {
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|
|
|
.border({ width: 1, color: '#14000000' })
|
|
.border({ width: 1, color: '#14000000' })
|
|
|
.margin({ bottom: 25 })
|
|
.margin({ bottom: 25 })
|
|
|
|
|
+ .onChange((value) => {
|
|
|
|
|
+ if (value.length > 7) {
|
|
|
|
|
+ this.value = value.slice(0, 7)
|
|
|
|
|
+ IBestToast.show({ type: "warning", message: '用户名称最大为7位' })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
Row({ space: 32 }) {
|
|
Row({ space: 32 }) {
|
|
|
YtButton({
|
|
YtButton({
|