js: add base64 for placeholder & error in image

This commit is contained in:
王劲鹏
2020-05-11 11:18:30 +08:00
committed by osborn
parent 9759eac38b
commit dabd53a1f5
9 changed files with 51 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ export declare class Image extends View {
* Local file name
*/
placeHolderImage?: string;
placeHolderImageBase64?: string;
/**
* Display while image is loading
* Color
@@ -38,6 +39,7 @@ export declare class Image extends View {
* It can be file name in local path
*/
errorImage?: string;
errorImageBase64?: string;
/**
* Display while image is failed to load
* Color

View File

@@ -61,6 +61,10 @@ __decorate([
Property,
__metadata("design:type", String)
], Image.prototype, "placeHolderImage", void 0);
__decorate([
Property,
__metadata("design:type", String)
], Image.prototype, "placeHolderImageBase64", void 0);
__decorate([
Property,
__metadata("design:type", Color
@@ -74,6 +78,10 @@ __decorate([
Property,
__metadata("design:type", String)
], Image.prototype, "errorImage", void 0);
__decorate([
Property,
__metadata("design:type", String)
], Image.prototype, "errorImageBase64", void 0);
__decorate([
Property,
__metadata("design:type", Color)