mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:46:54 +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>();
|
export const evaluators = new Registry<Evaluator>();
|
||||||
|
|
||||||
evaluators.register('math.js', mathjs);
|
|
||||||
evaluators.register('formula.js', formulajs);
|
evaluators.register('formula.js', formulajs);
|
||||||
|
evaluators.register('math.js', mathjs);
|
||||||
evaluators.register('string', string);
|
evaluators.register('string', string);
|
||||||
|
|
||||||
export function getOptions() {
|
export function getOptions() {
|
||||||
|
@ -32,7 +32,7 @@ export default class extends Instruction {
|
|||||||
options: getOptions(),
|
options: getOptions(),
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
default: 'math.js',
|
default: 'formula.js',
|
||||||
},
|
},
|
||||||
expression: {
|
expression: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
Loading…
Reference in New Issue
Block a user