添加输入组件测试

This commit is contained in:
2024-05-16 14:04:49 +08:00
parent 9c169a0cf3
commit bd9c6441bb
15 changed files with 161 additions and 2 deletions

View File

@@ -30,9 +30,17 @@ export class CommonRes {
return $r("app.media.ic_eye_off");
}
public static getImageRes(resName: string): Resource {
public static getImage(resName: string): Resource {
return $r(`app.media.${resName}`);
}
public static getString(name: string): ResourceStr {
return $r(`app.string.${name}`);
}
public static getFloat(name: string): ResourceStr {
return $r(`app.float.${name}`)
}
}
export class CommonMediaName {