js: add base64 for placeholder & error in image
This commit is contained in:
parent
9759eac38b
commit
dabd53a1f5
@ -1790,6 +1790,10 @@ var Image = /** @class */ (function (_super) {
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color
|
||||
@ -1803,6 +1807,10 @@ var Image = /** @class */ (function (_super) {
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color)
|
||||
|
@ -1340,6 +1340,10 @@ __decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color
|
||||
@ -1353,6 +1357,10 @@ __decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color)
|
||||
|
@ -2799,6 +2799,10 @@ __decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color
|
||||
@ -2812,6 +2816,10 @@ __decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color)
|
||||
|
2
doric-js/index.d.ts
vendored
2
doric-js/index.d.ts
vendored
@ -473,6 +473,7 @@ declare module 'doric/lib/src/widget/image' {
|
||||
* Local file name
|
||||
*/
|
||||
placeHolderImage?: string;
|
||||
placeHolderImageBase64?: string;
|
||||
/**
|
||||
* Display while image is loading
|
||||
* Color
|
||||
@ -484,6 +485,7 @@ declare module 'doric/lib/src/widget/image' {
|
||||
* It can be file name in local path
|
||||
*/
|
||||
errorImage?: string;
|
||||
errorImageBase64?: string;
|
||||
/**
|
||||
* Display while image is failed to load
|
||||
* Color
|
||||
|
2
doric-js/lib/src/widget/image.d.ts
vendored
2
doric-js/lib/src/widget/image.d.ts
vendored
@ -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
|
||||
|
@ -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)
|
||||
|
@ -57,6 +57,9 @@ export class Image extends View {
|
||||
*/
|
||||
@Property
|
||||
placeHolderImage?: string
|
||||
|
||||
@Property
|
||||
placeHolderImageBase64?: string
|
||||
/**
|
||||
* Display while image is loading
|
||||
* Color
|
||||
@ -70,6 +73,9 @@ export class Image extends View {
|
||||
*/
|
||||
@Property
|
||||
errorImage?: string
|
||||
|
||||
@Property
|
||||
errorImageBase64?: string
|
||||
/**
|
||||
* Display while image is failed to load
|
||||
* Color
|
||||
|
8
doric-web/dist/index.js
vendored
8
doric-web/dist/index.js
vendored
@ -2857,6 +2857,10 @@ __decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "placeHolderImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color
|
||||
@ -2870,6 +2874,10 @@ __decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImage", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", String)
|
||||
], Image.prototype, "errorImageBase64", void 0);
|
||||
__decorate$4([
|
||||
Property,
|
||||
__metadata$4("design:type", Color)
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user