增多一些可覆盖属性

This commit is contained in:
CPPAlien 2019-11-26 14:17:49 +08:00
parent c6b9c92c4f
commit 8e0a2b4264

View File

@ -230,10 +230,15 @@ Component({
doView.css = Object.assign({}, doView.css, newVal.css)
}
}
if (newVal.rect) {
doView.rect = newVal.rect;
}
if (newVal && newVal.url && doView.url && newVal.url !== doView.url) {
downloader.download(newVal.url, this.properties.LRU).then((path) => {
doView.originUrl = doView.url
doView.url = path
doView.url = path;
newVal.sHeight && (doView.sHeight = newVal.sHeight);
newVal.sWidth && (doView.sWidth = newVal.sWidth);
this.reDraw(doView, callback, isMoving)
})
} else {