添加输入组件测试
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user