[Doc] detailed Array typing

This commit is contained in:
陈嘉涵
2019-07-11 20:44:51 +08:00
parent 019c75506a
commit 2c4adff307
34 changed files with 67 additions and 66 deletions
+2 -2
View File
@@ -93,7 +93,7 @@ export default {
| Attribute | Description | Type | Default |
|------|------|------|------|
| actions | Options | `Array` | `[]` |
| actions | Options | `Action[]` | `[]` |
| title | Title | `string` | - |
| cancel-text | Text of cancel button | `string` | - |
| overlay | Whether to show overlay | `boolean` | `true` |
@@ -117,7 +117,7 @@ export default {
| close | Triggered when close ActionSheet | - |
| closed | Triggered when closed ActionSheet | - |
### Data struct of actions
### Data struct of Action
| key | Description |
|------|------|
+2 -2
View File
@@ -100,7 +100,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| actions | 菜单选项 | `Array` | `[]` | - |
| actions | 菜单选项 | `Action[]` | `[]` | - |
| title | 标题 | `string` | - | - |
| cancel-text | 取消按钮文字 | `string` | - | - |
| overlay | 是否显示遮罩层 | `boolean` | `true` | - |
@@ -124,7 +124,7 @@ export default {
| close | 关闭菜单时触发 | - |
| closed | 关闭菜单且动画结束后触发 | - |
### actions
### Action 数据结构
`Props`中的`actions`为一个对象数组,数组中的每一个对象配置每一列,每一列有以下`key`