Skip to content

Commit 816a7f3

Browse files
committed
doc(Flex): 修改api文档
1 parent 15bf909 commit 816a7f3

File tree

1 file changed

+6
-34
lines changed

1 file changed

+6
-34
lines changed

packages/core/src/Flex/README.md

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -74,39 +74,11 @@ export default Demo
7474
```
7575

7676
### Props
77-
78-
### Flex
79-
80-
```ts
81-
export interface FlexProps extends ViewProps {
82-
/**
83-
* 项目定位方向
84-
* `row`, `column`, `row-reverse`, `column-reverse`
85-
* @default row
86-
*/
87-
direction?: FlexStyle['flexDirection'];
88-
/**
89-
* 子元素在主轴上的对齐方式
90-
* @default start
91-
*/
92-
justify?: 'start' | 'end' | 'center' | 'between' | 'around';
93-
/**
94-
* 子元素在交叉轴上的对齐方式
95-
* @default start
96-
*/
97-
align?: 'start' | 'end' | 'center' | 'stretch' | 'baseline';
98-
/**
99-
* 子元素的换行方式
100-
* @default nowrap
101-
*/
102-
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
103-
}
104-
```
105-
106-
### Flex.Item
107-
10877
继承 [View](https://facebook.github.io/react-native/docs/view#props) 组件。
10978

110-
```ts
111-
export interface FlexItemProps extends ViewProps {}
112-
```
79+
| 参数 | 说明 | 类型 | 默认值 |
80+
|------|------|-----|------|
81+
| `direction` | 项目定位方向 | `row` \| `column` \| `row-reverse` \| `column-reverse` | row |
82+
| `justify` | 子元素在主轴上的对齐方式 | `start` \| `end` \| `center` \| `between` \| `around` | start |
83+
| `align` | 子元素在交叉轴上的对齐方式 | `start` \| `end` \| `center` \| `stretch` \| `baseline` | start |
84+
| `wrap` | 子元素的换行方式 | `wrap` \| `nowrap` \| `wrap-reverse` | nowrap |

0 commit comments

Comments
 (0)