Skip to content

Commit

Permalink
Merge branch 'fix-tabs-exp'
Browse files Browse the repository at this point in the history
  • Loading branch information
prgrmrwy committed Jul 22, 2024
2 parents 8523b29 + de28987 commit 20c11ab
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/components/src/array-base/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ import {
IconChevronUp,
} from "@douyinfe/semi-icons";
import { IconProps as SemiIconProps } from "@douyinfe/semi-ui/lib/es/icons";
import { useField, useFieldSchema, Schema, JSXComponent } from "@formily/react";
import {
useField,
useFieldSchema,
Schema,
JSXComponent,
ExpressionScope,
} from "@formily/react";
import { ArrayField } from "@formily/core";
import { isValid } from "@formily/shared";
import cls from "classnames";
Expand Down Expand Up @@ -106,7 +112,11 @@ export const ArrayBase: ComposedArrayBase = (props) => {
};

ArrayBase.Item = ({ children, ...props }: any) => (
<ItemContext.Provider value={props}>{children}</ItemContext.Provider>
<ItemContext.Provider value={props}>
<ExpressionScope value={{ $record: props.record, $index: props.index }}>
{children}
</ExpressionScope>
</ItemContext.Provider>
);

const SortHandle = SortableHandle((props: any) => {
Expand Down

0 comments on commit 20c11ab

Please sign in to comment.