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