增加显示隐藏动画

This commit is contained in:
2024-04-17 11:29:22 +08:00
parent 3ff3ad9913
commit a3b73bab26
7 changed files with 79 additions and 8 deletions

View File

@@ -14,4 +14,23 @@ export class CommonRes {
public static getIconClose(): Resource {
return $r("app.media.ic_close");
}
public static getIconEyeOn(): Resource {
return $r("app.media.ic_eye_on");
}
public static getIconEyeOff(): Resource {
return $r("app.media.ic_eye_off");
}
public static getImageRes(resName: string): Resource {
return $r(`app.media.${resName}`);
}
}
export class CommonMediaName {
private constructor() {
}
static readonly IcEyeOn = "ic_eye_on";
static readonly IcEyeOff = "ic_eye_ff";
}