feat:Image add imageFilePath

This commit is contained in:
pengfei.zhou
2021-08-05 17:42:45 +08:00
committed by osborn
parent 57cfdd38e1
commit bfa865fe5d
11 changed files with 86 additions and 20 deletions

View File

@@ -2035,6 +2035,10 @@ var Image = /** @class */ (function (_super) {
Property,
__metadata$9("design:type", String)
], Image.prototype, "imageUrl", void 0);
__decorate$9([
Property,
__metadata$9("design:type", String)
], Image.prototype, "imageFilePath", void 0);
__decorate$9([
Property,
__metadata$9("design:type", String)

View File

@@ -1545,6 +1545,10 @@ __decorate$9([
Property,
__metadata$9("design:type", String)
], Image.prototype, "imageUrl", void 0);
__decorate$9([
Property,
__metadata$9("design:type", String)
], Image.prototype, "imageFilePath", void 0);
__decorate$9([
Property,
__metadata$9("design:type", String)

View File

@@ -3066,6 +3066,10 @@ __decorate$9([
Property,
__metadata$9("design:type", String)
], Image.prototype, "imageUrl", void 0);
__decorate$9([
Property,
__metadata$9("design:type", String)
], Image.prototype, "imageFilePath", void 0);
__decorate$9([
Property,
__metadata$9("design:type", String)

4
doric-js/index.d.ts vendored
View File

@@ -528,6 +528,10 @@ declare module 'doric/lib/src/widget/image' {
}
export class Image extends View {
imageUrl?: string;
/**
* Read image from local file system.
*/
imageFilePath?: string;
/**
* Read image from local path
* For android,it based on assets dir.

View File

@@ -7,6 +7,10 @@ export declare enum ScaleType {
}
export declare class Image extends View {
imageUrl?: string;
/**
* Read image from local file system.
*/
imageFilePath?: string;
/**
* Read image from local path
* For android,it based on assets dir.

View File

@@ -37,6 +37,10 @@ __decorate([
Property,
__metadata("design:type", String)
], Image.prototype, "imageUrl", void 0);
__decorate([
Property,
__metadata("design:type", String)
], Image.prototype, "imageFilePath", void 0);
__decorate([
Property,
__metadata("design:type", String)

View File

@@ -27,6 +27,11 @@ export class Image extends View {
@Property
imageUrl?: string
/**
* Read image from local file system.
*/
@Property
imageFilePath?: string
/**
* Read image from local path
* For android,it based on assets dir.