formula: support resultset
This commit is contained in:
parent
8e08ff5399
commit
664362b456
1 changed files with 3 additions and 1 deletions
|
|
@ -83,7 +83,9 @@ module.exports = class Formula extends _widgets_base {
|
|||
|
||||
try {
|
||||
|
||||
this.value = math.eval(formula).valueOf()
|
||||
var v = math.eval(formula).valueOf()
|
||||
|
||||
this.value = v.data ? v.data : v
|
||||
|
||||
this.showValue()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue