mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-18 12:35:31 -04:00
!1 Update width and height for Image onload
Merge pull request !1 from Sunfei/upload
This commit is contained in:
@@ -51,8 +51,10 @@ export class Image {
|
||||
width: this._width,
|
||||
height: this._height,
|
||||
success: data => {
|
||||
this._width = data.width;
|
||||
this._height = data.height;
|
||||
if (this.onload && typeof this.onload === 'function') {
|
||||
this.onload(data);
|
||||
this.onload();
|
||||
}
|
||||
},
|
||||
fail: data => {
|
||||
|
||||
Reference in New Issue
Block a user