fixes with handling new and query modes
This commit is contained in:
parent
b72a85ac24
commit
b75aa08d7c
1 changed files with 5 additions and 3 deletions
|
@ -74,8 +74,10 @@ function Data(name, action, domain: string): object {
|
||||||
// appdata and component method definitions
|
// appdata and component method definitions
|
||||||
|
|
||||||
function mounted(name: string, meta: any) {
|
function mounted(name: string, meta: any) {
|
||||||
console.log('name: ', name, ', meta: ', meta)
|
if (meta.defexpr) {
|
||||||
this.data[name] = meta.default || eval(meta.defexpr) || ""
|
meta.default = eval(meta.defexpr)
|
||||||
|
}
|
||||||
|
this.data[name] = meta.default || ""
|
||||||
this.meta[name] = meta
|
this.meta[name] = meta
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +128,7 @@ function handle(msg) {
|
||||||
if (domain && domain != comp.domain) {
|
if (domain && domain != comp.domain) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (comp != undefined) {
|
if (comp) {
|
||||||
Object.assign(comp.data, data)
|
Object.assign(comp.data, data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue