Compare commits
2 Commits
517d45e631
...
6c6aed9621
Author | SHA1 | Date |
---|---|---|
|
6c6aed9621 | |
|
74bc24d61d |
|
@ -75,11 +75,11 @@ export struct ImageKnifeAnimatorComponent {
|
|||
} else {
|
||||
// 前提:宽高值均有效,值>0. 条件1:当前宽高与上一次宽高不同 条件2:当前是第一次绘制
|
||||
if (this.currentHeight != this.lastHeight || this.currentWidth != this.lastWidth) {
|
||||
LogUtil.log('onSizeChange execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight
|
||||
+ ' loadSrc = ' + this.imageKnifeOption.loadSrc
|
||||
+ ' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc
|
||||
+ ' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc
|
||||
+ ' componentId = ' + this.getUniqueId())
|
||||
LogUtil.log('onSizeChange execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight +
|
||||
' loadSrc = ' + this.imageKnifeOption.loadSrc +
|
||||
' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc +
|
||||
' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc +
|
||||
' componentId = ' + this.getUniqueId())
|
||||
ImageKnife.getInstance().execute(this.getRequest(this.currentWidth, this.currentHeight),true)
|
||||
}
|
||||
}
|
||||
|
@ -97,11 +97,11 @@ export struct ImageKnifeAnimatorComponent {
|
|||
}
|
||||
this.request = undefined
|
||||
this.componentVersion++
|
||||
LogUtil.log('watchImageKnifeOption execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight
|
||||
+ ' loadSrc = ' + this.imageKnifeOption.loadSrc
|
||||
+ ' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc
|
||||
+ ' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc
|
||||
+ ' componentId = ' + this.getUniqueId())
|
||||
LogUtil.log('watchImageKnifeOption execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight +
|
||||
' loadSrc = ' + this.imageKnifeOption.loadSrc +
|
||||
' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc +
|
||||
' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc +
|
||||
' componentId = ' + this.getUniqueId())
|
||||
ImageKnife.getInstance().execute(this.getRequest(this.currentWidth, this.currentHeight),true)
|
||||
}
|
||||
|
||||
|
|
|
@ -100,11 +100,11 @@ export struct ImageKnifeComponent {
|
|||
} else {
|
||||
// 前提:宽高值均有效,值>0. 条件1:当前宽高与上一次宽高不同 条件2:当前是第一次绘制
|
||||
if (this.currentHeight != this.lastHeight || this.currentWidth != this.lastWidth) {
|
||||
LogUtil.log('onSizeChange execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight
|
||||
+ ' loadSrc = ' + this.imageKnifeOption.loadSrc
|
||||
+ ' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc
|
||||
+ ' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc
|
||||
+ ' componentId = ' + this.getUniqueId())
|
||||
LogUtil.log('onSizeChange execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight +
|
||||
' loadSrc = ' + this.imageKnifeOption.loadSrc +
|
||||
' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc +
|
||||
' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc +
|
||||
' componentId = ' + this.getUniqueId())
|
||||
ImageKnife.getInstance().execute(this.getRequest(this.currentWidth, this.currentHeight))
|
||||
}
|
||||
}
|
||||
|
@ -115,11 +115,11 @@ export struct ImageKnifeComponent {
|
|||
this.clearLastRequest()
|
||||
this.componentVersion++
|
||||
this.objectFit = this.imageKnifeOption.objectFit === undefined ? ImageFit.Contain : this.imageKnifeOption.objectFit
|
||||
LogUtil.log('watchImageKnifeOption execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight
|
||||
+ ' loadSrc = ' + this.imageKnifeOption.loadSrc
|
||||
+ ' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc
|
||||
+ ' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc
|
||||
+ ' componentId = ' + this.getUniqueId())
|
||||
LogUtil.log('watchImageKnifeOption execute request:width=' + this.currentWidth + ' height= ' + this.currentHeight +
|
||||
' loadSrc = ' + this.imageKnifeOption.loadSrc +
|
||||
' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc +
|
||||
' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc +
|
||||
' componentId = ' + this.getUniqueId())
|
||||
ImageKnife.getInstance().execute(this.getRequest(this.currentWidth, this.currentHeight))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue