mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:45:18 +00:00
fix(evaluators): change formula.js to default calculation engine (#5626)
This commit is contained in:
parent
96ba3600fc
commit
b7495a7757
@ -22,8 +22,8 @@ export interface Evaluator {
|
||||
|
||||
export const evaluators = new Registry<Evaluator>();
|
||||
|
||||
evaluators.register('math.js', mathjs);
|
||||
evaluators.register('formula.js', formulajs);
|
||||
evaluators.register('math.js', mathjs);
|
||||
evaluators.register('string', string);
|
||||
|
||||
export function getOptions() {
|
||||
|
@ -32,7 +32,7 @@ export default class extends Instruction {
|
||||
options: getOptions(),
|
||||
},
|
||||
required: true,
|
||||
default: 'math.js',
|
||||
default: 'formula.js',
|
||||
},
|
||||
expression: {
|
||||
type: 'string',
|
||||
|
Loading…
Reference in New Issue
Block a user