fix(evaluators): change formula.js to default calculation engine (#5626)

This commit is contained in:
Junyi 2024-11-11 20:33:39 +08:00 committed by GitHub
parent 96ba3600fc
commit b7495a7757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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',