forked from floraachy/ImageKnife
修改package.json版本
Signed-off-by: zgf <zenggaofeng2@h-partners.com>
This commit is contained in:
parent
8d39586c67
commit
b2a7fb47f8
|
@ -24,111 +24,110 @@ struct Index {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
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%')
|
.height('100%')
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -14,7 +14,7 @@
|
||||||
"main": "index.ets",
|
"main": "index.ets",
|
||||||
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
|
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.0.0-rc.4",
|
"version": "3.0.0-rc.6",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ohos/gpu_transform": "^1.0.2"
|
"@ohos/gpu_transform": "^1.0.2"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue