Skip to content

Commit 4ab8166

Browse files
authored
Merge pull request #484 from rulishu/rls
docs(maskLayer): 修改MaskLayer文档
2 parents c6a6052 + 6ebec2c commit 4ab8166

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

packages/core/src/MaskLayer/README.md

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,14 @@ export default Demo
4242

4343
### Props
4444

45-
继承原生 Modal 属性 [`ModalProps`](https://facebook.github.io/react-native/docs/modal.html#props)
45+
继承原生 Modal 属性 [`ModalProps`](https://facebook.github.io/react-native/docs/modal.html#props)
46+
47+
| 参数 | 说明 | 类型 | 默认值 |
48+
|------|------|-----|------|
49+
| maskClosable | 遮罩层是否禁止点击 | `Boolean` | `true` |
50+
| visible | 遮罩层是否隐藏 |`Boolean` | - |
51+
| opacity | 遮罩层透明度 | - | 0.6 |
52+
| onDismiss | 隐藏消除回调事件 | () => void | - |
53+
| children | 子元素 | JSX.Element | |
54+
4655

47-
```typescript
48-
interface MaskLayerProps extends RNModalProps {
49-
/**
50-
* 遮罩层是否禁止点击
51-
* defult: `true`
52-
*/
53-
maskClosable?: boolean;
54-
/**
55-
* 是否隐藏
56-
*/
57-
visible?: boolean;
58-
/**
59-
* 遮罩层透明度
60-
* defult: `0.6`
61-
*/
62-
opacity?: number;
63-
/**
64-
* 隐藏消除回调事件
65-
*/
66-
onDismiss?: () => void;
67-
children?: JSX.Element;
68-
}
69-
```

0 commit comments

Comments
 (0)