|
@@ -70,7 +70,6 @@ export class SImageItem extends SObjectItem {
|
|
set url(v: string) {
|
|
set url(v: string) {
|
|
this._url = v;
|
|
this._url = v;
|
|
this.img = new Image();
|
|
this.img = new Image();
|
|
- this.img.src = v;
|
|
|
|
this.img.onload = (): void => {
|
|
this.img.onload = (): void => {
|
|
this.isLoadOver = true;
|
|
this.isLoadOver = true;
|
|
this.computeImgSize();
|
|
this.computeImgSize();
|
|
@@ -82,6 +81,7 @@ export class SImageItem extends SObjectItem {
|
|
this.update();
|
|
this.update();
|
|
console.log("加载图片错误!", e);
|
|
console.log("加载图片错误!", e);
|
|
};
|
|
};
|
|
|
|
+ this.img.src = v;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|