Add resource system for doric,start with android

This commit is contained in:
pengfei.zhou
2021-10-20 18:57:17 +08:00
committed by osborn
parent 7637a820e5
commit 5501dd38d9
26 changed files with 880 additions and 23 deletions

View File

@@ -3178,6 +3178,19 @@ function text(config) {
return ret;
}
class Resource {
constructor(type, identifier) {
this.type = type;
this.identifier = identifier;
}
toModel() {
return {
type: this.type,
identifier: this.identifier,
};
}
}
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -3204,6 +3217,10 @@ class Image extends View {
return this.nativeChannel(context, "stopAnimating")();
}
}
__decorate$a([
Property,
__metadata$a("design:type", Resource)
], Image.prototype, "image", void 0);
__decorate$a([
Property,
__metadata$a("design:type", String)

File diff suppressed because one or more lines are too long