Skip to content

Commit 2fe56b7

Browse files
authored
Merge pull request #489 from huqiaoli/dev
doc(Modal):修改Modal api文档
2 parents 9ae9903 + d756ba5 commit 2fe56b7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/core/src/Modal/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ export default ButtonGroupView
4343

4444
继承原生 Modal 属性 [`ModalProps`](https://facebook.github.io/react-native/docs/modal.html#props)
4545

46-
```ts
47-
export interface ModalProps extends MaskLayerProps {
48-
placement?: 'top' | 'right' | 'bottom' | 'left';
49-
onClosed?: () => void;
50-
}
51-
```
46+
| 参数 | 说明 | 类型 | 默认值 |
47+
|------|------|-----|------|
48+
| placement | 模态框的方向 | `'top' \| 'right' \| 'bottom' \| 'left'` | bottom |
49+
| onClosed | 关闭函数 | `() => void` | - |
50+

0 commit comments

Comments
 (0)