feat:modular add provider
This commit is contained in:
@@ -185,10 +185,14 @@ export abstract class View implements Modeling {
|
||||
|
||||
nativeViewModel: NativeViewModel = {
|
||||
id: this.viewId,
|
||||
type: this.constructor.name,
|
||||
type: this.viewType(),
|
||||
props: this.__dirty_props__,
|
||||
}
|
||||
|
||||
viewType() {
|
||||
return this.constructor.name
|
||||
}
|
||||
|
||||
onPropertyChanged(propKey: string, oldV: Model, newV: Model): void {
|
||||
if (newV instanceof Function) {
|
||||
newV = this.callback2Id(newV)
|
||||
|
@@ -191,10 +191,14 @@ export abstract class View implements Modeling {
|
||||
|
||||
nativeViewModel: NativeViewModel = {
|
||||
id: this.viewId,
|
||||
type: this.constructor.name,
|
||||
type: this.viewType(),
|
||||
props: this.__dirty_props__,
|
||||
}
|
||||
|
||||
viewType() {
|
||||
return this.constructor.name
|
||||
}
|
||||
|
||||
onPropertyChanged(propKey: string, oldV: Model, newV: Model): void {
|
||||
if (newV instanceof Function) {
|
||||
newV = this.callback2Id(newV)
|
||||
|
Reference in New Issue
Block a user