diff --git a/packages/core/evaluators/src/utils/index.ts b/packages/core/evaluators/src/utils/index.ts index 1616bc59f..829a1cdb4 100644 --- a/packages/core/evaluators/src/utils/index.ts +++ b/packages/core/evaluators/src/utils/index.ts @@ -21,7 +21,7 @@ function appendArrayColumn(scope, key) { function replaceNumberIndex(path: string, scope: Scope): string { const segments = path.split('.'); - const paths = []; + const paths: string[] = []; for (let i = 0; i < segments.length; i++) { const p = segments[i]; diff --git a/packages/plugins/formula-field/src/client/field.tsx b/packages/plugins/formula-field/src/client/field.tsx index 15526dbce..8e955dc68 100644 --- a/packages/plugins/formula-field/src/client/field.tsx +++ b/packages/plugins/formula-field/src/client/field.tsx @@ -1,6 +1,6 @@ import { cloneDeep } from 'lodash'; import { i18n, IField, interfacesProperties } from '@nocobase/client'; -import evaluators, { Evaluator } from '@nocobase/evaluators/client'; +import { evaluators, Evaluator } from '@nocobase/evaluators/client'; import { Registry } from '@nocobase/utils/client'; import { NAMESPACE } from './locale'; diff --git a/packages/plugins/formula-field/src/client/formula/Result.tsx b/packages/plugins/formula-field/src/client/formula/Result.tsx index 4dadd4c09..a6d31f6f7 100644 --- a/packages/plugins/formula-field/src/client/formula/Result.tsx +++ b/packages/plugins/formula-field/src/client/formula/Result.tsx @@ -3,7 +3,7 @@ import { onFormValuesChange } from '@formily/core'; import { useFieldSchema, useFormEffects } from '@formily/react'; import cloneDeep from 'lodash/cloneDeep'; -import evaluators, { Evaluator } from '@nocobase/evaluators/client'; +import { evaluators, Evaluator } from '@nocobase/evaluators/client'; import { Registry, toFixedByStep } from '@nocobase/utils/client'; import { Checkbox, DatePicker, Input as InputString, InputNumber, useCollection } from '@nocobase/client'; diff --git a/packages/plugins/formula-field/src/client/index.tsx b/packages/plugins/formula-field/src/client/index.tsx index 71a8cda04..fbc74e494 100644 --- a/packages/plugins/formula-field/src/client/index.tsx +++ b/packages/plugins/formula-field/src/client/index.tsx @@ -3,7 +3,7 @@ import { i18n } from '@nocobase/client'; import { css } from '@emotion/css'; import { CollectionManagerContext, registerField, SchemaComponentOptions } from '@nocobase/client'; -import evaluators, { Evaluator } from '@nocobase/evaluators/client'; +import { evaluators, Evaluator } from '@nocobase/evaluators/client'; import { Formula } from './formula'; import field from './field'; diff --git a/packages/plugins/workflow/src/client/nodes/calculation.tsx b/packages/plugins/workflow/src/client/nodes/calculation.tsx index 49ce2b4b4..77f5dbebc 100644 --- a/packages/plugins/workflow/src/client/nodes/calculation.tsx +++ b/packages/plugins/workflow/src/client/nodes/calculation.tsx @@ -3,7 +3,7 @@ import { css } from '@emotion/css'; import parse from 'json-templates'; import { SchemaInitializer, SchemaInitializerItemOptions } from '@nocobase/client'; -import evaluators, { renderReference, Evaluator } from '@nocobase/evaluators/client'; +import { evaluators, renderReference, Evaluator } from '@nocobase/evaluators/client'; import { useFlowContext } from '../FlowContext'; import { lang, NAMESPACE } from '../locale'; diff --git a/packages/plugins/workflow/src/client/nodes/condition.tsx b/packages/plugins/workflow/src/client/nodes/condition.tsx index ca2a52fb5..1408a268a 100644 --- a/packages/plugins/workflow/src/client/nodes/condition.tsx +++ b/packages/plugins/workflow/src/client/nodes/condition.tsx @@ -6,7 +6,7 @@ import { Trans, useTranslation } from "react-i18next"; import { Registry } from "@nocobase/utils/client"; import { Variable, useCompile } from "@nocobase/client"; -import evaluators, { renderReference } from "@nocobase/evaluators/client"; +import { evaluators, renderReference } from "@nocobase/evaluators/client"; import { NodeDefaultView } from "."; import { Branch } from "../Branch";