From 972de2b90b245afbcb03ab1f3eb3fec4323f249c Mon Sep 17 00:00:00 2001 From: houyoujin Date: Mon, 27 Nov 2023 09:44:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9xts=E6=8A=A5=E9=94=99?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0setimageuri=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: houyoujin --- README.md | 2 +- .../ohosTest/ets/{TestAbility => testability}/TestAbility.ets | 2 +- .../ohosTest/ets/{TestAbility => testability}/pages/index.ets | 0 entry/src/ohosTest/module.json5 | 2 +- entry/src/ohosTest/resources/base/profile/test_pages.json | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename entry/src/ohosTest/ets/{TestAbility => testability}/TestAbility.ets (97%) rename entry/src/ohosTest/ets/{TestAbility => testability}/pages/index.ets (100%) diff --git a/README.md b/README.md index c57452b..4dfbc6c 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ import { CircleImageView } from '@ohos/circleimageview'; ## 接口说明 `@State data: CircleImageView.Model = new CircleImageView.Model()` -1. 设置图片路径 +1. 设置图片路径(该URI只能是rawfile目录下的图片资源) `this.data.setImageURI()` 2. 设置设置裁剪大小 `this.data.setDiameter()` diff --git a/entry/src/ohosTest/ets/TestAbility/TestAbility.ets b/entry/src/ohosTest/ets/testability/TestAbility.ets similarity index 97% rename from entry/src/ohosTest/ets/TestAbility/TestAbility.ets rename to entry/src/ohosTest/ets/testability/TestAbility.ets index dfdd586..eacc728 100644 --- a/entry/src/ohosTest/ets/TestAbility/TestAbility.ets +++ b/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -39,7 +39,7 @@ export default class TestAbility extends UIAbility { onWindowStageCreate(windowStage: window.WindowStage) { hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); - windowStage.loadContent('testability/pages/Index', (err, data) => { + windowStage.loadContent('testability/pages/index', (err, data) => { if (err.code) { hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); return; diff --git a/entry/src/ohosTest/ets/TestAbility/pages/index.ets b/entry/src/ohosTest/ets/testability/pages/index.ets similarity index 100% rename from entry/src/ohosTest/ets/TestAbility/pages/index.ets rename to entry/src/ohosTest/ets/testability/pages/index.ets diff --git a/entry/src/ohosTest/module.json5 b/entry/src/ohosTest/module.json5 index 92dcf88..a3f016d 100644 --- a/entry/src/ohosTest/module.json5 +++ b/entry/src/ohosTest/module.json5 @@ -13,7 +13,7 @@ "abilities": [ { "name": "TestAbility", - "srcEntry": "./ets/TestAbility/TestAbility.ets", + "srcEntry": "./ets/testability/TestAbility.ets", "description": "$string:TestAbility_desc", "icon": "$media:icon", "label": "$string:TestAbility_label", diff --git a/entry/src/ohosTest/resources/base/profile/test_pages.json b/entry/src/ohosTest/resources/base/profile/test_pages.json index b7e7343..2d90c65 100644 --- a/entry/src/ohosTest/resources/base/profile/test_pages.json +++ b/entry/src/ohosTest/resources/base/profile/test_pages.json @@ -1,5 +1,5 @@ { "src": [ - "testability/pages/Index" + "testability/pages/index" ] } -- Gitee