复用场景缓存到树aboutToRecycle清理定时器
Signed-off-by: zenggaofeng <zenggaofeng2@h-partners.com>
This commit is contained in:
parent
adf61a372e
commit
a8aed3881d
|
@ -1,6 +1,13 @@
|
|||
## 2.1.2-rc.9
|
||||
## 2.1.2-rc.10
|
||||
- 修复部分gif图片识别成静态图
|
||||
- 修复同一张图片发送多次请求
|
||||
- 复用场景缓存到树aboutToRecycle清理定时器
|
||||
|
||||
## 2.1.2-rc.9
|
||||
- 使用taskpool实现多线程加载图片资源
|
||||
- 修复部分gif图片识别成静态图
|
||||
- 修复同一张图片发送多次请求
|
||||
- disAppear生命周期清空定时器只在gif图片时执行
|
||||
|
||||
## 2.1.2-rc.8
|
||||
- onAreaChange绘制图片改为component Util绘制
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"name": "entry",
|
||||
"description": "example description",
|
||||
"repository": {},
|
||||
"version": "2.1.2-rc.9",
|
||||
"version": "2.1.2-rc.10",
|
||||
"dependencies": {
|
||||
"@ohos/libraryimageknife": "file:../sharedlibrary",
|
||||
"@ohos/sharedlibrary2": "file:../sharedlibrary2",
|
||||
|
|
|
@ -69,10 +69,14 @@ struct basicTestFileIOPage {
|
|||
return
|
||||
}
|
||||
console.log('files目录创建Folder1和Folder2 验证statSync mkdirSync')
|
||||
FileUtils.getInstance()
|
||||
.createFolder(this.appFilePath + '/Folder1');
|
||||
FileUtils.getInstance()
|
||||
.createFolder(this.appFilePath + '/Folder2');
|
||||
try {
|
||||
FileUtils.getInstance()
|
||||
.createFolder(this.appFilePath + '/Folder1');
|
||||
FileUtils.getInstance()
|
||||
.createFolder(this.appFilePath + '/Folder2');
|
||||
} catch (e) {
|
||||
console.log('appFilePath未取到值,请按顺序从上往下,从左往右依次测试"'+JSON.stringify(e));
|
||||
}
|
||||
})
|
||||
Button('将media资源存入Folder1 验证writeSync mkdirSync createStreamSync')
|
||||
.margin({ top: 10 })
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"main": "index.ets",
|
||||
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
|
||||
"type": "module",
|
||||
"version": "2.1.2-rc.9",
|
||||
"version": "2.1.2-rc.10",
|
||||
"dependencies": {
|
||||
"pako": "^2.1.0",
|
||||
"@ohos/disklrucache": "^2.0.2-rc.0",
|
||||
|
|
|
@ -628,7 +628,9 @@ export struct ImageKnifeComponent {
|
|||
request.fitCenter()
|
||||
}
|
||||
}
|
||||
|
||||
aboutToRecycle(){
|
||||
this.resetGifData()
|
||||
}
|
||||
aboutToAppear() {
|
||||
LogUtil.log('ImageKnifeComponent aboutToAppear happened!')
|
||||
this.canvasHasReady = false;
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"name": "imageknife",
|
||||
"description": "example description",
|
||||
"repository": {},
|
||||
"version": "2.1.2-rc.9",
|
||||
"version": "2.1.2-rc.10",
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue