Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(antd): fix FormItem type definition #784

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

kenve
Copy link
Contributor

@kenve kenve commented Apr 7, 2020

antd 中的 FormItem 中定义 children 为必传属性:

// https://github.com/ant-design/ant-design/tree/master/components#L39
{
  ...
  children: ChildrenType;
  ...
}

而在 formily 中应该是非必传的:

<FormItem name="name" label="Name" component={Input} />

所以修改 FormItem 组件中 children 类型定义为可选属性。

@CLAassistant
Copy link

CLAassistant commented Apr 7, 2020

CLA assistant check
All committers have signed the CLA.

@janryWang janryWang merged commit a53b46a into alibaba:master Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants