Skip to content

Commit

Permalink
fix(form): dataindex should take precedence over key
Browse files Browse the repository at this point in the history
close #6224
  • Loading branch information
chenshuai2144 committed Feb 8, 2023
1 parent a3c1b31 commit 8249ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form/src/components/SchemaForm/index.tsx
Expand Up @@ -95,7 +95,7 @@ function BetaSchemaForm<T, ValueType = 'text'>(props: FormSchema<T, ValueType>)
key: originItem.key,
columns: originItem.columns,
valueEnum: originItem.valueEnum,
dataIndex: originItem.key || originItem.dataIndex,
dataIndex: originItem.dataIndex || originItem.key,
initialValue: originItem.initialValue,
width: originItem.width,
index: originItem.index,
Expand Down

0 comments on commit 8249ccd

Please sign in to comment.