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(typings): correction FormLayout、Submit typings #182

Merged
merged 6 commits into from
Jul 18, 2019
Merged

fix(typings): correction FormLayout、Submit typings #182

merged 6 commits into from
Jul 18, 2019

Conversation

atzcl
Copy link
Collaborator

@atzcl atzcl commented Jul 17, 2019

修正 FormLayoutSubmit 组件的类型声明

Close #181

@CLAassistant
Copy link

CLAassistant commented Jul 17, 2019

CLA assistant check
All committers have signed the CLA.

[ant-button](https://ant.design/components/button-cn/)
继承 [next-button](https://fusion.design/component/basic/button#button) /
[ant-button](https://ant.design/components/button-cn/#API)
> 原有组件的 loading 属性会被拓展的 showLoading 属性所替代
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: 扩展

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修正

> 主要用于控制Submit组件是否自动展示loading图标,要求SchemaForm的onSubmit回调必须返回Promise对象才会生效。
| 属性名称 | 属性描述 | 属性类型 | 默认值 | 可选值 |
| ---- | ---- | ---- | --- | --- |
| showLoading | 主要用于控制Submit组件是否自动展示loading图标,要求SchemaForm的onSubmit回调必须返回Promise对象才会生效。 | `boolean` | | |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

表格的 markdown 格式有问题

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

很神奇,在我这边是正常显示的,,,😂😂
image

packages/antd/src/components/layout.tsx Show resolved Hide resolved
Copy link
Contributor

@stkevintan stkevintan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFormLayout应该是React.FunctionComponent<IFormLayoutProps> 另外createVirtualBox返回的VirtualBox组件的props应该还有name和render属性(都可选), 目前麻烦手动加一下,以后会用泛型来重构掉。

  const VirtualBox = ({ children, name: fieldName, render, ...props }) => (
    <SchemaField
      type="object"
      name={fieldName}
      x-component={name}
      x-props={props}
      x-render={render}
    >
      {children}
    </SchemaField>
  )

packages/antd/src/components/layout.tsx Show resolved Hide resolved
@janryWang janryWang merged commit 11dde61 into alibaba:master Jul 18, 2019
ZirkleTsing pushed a commit that referenced this pull request May 14, 2020
* fix(typings): correction FormLayout、Submit typings

* docs(Submit): update API description

* refactor: extract typings

* docs(Submit): fix mistakes wording

* refactor: modify FormLayout typings

* refactor: modify FormLayout IFieldProps import
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.

FormLayout 、Submit 组件生成错误的类型声明
5 participants