修复资源无法找到的问题
This commit is contained in:
parent
94812592c2
commit
bab53c5e9f
@ -6,6 +6,7 @@ import { BusinessError } from '@ohos.base';
|
|||||||
import { Log } from '@devwiki/base';
|
import { Log } from '@devwiki/base';
|
||||||
import { BaseLocalStorage, ScreenUtil } from '@devwiki/base';
|
import { BaseLocalStorage, ScreenUtil } from '@devwiki/base';
|
||||||
import { HomeItem, HomeItemGroup } from '../model/Home';
|
import { HomeItem, HomeItemGroup } from '../model/Home';
|
||||||
|
import { Context } from '@kit.AbilityKit';
|
||||||
|
|
||||||
import('./animation/LoadingPage')
|
import('./animation/LoadingPage')
|
||||||
|
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
"string": [
|
"string": [
|
||||||
{
|
{
|
||||||
"name": "module_desc",
|
"name": "module_desc",
|
||||||
"value": "module description"
|
"value": "HM4Demo App"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "AppAbility_desc",
|
"name": "AppAbility_desc",
|
||||||
"value": "description"
|
"value": "HM4Demo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "AppAbility_label",
|
"name": "AppAbility_label",
|
||||||
"value": "label"
|
"value": "HM4Demo"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -26,7 +26,7 @@ export struct PhoneInput {
|
|||||||
Row() {
|
Row() {
|
||||||
Text(this.countryCode)
|
Text(this.countryCode)
|
||||||
.height(44)
|
.height(44)
|
||||||
Image($r('app.media.ic_chevron_down'))
|
Image($r(`app.media.ic_chevron_down`))
|
||||||
.objectFit(ImageFit.Contain)
|
.objectFit(ImageFit.Contain)
|
||||||
.width(12)
|
.width(12)
|
||||||
.height(12)
|
.height(12)
|
||||||
@ -55,7 +55,7 @@ export struct PhoneInput {
|
|||||||
})
|
})
|
||||||
.width('100%')
|
.width('100%')
|
||||||
|
|
||||||
Image($r('app.media.ic_clear_circle'))
|
Image($r(`app.media.ic_clear_circle`))
|
||||||
.width(18)
|
.width(18)
|
||||||
.height(18)
|
.height(18)
|
||||||
.backgroundColor(Color.Green)
|
.backgroundColor(Color.Green)
|
||||||
|
@ -25,11 +25,11 @@ export struct TitleBar {
|
|||||||
@Prop menuPadding: number = 8;
|
@Prop menuPadding: number = 8;
|
||||||
|
|
||||||
@Prop leftText: ResourceStr = "";
|
@Prop leftText: ResourceStr = "";
|
||||||
@Prop leftIcon: Resource = $r("app.media.ic_chevron_left");
|
@Prop leftIcon: Resource = $r(`app.media.ic_chevron_left`);
|
||||||
@Prop leftMenuType: TitleBarMenuType = TitleBarMenuType.Icon;
|
@Prop leftMenuType: TitleBarMenuType = TitleBarMenuType.Icon;
|
||||||
|
|
||||||
@Prop rightText: ResourceStr = "";
|
@Prop rightText: ResourceStr = "";
|
||||||
@Prop rightIcon: Resource = $r("app.media.ic_close");
|
@Prop rightIcon: Resource = $r(`app.media.ic_close`);
|
||||||
@Prop rightMenuType: TitleBarMenuType = TitleBarMenuType.None;
|
@Prop rightMenuType: TitleBarMenuType = TitleBarMenuType.None;
|
||||||
|
|
||||||
@Prop titleTextAlign: TextAlign = TextAlign.Start;
|
@Prop titleTextAlign: TextAlign = TextAlign.Start;
|
||||||
|
@ -7,27 +7,27 @@ export class CommonRes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static getIconRefresh(): Resource {
|
public static getIconRefresh(): Resource {
|
||||||
return $r("app.media.ic_refresh");
|
return $r(`app.media.ic_refresh`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getIconChevronLeft(): Resource {
|
public static getIconChevronLeft(): Resource {
|
||||||
return $r("app.media.ic_chevron_left");
|
return $r(`app.media.ic_chevron_left`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getIconChevronRight(): Resource {
|
public static getIconChevronRight(): Resource {
|
||||||
return $r("app.media.ic_chevron_right");
|
return $r(`app.media.ic_chevron_right`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getIconClose(): Resource {
|
public static getIconClose(): Resource {
|
||||||
return $r("app.media.ic_close");
|
return $r(`app.media.ic_close`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getIconEyeOn(): Resource {
|
public static getIconEyeOn(): Resource {
|
||||||
return $r("app.media.ic_eye_on");
|
return $r(`app.media.ic_eye_on`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getIconEyeOff(): Resource {
|
public static getIconEyeOff(): Resource {
|
||||||
return $r("app.media.ic_eye_off");
|
return $r(`app.media.ic_eye_off`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getImage(resName: string): Resource {
|
public static getImage(resName: string): Resource {
|
||||||
|
Loading…
Reference in New Issue
Block a user