From b2a7fb47f8e708b99bc8e29ffc5bf44328dd70f5 Mon Sep 17 00:00:00 2001 From: zgf Date: Fri, 31 May 2024 10:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9package.json=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zgf --- entry/src/main/ets/pages/Index.ets | 199 ++++++++++++++--------------- library/oh-package.json5 | 2 +- 2 files changed, 100 insertions(+), 101 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index a9666dc..f6508f2 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -24,111 +24,110 @@ struct Index { } build() { + Scroll(){ + Column() { + Button("测试HSP场景预加载").onClick(()=>{ + router.push({ + uri: 'pages/TestHspPreLoadImage', - Column() { - Button("测试HSP场景预加载").onClick(()=>{ - router.push({ - uri: 'pages/TestHspPreLoadImage', - - }); - }) - Button("单个图片使用").onClick(()=>{ - router.push({ - uri: 'pages/SingleImage', - - }); - }) - Button("多图 + LazyForEach").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/ManyPhotoShowPage', - - }); - }) - Button("多图 + reuse + LazyForeach").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/UserPage', - - }); - }) - Button("长图显示").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/LongImagePage', - - }); - }) - Button("缩放图片").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/TransformPage', - - }); - }) - Button("消息+List").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/TestImageFlash', - - }); - }) - Button("自定义缓存key").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/SignatureTestPage', - - }); - }) - Button("预加载图片到文件缓存").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/TestPrefetchToFileCache', - - }); - }) - Button("从缓存获取图片显示").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/TestIsUrlExist', - - }); - }) - Button("测试单个请求头").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/TestHeader', - - }); - }) - Button("测试写入缓存策略").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/TestWriteCacheStage', - - }); - }) - Button("图片变换").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/ImageTransformation', - - }); - - }) - - Button("不同的ObjectFit").margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/ObjectFitPage', - - }); - - }) - - Button('测试图片加载成功/失败事件').margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/LoadStatePage', + }); }) - }) + Button("单个图片使用").onClick(()=>{ + router.push({ + uri: 'pages/SingleImage', - Button('测试移除图片缓存接口').margin({top:10}).onClick(()=>{ - router.push({ - uri: 'pages/TestRemoveCache', - }); - }) + }); + }) + Button("多图 + LazyForEach").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/ManyPhotoShowPage', - } - .width('100%') + }); + }) + Button("多图 + reuse + LazyForeach").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/UserPage', + }); + }) + Button("长图显示").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/LongImagePage', + + }); + }) + Button("缩放图片").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/TransformPage', + + }); + }) + Button("消息+List").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/TestImageFlash', + + }); + }) + Button("自定义缓存key").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/SignatureTestPage', + + }); + }) + Button("预加载图片到文件缓存").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/TestPrefetchToFileCache', + + }); + }) + Button("从缓存获取图片显示").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/TestIsUrlExist', + + }); + }) + Button("测试单个请求头").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/TestHeader', + + }); + }) + Button("测试写入缓存策略").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/TestWriteCacheStage', + + }); + }) + Button("图片变换").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/ImageTransformation', + + }); + + }) + + Button("不同的ObjectFit").margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/ObjectFitPage', + + }); + + }) + + Button('测试图片加载成功/失败事件').margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/LoadStatePage', + }) + }) + + Button('测试移除图片缓存接口').margin({top:10}).onClick(()=>{ + router.push({ + uri: 'pages/TestRemoveCache', + }); + }) + + } + } .width('100%') .height('100%') } } \ No newline at end of file diff --git a/library/oh-package.json5 b/library/oh-package.json5 index e7309db..81e22b2 100644 --- a/library/oh-package.json5 +++ b/library/oh-package.json5 @@ -14,7 +14,7 @@ "main": "index.ets", "repository": "https://gitee.com/openharmony-tpc/ImageKnife", "type": "module", - "version": "3.0.0-rc.4", + "version": "3.0.0-rc.6", "dependencies": { "@ohos/gpu_transform": "^1.0.2" },