Add resource system for doric,start with android
This commit is contained in:
17
doric-web/dist/index.js
vendored
17
doric-web/dist/index.js
vendored
@@ -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)
|
||||
|
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