1.README.md optimization
2.DownloadClient.ets code optimization Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
parent
28248d3d26
commit
e5b00ce028
34
README.md
34
README.md
|
@ -13,6 +13,22 @@
|
||||||
- 推荐使用GlideImage组件配合GlideOption参数来实现功能
|
- 推荐使用GlideImage组件配合GlideOption参数来实现功能
|
||||||
- 支持用户自定义配置实现能力参考GlideImage组件中对于入参GlideOption的处理
|
- 支持用户自定义配置实现能力参考GlideImage组件中对于入参GlideOption的处理
|
||||||
|
|
||||||
|
## 下载
|
||||||
|
|
||||||
|
1.配置npm仓库地址:@ohos:registry=https://repo.harmonyos.com/npm/
|
||||||
|
|
||||||
|
2.命令行执行:
|
||||||
|
|
||||||
|
npm install @ohos/imageknife
|
||||||
|
|
||||||
|
DevEco Studio 下载:
|
||||||
|
|
||||||
|
https://developer.harmonyos.com/cn/develop/deveco-studio
|
||||||
|
|
||||||
|
## 使用说明
|
||||||
|
|
||||||
|
[跳转至代码示例](##'代码示例')
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -296,4 +312,20 @@ let requestOptin = new RequestOption();
|
||||||
|
|
||||||
<img src="screenshot/g3.gif" width="50%"/>
|
<img src="screenshot/g3.gif" width="50%"/>
|
||||||
|
|
||||||
<img src="screenshot/g1.gif" width="50%"/><img src="screenshot/g2.gif" width="50%"/>
|
<img src="screenshot/g1.gif" width="50%"/><img src="screenshot/g2.gif" width="50%"/>
|
||||||
|
|
||||||
|
## 兼容性
|
||||||
|
|
||||||
|
支持OpenHarmony API version 8 及以上版本
|
||||||
|
|
||||||
|
## 开源协议
|
||||||
|
|
||||||
|
[协议详见](https://gitee.com/openharmony-tpc/ImageKnife/blob/master/LICENSE)
|
||||||
|
|
||||||
|
## 贡献代码
|
||||||
|
|
||||||
|
使用过程中发现任何问题都可以提[issue](https://gitee.com/openharmony-tpc/ImageKnife/issues)给我们,当然,我们也非常欢迎你给我们发[PR](https://gitee.com/openharmony-tpc/ImageKnife/issues)
|
||||||
|
|
||||||
|
## 遗留问题
|
||||||
|
|
||||||
|
1.图片变换缓慢(待优化)
|
|
@ -98,7 +98,7 @@ export class DownloadClient implements IDataFetch {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
loadTask.off('fail',(err)=>{
|
loadTask.on('fail',(err)=>{
|
||||||
onErrorFunction('DownloadClient Download task fail err ='+err)
|
onErrorFunction('DownloadClient Download task fail err ='+err)
|
||||||
if(loadTask) {
|
if(loadTask) {
|
||||||
loadTask.remove().then(result => {
|
loadTask.remove().then(result => {
|
||||||
|
|
Loading…
Reference in New Issue