Skip to content

Commit

Permalink
docs(fusion): update fusion docs
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Apr 8, 2021
1 parent a1b9d31 commit 1256a38
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/antd/docs/components/FormItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default () => {

## 无边框案例

设置去除组件边框,仅限 antd 表单组件
设置去除组件边框

```tsx
import React from 'react'
Expand Down
2 changes: 1 addition & 1 deletion packages/next/docs/components/FormButtonGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export default () => {

> 该组件主要用来处理按钮组与主表单 FormItem 对齐问题
参考 https://ant.design/components/form-cn/ 中的 FormItem 属性
参考 [FormItem](/components/form-item) 属性

### FormButtonGroup.Sticky

Expand Down
6 changes: 3 additions & 3 deletions packages/next/docs/components/FormItem.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FormItem

> 全新的 FormItem 组件,相比于 Antd 的 FormItem,它支持的功能更多,同时它的定位是纯样式组件,不管理表单状态,所以也会更轻量,更方便定制
> 全新的 FormItem 组件,相比于 Fusion Next 的 FormItem,它支持的功能更多,同时它的定位是纯样式组件,不管理表单状态,所以也会更轻量,更方便定制
## Markup Schema 案例

Expand Down Expand Up @@ -42,7 +42,7 @@ export default () => (

```tsx
import React from 'react'
import { Input, FormItem, FormButtonGroup, Submit } from '@formily/antd'
import { Input, FormItem, FormButtonGroup, Submit } from '@formily/next'
import { createForm } from '@formily/core'
import { FormProvider, createSchemaField } from '@formily/react'

Expand Down Expand Up @@ -375,7 +375,7 @@ export default () => {

## 无边框案例

设置去除组件边框,仅限 antd 表单组件
设置去除组件边框

```tsx
import React from 'react'
Expand Down
4 changes: 2 additions & 2 deletions packages/next/docs/components/PreviewText.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ import {
connect,
createSchemaField,
} from '@formily/react'
import { Button, Form, Input as AntdInput } from '@alifd/next'
import { Button, Form, Input as NextInput } from '@alifd/next'

const Input = connect(AntdInput, mapReadPretty(PreviewText.Input))
const Input = connect(NextInput, mapReadPretty(PreviewText.Input))

const SchemaField = createSchemaField({
components: {
Expand Down
24 changes: 13 additions & 11 deletions packages/next/src/form-item/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,7 @@
}
}

.anticon {
display: inline-block;
color: inherit;
font-style: normal;
font-size: $form-element-medium-font-size;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
}


}

Expand Down Expand Up @@ -147,6 +137,7 @@
box-shadow: none !important;
outline: none;
}

}
}

Expand Down Expand Up @@ -370,6 +361,17 @@
align-items: center;
margin-right: -2px;
padding-left: 2px;
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
font-size: $form-element-medium-font-size;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
}
}

}
Expand Down

0 comments on commit 1256a38

Please sign in to comment.