forked from floraachy/ImageKnife
parent
97a5ca1ec2
commit
240a2658a7
|
@ -1,3 +1,6 @@
|
||||||
|
## 2.2.0-rc.2
|
||||||
|
- ImageKnife支持heic图片修改demo,按钮控制组件是否展示
|
||||||
|
|
||||||
## 2.2.0-rc.1
|
## 2.2.0-rc.1
|
||||||
- 修改ImageKnife跳过网络,点击默认,图片没有传入宽高,无显示bug
|
- 修改ImageKnife跳过网络,点击默认,图片没有传入宽高,无显示bug
|
||||||
- ImageKnife支持根据自定义key获取已缓存的图片
|
- ImageKnife支持根据自定义key获取已缓存的图片
|
||||||
|
|
|
@ -28,17 +28,14 @@ struct testImageKnifeHeic {
|
||||||
@State flag: boolean = true;
|
@State flag: boolean = true;
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
|
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) {
|
||||||
Button("heic图片测试")
|
Button("heic图片测试")
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
this.flag = !this.flag
|
this.flag = !this.flag
|
||||||
if (this.flag) {
|
|
||||||
this.imageKnifeOption1.errorholderSrc = $r('app.media.icon_loading')
|
|
||||||
} else {
|
|
||||||
this.imageKnifeOption1.errorholderSrc = $r('app.media.icon_failed')
|
|
||||||
}
|
|
||||||
}).margin({ top: 15 })
|
}).margin({ top: 15 })
|
||||||
ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption1 }).width(300).height(300)
|
if(this.flag) {
|
||||||
}.width('100%').height(300).backgroundColor(Color.Pink)
|
ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption1 }).width(300).height(300)
|
||||||
|
}
|
||||||
|
}.width('100%').height(400).backgroundColor(Color.Pink)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue