错误修改

Signed-off-by: l-l <liuxiaobofight@163.com>
This commit is contained in:
l-l 2024-11-19 15:34:51 +08:00
parent 24ff62f00b
commit 6b07a7df8a
6 changed files with 9 additions and 8 deletions

View File

@ -15,8 +15,8 @@
{
"app": {
"bundleName": "com.example.formSample",
"vendor": "example",
"bundleName": "com.samples.formSample",
"vendor": "samples",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:app_icon",

View File

@ -66,7 +66,7 @@ entry/src/main/ets/
1.本示例仅支持标准系统上运行支持设备RK3568。
2.本示例为Stage模型支持API11版本SDKSDK版本号API Version 12 Release
2.本示例为Stage模型支持API12版本SDKSDK版本号API Version 12 Release
3.本示例需要使用DevEco Studio版本号DevEco Studio 5.0.0 Release及以上版本才可编译运行。

View File

@ -29,7 +29,7 @@ export default struct AddFormByMenu {
Menu() {
AddFormMenuItem(
{
bundleName: 'com.example.formSample', // 包名
bundleName: 'com.samples.formSample', // 包名
abilityName: 'EntryFormAbility', // 模块ability名称
parameters: {
'ohos.extra.param.key.form_dimension': 2,
@ -79,6 +79,7 @@ export default struct AddFormByMenu {
}
.backgroundImage($r("app.media.CardEvent"))
.backgroundImageSize(ImageSize.Cover)
.id(this.compId)
.width(200)
.height(200)
.borderRadius(10)

View File

@ -45,11 +45,11 @@ struct WidgetCard {
Row() {
Column() {
Text(this.city_value)
.fontSize($r('app.float.font_size'))
.fontSize($r('app.string.font_size'))
.fontWeight(FontWeight.Medium)
.fontColor($r('app.color.item_title_font'))
Text(this.time_value)
.fontSize($r('app.float.font_size'))
.fontSize($r('app.string.font_size'))
.fontWeight(FontWeight.Medium)
.fontColor($r('app.color.item_title_font'))
}

View File

@ -33,7 +33,7 @@ export default function abilityTest() {
let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
try {
await abilityDelegator.startAbility({
bundleName: 'com.example.formSample',
bundleName: 'com.samples.formSample',
abilityName: 'EntryAbility'
});
} catch (exception) {

View File

@ -29,7 +29,7 @@ export default struct AddFormByMenu {
Menu() {
AddFormMenuItem(
{
bundleName: 'com.example.formSample', // 包名
bundleName: 'com.samples.formSample', // 包名
abilityName: 'EntryAbility', // 模块ability名称
parameters: {
'ohos.extra.param.key.form_dimension': 2,